/* ============================================================================
   Estudio · interfaz tipo reproductor
   Portado del prototipo «SAMOS Music Player» que pasó Jorge (13/10/2026):
   barra lateral + hero de álbum + lista de pistas + panel de detalle +
   reproductor fijo. Con los datos, enlaces y fotos del equipo actual.

   Cambios sobre el prototipo:
   - La barra superior es la del sitio (fija, --barra), así que todo lo que se
     pegaba arriba se descuelga por debajo de ella.
   - Fuentes del sistema de marca (Montserrat / Mohave) en vez de la pila del
     sistema, e imágenes del juego alojadas aquí (nada del presskit).
   - La rotación va sola cada 5 s (botón de pausa en los mandos) y el
     ecualizador se queda quieto cuando está en pausa.
   ========================================================================== */

:root {
  color-scheme: dark;
  --base: #070a10;
  --shell: #0d111b;
  --panel: #111723;
  --raised: #17202d;
  --line: rgba(190, 214, 231, 0.13);
  --line-hi: rgba(190, 214, 231, 0.24);
  --e-text: #f3f8fa;
  --e-muted: #95a6b6;
  --e-muted2: #6e8396;
  --e-cyan: #6af8f5;
  --e-cyan-deep: #09bcbf;
  --e-pink: #ec55c3;
  --radius: 11px;
  --player-h: 94px;
  --e-font: var(--font-family-body);
  --e-display: var(--font-family-display);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--barra) + 24px);
}

body.cuerpo-estudio {
  margin: 0;
  background: var(--base);
  color: var(--e-text);
  font-family: var(--e-font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.cuerpo-estudio::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 68% -24%, rgba(5, 111, 129, 0.19), transparent 57%),
    radial-gradient(ellipse at 18% 82%, rgba(86, 18, 117, 0.1), transparent 60%);
}

body.cuerpo-estudio button,
body.cuerpo-estudio a {
  font: inherit;
}

body.cuerpo-estudio button {
  cursor: pointer;
}

body.cuerpo-estudio a {
  color: inherit;
  text-decoration: none;
}

body.cuerpo-estudio button:focus-visible,
body.cuerpo-estudio a:focus-visible {
  outline: 2px solid var(--e-cyan);
  outline-offset: 3px;
}

body.cuerpo-estudio button:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Como en el resto de la maqueta: sin esto, el logo del pie —que lleva el alto en
   el HTML— sale estirado. Con :where() no le gana especificidad a ningún
   componente (los apoyos, los retratos y sus alturas siguen mandando). */
:where(.cuerpo-estudio) :where(img) {
  max-width: 100%;
  height: auto;
}

body.cuerpo-estudio ::selection {
  background: #65f8e1;
  color: #07121a;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mono,
.eyebrow,
.stamp,
.thead,
.track-num,
.group-label,
.counter,
.section-label,
.panel-mono,
.bottom-caption,
.nav-mini {
  font-family: var(--font-family-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- armazón ---------- */

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  padding-top: var(--barra);
  padding-bottom: var(--player-h);
}

.sidebar {
  position: sticky;
  top: var(--barra);
  height: calc(100vh - var(--barra) - var(--player-h));
  display: flex;
  flex-direction: column;
  background: rgba(9, 13, 21, 0.88);
  border-right: 1px solid var(--line);
  padding: 30px 17px 26px;
  z-index: 10;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 29px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: flex;
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(106, 248, 245, 0.65);
  transform: rotate(45deg);
  border-radius: 5px;
}

.brand-mark svg {
  transform: rotate(-45deg);
  width: 19px;
  height: 19px;
  color: var(--e-cyan);
}

.brand-name {
  font-family: var(--e-display);
  font-size: 18px;
  letter-spacing: 0.17em;
  font-weight: 850;
  line-height: 1.02;
}

.brand-name small {
  display: block;
  font-size: 9px;
  color: var(--e-muted);
  letter-spacing: 0.18em;
  font-family: var(--font-family-mono);
  font-weight: 600;
  margin-top: 6px;
}

.group-label {
  font-size: 10px;
  color: #687e91;
  margin: 30px 12px 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 45px;
  padding: 0 13px;
  color: #aebbc8;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
  font-size: 13px;
  font-weight: 600;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--e-text);
}

.sidebar-link.active {
  color: var(--e-text);
  background: rgba(106, 248, 245, 0.075);
  position: relative;
}

.sidebar-link.active:before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  border-radius: 2px;
  background: var(--e-cyan);
}

