/* ============================================================
   Ana Pao Marin · Sitio Oficial · music.css
   Mundo 2 · Música (jukebox, songs, plataformas)
   ============================================================ */

.world-music {
  --w: var(--accent);
  position: relative;
  padding: 60px 0 140px;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(244,114,182,.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(109,40,217,.18), transparent 60%),
    linear-gradient(180deg, #0a0a0f, #110919 60%, #0a0a0f);
  overflow: hidden;
}
.world-music::before {
  content: 'SOUND';
  position: absolute;
  bottom: 40px;
  right: -40px;
  font-family: var(--display);
  font-weight: 200;
  font-style: italic;
  font-size: 24rem;
  color: rgba(244,114,182,.04);
  pointer-events: none;
  line-height: 1;
}
/* Waveform decorativo (deprecado, ahora usamos .mh-eq mini-equalizer) */
.waveform { display: none; }
.waveform .bar { display: none; }

/* === Header de la sección Música === */
.music-header {
  margin: 20px 0 50px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(244,114,182,.15);
  position: relative;
}
.music-header::after {
  /* shine sutil sobre el border-bottom */
  content: "";
  position: absolute; left: 0; right: 70%; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .8;
}
.mh-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  margin-bottom: 36px;
}
.mh-title .label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.mh-title .label::before {
  content: ""; width: 36px; height: 1px; background: var(--accent);
}
.mh-title h2 {
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0;
  color: #fff;
  padding-top: .08em;
}
.mh-title h2 em {
  display: inline-block;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(90deg, var(--accent) 0%, #ff8ac3 50%, var(--accent2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: .08em .14em .04em 0;
}

.mh-album {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.2));
  border: 1px solid rgba(244,114,182,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: right;
}
.mh-eq {
  display: flex; align-items: end; gap: 3px;
  height: 32px; width: 28px;
}
.mh-eq span {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), var(--plum));
  border-radius: 2px;
  animation: mh-eq-bar 1.2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(244,114,182,.5);
}
.mh-eq span:nth-child(1) { animation-delay: 0s;   height: 40%; }
.mh-eq span:nth-child(2) { animation-delay: .15s; height: 80%; }
.mh-eq span:nth-child(3) { animation-delay: .3s;  height: 60%; }
.mh-eq span:nth-child(4) { animation-delay: .45s; height: 90%; }
.mh-eq span:nth-child(5) { animation-delay: .6s;  height: 50%; }
@keyframes mh-eq-bar {
  0%,100% { transform: scaleY(.4); opacity: .6; }
  50%     { transform: scaleY(1);  opacity: 1; }
}
.mh-eq span { transform-origin: bottom; }
.mh-album-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.mh-album-label {
  font-size: .65rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted);
}
.mh-album-name {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.5rem; font-weight: 400; font-style: italic;
  color: #fff;
  background: linear-gradient(90deg, #fff 30%, #f7c97b);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: .04em .18em .04em 0;
  line-height: 1.2;
}
.mh-album-year {
  font-size: .72rem; letter-spacing: .12em;
  color: rgba(255,255,255,.6);
}

.mh-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.mh-stat {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 24px;
  position: relative;
}
.mh-stat + .mh-stat::before {
  content: "";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 60%;
  background: linear-gradient(180deg, transparent, rgba(244,114,182,.3), transparent);
}
.mh-stat:first-child { padding-left: 0; }
.mh-stat-num {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
  color: #fff;
  display: inline-flex; align-items: baseline; gap: 4px;
}
.mh-unit {
  font-size: .85rem; font-weight: 400;
  color: var(--muted); letter-spacing: .05em;
  font-style: normal;
}
.mh-stat-lbl {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.mh-stat-cta .mh-stat-num.mh-stat-icon {
  background: linear-gradient(135deg, var(--accent), #f7c97b);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2rem;
  line-height: 1;
}
.mh-stat-cta .mh-stat-lbl { color: var(--accent); }

@media (max-width: 800px) {
  .mh-top { grid-template-columns: 1fr; gap: 24px; }
  .mh-album { align-self: start; text-align: left; }
  .mh-stats { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .mh-stat + .mh-stat::before { display: none; }
  .mh-stat:nth-child(odd) { padding-left: 0; }
  .mh-stat:nth-child(even) { border-left: 1px solid rgba(244,114,182,.2); }
}

/* Songs grid */
.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin-bottom: 60px;
}
.song-card {
  position: relative;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(244,114,182,.09), rgba(109,40,217,.06));
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all .5s cubic-bezier(.2,.7,.2,1);
}
.song-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 30px 60px -30px rgba(244,114,182,.5);
}
.song-cover {
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(244,114,182,.6), transparent 60%),
    linear-gradient(135deg, #2a0d2a, #110919);
}
.song-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.04) 0 1px, transparent 1px 6px);
  mix-blend-mode: overlay;
}
.song-cover .vinyl {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--accent) 0 6%, transparent 6.2%),
    repeating-radial-gradient(circle at 50% 50%, #0a0608 0 2px, #15090f 2px 4px);
  box-shadow: 0 20px 60px -20px rgba(244,114,182,.6), inset 0 0 40px rgba(0,0,0,.4);
  animation: spin 6s linear infinite;
  animation-play-state: paused;
  display: grid;
  place-items: center;
}
/* Brillo diagonal en el vinilo */
.song-cover .vinyl::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%);
  pointer-events: none;
}
/* Etiqueta central con la portada del disco */
.song-cover .label-disc {
  position: relative;
  width: 52%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(135deg, var(--accent2), var(--accent));
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px rgba(0,0,0,.45), inset 0 0 25px rgba(0,0,0,.35);
}
.song-cover .label-disc::after {
  content: 'AP';
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.8rem;
  color: rgba(255,255,255,.85);
  letter-spacing: -.02em;
}
.song-cover .label-disc img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
.song-cover .label-disc img + ::after,
.song-cover .label-disc:has(img)::after { display: none; }
/* Hoyo central */
.song-cover .label-disc .hole {
  position: absolute;
  width: 12%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #444, #000 70%);
  z-index: 3;
  box-shadow: inset 0 0 4px rgba(0,0,0,.8);
}
/* hover ya no gira: solo gira al reproducir */
.song-card.playing .song-cover .vinyl {
  animation-play-state: running;
  animation-duration: 4s;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Brazo de tocadiscos (tonearm) */
.song-cover .tonearm {
  position: absolute;
  top: 8%;
  right: 8%;
  width: 48%;
  height: 8px;
  z-index: 4;
  transform-origin: top right;
  transform: rotate(20deg);  /* en reposo: levantado, fuera del disco */
  transition: transform 1s cubic-bezier(.5,.1,.3,1);
  pointer-events: none;
}
.song-cover .tonearm::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #d4d4d8, #71717a);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.song-cover .tonearm::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f4f4f5, #52525b);
  box-shadow: 0 4px 12px rgba(0,0,0,.6), inset 0 0 6px rgba(0,0,0,.4);
}
/* al reproducir: aguja baja sobre el disco */
.song-card.playing .song-cover .tonearm { transform: rotate(-22deg); }

