/* ==========================================================
   STARGATE · Cinema Player — Estilos v2
   Dirección de arte: negro abisal · oro líquido · cian plasma
   Vídeo vertical 9:16 como "portal" central
   ========================================================== */

:root {
  --bg: #04040a;
  --bg-2: #0a0a14;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f6f3ec;
  --text-dim: rgba(246, 243, 236, 0.58);
  --text-faint: rgba(246, 243, 236, 0.32);
  --gold: #f0cf86;
  --gold-2: #c9a25a;
  --gold-glow: rgba(240, 207, 134, 0.45);
  --cyan: #7ad9ff;
  --cyan-glow: rgba(122, 217, 255, 0.4);
  --violet: #8b6cff;
  --r-xl: 32px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --dock-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}

body.is-loading { overflow: hidden; }

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; }

::selection { background: var(--gold-glow); color: #000; }

/* ---------- Intro ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  gap: 18px;
  background: var(--bg);
  text-align: center;
  transition: opacity 0.9s var(--ease-io), visibility 0.9s;
}
.intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-ring {
  width: 120px; height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(240, 207, 134, 0.3);
  position: relative;
  animation: intro-ring 1.6s var(--ease) both;
}
.intro-ring::before, .intro-ring::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--gold);
  border-right-color: var(--cyan);
  animation: spin 1.4s linear infinite;
}
.intro-ring::after { inset: 14px; animation-direction: reverse; animation-duration: 2.2s; opacity: .6; }

.intro-word {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 56px);
  letter-spacing: 0.32em;
  display: flex;
  justify-content: center;
}
.intro-word span {
  display: inline-block;
  background: linear-gradient(180deg, #fff 0%, var(--gold) 60%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(18px);
  animation: letter-in 0.7s var(--ease) forwards;
}
.intro-word span:nth-child(1) { animation-delay: .15s }
.intro-word span:nth-child(2) { animation-delay: .22s }
.intro-word span:nth-child(3) { animation-delay: .29s }
.intro-word span:nth-child(4) { animation-delay: .36s }
.intro-word span:nth-child(5) { animation-delay: .43s }
.intro-word span:nth-child(6) { animation-delay: .50s }
.intro-word span:nth-child(7) { animation-delay: .57s }
.intro-word span:nth-child(8) { animation-delay: .64s }

.intro-sub {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  animation: fade-in 1s .8s both;
}

/* ---------- Fondo ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora--a {
  width: 70vmax; height: 70vmax; top: -30vmax; left: -20vmax;
  background: radial-gradient(circle, rgba(240, 207, 134, 0.28), transparent 60%);
  animation: drift-a 26s var(--ease-io) infinite alternate;
}
.aurora--b {
  width: 60vmax; height: 60vmax; bottom: -30vmax; right: -15vmax;
  background: radial-gradient(circle, rgba(122, 217, 255, 0.22), transparent 60%);
  animation: drift-b 30s var(--ease-io) infinite alternate;
}
.aurora--c {
  width: 45vmax; height: 45vmax; top: 40%; left: 50%;
  background: radial-gradient(circle, rgba(139, 108, 255, 0.16), transparent 60%);
  animation: drift-c 22s var(--ease-io) infinite alternate;
}
.backdrop-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 100%);
}
.backdrop-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(4,4,10,0.85) 100%);
}
.backdrop-noise {
  position: absolute; inset: -50%;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.6s steps(2) infinite;
}

/* ---------- Cabecera ---------- */
.site-header {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(18px, 3vw, 30px) clamp(20px, 4vw, 48px);
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.brand-sigil {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--gold);
  box-shadow: inset 0 0 20px rgba(240,207,134,0.08);
}
.brand-sigil svg { animation: spin 40s linear infinite; }
.brand-text { display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.26em;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-faint);
}
.header-nav { display: flex; align-items: center; gap: 10px; }
.header-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--text-dim);
  backdrop-filter: blur(10px);
}
.header-chip--mono { font-family: var(--font-mono); letter-spacing: 0.14em; color: var(--gold); }
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2.4s var(--ease-io) infinite;
}