.sidebar-link svg {
  width: 17px;
  height: 17px;
  opacity: 0.7;
}

.sidebar-link.active svg {
  color: var(--e-cyan);
  opacity: 1;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 18px 13px 0;
  border-top: 1px solid var(--line);
}

.signal {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #98b6ba;
  font: 10px var(--font-family-mono);
  letter-spacing: 0.12em;
}

.signal-dot {
  width: 6px;
  height: 6px;
  background: var(--e-cyan);
  border-radius: 50%;
  box-shadow: 0 0 11px rgba(106, 248, 245, 0.5);
}

.sidebar-redes {
  display: flex;
  gap: 13px;
  margin-top: 14px;
  color: #7d95a6;
}

.sidebar-redes a {
  font-size: 15px;
  line-height: 1;
  transition: color 0.2s;
}

.sidebar-redes a:hover {
  color: var(--e-cyan);
}

.sidebar-small {
  color: #5d7284;
  font: 11px var(--font-family-mono);
  line-height: 1.85;
  margin-top: 14px;
}

.content {
  min-width: 0;
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
}

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 22px;
  padding: 0 27px 44px 38px;
}

.primary {
  min-width: 0;
}

/* ---------- hero de álbum ---------- */

.hero {
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(125deg, #18223d 0%, #0e2432 50%, #101019 100%);
  padding: 29px 33px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 15, 27, 0.98) 4%, rgba(9, 16, 28, 0.89) 52%, rgba(9, 19, 31, 0.32) 100%),
    url("../images/home/hero.jpg") center 45% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 12%, rgba(101, 212, 235, 0.04) 65%, rgba(240, 50, 208, 0.08)),
    repeating-linear-gradient(90deg, transparent 0 90px, rgba(151, 221, 234, 0.022) 90px 91px);
}

.corner-label {
  position: absolute;
  top: 19px;
  right: 20px;
  font: 10px var(--font-family-mono);
  letter-spacing: 0.13em;
  color: rgba(194, 240, 244, 0.68);
  display: flex;
  align-items: center;
  gap: 9px;
}

.corner-label:before {
  content: "";
  height: 6px;
  width: 6px;
  border: 1px solid var(--e-cyan);
  border-radius: 50%;
}

.cover {
  width: 200px;
  aspect-ratio: 1;
  flex: 0 0 200px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #071119;
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.43), 0 0 0 1px rgba(123, 217, 230, 0.4);
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(0, 19, 36, 0.12), rgba(1, 11, 18, 0.52)),
    url("../images/home/portada-jessi.webp") center / cover no-repeat;
  filter: saturate(1.15);
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(11, 201, 222, 0.24), transparent 50%),
    linear-gradient(0deg, rgba(5, 10, 20, 0.95), transparent 48%);
  pointer-events: none;
}

.cover-lines {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(120, 245, 242, 0.62);
  border-right-color: rgba(236, 85, 195, 0.4);
  z-index: 2;
  clip-path: polygon(0 0, 30% 0, 30% 1px, 100% 1px, 100% 100%, 0 100%);
}

.cover-ring {
  position: absolute;
  width: 38%;
  height: 38%;
  left: 33%;
  top: 44%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(94, 253, 252, 0.8);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 12px rgba(67, 236, 236, 0.035), 0 0 0 26px rgba(67, 236, 236, 0.035);
}

.cover-top,
.cover-bottom {
  position: absolute;
  z-index: 3;
  left: 21px;
  right: 19px;
  display: flex;
  justify-content: space-between;
  color: #baf8fa;
  font: 9px var(--font-family-mono);
  letter-spacing: 0.1em;
}

.cover-top {
  top: 22px;
}

.cover-bottom {
  bottom: 18px;
  color: #a7d1d7;
}