.song-cover .play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  background: rgba(10,6,14,.0);
  transition: background .3s;
}
.song-card:hover .play-btn { background: rgba(10,6,14,.35); }
.song-cover .play-btn .pb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: grid;
  place-items: center;
  color: var(--accent2);
  font-size: 1.5rem;
  transform: scale(.85);
  opacity: 0;
  transition: all .35s ease;
  box-shadow: 0 10px 40px -10px rgba(244,114,182,.7);
}
.song-card:hover .play-btn .pb { transform: scale(1); opacity: 1; }

.song-info {
  padding: 22px 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.song-info h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.song-info .song-meta {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.song-info .song-year {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  font-size: 1.1rem;
}

/* Embed player — oculto (sólo audio) para mantener vibe jukebox */
.song-card.playing { box-shadow: 0 30px 80px -30px rgba(244,114,182,.7); border-color: var(--accent); }
.song-card.playing .song-cover::after {
  content: 'NOW PLAYING';
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  font-family: var(--sans);
  font-size: .55rem;
  letter-spacing: .3em;
  color: #fff;
  background: var(--accent2);
  padding: 5px 10px;
  border-radius: 30px;
  box-shadow: 0 0 0 2px rgba(244,114,182,.3), 0 6px 20px -4px rgba(244,114,182,.6);
  animation: pulse 1.6s ease-in-out infinite;
}
.song-card .embed-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.song-card.playing .play-btn .pb { background: var(--accent); color: #fff; opacity: 1; transform: scale(1); }
.song-card.playing .play-btn .pb::before { content: ''; }
.song-card .close-embed {
  display: none;
  width: 100%;
  text-align: center;
  padding: 12px;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(0,0,0,.4);
  transition: color .3s;
}
.song-card .close-embed:hover { color: var(--accent); }
.song-card.playing .close-embed { display: block; }

/* ═════════════════ JUKEBOX / ROCOLA ═════════════════ */
.jukebox {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  padding: 32px;
  border-radius: 28px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(244,114,182,.18), transparent 60%),
    linear-gradient(160deg, #1a0f1f 0%, #0e0712 60%, #0a060e 100%);
  border: 1px solid rgba(244,114,182,.22);
  box-shadow:
    0 60px 120px -40px rgba(244,114,182,.35),
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 4px 0 rgba(0,0,0,.5) inset;
  position: relative;
  overflow: hidden;
}
.jukebox::before {
  /* gold trim arcs at top */
  content: "";
  position: absolute; inset: 14px 14px auto 14px; height: 60px;
  border-top: 1px solid rgba(247,201,123,.4);
  border-left: 1px solid rgba(247,201,123,.25);
  border-right: 1px solid rgba(247,201,123,.25);
  border-radius: 60px 60px 0 0 / 100px 100px 0 0;
  pointer-events: none;
}
.jukebox::after {
  /* warm light glow at top center */
  content: "";
  position: absolute; left: 50%; top: -40px; transform: translateX(-50%);
  width: 320px; height: 120px;
  background: radial-gradient(ellipse at center, rgba(247,201,123,.35), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* === Lado izquierdo (deck) === */
.jb-deck {
  display: flex; flex-direction: column; gap: 18px;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.25));
  border: 1px solid rgba(255,255,255,.06);
  position: relative;
  z-index: 1;
}
.jb-marquee {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: #050308;
  border-radius: 10px;
  border: 1px solid rgba(247,201,123,.25);
  font-family: 'Courier New', monospace;
  font-size: .8rem;
  letter-spacing: .2em;
  color: #f7c97b;
  text-shadow: 0 0 8px rgba(247,201,123,.6);
}
.jb-led {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ff5577;
  box-shadow: 0 0 12px #ff5577, 0 0 24px rgba(255,85,119,.5);
  animation: jb-led-pulse 1.6s ease-in-out infinite;
}
@keyframes jb-led-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.85); }
}
.jb-now-label { flex: 1; }
.jb-counter b { color: #fff; font-weight: 700; }

/* Tornamesa */
.jb-platter {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #1c1024 0%, #0b0610 70%, #050308 100%);
  box-shadow:
    0 20px 40px rgba(0,0,0,.6),
    0 0 0 8px rgba(247,201,123,.15),
    0 0 0 9px rgba(247,201,123,.4),
    0 0 0 10px rgba(0,0,0,.6),
    inset 0 0 30px rgba(0,0,0,.8);
  display: grid; place-items: center;
}
.jb-vinyl {
  width: 92%; height: 92%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      #130a1e 0px, #130a1e 2px,
      #1e1030 2px, #1e1030 4px),
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.07), transparent 55%);
  box-shadow:
    inset 0 0 50px rgba(0,0,0,.85),
    0 0 0 2px rgba(255,255,255,.09),
    0 0 0 3px rgba(0,0,0,.7);
  display: grid; place-items: center;
  transition: transform .6s ease;
  position: relative;
}
/* Borde de canto brillante */
.jb-vinyl::before {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.13),
    inset 0 0 0 5px rgba(255,255,255,.04);
  pointer-events: none;
  z-index: 4;
}
/* Barrido especular — luz que raspa los surcos */
.jb-vinyl::after {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(
    from 195deg,
    transparent 0%,
    rgba(255,255,255,.08) 16%,
    transparent 30%,
    transparent 58%,
    rgba(255,255,255,.05) 72%,
    transparent 84%
  );
  pointer-events: none;
  z-index: 1;
}
.jb-grooves {
  position: absolute; inset: 8%; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      transparent 0px, transparent 2px,
      rgba(255,255,255,.07) 2px, rgba(255,255,255,.07) 3px),
    repeating-radial-gradient(circle at 50% 50%,
      transparent 0px, transparent 10px,
      rgba(255,255,255,.04) 10px, rgba(255,255,255,.04) 11px);
  pointer-events: none;
  z-index: 2;
}
.jb-cover {
  position: relative;
  width: 42%; height: 42%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 4px #050308, 0 10px 30px rgba(0,0,0,.6);
}
.jb-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.jb-hole {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: #050308;
  box-shadow: 0 0 0 2px rgba(255,255,255,.1);
}
.jb-platter.spinning .jb-vinyl {
  animation: jb-spin 4s linear infinite;
}
@keyframes jb-spin {
  to { transform: rotate(360deg); }
}