/* ---------- Escenario ---------- */
.stage {
  position: relative; z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(300px, 420px) minmax(240px, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: stretch;
  padding: 8px clamp(20px, 4vw, 48px) clamp(24px, 4vw, 48px);
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

/* Paneles vidrio */
.panel {
  position: relative;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: rise 1s var(--ease) both;
}
.panel::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(240,207,134,0.35), transparent 40%, transparent 60%, rgba(122,217,255,0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.panel--meta { animation-delay: .1s; display: flex; flex-direction: column; }
.panel--meta .playlist { margin-top: auto; }
.panel--console { animation-delay: .2s; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--sm { font-size: 10px; color: var(--text-faint); margin-bottom: 12px; }
.eyebrow-line { width: 22px; height: 1px; background: currentColor; opacity: .7; }

.track-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #fff 0%, var(--text) 50%, rgba(246,243,236,0.7) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.track-desc {
  margin: 0 0 24px;
  font-size: 14.5px; line-height: 1.6;
  color: var(--text-dim);
  font-weight: 300;
}

.spec-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin: 0 0 26px;
}
.spec {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.spec dt {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 6px;
}
.spec dd { margin: 0; font-size: 13px; font-weight: 500; color: var(--text); }

.status { display: flex; align-items: center; gap: 8px; }
.status-dot {
  flex-shrink: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-faint);
  transition: all .4s var(--ease);
}
.status.is-live .status-dot {
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 1.6s var(--ease-io) infinite;
}

/* Playlist */
.playlist-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.playlist-item {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  transition: all .35s var(--ease);
}
.playlist-item:hover { background: var(--surface); border-color: var(--border); color: var(--text); }
.playlist-item.is-active {
  background: linear-gradient(90deg, rgba(240,207,134,0.14), transparent);
  border-color: rgba(240,207,134,0.3);
  color: var(--text);
}
.playlist-index { font-family: var(--font-mono); font-size: 11px; color: var(--gold); }
.playlist-title { font-size: 14px; font-weight: 500; }
.playlist-wave {
  display: flex; gap: 2px; align-items: flex-end; height: 14px; opacity: 0;
  transition: opacity .3s;
}
.playlist-item.is-active.is-playing .playlist-wave { opacity: 1; }
.playlist-wave span {
  width: 2.5px; border-radius: 2px; background: var(--gold);
  animation: eq .9s var(--ease-io) infinite alternate;
}
.playlist-wave span:nth-child(1){ height: 40%; animation-delay: 0s }
.playlist-wave span:nth-child(2){ height: 90%; animation-delay: .15s }
.playlist-wave span:nth-child(3){ height: 60%; animation-delay: .3s }
.playlist-wave span:nth-child(4){ height: 80%; animation-delay: .45s }

/* ---------- Portal (vídeo vertical) ---------- */
.portal {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  justify-self: center;
  width: 100%;
  animation: rise 1s var(--ease) both;
  perspective: 1400px;
}
.portal-halo {
  position: absolute;
  inset: -12% -30%;
  background:
    radial-gradient(ellipse 50% 60% at 50% 45%, rgba(240,207,134,0.22), transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 75%, rgba(122,217,255,0.16), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  transition: opacity 1s var(--ease);
}
.portal-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #000;
  box-shadow:
    0 60px 120px -40px rgba(0,0,0,0.95),
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 90px -20px rgba(240,207,134,0.25);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .8s var(--ease);
  will-change: transform;
}
.portal-frame.is-playing {
  box-shadow:
    0 60px 120px -40px rgba(0,0,0,0.95),
    0 0 0 1px rgba(240,207,134,0.35),
    0 0 120px -20px rgba(240,207,134,0.45),
    0 0 200px -60px rgba(122,217,255,0.35);
}
.portal-edge {
  position: absolute; inset: 0; z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, rgba(240,207,134,0.8) 85%, rgba(122,217,255,0.7) 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1.5px;
  opacity: 0;
  transition: opacity .8s var(--ease);
  animation: rotate-angle 6s linear infinite;
}
.portal-frame.is-playing .portal-edge { opacity: 1; }

@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.player-embed { position: absolute; inset: 0; }
.player-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* Overlay de inicio */
.portal-overlay {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(4,4,10,0.2), rgba(4,4,10,0.7) 80%),
    linear-gradient(180deg, rgba(4,4,10,0.3), rgba(4,4,10,0.6));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity .6s var(--ease), visibility .6s;
}
.portal-overlay.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.play-orb {
  position: relative;
  width: 118px; height: 118px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: transform .5s var(--ease);
}
.play-orb:hover { transform: scale(1.06); }
.play-orb:active { transform: scale(0.97); }
.orb-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(240,207,134,0.35);
}
.orb-ring--1 { animation: ripple 3s var(--ease-io) infinite; }
.orb-ring--2 { animation: ripple 3s 1s var(--ease-io) infinite; }
.orb-ring--3 { inset: 14px; border-color: rgba(122,217,255,0.3); border-style: dashed; animation: spin 24s linear infinite; }
.orb-core {
  position: relative; z-index: 1;
  width: 74px; height: 74px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #14100a;
  background: linear-gradient(145deg, #fff3d1, var(--gold) 45%, var(--gold-2));
  box-shadow: 0 20px 50px -14px rgba(240,207,134,0.7), inset 0 1px 0 rgba(255,255,255,0.7);
}
.orb-core svg { margin-left: 4px; }
.overlay-caption {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim);
}