.cover-title {
  position: absolute;
  z-index: 3;
  bottom: 39px;
  left: 20px;
  font-size: 29px;
  line-height: 0.9;
  letter-spacing: -0.065em;
  font-weight: 950;
  font-family: var(--e-display);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55);
}

.cover-title em {
  font-style: normal;
  color: var(--e-cyan);
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 660px;
  padding: 15px 0 4px;
}

.eyebrow {
  color: var(--e-cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 21px;
  height: 1px;
  background: var(--e-cyan);
}

.hero h1 {
  font-family: var(--e-display);
  font-size: clamp(44px, 4.9vw, 78px);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.07em;
  margin: 14px 0 16px;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  color: var(--e-cyan);
}

.hero-desc {
  max-width: 430px;
  margin: 0;
  color: #bed2dc;
  font-size: 12px;
  line-height: 1.8;
}

.hero-desc a {
  color: #a4e9ef;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.album-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
  color: #b5c7cf;
  font: 10px var(--font-family-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.album-meta b {
  color: var(--e-cyan);
  font-weight: 500;
}

.meta-sep {
  color: #55707e;
}

.hero-button {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: var(--e-cyan);
  color: #061417;
  border-radius: 4px;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s, background 0.2s;
}

.hero-button:hover {
  background: #b3fff8;
  transform: translateY(-2px);
}

.hero-button svg {
  width: 16px;
  height: 16px;
}

/* ---------- lista de pistas ---------- */

.playlist {
  margin-top: 37px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px 20px;
}

.section-label {
  font-size: 10px;
  color: var(--e-cyan);
  font-weight: 750;
  letter-spacing: 0.19em;
  margin-bottom: 5px;
  display: block;
}

h2 {
  font-family: var(--e-display);
  font-weight: 900;
  letter-spacing: -0.035em;
  font-size: 26px;
  margin: 0;
  line-height: 1.2;
}

.counter {
  color: #829baa;
  font-size: 10px;
  white-space: nowrap;
  padding-bottom: 5px;
}

.tracks-header {
  display: grid;
  grid-template-columns: 37px 55px minmax(0, 1fr) minmax(120px, 0.62fr) 24px;
  gap: 14px;
  padding: 0 20px 12px 16px;
  border-bottom: 1px solid var(--line);
  color: #7f93a4;
  font: 10px var(--font-family-mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tracks-header .artist-header {
  grid-column: 3;
}

.tracks-header .role-header {
  grid-column: 4;
}

.track-list {
  list-style: none;
  padding: 8px 0 0;
  margin: 0;
}

.track-li {
  border-radius: 8px;
  margin: 2px 0;
  position: relative;
}

.track-button {
  width: 100%;
  display: grid;
  grid-template-columns: 37px 55px minmax(0, 1fr) minmax(120px, 0.62fr) 24px;
  gap: 14px;
  padding: 10px 20px 10px 16px;
  align-items: center;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--e-text);
  border-radius: 8px;
  min-height: 76px;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.track-button:hover {
  background: rgba(181, 216, 235, 0.06);
}

.track-button[aria-pressed="true"] {
  background: linear-gradient(90deg, rgba(71, 230, 227, 0.105), rgba(93, 151, 196, 0.027) 78%);
  border-color: rgba(107, 241, 234, 0.17);
}

.track-button[aria-pressed="true"]:before {
  position: absolute;
  content: "";
  width: 2px;
  background: var(--e-cyan);
  top: 15px;
  bottom: 15px;
  left: 0;
  box-shadow: 0 0 13px rgba(106, 248, 245, 0.3);
}

.track-num {
  display: grid;
  place-items: center;
  color: #72899a;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.track-button[aria-pressed="true"] .track-num {
  color: var(--e-cyan);
}

.mini-portrait,
.large-portrait,
.player-portrait {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(170, 228, 234, 0.15);
  background: linear-gradient(138deg, hsl(var(--h) 31% 22%), #101620 73%);
}

.mini-portrait {
  width: 53px;
  height: 53px;
  border-radius: 4px;
}

.initials {
  font-family: var(--e-display);
  font-weight: 850;
  letter-spacing: -0.07em;
  color: rgba(229, 252, 255, 0.77);
  font-size: 21px;
  position: relative;
  z-index: 1;
}

.mini-portrait::before,
.large-portrait::before,
.player-portrait::before {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(circle at 27% 43%, hsl(var(--h) 80% 57% / 0.28), transparent 40%),
    linear-gradient(140deg, transparent 48%, hsl(var(--h) 80% 76% / 0.1) 49%, transparent 51%);
  transform: rotate(-11deg);
}

.mini-portrait::after,
.large-portrait::after {
  content: "";
  position: absolute;
  width: 85%;
  height: 85%;
  border: 1px solid hsl(var(--h) 78% 76% / 0.16);
  border-radius: 50%;
  right: -34%;
  top: -30%;
}

.photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
  display: none;
}

.photo-img.loaded {
  display: block;
}

.track-title {
  font-size: 13px;
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.track-sub {
  font-size: 11px;
  margin-top: 4px;
  color: #7f97a8;
  display: none;
}

.track-role {
  font-size: 11px;
  color: #91a3b0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.track-button[aria-pressed="true"] .track-title {
  color: #acfffb;
}

.selection-indicator {
  justify-self: end;
  color: #536b7c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-button:hover .selection-indicator {
  color: var(--e-cyan);
}

/* ecualizador de la pista que suena */
.eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 19px;
  width: 22px;
  color: var(--e-cyan);
}

.eq i {
  display: block;
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
  animation: beat 1.08s ease-in-out infinite alternate;
  transform-origin: bottom;
}

.eq i:nth-child(2) {
  height: 15px;
  animation-delay: -0.68s;
}

.eq i:nth-child(3) {
  height: 11px;
  animation-delay: -0.27s;
}

.eq i:nth-child(4) {
  height: 17px;
  animation-delay: -0.91s;
}

@keyframes beat {
  0% {
    transform: scaleY(0.3);
    opacity: 0.55;
  }
  60% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0.48);
    opacity: 0.75;
  }
}

/* en pausa, el ecualizador se queda quieto */
body.estudio-pausado .eq i,
body.estudio-pausado .visualizer i {
  animation-play-state: paused;
}

/* ---------- cierre del álbum: apoyos ---------- */

.album-outro {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 34px 0 0;
  padding: 22px 25px;
  border-top: 1px solid var(--line);
  color: #849ba9;
  flex-wrap: wrap;
}

.outro-icon {
  color: #6bd6e1;
  border: 1px solid var(--line-hi);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  flex-shrink: 0;
}

.album-outro p {
  margin: 0;
  font-size: 11px;
  line-height: 1.75;
  max-width: 530px;
}

.album-outro a {
  color: #a4e9ef;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.apoyos {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  margin-top: 22px;
}

.apoyos__texto {
  margin: 0;
  font: 10px var(--font-family-mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #7f93a4;
}

.apoyos img {
  height: 34px;
  width: auto;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.apoyos a:hover img {
  opacity: 1;
}

/* ---------- panel de detalle ---------- */

.detail-panel {
  position: sticky;
  top: calc(var(--barra) + 14px);
  align-self: start;
  background: linear-gradient(180deg, #121b29, #0f1723 65%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.12);
}

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 23px 17px;
  gap: 12px;
}

.detail-label {
  font: 10px var(--font-family-mono);
  color: #9db4c1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-label::before {
  content: "";
  height: 6px;
  width: 6px;
  background: var(--e-cyan);
  border-radius: 50%;
}

.detail-count {
  font: 10px var(--font-family-mono);
  letter-spacing: 0.09em;
  color: #78909f;
}

/* Cuadrado, como la foto original: asi el marco blanco entra entero y no se recorta. */
.detail-portrait {
  aspect-ratio: 1;
  position: relative;
  margin: 0 15px;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(115deg, #1f3450, #0e1721 70%);
}

.detail-portrait .large-portrait {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.detail-portrait .large-portrait .initials {
  font-size: 114px;
  letter-spacing: -0.105em;
  color: rgba(235, 255, 255, 0.72);
  text-shadow: 0 10px 50px rgba(0, 0, 0, 0.13);
}

.detail-portrait .large-portrait::after {
  width: 75%;
  height: 95%;
  top: -70%;
  right: -22%;
  border: 2px solid hsl(var(--h) 90% 68% / 0.3);
}

.detail-portrait .large-portrait::before {
  background:
    radial-gradient(ellipse at 25% 22%, hsl(var(--h) 80% 56% / 0.25), transparent 54%),
    repeating-linear-gradient(0deg, transparent 0 26px, hsl(var(--h) 65% 70% / 0.04) 27px 28px);
}

.portrait-shade {
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(0deg, #0a121d, transparent);
  pointer-events: none;
}

.portrait-corner {
  position: absolute;
  z-index: 5;
  left: 16px;
  bottom: 13px;
  font: 9px var(--font-family-mono);
  letter-spacing: 0.16em;
  color: #b2d5dd;
  text-transform: uppercase;
}

.portrait-corner.right {
  left: auto;
  right: 16px;
  color: var(--e-cyan);
}

.detail-body {
  padding: 22px 24px 26px;
}

.panel-mono {
  color: var(--e-cyan);
  font-size: 10px;
  font-weight: 750;
}

.detail-body h3 {
  font-family: var(--e-display);
  font-size: clamp(25px, 2.5vw, 37px);
  font-weight: 880;
  line-height: 1.08;
  letter-spacing: -0.048em;
  margin: 12px 0 7px;
}

.detail-role {
  font-size: 11px;
  letter-spacing: 0.075em;
  color: #b4c8d4;
  text-transform: uppercase;
}

.detail-separator {
  height: 1px;
  background: var(--line);
  margin: 23px 0 20px;
}

.detail-section-title {
  font: 10px var(--font-family-mono);
  letter-spacing: 0.13em;
  color: #758f9e;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.detail-bio {
  font-size: 13px;
  line-height: 1.9;
  color: #c7d6df;
  margin: 0;
}

.detail-footer {
  border-top: 1px solid var(--line);
  margin: 23px 0 0;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #728b9b;
  font: 10px var(--font-family-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-enlace {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a4e9ef;
  border-bottom: 1px solid rgba(164, 233, 239, 0.35);
  padding-bottom: 2px;
  overflow-wrap: anywhere;
  min-width: 0;
}

.detail-enlace:hover {
  color: #fff;
  border-color: var(--e-pink);
}

.small-eq {
  display: flex;
  gap: 2px;
  align-items: center;
  color: var(--e-cyan);
}

.small-eq i {
  width: 2px;
  height: 8px;
  background: currentColor;
  border-radius: 2px;
}

.small-eq i:nth-child(2) {
  height: 13px;
}

.small-eq i:nth-child(3) {
  height: 6px;
}

.small-eq i:nth-child(4) {
  height: 11px;
}

.mobile-detail {
  display: none;
}

/* ---------- reproductor ---------- */

.player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: var(--player-h);
  z-index: 20;
  background: rgba(11, 17, 27, 0.97);
  border-top: 1px solid rgba(133, 210, 224, 0.25);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.24);
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 300px minmax(240px, 1fr);
  align-items: center;
  padding: 14px 30px;
  gap: 20px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

.player::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  background: linear-gradient(90deg, var(--e-cyan), var(--e-pink), transparent);
  width: 30%;
  height: 1px;
}

.player-now {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.player-portrait {
  width: 49px;
  height: 49px;
  border-radius: 4px;
}

.player-portrait .initials {
  font-size: 18px;
}

.bottom-caption {
  font-size: 9px;
  color: var(--e-cyan);
  font-weight: 700;
  white-space: nowrap;
}

.player-name {
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 3px 0 1px;
}

.player-role {
  font-size: 10px;
  color: #8297a8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}

.control-btn {
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  width: 41px;
  height: 41px;
  color: #c7d7df;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.control-btn:hover {
  color: var(--e-cyan);
  background: #19303c;
  border-color: var(--line-hi);
}

.control-btn svg {
  width: 19px;
  height: 19px;
}

.control-btn.main-control {
  background: var(--e-cyan);
  color: #041319;
  width: 49px;
  height: 49px;
  border-color: var(--e-cyan);
}

.control-btn.main-control:hover {
  background: #bcfffa;
  color: #021012;
}

.control-btn.main-control svg {
  width: 21px;
  height: 21px;
}

.player-extras {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  min-width: 0;
}

.visualizer {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 3px;
  color: rgba(106, 248, 245, 0.75);
}

.visualizer i {
  height: var(--v);
  width: 2px;
  border-radius: 1px;
  background: currentColor;
  animation: wave 1.5s ease-in-out infinite alternate;
  animation-delay: var(--d);
}

@keyframes wave {
  from {
    transform: scaleY(0.4);
    opacity: 0.5;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

.player-index {
  font: 10px var(--font-family-mono);
  letter-spacing: 0.09em;
  color: #8b9fab;
  white-space: nowrap;
}

.player-index strong {
  font-weight: 800;
  color: #e0f8f9;
}

.view-btn {
  display: none;
  border: 1px solid var(--line-hi);
  background: rgba(106, 248, 245, 0.08);
  color: var(--e-cyan);
  padding: 7px 10px;
  border-radius: 4px;
  font: 10px var(--font-family-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* el pie del sitio, por debajo de todo */
.cuerpo-estudio .pie {
  margin-bottom: calc(var(--player-h) + 10px);
}

/* ---------- adaptaciones ---------- */

@media (max-width: 1450px) {
  .app {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .main-layout {
    grid-template-columns: minmax(0, 1fr) 325px;
    gap: 16px;
    padding: 0 18px 35px;
  }

  .hero {
    padding: 24px;
    gap: 18px;
    min-height: 280px;
  }

  .cover {
    width: 165px;
    flex-basis: 165px;
  }

  .cover-title {
    font-size: 24px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .sidebar {
    padding-left: 11px;
    padding-right: 11px;
  }
}

@media (max-width: 1150px) {
  .app {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .sidebar {
    align-items: center;
    padding: 19px 8px;
  }

  .brand {
    padding: 8px 0 22px;
    justify-content: center;
    width: 100%;
  }

  .brand-name,
  .sidebar-link span,
  .group-label,
  .sidebar-small,
  .signal span {
    display: none;
  }

  .sidebar-redes {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .sidebar-link {
    justify-content: center;
    width: 50px;
    padding: 0;
  }

  .sidebar-link svg {
    width: 19px;
    height: 19px;
  }

  .sidebar-link.active:before {
    top: 6px;
    bottom: 6px;
  }

  .sidebar nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    gap: 5px;
  }

  .main-layout {
    grid-template-columns: minmax(0, 1fr) 305px;
  }


  .tracks-header,
  .track-button {
    grid-template-columns: 25px 49px minmax(0, 1fr) 19px;
    gap: 12px;
  }

  .track-role,
  .role-header {
    display: none;
  }

  .track-sub {
    display: block;
  }

  .tracks-header .artist-header {
    grid-column: 3;
  }

  .mini-portrait {
    height: 48px;
    width: 48px;
  }

  .player {
    grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
  }
}

@media (max-width: 870px) {
  :root {
    --player-h: 77px;
  }

  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .main-layout {
    display: block;
    padding: 0 18px 38px;
  }

  .detail-panel {
    display: none;
  }

  .hero {
    min-height: 285px;
  }

  .hero h1 {
    font-size: clamp(46px, 7vw, 65px);
  }

  .cover {
    width: 180px;
    flex-basis: 180px;
  }

  .mobile-detail {
    display: block;
    overflow: hidden;
    background: #111d28;
    border: 1px solid rgba(106, 248, 245, 0.18);
    border-radius: 0 0 9px 9px;
    margin: -4px 4px 8px;
    padding: 16px 18px 20px;
  }

  .mobile-detail-inner {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  .mobile-detail .large-portrait {
    width: 130px;
    aspect-ratio: 1;
    border-radius: 4px;
  }

  .mobile-detail .initials {
    font-size: 49px;
  }

  .mobile-detail p {
    color: #cbdbe2;
    font-size: 12px;
    line-height: 1.9;
    margin: 8px 0;
  }

  .mobile-detail h4 {
    font-size: 15px;
    line-height: 1.3;
    margin: 7px 0 3px;
  }

  .mobile-detail .track-role-mobile {
    color: #9db8c3;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
  }

  .mobile-detail .detail-enlace {
    font-size: 11px;
  }

  .player {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    padding: 10px 18px;
  }

  .player-controls {
    gap: 3px;
  }

  .control-btn {
    width: 37px;
    height: 37px;
  }

  .control-btn.main-control {
    width: 43px;
    height: 43px;
  }

  .player-extras {
    gap: 8px;
  }

  .player-extras .visualizer {
    display: none;
  }

  .view-btn {
    display: block;
  }

  .apoyos {
    margin-left: 0;
    width: 100%;
    margin-top: 18px;
  }
}

@media (max-width: 580px) {
  :root {
    --player-h: 74px;
  }

  .hero {
    min-height: 385px;
    display: block;
    padding: 18px 19px 21px;
  }

  .corner-label {
    top: 15px;
    right: 14px;
    font-size: 9px;
  }

  .cover {
    width: 113px;
    min-height: 113px;
    flex-basis: auto;
    float: left;
    margin: 18px 18px 17px 0;
  }

  .cover-top {
    font-size: 7px;
    top: 12px;
    left: 12px;
  }

  .cover-title {
    font-size: 16px;
    left: 11px;
    bottom: 24px;
  }

  .cover-bottom {
    font-size: 6px;
    left: 11px;
    bottom: 9px;
  }

  .cover-lines {
    inset: 9px;
  }

  .hero-copy {
    padding-top: 18px;
    display: contents;
  }

  .eyebrow {
    padding-top: 24px;
    font-size: 9px;
  }

  .hero h1 {
    font-size: clamp(42px, 10vw, 56px);
    margin: 12px 0 15px;
    letter-spacing: -0.07em;
  }

  .hero h1 span {
    display: inline;
  }

  .hero-desc {
    clear: both;
    font-size: 12px;
    line-height: 1.75;
    padding-top: 7px;
  }

  .album-meta {
    margin-top: 13px;
    font-size: 9px;
    gap: 7px;
  }

  .hero-button {
    margin-top: 17px;
    padding: 10px 14px;
  }

  .playlist {
    margin-top: 28px;
  }

  .section-head {
    margin: 0 9px 15px;
  }

  h2 {
    font-size: 23px;
  }

  .tracks-header {
    padding: 0 10px 10px;
    grid-template-columns: 23px 43px minmax(0, 1fr) 20px;
    gap: 10px;
  }

  .track-button {
    padding: 8px 10px;
    grid-template-columns: 23px 43px minmax(0, 1fr) 20px;
    gap: 10px;
    min-height: 66px;
  }

  .mini-portrait {
    height: 43px;
    width: 43px;
  }

  .track-title {
    font-size: 12px;
  }

  .track-sub {
    font-size: 10px;
  }

  .selection-indicator svg {
    width: 15px;
  }

  .mobile-detail {
    padding: 14px;
    margin: 0 2px 8px;
  }

  .mobile-detail-inner {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 13px;
  }

  .mobile-detail .large-portrait {
    width: 92px;
    aspect-ratio: 1;
  }

  .mobile-detail .initials {
    font-size: 35px;
  }

  .mobile-detail h4 {
    font-size: 14px;
  }

  .album-outro {
    margin-top: 20px;
    padding: 18px 12px;
    gap: 12px;
  }

  .outro-icon {
    width: 36px;
    height: 36px;
  }

  .album-outro p {
    font-size: 10px;
  }

  .apoyos img {
    height: 26px;
  }

  .player {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 9px 12px;
    padding-bottom: max(9px, env(safe-area-inset-bottom));
    gap: 6px;
  }

  .player-portrait {
    width: 43px;
    height: 43px;
  }

  .player-extras {
    display: none;
  }
}

@media (max-width: 370px) {
  .hero {
    min-height: 415px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .track-title {
    font-size: 11px;
  }

  .player-portrait {
    display: none;
  }

  .cover {
    width: 102px;
    min-height: 102px;
    margin-right: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eq i,
  .visualizer i {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* En la ficha, [hidden] manda: hay miembros sin enlace o sin ficha todavia. */
.detail-panel [hidden] {
  display: none;
}