/* Brazo (tonearm) */
.jb-tonearm {
  position: absolute;
  top: 4%; right: 4%;
  width: 50%; height: 8px;
  background: linear-gradient(90deg, #d6b066, #f7c97b 45%, #c79a4f 90%, #8a6432);
  border-radius: 4px;
  transform-origin: 100% 50%;
  transform: rotate(20deg);
  transition: transform .8s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,.6);
  z-index: 3;
}
.jb-tonearm::before {
  /* needle head */
  content: "";
  position: absolute; left: -6px; top: -6px;
  width: 22px; height: 22px;
  border-radius: 50% 50% 50% 8px;
  background: linear-gradient(135deg, #f7c97b, #b8842f);
  box-shadow: 0 4px 10px rgba(0,0,0,.6), inset 0 -2px 4px rgba(0,0,0,.4);
}
.jb-tonearm::after {
  /* pivot */
  content: "";
  position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f7c97b, #5a3a14 80%);
  box-shadow: 0 0 0 2px rgba(0,0,0,.5), 0 6px 14px rgba(0,0,0,.6);
}
.jb-platter.spinning .jb-tonearm { transform: rotate(-22deg); }

/* ════════════════════════════════════════════════
   Swap animation — slide de rocola (direccional)
   ════════════════════════════════════════════════ */
.jb-platter.is-swapping-next .jb-vinyl {
  animation: jb-slide-next 680ms cubic-bezier(.55,.05,.35,1) both;
}
.jb-platter.is-swapping-prev .jb-vinyl {
  animation: jb-slide-prev 680ms cubic-bezier(.55,.05,.35,1) both;
}
.jb-platter.is-swapping-next .jb-tonearm,
.jb-platter.is-swapping-prev .jb-tonearm {
  transform: rotate(35deg) !important;
  transition: transform .25s cubic-bezier(.4,.0,.2,1);
}
.jb-platter.is-swapping-next,
.jb-platter.is-swapping-prev {
  filter: drop-shadow(0 0 28px rgba(244,114,182,.4));
  transition: filter .3s ease;
}
/* Siguiente → : sale por la izquierda, entra por la derecha */
@keyframes jb-slide-next {
  0%   { transform: translateX(0)    scale(1);   opacity: 1; }
  44%  { transform: translateX(-80%) scale(.82); opacity: 0; }
  56%  { transform: translateX( 80%) scale(.82); opacity: 0; }
  100% { transform: translateX(0)    scale(1);   opacity: 1; }
}
/* Anterior ← : sale por la derecha, entra por la izquierda */
@keyframes jb-slide-prev {
  0%   { transform: translateX(0)    scale(1);   opacity: 1; }
  44%  { transform: translateX( 80%) scale(.82); opacity: 0; }
  56%  { transform: translateX(-80%) scale(.82); opacity: 0; }
  100% { transform: translateX(0)    scale(1);   opacity: 1; }
}

.jb-spindle-glow {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(244,114,182,.25), transparent 35%);
  opacity: 0; transition: opacity .4s ease;
  pointer-events: none;
}
.jb-platter.spinning .jb-spindle-glow { opacity: 1; }