/* HUD */
.hud {
  position: absolute; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.hud--top { top: 0; }
.portal-frame.is-playing .hud { opacity: 1; }
.hud-rec {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.hud-rec-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 10px #ff5a5a; animation: pulse 1s var(--ease-io) infinite; }
.hud-mono {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.corner {
  position: absolute; z-index: 3;
  width: 22px; height: 22px;
  border: 1.5px solid rgba(240,207,134,0.6);
  pointer-events: none;
  opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease);
  transform: scale(1.3);
}
.portal-frame.is-playing .corner { opacity: 1; transform: scale(1); }
.corner--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.corner--tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.corner--bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.corner--br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }

/* Toast */
.toast {
  position: absolute; z-index: 6;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(4,4,10,0.65);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.08em;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast-icon { color: var(--gold); }

/* Buffering */
.buffer-spinner {
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-items: center;
  pointer-events: none;
  opacity: 0; transition: opacity .3s;
}
.buffer-spinner.is-visible { opacity: 1; }
.buffer-spinner span {
  width: 54px; height: 54px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}

/* Timeline */
.timeline {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  user-select: none;
}
.timeline-time { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-dim); min-width: 40px; text-align: center; }
.timeline-track {
  position: relative; height: 4px; border-radius: 999px;
  background: rgba(255,255,255,0.1);
  overflow: visible;
}
.timeline-buffer {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  border-radius: inherit; background: rgba(255,255,255,0.14);
  transition: width .4s linear;
}
.timeline-fill {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-2), var(--gold) 70%, #fff);
  box-shadow: 0 0 14px var(--gold-glow);
  transition: width .25s linear;
}
.timeline-knob {
  position: absolute; top: 50%; left: 0%;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(240,207,134,0.25), 0 0 14px var(--gold-glow);
  transform: scale(0);
  transition: transform .3s var(--ease), left .25s linear;
}
.timeline:hover .timeline-knob, .timeline.is-seeking .timeline-knob { transform: scale(1); }
.timeline.is-seeking .timeline-fill, .timeline.is-seeking .timeline-knob { transition: none; }