.jb-track-info { text-align: center; }
.jb-track-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 6px;
  background: linear-gradient(90deg, #fff 30%, #f7c97b);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.jb-meta { color: var(--muted); font-size: .85rem; letter-spacing: .05em; }
.jb-meta em { color: var(--accent); font-style: italic; }

.jb-player {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,.1);
}
.jb-controls {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,0) 50%),
    linear-gradient(180deg, #0a050f 0%, #160a22 100%);
  border: 1px solid rgba(247,201,123,.22);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -2px 8px rgba(0,0,0,.6),
    0 12px 28px -16px rgba(0,0,0,.8);
  position: relative;
  /* overflow visible para que el popover de volumen no se recorte */
  overflow: visible;
}
.jb-controls::before {
  /* sutil shine arriba */
  content: "";
  position: absolute; left: 10%; right: 10%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247,201,123,.5), transparent);
  pointer-events: none;
}
.jb-controls button {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.3));
  border: 1px solid rgba(247,201,123,.28);
  color: #f7c97b;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .85rem;
  display: grid; place-items: center;
  transition: transform .2s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.jb-controls button:hover {
  background: linear-gradient(180deg, rgba(247,201,123,.18), rgba(247,201,123,.04));
  border-color: rgba(247,201,123,.7);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -8px rgba(247,201,123,.6), inset 0 1px 0 rgba(255,255,255,.12);
}
.jb-controls button:active { transform: translateY(0) scale(.96); }

.jb-controls .jb-play {
  width: 52px; height: 52px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 55%),
    linear-gradient(180deg, var(--accent), #c4267e);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 1rem;
  box-shadow:
    0 10px 24px -8px rgba(244,114,182,.7),
    inset 0 2px 0 rgba(255,255,255,.25),
    inset 0 -2px 6px rgba(0,0,0,.25);
  position: relative;
}
.jb-controls .jb-play::after {
  /* halo pulsante cuando suena */
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(244,114,182,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.jb-platter.spinning ~ * .jb-controls .jb-play::after,
.jb-controls .jb-play.is-playing::after {
  opacity: 1;
  animation: jb-play-pulse 1.8s ease-out infinite;
}
@keyframes jb-play-pulse {
  0%   { transform: scale(1);    opacity: .55; }
  100% { transform: scale(1.45); opacity: 0;   }
}
.jb-controls .jb-play:hover {
  filter: brightness(1.08);
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 16px 32px -10px rgba(244,114,182,.8),
    inset 0 2px 0 rgba(255,255,255,.3);
}
.jb-play-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.jb-controls button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}
.jb-controls .jb-play svg {
  width: 20px;
  height: 20px;
}

.jb-progress-wrap {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 12px;
}
.jb-time {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: .72rem;
  letter-spacing: .06em;
  color: rgba(247,201,123,.85);
  text-align: center;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 8px rgba(247,201,123,.25);
}
.jb-progress {
  position: relative;
  height: 28px; /* área de click amplia */
  display: flex; align-items: center;
  cursor: pointer;
  --pct: 0%;
}
.jb-progress::before {
  /* track */
  content: "";
  position: absolute; left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.6);
  transition: height .2s ease;
}
.jb-progress-fill {
  position: relative;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, #f7c97b 100%);
  border-radius: 999px;
  transition: width .1s linear, height .2s ease;
  box-shadow: 0 0 10px rgba(244,114,182,.6);
  z-index: 1;
}
.jb-progress-fill::after {
  /* thumb */
  content: "";
  position: absolute; right: -7px; top: 50%;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  transform: translateY(-50%) scale(0);
  transition: transform .2s ease;
  box-shadow: 0 0 0 3px rgba(244,114,182,.5), 0 4px 10px rgba(0,0,0,.5);
}
.jb-progress:hover::before,
.jb-progress:hover .jb-progress-fill { height: 6px; }
.jb-progress:hover .jb-progress-fill::after { transform: translateY(-50%) scale(1); }