/* ---------- Consola ---------- */
.transport {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 22px;
}
.ctrl {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform .35s var(--ease), background .35s, border-color .35s, box-shadow .35s;
}
.ctrl:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateY(-2px); }
.ctrl:active { transform: scale(0.95); }
.ctrl--sm { width: 44px; height: 44px; }
.ctrl--primary {
  width: 76px; height: 76px;
  color: #14100a;
  background: linear-gradient(145deg, #fff3d1, var(--gold) 45%, var(--gold-2));
  border-color: transparent;
  box-shadow: 0 18px 44px -14px rgba(240,207,134,0.7), inset 0 1px 0 rgba(255,255,255,0.7);
}
.ctrl--primary:hover { background: linear-gradient(145deg, #fff8e6, #f7dc9c 45%, var(--gold)); box-shadow: 0 22px 50px -12px rgba(240,207,134,0.85), inset 0 1px 0 rgba(255,255,255,0.8); }
.ctrl--primary .icon-play { margin-left: 3px; }

.icon-pause { display: none; }
.is-playing .icon-pause { display: block; }
.is-playing .icon-play { display: none; }

.console-row {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.volume-meter {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.volume-bars { flex: 1; display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.volume-bar {
  flex: 1; border-radius: 2px;
  background: rgba(255,255,255,0.1);
  transition: background .3s, box-shadow .3s, height .3s var(--ease);
}
.volume-bar:nth-child(1){height:30%} .volume-bar:nth-child(2){height:38%} .volume-bar:nth-child(3){height:46%} .volume-bar:nth-child(4){height:54%} .volume-bar:nth-child(5){height:62%}
.volume-bar:nth-child(6){height:70%} .volume-bar:nth-child(7){height:78%} .volume-bar:nth-child(8){height:86%} .volume-bar:nth-child(9){height:93%} .volume-bar:nth-child(10){height:100%}
.volume-bar.is-on { background: linear-gradient(180deg, #fff, var(--gold)); box-shadow: 0 0 8px var(--gold-glow); }
.volume-value { font-size: 12px; color: var(--gold); min-width: 28px; text-align: right; }

.console-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.ctrl--pill {
  width: auto; height: 44px;
  border-radius: 999px;
  padding: 0 16px;
  justify-content: flex-start;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em;
}
.ctrl--pill:hover { transform: translateY(-1px); }
.ctrl--pill[aria-pressed="true"] { border-color: rgba(240,207,134,0.5); background: rgba(240,207,134,0.1); color: var(--gold); }
.ctrl--pill .ctrl-text { white-space: nowrap; }
.ctrl--pill .icon-muted { display: none; }
.ctrl--pill[aria-pressed="true"] .icon-muted { display: block; }
.ctrl--pill[aria-pressed="true"] .icon-sound { display: none; }

.console-footer { padding-top: 18px; border-top: 1px solid var(--border); }
.shortcuts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shortcuts li { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); }
.shortcuts span { margin-left: auto; }
kbd {
  display: inline-grid; place-items: center;
  min-width: 24px; height: 22px; padding: 0 7px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  box-shadow: inset 0 -1.5px 0 rgba(0,0,0,0.5);
  font-family: var(--font-mono); font-size: 10px; color: var(--text);
}

/* ---------- Dock móvil ---------- */
.dock {
  display: none;
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 20;
  align-items: center; gap: 6px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(10,10,20,0.7);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.9);
}
.dock-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text);
  transition: background .3s, transform .3s var(--ease);
}
.dock-btn:active { transform: scale(0.92); background: var(--surface-2); }
.dock-btn--primary {
  width: 58px; height: 58px;
  color: #14100a;
  background: linear-gradient(145deg, #fff3d1, var(--gold) 45%, var(--gold-2));
  box-shadow: 0 14px 30px -10px rgba(240,207,134,0.7);
}
.dock-btn--primary .icon-play { margin-left: 3px; }

/* ---------- Pie ---------- */
.site-footer {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 16px clamp(20px, 4vw, 48px) calc(20px + var(--dock-h));
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint);
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ---------- Animaciones ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rotate-angle { to { --angle: 360deg; } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@keyframes ripple { 0% { transform: scale(0.9); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes letter-in { to { opacity: 1; transform: none; } }
@keyframes intro-ring { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes eq { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }
@keyframes grain { 0% { transform: translate(0,0); } 50% { transform: translate(-3%, 2%); } 100% { transform: translate(2%, -3%); } }
@keyframes drift-a { to { transform: translate(18vmax, 12vmax) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-16vmax, -14vmax) scale(1.15); } }
@keyframes drift-c { to { transform: translate(-30%, -40%) scale(1.3); } }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "portal meta" "portal console";
    align-items: start;
  }
  .portal { grid-area: portal; position: sticky; top: 20px; align-self: start; }
  .panel--meta .playlist { margin-top: 0; }
  .panel--meta { grid-area: meta; }
  .panel--console { grid-area: console; }
}

@media (max-width: 760px) {
  :root { --dock-h: 90px; }
  .site-header { padding: 16px 18px; }
  .brand-tag { display: none; }
  .header-chip:not(.header-chip--mono) { display: none; }
  .stage {
    grid-template-columns: 1fr;
    grid-template-areas: "portal" "meta" "console";
    gap: 22px;
    padding: 4px 16px 20px;
  }
  .portal { position: static; }
  .portal-frame { max-width: min(100%, 62vh * 9 / 16); border-radius: var(--r-lg); }
  .portal-halo { inset: -10% -20%; }
  .panel { padding: 22px 20px; border-radius: var(--r-lg); }
  .track-title { font-size: 28px; }
  .console-footer { display: none; }
  .dock { display: inline-flex; }
  .site-footer { flex-wrap: wrap; justify-content: center; }
  .site-footer span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .backdrop-noise, .aurora { animation: none; }
  .portal-frame { transform: none !important; }
}