.jb-hint {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* === Lado derecho (selector) === */
.jb-selector {
  display: flex; flex-direction: column;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, #2a1830 0%, #150a1c 100%);
  border: 1px solid rgba(247,201,123,.18);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4) inset;
  position: relative;
  z-index: 1;
}
.jb-selector-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: #050308;
  border-radius: 12px;
  border: 1px solid rgba(247,201,123,.3);
  box-shadow: inset 0 0 20px rgba(0,0,0,.8);
}
.jb-screen { flex: 1; font-family: 'Courier New', monospace; }
.jb-screen-line {
  font-size: .72rem; letter-spacing: .25em;
  color: rgba(247,201,123,.7);
}
.jb-screen-big {
  font-size: 1.5rem; letter-spacing: .15em; font-weight: 700;
  color: #f7c97b;
  text-shadow: 0 0 12px rgba(247,201,123,.6);
  margin-top: 2px;
}
.jb-bulbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.jb-bulbs .bulb {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff5577;
  box-shadow: 0 0 6px #ff5577;
  opacity: .6;
  animation: jb-bulb 2s ease-in-out infinite;
}
.jb-bulbs .bulb:nth-child(2) { animation-delay: .15s; background: #f7c97b; box-shadow: 0 0 6px #f7c97b; }
.jb-bulbs .bulb:nth-child(3) { animation-delay: .3s; }
.jb-bulbs .bulb:nth-child(4) { animation-delay: .45s; background: #f7c97b; box-shadow: 0 0 6px #f7c97b; }
.jb-bulbs .bulb:nth-child(5) { animation-delay: .6s; }
.jb-bulbs .bulb:nth-child(6) { animation-delay: .75s; background: #f7c97b; box-shadow: 0 0 6px #f7c97b; }
@keyframes jb-bulb {
  0%,100% { opacity: .35; }
  50% { opacity: 1; }
}

.jb-tracklist {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}
.jb-tracklist::-webkit-scrollbar { width: 6px; }
.jb-tracklist::-webkit-scrollbar-thumb { background: rgba(247,201,123,.3); border-radius: 4px; }
.jb-tracklist::-webkit-scrollbar-track { background: transparent; }

.jb-track {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.2));
  border: 1px solid rgba(255,255,255,.05);
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
}
.jb-track:hover {
  background: linear-gradient(180deg, rgba(244,114,182,.15), rgba(0,0,0,.3));
  border-color: rgba(244,114,182,.4);
  transform: translateX(2px);
}
.jb-track.is-active {
  background: linear-gradient(90deg, rgba(244,114,182,.25), rgba(247,201,123,.1));
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(244,114,182,.4), 0 8px 20px -10px rgba(244,114,182,.6);
}
.jb-track.is-active::before {
  content: "▶";
  position: absolute; left: 4px; color: var(--accent);
  font-size: .7rem;
  animation: jb-led-pulse 1.4s ease-in-out infinite;
}
.jb-key {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: .85rem;
  color: #f7c97b;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(247,201,123,.3);
  border-radius: 6px;
  padding: 6px 0;
  text-align: center;
  letter-spacing: .05em;
}
.jb-track.is-active .jb-key {
  background: linear-gradient(180deg, #f7c97b, #c79a4f);
  color: #050308;
  border-color: #f7c97b;
}
.jb-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: .01em;
}
.jb-len {
  font-family: 'Courier New', monospace;
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .08em;
}

.jb-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,.08);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .08em;
}
.jb-footer a { color: var(--accent); text-decoration: none; transition: color .2s; }
.jb-footer a:hover { color: #f7c97b; }

@media (max-width: 900px) {
  .jukebox { grid-template-columns: 1fr; padding: 22px; gap: 22px; }
  .jb-platter { max-width: 300px; }
  .jb-tracklist { max-height: 360px; }
}

/* Plataformas musicales (sustituye al embed roto) */
.platforms-block {
  margin-top: 60px;
  padding: 40px 36px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(16,185,129,.12), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(244,114,182,.12), transparent 50%),
    linear-gradient(160deg, rgba(255,255,255,.02), rgba(255,255,255,.005));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.platforms-block .ph-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.platforms-block h3 {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: 2rem;
  color: #fff;
  line-height: 1;
}
.platforms-block .ph-sub { color: var(--muted); font-size: .9rem; max-width: 320px; }
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) {
  .platforms-grid { grid-template-columns: 1fr; }
}
.platform-card {
  position: relative;
  padding: 26px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  transition: all .4s cubic-bezier(.2,.7,.2,1);
  overflow: hidden;
}
.platform-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 0%, var(--pc, var(--accent)), transparent 70%);
  opacity: 0;
  transition: opacity .4s;
  z-index: 0;
}
.platform-card > * { position: relative; z-index: 1; }
.platform-card:hover {
  transform: translateY(-4px);
  border-color: var(--pc, var(--accent));
  box-shadow: 0 18px 40px -20px var(--pc, var(--accent));
}
.platform-card:hover::before { opacity: .18; }
.platform-card .p-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
  background: var(--pc, var(--accent));
  flex-shrink: 0;
  box-shadow: 0 8px 24px -8px var(--pc, var(--accent));
  transition: transform .4s ease;
}
.platform-card .p-icon svg { width: 26px; height: 26px; display: block; }
.platform-card:hover .p-icon { transform: scale(1.06) rotate(-3deg); }
.platform-card .p-name { font-weight: 600; color: #fff; font-size: 1.02rem; letter-spacing: -.01em; }
.platform-card .p-cta { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.platform-card .p-arrow {
  margin-left: auto;
  opacity: .4;
  font-size: 1.2rem;
  color: var(--pc, var(--accent));
  transition: all .3s;
}
.platform-card:hover .p-arrow { opacity: 1; transform: translateX(6px); }

/* ════════════════════════════════════════════════
/* ── Control de volumen modulado (popover vertical) ── */
.jb-vol-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  margin-left: 4px;
  flex: 0 0 auto;
}
.jb-vol-wrap .jb-vol {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: rgba(247,201,123,.85);
  background: transparent;
  transition: background .25s ease, color .25s ease, transform .15s ease;
  position: relative;
  z-index: 6;
}
.jb-vol-wrap .jb-vol:hover {
  background: rgba(244,114,182,.12);
  color: var(--accent);
  transform: translateY(-1px);
}
.jb-vol-wrap .jb-vol:active { transform: translateY(0) scale(.96); }
.jb-vol-ico .jb-vol-wave1,
.jb-vol-ico .jb-vol-wave2 { transition: opacity .2s ease; }
.jb-vol-ico.is-muted .jb-vol-wave1,
.jb-vol-ico.is-muted .jb-vol-wave2 { opacity: 0; }
.jb-vol-ico.is-low .jb-vol-wave2  { opacity: 0; }

/* Capsula continua: envuelve al boton y se extiende hacia arriba */
.jb-vol-wrap::before {
  content: "";
  position: absolute;
  bottom: 0;              /* alineada con la base del boton */
  left: 50%;
  width: 40px;            /* mismo ancho que el boton -> barra continua */
  height: 158px;          /* boton (40) + area slider (118) */
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(247,201,123,.10) 0%, rgba(255,255,255,0) 30%),
    linear-gradient(180deg, #160a22 0%, #0a050f 100%);
  border: 1px solid rgba(247,201,123,.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -2px 8px rgba(0,0,0,.6),
    0 14px 32px -10px rgba(0,0,0,.7),
    0 0 24px -4px rgba(244,114,182,.18);
  transform: translateX(-50%) scaleY(.25);
  transform-origin: bottom center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s cubic-bezier(.6,.2,.2,1), transform .35s cubic-bezier(.6,.2,.2,1);
  z-index: 3; /* detras del boton */
}
.jb-vol-wrap:hover::before,
.jb-vol-wrap:focus-within::before {
  opacity: 1;
  transform: translateX(-50%) scaleY(1);
  pointer-events: auto;
}
/* Cuando la capsula esta abierta, el boton se integra (sin doble borde) */
.jb-vol-wrap:hover .jb-vol,
.jb-vol-wrap:focus-within .jb-vol {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--accent);
  transform: none;
}
/* Slider rotado 90 grados dentro de la capsula */
.jb-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  accent-color: var(--accent);
  position: absolute;
  bottom: calc(100% + 57px);
  left: 50%;
  width: 96px;
  height: 6px;
  margin: 0;
  background: transparent;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  transform: translate(-50%, 50%) rotate(-90deg) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 6;
}
.jb-vol-wrap:hover .jb-vol-slider,
.jb-vol-wrap:focus-within .jb-vol-slider {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 50%) rotate(-90deg) translateY(0);
}
.jb-vol-slider:focus-visible { outline: none; }

/* WebKit */
.jb-vol-slider::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,.18));
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.5);
}
.jb-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px; height: 14px;
  margin-top: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd0e6 0%, var(--accent) 55%, #b4347a 100%);
  border: 1.5px solid rgba(255,255,255,.85);
  box-shadow: 0 0 10px rgba(244,114,182,.85), 0 2px 4px rgba(0,0,0,.5);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.jb-vol-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 0 14px rgba(244,114,182,1), 0 2px 4px rgba(0,0,0,.5);
}

/* Firefox */
.jb-vol-slider::-moz-range-track {
  height: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,.18));
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.5);
}
.jb-vol-slider::-moz-range-progress {
  height: 6px;
  background: linear-gradient(90deg, var(--accent), #ffb3d5);
  border-radius: 999px;
}
.jb-vol-slider::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd0e6 0%, var(--accent) 55%, #b4347a 100%);
  border: 1.5px solid rgba(255,255,255,.85);
  box-shadow: 0 0 10px rgba(244,114,182,.85), 0 2px 4px rgba(0,0,0,.5);
  cursor: pointer;
}