/* =========================================================================
   Qué van a tocar — sistema de diseño
   El de la app Android (setlist-pronostico): dos pantallas, paleta Neón
   magenta/cian/violeta por omisión, Barlow Condensed para titulares y
   canciones, JetBrains Mono para etiquetas y Big Shoulders para adornos.
   Los temas se cambian con data-theme en <html>; todo lo demás lee tokens.
   ========================================================================= */

/* Tokens base. Los derivados (surface, line, row…) salen de mezclar la tinta
   con el fondo, como Paleta en Theme.kt; Neón los da a mano. */
:root {
  --bg: #0a0a0c;
  --ink: #f2efe9;
  --acc: #e8324a;
  --acc-hi: #ff5468;
  --on-acc: #0a0a0c;
  --acc2: var(--acc);
  --acc3: var(--acc);
  --page-bg: var(--bg);
  --cap: #fff; /* capa de los contrastes: blanco en oscuros, tinta en el claro */

  --surface: color-mix(in srgb, var(--ink) 6%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 12%, var(--bg));
  --line2: color-mix(in srgb, var(--ink) 18%, var(--bg));
  --row: color-mix(in srgb, var(--ink) 9%, var(--bg));
  --track: color-mix(in srgb, var(--ink) 11%, var(--bg));
  --frio: color-mix(in srgb, var(--ink) 32%, var(--bg));
  --soft: color-mix(in srgb, var(--ink) 72%, transparent);
  --muted: color-mix(in srgb, var(--ink) 60%, transparent);
  --dim: color-mix(in srgb, var(--ink) 42%, transparent);
  --lav: var(--acc-hi);
  --m1: color-mix(in srgb, var(--ink) 78%, transparent);
  --m2: color-mix(in srgb, var(--ink) 55%, transparent);
  --m3: color-mix(in srgb, var(--ink) 38%, transparent);
  --l1: color-mix(in srgb, var(--cap) 7%, transparent);
  --l2: color-mix(in srgb, var(--cap) 16%, transparent);
  --l3: color-mix(in srgb, var(--cap) 30%, transparent);
  --fill: color-mix(in srgb, var(--cap) 5%, transparent);
  --bar: linear-gradient(90deg, var(--acc), var(--acc2));
  --scrim: color-mix(in srgb, #05030b 72%, transparent);

  --f-text: "Barlow", system-ui, sans-serif;
  --f-cond: "Barlow Condensed", "Barlow", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-deco: "Big Shoulders Display", "Barlow Condensed", sans-serif;
  --gut: 22px;
}

/* Neón: la del diseño nuevo y la de por omisión. */
[data-theme="neon"] {
  --bg: #0a0614;
  --ink: #f3ecff;
  --acc: #ff2fd6;
  --acc-hi: #ff7be6;
  --on-acc: #0a0614;
  --acc2: #22c3ee;
  --acc3: #8b5cf6;
  --page-bg: radial-gradient(95vw 95vw at 10% 0, rgba(255, 47, 214, 0.12), transparent 70%),
    radial-gradient(95vw 95vw at 95% 8vh, rgba(34, 195, 238, 0.09), transparent 70%), var(--bg);
  --surface: #130d22;
  --line: #241b38;
  --line2: #2f2547;
  --row: #1d1530;
  --track: #211933;
  --soft: #b3a9c9;
  --muted: #9a8fb3;
  --dim: #6e6488;
  --lav: #c4a8ff;
  --frio: #5b5170;
}

[data-theme="carmesi"] {
  --bg: #0a0a0c;
  --ink: #f2efe9;
  --acc: #e8324a;
  --acc-hi: #ff5468;
  --on-acc: #0a0a0c;
  --bar: linear-gradient(90deg, var(--acc), var(--acc-hi));
  --page-bg: radial-gradient(115% 55% at 50% 0%, rgba(232, 50, 74, 0.14), transparent 62%), var(--bg);
}

/* Único tema claro: las capas de contraste se tiñen de tinta, no de blanco. */
[data-theme="amarillo"] {
  --bg: #e3e63f;
  --ink: #14140a;
  --acc: #ff2e85;
  --acc-hi: #d3156a;
  --on-acc: #fff0f6;
  --cap: #14140a;
  --lav: #b0105a;
  --bar: linear-gradient(90deg, var(--acc), #ff66a8);
  --page-bg: var(--bg);
  --soft: color-mix(in srgb, var(--ink) 80%, transparent);
  --muted: color-mix(in srgb, var(--ink) 68%, transparent);
  --dim: color-mix(in srgb, var(--ink) 55%, transparent);
  --m1: color-mix(in srgb, var(--ink) 80%, transparent);
  --m2: color-mix(in srgb, var(--ink) 62%, transparent);
  --m3: color-mix(in srgb, var(--ink) 50%, transparent);
  --l1: color-mix(in srgb, var(--cap) 14%, transparent);
  --l2: color-mix(in srgb, var(--cap) 26%, transparent);
  --l3: color-mix(in srgb, var(--cap) 45%, transparent);
  --surface: color-mix(in srgb, #fff 22%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 18%, var(--bg));
  --line2: color-mix(in srgb, var(--ink) 30%, var(--bg));
  --row: color-mix(in srgb, var(--ink) 14%, var(--bg));
  --track: color-mix(in srgb, var(--ink) 14%, var(--bg));
  --frio: color-mix(in srgb, var(--ink) 45%, var(--bg));
  --scrim: color-mix(in srgb, #14140a 55%, transparent);
}

[data-theme="azul"] {
  --bg: #03060f;
  --ink: #eaf6ff;
  --acc: #00cfff;
  --acc-hi: #7be9ff;
  --on-acc: #03060f;
  --bar: linear-gradient(90deg, var(--acc), var(--acc-hi));
  --page-bg: radial-gradient(115% 55% at 50% 0%, rgba(0, 207, 255, 0.26), transparent 62%), var(--bg);
}

[data-theme="violeta"] {
  --bg: #0c0716;
  --ink: #f2ebff;
  --acc: #9b5cff;
  --acc-hi: #c0a0ff;
  --on-acc: #0c0716;
  --bar: linear-gradient(90deg, var(--acc), var(--acc-hi));
  --page-bg: radial-gradient(115% 55% at 50% 0%, rgba(155, 92, 255, 0.2), transparent 62%), var(--bg);
}

[data-theme="verde"] {
  --bg: #06120c;
  --ink: #eafbef;
  --acc: #2be07a;
  --acc-hi: #6bf0a6;
  --on-acc: #04140b;
  --bar: linear-gradient(90deg, var(--acc), var(--acc-hi));
  --page-bg: radial-gradient(115% 55% at 50% 0%, rgba(43, 224, 122, 0.16), transparent 62%), var(--bg);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Nunca hay motivo para desplazarse en horizontal: la cinta a sangre y el
   sello girado sobresalen unos píxeles. clip en el body no crea contexto de
   scroll (rompería position:sticky); hidden en html es la red de seguridad. */
html {
  overflow-x: hidden;
  color-scheme: dark;
}
[data-theme="amarillo"] {
  color-scheme: light;
}
body {
  overflow-x: clip;
  background: var(--bg);
  background-image: var(--page-bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--f-text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}

a {
  color: var(--acc);
  text-decoration: none;
}
a:hover {
  color: var(--acc-hi);
}
::selection {
  background: var(--acc);
  color: var(--on-acc);
}
input,
select,
button {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--acc2);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg.solid,
.solid-ico svg {
  fill: currentColor;
  stroke: none;
}

/* --- Animaciones ------------------------------------------------------ */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blink { 0%, 44%, 100% { opacity: 1; } 45%, 55% { opacity: 0.15; } }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(2400%); } }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-14deg) scale(1.5); } 70% { opacity: 1; transform: rotate(-8deg) scale(0.96); } 100% { opacity: 1; transform: rotate(-8deg) scale(1); } }
@keyframes flick { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.9; } }
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes curtain { 0%, 62% { transform: none; } 100% { transform: translateY(-101%); } }
@keyframes bootIn { 0% { opacity: 0; transform: scale(0.86) skewX(-6deg); } 40% { opacity: 1; transform: scale(1) skewX(0); } 72% { opacity: 1; } 100% { opacity: 0; transform: scale(1.04); } }
@keyframes bootBar { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Telón de arranque ------------------------------------------------ */
.boot {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  background-image: var(--page-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  animation: curtain 1.5s cubic-bezier(0.7, 0, 0.2, 1) both;
}
.boot h2 {
  font-family: var(--f-deco);
  font-weight: 900;
  font-size: clamp(56px, 15vw, 170px);
  line-height: 0.84;
  text-align: center;
  text-transform: uppercase;
  animation: bootIn 1.5s ease both;
}
.boot .track {
  width: 150px;
  height: 3px;
  background: var(--l1);
  overflow: hidden;
}
.boot .track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--acc), var(--acc2), var(--acc3));
  transform-origin: left;
  animation: bootBar 1.5s cubic-bezier(0.3, 0.9, 0.2, 1) both;
}
.boot .msg {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--m3);
  animation: blink 0.8s steps(1, end) infinite;
}

/* --- Trama de puntos -------------------------------------------------- */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  pointer-events: none;
  z-index: 50;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  animation: flick 6s ease-in-out infinite;
}
[data-theme="amarillo"] .grain {
  background-image: radial-gradient(rgba(0, 0, 0, 0.14) 1px, transparent 1px);
  mix-blend-mode: multiply;
}

/* --- Piezas comunes --------------------------------------------------- */
.label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.dot {
  width: 8px;
  height: 8px;
  background: var(--acc);
  box-shadow: 0 0 14px 3px color-mix(in srgb, var(--acc) 55%, transparent);
  flex: 0 0 auto;
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.tiny {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line2);
  color: var(--muted);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0 11px;
  min-height: 36px;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.tiny svg {
  width: 15px;
  height: 15px;
}
.tiny svg circle {
  fill: currentColor;
  stroke: none;
}
.tiny:hover {
  border-color: var(--acc);
  color: var(--acc);
}
.tiny.solid {
  background: var(--acc);
  color: var(--on-acc);
  border-color: var(--acc);
}
.tiny.solid:hover {
  background: var(--acc-hi);
  border-color: var(--acc-hi);
  color: var(--on-acc);
}
.link-btn {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 10px;
  margin-right: -10px;
}
.link-btn:hover {
  color: var(--acc);
}
.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex: 0 0 auto;
  transition: color 0.15s;
}
.icon-btn:hover {
  color: var(--acc);
}
.icon-btn svg {
  width: 22px;
  height: 22px;
}

/* Esquinas de mira arriba a izquierda y derecha. */
.corners {
  position: relative;
}
.corners::before,
.corners::after {
  content: "";
  position: absolute;
  top: 22px;
  width: 14px;
  height: 14px;
  border-top: 1px solid color-mix(in srgb, var(--acc) 50%, transparent);
  pointer-events: none;
}
.corners::before {
  left: 8px;
  border-left: 1px solid color-mix(in srgb, var(--acc) 50%, transparent);
}
.corners::after {
  right: 8px;
  border-right: 1px solid color-mix(in srgb, var(--acc) 50%, transparent);
}

/* Las dos pantallas: se ve una u otra. */
html:not([data-view="results"]) .results,
html[data-view="results"] .home {
  display: none;
}

/* ===================================================== Pantalla de inicio */
.home {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 40px;
  position: relative;
}
.home::before,
.home::after {
  content: "";
  position: absolute;
  top: 22px;
  width: 14px;
  height: 14px;
  border-top: 1px solid color-mix(in srgb, var(--acc) 50%, transparent);
  pointer-events: none;
}
.home::before {
  left: 8px;
  border-left: 1px solid color-mix(in srgb, var(--acc) 50%, transparent);
}
.home::after {
  right: 8px;
  border-right: 1px solid color-mix(in srgb, var(--acc) 50%, transparent);
}

.topbar {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px var(--gut) 0;
  animation: rise 0.6s ease both;
}
.topbar .eyebrow {
  flex: 1;
  min-width: 0;
}
.topbar .btns {
  display: flex;
  gap: 6px;
}

.hero {
  grid-area: hero;
  position: relative;
  padding: 28px var(--gut) 0;
  animation: rise 0.7s ease both;
}
.hero h1 {
  font-family: var(--f-cond);
  font-weight: 800;
  font-size: clamp(56px, 18vw, 76px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero h1 span {
  color: var(--acc);
}
.lede {
  margin-top: 16px;
  max-width: 340px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--soft);
}
.ios-hint {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--dim);
  max-width: 36ch;
}
.ios-hint b {
  color: var(--ink);
}

.stamp {
  position: absolute;
  top: 0;
  right: var(--gut);
  z-index: 2;
  animation: stamp 0.8s 0.5s cubic-bezier(0.2, 1.3, 0.3, 1) both;
  border: 2px solid var(--acc3);
  color: var(--acc3);
  padding: 6px 9px;
  text-align: center;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.5;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
}
[data-theme="amarillo"] .stamp {
  border-color: var(--acc);
  color: var(--acc-hi);
}

/* --- Cinta ------------------------------------------------------------ */
.ribbon {
  grid-area: ribbon;
  margin-top: 26px;
  border-top: 1px solid color-mix(in srgb, var(--acc2) 40%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--acc3) 40%, transparent);
  background: linear-gradient(90deg,
      color-mix(in srgb, var(--acc) 9%, transparent),
      color-mix(in srgb, var(--acc2) 9%, transparent),
      color-mix(in srgb, var(--acc3) 9%, transparent));
  overflow: hidden;
  animation: rise 0.7s 0.05s ease both;
}
.ribbon .strip {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
  padding: 7px 0;
}
.ribbon span {
  flex: 0 0 auto;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acc2);
  white-space: nowrap;
}
.ribbon span:nth-child(2) {
  color: var(--acc3);
}
[data-theme="amarillo"] .ribbon span {
  color: var(--acc-hi);
}
[data-marquee="off"] .ribbon .strip {
  animation: none;
}

/* --- Buscador --------------------------------------------------------- */
.search {
  grid-area: search;
  padding: 28px var(--gut) 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* La animación crea un contexto de apilado: sin z-index propio, los
     recientes pintarían encima del desplegable de sugerencias. */
  position: relative;
  z-index: 10;
  animation: rise 0.7s 0.08s ease both;
}
.field {
  position: relative;
  z-index: 20;
}
.field .box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  background: var(--surface);
  border: 1px solid var(--line2);
  padding: 0 6px 0 16px;
  transition: border-color 0.2s;
}
.field .box:focus-within,
.field.open .box {
  border-color: var(--acc);
}
.field .ico {
  width: 18px;
  height: 18px;
  color: var(--dim);
  flex: 0 0 auto;
}
#artist {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--f-text);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}
#artist::placeholder {
  color: var(--dim);
}
.go {
  height: 44px;
  padding: 0 18px;
  background: var(--acc);
  color: var(--on-acc);
  font-family: var(--f-cond);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.18s, transform 0.1s;
  flex: 0 0 auto;
}
.go:hover {
  background: var(--acc-hi);
}
.go:active {
  transform: translateY(1px);
}
.go:disabled {
  opacity: 0.6;
  cursor: progress;
}

.ac {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--surface);
  border: 1px solid var(--acc);
  border-top: none;
  max-height: 46vh;
  overflow-y: auto;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
}
.ac button {
  display: block;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 11px 16px;
  font-family: var(--f-cond);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.ac button:last-child {
  border-bottom: none;
}
.ac button:hover,
.ac button[aria-selected="true"] {
  background: var(--acc);
  color: var(--on-acc);
}
.ac small {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--dim);
  margin-top: 2px;
}
.ac button:hover small,
.ac button[aria-selected="true"] small {
  color: var(--on-acc);
  opacity: 0.75;
}
.ac .empty {
  padding: 12px 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--dim);
}

.stepper {
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid var(--line2);
  padding: 0 6px 0 16px;
}
.stepper span {
  flex: 1;
  font-size: 14px;
  color: var(--muted);
}
.stepper b {
  width: 92px;
  text-align: center;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 14px;
  color: var(--ink);
}
.step {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: border-color 0.15s, color 0.15s;
}
.step svg {
  width: 16px;
  height: 16px;
}
.step:hover:not(:disabled) {
  border-color: var(--acc);
  color: var(--acc);
}
.step:disabled {
  opacity: 0.35;
  cursor: default;
}

/* En el móvil el buscador y los recientes van sueltos, como en la app; en
   escritorio se agrupan en una tarjeta. */
.finder {
  display: contents;
}
.finder-h,
.howto {
  display: none;
}

/* --- Recientes -------------------------------------------------------- */
.recents {
  grid-area: recents;
  padding: 36px var(--gut) 0;
  animation: rise 0.7s 0.12s ease both;
}
.rec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.rec-list {
  list-style: none;
}
.rec-list li {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.rec-list .pick {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  text-align: left;
}
.rec-list .pick b {
  flex: 1;
  min-width: 0;
  font-family: var(--f-cond);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.rec-list .pick:hover b {
  color: var(--acc);
}
.rec-list .pick span {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--dim);
}
.rec-list .drop {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  margin-right: -10px;
}
.rec-list .drop:hover {
  color: var(--acc);
}
.rec-list .drop svg {
  width: 16px;
  height: 16px;
}
.rec-empty {
  padding: 16px 0;
  font-size: 14px;
  color: var(--dim);
}

/* --- Pie -------------------------------------------------------------- */
.foot {
  grid-area: foot;
  padding: 44px var(--gut) 0;
}
.barcode {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.barcode i {
  flex: 1;
  height: 34px;
  background: repeating-linear-gradient(90deg,
      var(--ink) 0 2px, transparent 2px 4px,
      var(--ink) 4px 5px, transparent 5px 9px,
      var(--ink) 9px 12px, transparent 12px 14px);
  opacity: 0.5;
}
.barcode span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--m3);
}
.foot p {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--l2);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--m3);
}

/* Sello «Desarrollado por Iro Dev.» — formato píldora (el kit compartido de
   irodoriciel.dev, mismo efecto que en NetSuite Full Tools y Japan Pulse).
   Para el formato mini basta cambiar la clase iro-sello--pildora por
   iro-sello--mini y quitar la etiqueta «Desarrollado por» del HTML.
   Pie: código de barras, una línea a todo el ancho y debajo la atribución con
   el sello a la derecha; si no cabe, el sello baja solo. */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 24px;
}
.foot .barcode {
  flex-basis: 100%;
  order: 0;
}
.foot::before {
  content: "";
  flex-basis: 100%;
  order: 1;
  margin-top: 18px;
  border-top: 1px solid var(--l2);
}
.foot p {
  flex: 1 1 300px;
  order: 2;
  margin-top: 0;
  border-top: 0;
}
.foot .iro-sello {
  order: 3;
  flex: 0 0 auto;
  margin-top: 10px;
  --iro-fuente: var(--f-text);
  --iro-mono: var(--f-mono);
}

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

.iro-sello {
  --iro-a: #8b7bff;
  --iro-a2: #a79bff;
  --iro-b: #3ee7c4;
  --iro-rosa: rgba(255, 92, 160, 0.55);
  --iro-gris: #9a9cab;
  --iro-borde: #2e3140;
  --iro-radio: 16px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  max-width: 100%;
  padding: 11px 18px 11px 11px;
  border-radius: var(--iro-radio);
  border: 1px solid var(--iro-borde);
  background: radial-gradient(120% 140% at 0% 0%, #1a1730 0%, #0c0d10 60%);
  color: #ecedf2;
  font-family: var(--iro-fuente, inherit);
  line-height: 1.15;
  text-decoration: none;
  vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 14px 30px -18px rgba(12, 13, 16, 0.7);
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s,
    border-color 0.25s;
}
.iro-sello *,
.iro-sello *::before,
.iro-sello *::after {
  box-sizing: border-box;
}

/* Borde en degradado que gira */
.iro-sello::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  background: conic-gradient(from var(--iro-ang), var(--iro-a), var(--iro-b), transparent 35%, transparent 60%, var(--iro-a));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
}

/* Destello que cruza */
.iro-sello::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(62, 231, 196, 0.22) 48%, rgba(139, 123, 255, 0.2) 54%, transparent 70%);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- Piezas ------------------------------------------------------------- */
.iro-sello__logo {
  flex-shrink: 0;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0c0d10
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%238B7BFF'/%3E%3Cstop offset='1' stop-color='%233EE7C4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' stroke-width='4.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 15l-8 9 8 9'/%3E%3Cpath d='M31 15l8 9-8 9'/%3E%3Cpath d='M27 10l-6 28'/%3E%3C/g%3E%3C/svg%3E")
    center / 100% no-repeat;
  box-shadow: 0 8px 18px -8px rgba(139, 123, 255, 0.7);
}
.iro-sello__txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.iro-sello__etq {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--iro-gris);
  white-space: nowrap;
}
.iro-sello__nombre {
  position: relative;
  display: inline-block;
  width: fit-content;
  font-size: 18px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.01em;
  line-height: 1.15;
  padding-bottom: 1px;
  white-space: nowrap;
  background-image: linear-gradient(90deg, var(--iro-a2), var(--iro-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.iro-sello__nombre i {
  font-style: normal;
  color: var(--iro-b);
  -webkit-text-fill-color: var(--iro-b);
}
.iro-sello__nombre::before,
.iro-sello__nombre::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  -webkit-text-fill-color: currentColor;
}
.iro-sello__nombre::before {
  color: rgba(62, 231, 196, 0.7);
}
.iro-sello__nombre::after {
  color: var(--iro-rosa);
}
.iro-sello__dom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--iro-mono, ui-monospace, "JetBrains Mono", "Cascadia Mono", Consolas, monospace);
  font-size: 11.5px;
  font-style: normal;
  color: var(--iro-b);
  white-space: nowrap;
}
.iro-sello__punto {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--iro-b);
  box-shadow: 0 0 0 3px rgba(62, 231, 196, 0.18);
}
.iro-sello__ir {
  flex-shrink: 0;
  display: block;
  width: 15px;
  height: 15px;
  margin-left: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--iro-gris);
  transition:
    transform 0.25s,
    color 0.25s;
}

/* --- El efecto (igual en todos los formatos) ---------------------------- */
.iro-sello:hover,
.iro-sello:focus-visible {
  color: #ecedf2;
  transform: translateY(-3px);
  border-color: transparent;
  outline: none;
  box-shadow:
    0 18px 36px -16px rgba(139, 123, 255, 0.55),
    0 0 24px -10px rgba(62, 231, 196, 0.6);
}
.iro-sello:hover::after,
.iro-sello:focus-visible::after {
  opacity: 1;
  animation: iro-giro 2.4s linear infinite;
}
.iro-sello:hover::before,
.iro-sello:focus-visible::before {
  transform: translateX(120%);
}
.iro-sello:hover .iro-sello__ir,
.iro-sello:focus-visible .iro-sello__ir {
  transform: translate(2px, -2px);
  color: var(--iro-b);
}
@media (prefers-reduced-motion: no-preference) {
  .iro-sello:hover,
  .iro-sello:focus-visible {
    animation: iro-temblor 0.42s steps(1) 1;
  }
  .iro-sello:hover .iro-sello__logo,
  .iro-sello:focus-visible .iro-sello__logo {
    animation: iro-salto 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .iro-sello:hover .iro-sello__nombre::before,
  .iro-sello:focus-visible .iro-sello__nombre::before {
    animation: iro-franjas-a 0.5s steps(1) forwards;
  }
  .iro-sello:hover .iro-sello__nombre::after,
  .iro-sello:focus-visible .iro-sello__nombre::after {
    animation: iro-franjas-b 0.5s steps(1) forwards;
  }
}
@media (prefers-reduced-motion: reduce) {
  .iro-sello,
  .iro-sello::before,
  .iro-sello__ir {
    transition: none;
  }
  .iro-sello:hover,
  .iro-sello:focus-visible {
    transform: none;
  }
  .iro-sello:hover::before,
  .iro-sello:focus-visible::before {
    transform: translateX(-120%);
  }
  .iro-sello:hover::after,
  .iro-sello:focus-visible::after {
    animation: none;
  }
}
@keyframes iro-giro {
  to {
    --iro-ang: 360deg;
  }
}
@keyframes iro-temblor {
  0% { text-shadow: -2px 0 rgba(62, 231, 196, 0.85), 2px 0 rgba(255, 92, 160, 0.7); }
  33% { text-shadow: 2px 0 rgba(62, 231, 196, 0.85), -2px 0 rgba(255, 92, 160, 0.7); }
  66% { text-shadow: -1px 0 rgba(62, 231, 196, 0.6), 1px 0 rgba(255, 92, 160, 0.5); }
  100% { text-shadow: none; }
}
@keyframes iro-salto {
  0% { transform: none; }
  40% { transform: scale(1.25) rotate(-10deg); }
  70% { transform: scale(0.95) rotate(4deg); }
  100% { transform: none; }
}
@keyframes iro-franjas-a {
  0% { opacity: 1; translate: -3px 0; clip-path: inset(10% 0 62% 0); }
  25% { translate: 3px 0; clip-path: inset(58% 0 18% 0); }
  50% { translate: -2px 0; clip-path: inset(32% 0 44% 0); }
  75% { translate: 2px 0; clip-path: inset(78% 0 4% 0); }
  100% { opacity: 0; }
}
@keyframes iro-franjas-b {
  0% { opacity: 1; translate: 3px 0; clip-path: inset(66% 0 10% 0); }
  25% { translate: -3px 0; clip-path: inset(20% 0 60% 0); }
  50% { translate: 2px 0; clip-path: inset(46% 0 30% 0); }
  75% { translate: -2px 0; clip-path: inset(4% 0 80% 0); }
  100% { opacity: 0; }
}

/* Píldora: una sola línea, angosta. ~230 × 36 */
.iro-sello--pildora {
  --iro-radio: 999px;
  gap: 9px;
  padding: 5px 14px 5px 5px;
}
.iro-sello--pildora .iro-sello__logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-size: 120%;
}
.iro-sello--pildora .iro-sello__txt {
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}
.iro-sello--pildora .iro-sello__etq {
  font-size: 10px;
}
.iro-sello--pildora .iro-sello__nombre {
  font-size: 14px;
}
.iro-sello--pildora .iro-sello__ir {
  width: 12px;
  height: 12px;
  margin-left: 2px;
}

/* Mini: lo más chico, para pies apretados. ~100 × 28 */
.iro-sello--mini {
  --iro-radio: 8px;
  gap: 6px;
  padding: 3px 9px 3px 3px;
}
.iro-sello--mini .iro-sello__logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  box-shadow: none;
}
.iro-sello--mini .iro-sello__nombre {
  font-size: 12.5px;
}
.iro-sello--mini .iro-sello__ir {
  width: 11px;
  height: 11px;
  margin-left: 0;
}

/* ================================================== Pantalla de resultados */
.results {
  min-height: 100vh;
  padding-bottom: 120px;
}
.bar {
  position: sticky;
  top: 0;
  z-index: 25;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bar .in {
  max-width: 480px;
  margin: 0 auto;
  height: 52px;
  padding: 0 10px;
  display: flex;
  align-items: center;
}
.bar .label {
  flex: 1;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-artist {
  color: var(--ink);
}
.bar-artist:not(:empty)::before {
  content: " / ";
  color: var(--dim);
}
/* En el móvil la barra no repite el nombre: ya está enorme debajo. */
@media (max-width: 1023px) {
  .bar-artist {
    display: none;
  }
}

/* Buscador de la barra de resultados: compacto. En el móvil se despliega
   bajo la barra con la lupa; en escritorio está siempre a la vista. */
.bar .in {
  position: relative;
}
.bar-search {
  display: none;
}
.bar.finding .bar-search {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 10px var(--gut) 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
  animation: fade 0.18s ease both;
}
.bar.finding .bar-find {
  color: var(--acc);
}
.bar .field .box {
  height: 46px;
  padding: 0 4px 0 14px;
}
.bar #artist {
  font-size: 16px;
}
.bar .go {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}
.bar .ac button {
  font-size: 16px;
  padding: 9px 14px;
}

.res {
  max-width: 480px;
  margin: 0 auto;
}
.res-foot {
  max-width: 480px;
  margin: 0 auto;
}
.res-side,
.res-main {
  min-width: 0;
}
.res.quiet .tab,
.res.quiet .artist,
.res.quiet .stats {
  animation: none;
}
.res-side,
.res-hero {
  padding: 0 var(--gut);
}

.tab {
  margin-top: 16px;
  display: flex;
  gap: 6px;
  animation: rise 0.5s ease both;
}
.tab b {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-acc);
  background: var(--acc);
  padding: 6px 12px;
  white-space: nowrap;
}
.tab i {
  flex: 1;
  background: repeating-linear-gradient(90deg, var(--acc2) 0 2px, transparent 2px 5px);
  opacity: 0.55;
}

/* Foto del artista: bajo la pestaña, con el nombre montado sobre su borde
   inferior, que se funde con el fondo. Un toque mate que se quita al pasar. */
.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 200px;
  overflow: hidden;
  background: var(--fill);
  border-top: 2px solid var(--acc);
  animation: rise 0.5s 0.02s ease both;
}
.portrait.none {
  display: none;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--l1);
  animation: pulse 1.1s ease-in-out infinite;
}
.portrait.on::before {
  content: none;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, color-mix(in srgb, var(--bg) 92%, transparent));
  pointer-events: none;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  filter: saturate(0.78) contrast(1.06);
  transition: opacity 0.45s ease, filter 0.35s ease;
}
.portrait.on img {
  opacity: 1;
}
/* Cuadrada o vertical en un marco apaisado: se encuadra por arriba, donde
   suelen estar las caras. */
.portrait.tall img {
  object-position: center 22%;
}
.portrait:hover img {
  filter: none;
}
.portrait:not(.none) + .res-id .artist {
  position: relative;
  margin-top: -0.5em;
  text-shadow: 0 2px 24px color-mix(in srgb, var(--bg) 70%, transparent);
}
.res.quiet .portrait,
.res.quiet .portrait img {
  animation: none;
  transition: filter 0.35s ease;
}

.artist {
  margin-top: 14px;
  font-family: var(--f-cond);
  font-weight: 800;
  font-size: 60px;
  line-height: 0.9;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  animation: rise 0.5s 0.03s ease both;
}
.artist.m {
  font-size: 50px;
}
.artist.l {
  font-size: 42px;
}

.stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  animation: rise 0.5s 0.06s ease both;
}
.stats div {
  padding: 10px 12px;
}
.stats div + div {
  border-left: 1px solid var(--line);
}
.stats b {
  display: block;
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.08;
}
.stats span {
  font-size: 12px;
  color: var(--muted);
}
.meta {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.6;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line2);
  font-family: var(--f-cond);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  max-width: 100%;
  transition: border-color 0.15s, color 0.15s;
}
.chip span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip:hover {
  border-color: var(--acc);
  color: var(--ink);
}
.chip.on {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--on-acc);
}
.sec-label {
  margin-top: 20px;
}

/* Segmentado de los tres cálculos. */
.modes {
  margin-top: 22px;
  display: flex;
  gap: 3px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.modes button {
  flex: 1;
  height: 42px;
  font-family: var(--f-cond);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.modes button:hover {
  color: var(--ink);
}
.modes button.on {
  background: var(--acc);
  color: var(--on-acc);
}
.mode-what {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.mode-note {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.65;
  color: var(--dim);
}

/* Orden: pestañas subrayadas a la derecha. */
.sort {
  margin-top: 20px;
  padding: 0 var(--gut) 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}
.sort .label {
  flex: 1;
}
.sort button {
  height: 36px;
  font-family: var(--f-cond);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  box-shadow: inset 0 -2px 0 transparent;
  transition: color 0.15s, box-shadow 0.15s;
}
.sort button:hover {
  color: var(--ink);
}
.sort button.on {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--acc);
}

/* Encabezado de nivel: Fijas, Probables, Sorpresas. */
.group-h {
  display: flex;
  justify-content: space-between;
  padding: 18px var(--gut) 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc);
}
.group-h.probables {
  color: var(--lav);
}
.group-h.sorpresas {
  color: var(--acc2);
}
[data-theme="amarillo"] .group-h.sorpresas {
  color: var(--ink);
}

/* --- Fila de canción --------------------------------------------------- */
.songs {
  list-style: none;
}
.song {
  border-bottom: 1px solid var(--row);
  animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.song > .hit {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  row-gap: 8px;
  width: 100%;
  text-align: left;
  padding: 14px var(--gut);
  transition: background 0.15s;
}
.song > .hit:hover {
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.song.open,
.song.open > .hit {
  background: var(--surface);
}
.song .n {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.song .head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.song .title {
  min-width: 0;
  font-family: var(--f-cond);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song .sub {
  display: none;
}
.song .pct {
  padding-left: 10px;
  font-family: var(--f-cond);
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--soft);
}
.song .pct.sure {
  color: var(--ink);
}
.song .pct.full {
  color: var(--acc);
}
[data-theme="amarillo"] .song .pct.full {
  color: var(--acc-hi);
}
.song .rail {
  grid-column: 2 / span 2;
  height: 3px;
  background: var(--track);
  overflow: hidden;
}
.song .rail i {
  display: block;
  height: 100%;
  background: var(--frio);
  transform-origin: left;
  animation: grow 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.song .rail i.sure {
  background: var(--bar);
}

.tag {
  flex: 0 0 auto;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 6px;
  border: 1px solid var(--acc3);
  color: var(--lav);
  white-space: nowrap;
}
.tag.full {
  background: var(--acc3);
  color: var(--bg);
}
.tag.off {
  border-color: var(--line2);
  color: var(--dim);
}
[data-theme="amarillo"] .tag.full {
  background: var(--ink);
  border-color: var(--ink);
}
[data-theme="amarillo"] .tag:not(.full):not(.off) {
  border-color: var(--ink);
  color: var(--ink);
}

/* Desplegable de la canción: detalle, disco y plataformas. */
.song .more {
  display: none;
  padding: 0 var(--gut) 16px calc(var(--gut) + 40px);
}
.song.open .more {
  display: block;
  animation: fade 0.2s ease both;
}
.song .more p {
  font-size: 13px;
  color: var(--muted);
}
.song .album {
  margin-top: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--dim);
}
.song .album:empty {
  display: none;
}
.plats {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.plats a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line2);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.15s, color 0.15s;
}
.plats a:hover {
  border-color: var(--acc);
  color: var(--acc);
}
.plats svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
}

/* Carátula: portada de 34 px o, sin ella, un vinilo dibujado. */
.art {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  background: var(--fill);
  border: 1px solid var(--l1);
  overflow: hidden;
  position: relative;
}
.art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: fade 0.35s ease both;
}
.art.on {
  border-color: var(--l2);
}
.art::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid var(--m3);
  opacity: 0.45;
}
.art::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--m3);
  opacity: 0.55;
}
.art.on::before,
.art.on::after {
  content: none;
}
.art.miss::before,
.art.miss::after {
  opacity: 0.28;
}

/* --- Divisores (Bis, Cintas) ------------------------------------------ */
.divider {
  margin: 22px var(--gut) 0;
  border-top: 1px dashed var(--l3);
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.divider b {
  font-family: var(--f-deco);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acc2);
}
[data-theme="amarillo"] .divider b {
  color: var(--ink);
}
.divider i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
      color-mix(in srgb, var(--acc2) 60%, transparent),
      color-mix(in srgb, var(--acc3) 50%, transparent), var(--l1));
}
.tape-note {
  margin: 12px var(--gut) 4px;
  max-width: 380px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--m2);
}

.alts {
  padding: 24px var(--gut) 0;
}

/* --- Carga y errores --------------------------------------------------- */
.loading {
  margin-top: 36px;
  border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.loading .scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
  animation: scan 1.4s linear infinite;
}
.loading .lbl {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--acc);
  animation: blink 1.1s steps(1, end) infinite;
}
.loading .lbl i {
  width: 8px;
  height: 8px;
  background: var(--acc);
}
.loading .bars {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.loading .bars i {
  height: 12px;
  background: var(--l1);
  animation: pulse 1.1s ease-in-out infinite;
}
.loading .bars i:nth-child(1) { width: 72%; }
.loading .bars i:nth-child(2) { width: 54%; animation-delay: 0.15s; }
.loading .bars i:nth-child(3) { width: 63%; animation-delay: 0.3s; }

.err,
.done {
  border: 1px solid var(--acc);
  border-left-width: 3px;
  padding: 14px 16px 14px 18px;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--m1);
}
.err {
  margin-top: 28px;
}
.done {
  margin-top: 12px;
  font-size: 11.5px;
}
.done .miss {
  color: var(--m2);
}
.status {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acc);
  animation: blink 1.1s steps(1, end) infinite;
}

/* --- Botón fijo "Crear playlist" -------------------------------------- */
.cta-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 24;
  padding: 16px var(--gut) calc(22px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--bg) 35%);
  display: flex;
  justify-content: center;
  pointer-events: none;
  animation: fade 0.3s ease both;
}
.cta {
  pointer-events: auto;
  width: 100%;
  max-width: 436px;
  height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--acc);
  color: var(--on-acc);
  box-shadow: 0 10px 40px -10px color-mix(in srgb, var(--acc) 60%, transparent);
  transition: background 0.18s, transform 0.1s;
}
.cta:hover {
  background: var(--acc-hi);
}
.cta:active {
  transform: translateY(1px);
}
.cta b {
  flex: 1;
  text-align: left;
  font-family: var(--f-cond);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
}
.cta svg {
  width: 16px;
  height: 16px;
}

/* --- Hoja "Abrir en…" y panel de Colores ------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background: var(--scrim);
  animation: fade 0.22s ease both;
}
.sheet {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--surface);
  border-top: 1px solid var(--line2);
  padding: 20px var(--gut) calc(30px + env(safe-area-inset-bottom));
  animation: sheet 0.32s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.sheet-head {
  display: flex;
  align-items: center;
}
.sheet-head h3 {
  flex: 1;
  font-family: var(--f-cond);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
}
.sheet-head .icon-btn {
  color: var(--muted);
  margin-right: -10px;
}
.sheet-head .icon-btn svg {
  width: 20px;
  height: 20px;
}
.sheet-sub {
  margin: 2px 0 14px;
  font-size: 13px;
  color: var(--muted);
}
.sheet .label + .svc-list,
.sheet .label + .exports {
  margin-top: 8px;
}
.sheet .label.gap {
  display: block;
  margin-top: 22px;
}
.svc-list {
  border-top: 1px solid var(--line2);
}
.svc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 52px;
  border-bottom: 1px solid var(--line2);
  text-align: left;
  color: var(--ink);
  transition: color 0.15s;
}
a.svc-row {
  color: var(--ink);
}
.svc-row:hover {
  color: var(--acc);
}
.svc-row .ic {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--muted);
}
.svc-row .ic svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}
.svc-row:hover .ic {
  color: inherit;
}
.svc-row b {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
}
.svc-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--dim);
}
.svc-row span svg {
  width: 15px;
  height: 15px;
}
.svc-row.ok span {
  color: var(--acc);
}
.exports {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.exports button {
  min-height: 44px;
  border: 1px solid var(--line2);
  font-family: var(--f-cond);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
  transition: border-color 0.15s, color 0.15s;
}
.exports button:hover {
  border-color: var(--acc);
  color: var(--ink);
}
.sheet .fine {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.65;
  color: var(--dim);
}

.panel {
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--bg);
  border-top: 2px solid var(--acc);
  animation: sheet 0.32s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.panel .p-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--l2);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}
.panel .p-bar b {
  font-family: var(--f-deco);
  font-weight: 900;
  font-size: 34px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.panel .p-bar i {
  flex: 1;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--acc) 0 2px, transparent 2px 5px);
  opacity: 0.5;
}
.panel .p-body {
  padding: 20px 20px calc(30px + env(safe-area-inset-bottom));
}
.themes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.theme {
  text-align: left;
  border: 1px solid var(--l2);
  transition: border-color 0.18s;
}
.theme:hover,
.theme.on {
  border-color: var(--acc);
}
.theme .sw {
  height: 66px;
  display: flex;
  align-items: flex-end;
  padding: 8px;
}
.theme .sw i {
  flex: 1;
  height: 18px;
}
.theme .sw u {
  flex: 0 0 22px;
  height: 18px;
}
.theme .cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  border-top: 1px solid var(--l2);
}
.theme .cap b {
  font-family: var(--f-cond);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.theme .cap span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--m3);
}
.theme.on .cap span {
  color: var(--acc);
}
.toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--l2);
  padding: 14px;
  min-height: 52px;
  text-align: left;
  transition: border-color 0.15s;
}
.toggle:hover {
  border-color: var(--line2);
}
.toggle b {
  font-family: var(--f-cond);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.toggle span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--m3);
}
.toggle span::before {
  content: "";
  width: 26px;
  height: 14px;
  border: 1px solid currentColor;
  background: linear-gradient(currentColor, currentColor) 2px 50% / 8px 8px no-repeat;
  transition: background-position 0.18s;
}
.toggle span.on {
  color: var(--acc);
}
.toggle span.on::before {
  background-position: calc(100% - 2px) 50%;
}
.reset {
  margin-top: 26px;
  border-top: 1px dashed var(--l3);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.reset p {
  font-family: var(--f-mono);
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--m3);
}

/* Aviso breve (compartir copiado al portapapeles). */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 70;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 14px;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =============================================================== Cómo funciona */
.faqp {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px 96px;
}
.faqp .topbar {
  padding: 40px 0 0;
  margin-bottom: 22px;
}
.faqp .topbar .eyebrow {
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--m2);
}
.faqp h1 {
  font-family: var(--f-deco);
  font-weight: 900;
  font-size: clamp(58px, 21vw, 88px);
  line-height: 0.82;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.faqp h1 span {
  color: var(--acc);
}
.faqp .lede {
  margin-top: 24px;
  max-width: 300px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--m2);
}
.faq {
  margin-top: 34px;
}
.faq h2 {
  font-family: var(--f-deco);
  font-weight: 900;
  font-size: 38px;
  line-height: 0.9;
  text-transform: uppercase;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--l2);
}
.faq h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.faq a {
  border-bottom: 1px solid color-mix(in srgb, var(--acc) 40%, transparent);
}
.faq .q {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acc);
  margin-top: 10px;
}
[data-theme="amarillo"] .faq .q {
  color: var(--acc-hi);
}
.faq p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--m1);
  max-width: 62ch;
}
.faq p b {
  color: var(--ink);
  font-weight: 600;
}
.faq .tip {
  border-left: 2px solid var(--acc3);
  padding-left: 14px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--m2);
}
.faqp .foot {
  padding: 44px 0 0;
}

/* ======================================================= Pantallas estrechas */
@media (max-width: 380px) {
  :root {
    --gut: 16px;
  }
  .go {
    padding: 0 12px;
    letter-spacing: 0.06em;
  }
  .stepper b {
    width: 76px;
  }
  .art {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }
  .song > .hit {
    grid-template-columns: 30px 1fr auto;
  }
  .song .more {
    padding-left: calc(var(--gut) + 30px);
  }
  .song .title {
    font-size: 20px;
  }
  .modes button {
    font-size: 13px;
    letter-spacing: 0.04em;
  }
  .exports {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================ Tableta (≥ 720) */
@media (min-width: 720px) {
  :root {
    --gut: 28px;
  }
  .home,
  .res,
  .res-foot,
  .bar .in {
    max-width: 680px;
  }
  .hero h1 {
    font-size: 104px;
  }
  .lede {
    max-width: 440px;
    font-size: 18px;
  }
  .stamp {
    top: 12px;
    font-size: 10px;
  }
  .artist {
    font-size: 84px;
  }
  .artist.m {
    font-size: 68px;
  }
  .artist.l {
    font-size: 54px;
  }
  .cta {
    max-width: 560px;
  }
  .themes {
    grid-template-columns: repeat(3, 1fr);
  }
  .overlay {
    justify-content: center;
    padding: 24px;
  }
  .sheet,
  .panel {
    max-width: 560px;
    border: 1px solid var(--line2);
    animation: pop 0.25s cubic-bezier(0.2, 0.9, 0.2, 1) both;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  }
  .panel {
    border-top: 2px solid var(--acc);
  }
  .sheet {
    padding: 24px 28px 30px;
  }
  .faqp {
    max-width: 680px;
  }
  .toast {
    bottom: 110px;
  }
}

/* ========================================================== Escritorio (≥ 1024) */
@media (min-width: 1024px) {
  :root {
    --gut: 0px;
  }

  /* Inicio: titular a la izquierda, buscador y recientes a la derecha, y la
     cinta a sangre debajo de los dos. */
  /* La primera pantalla se reparte entera: titular y buscador centrados en
     el alto que queda, y la cinta, los modos y el pie al fondo. */
  .home {
    max-width: 1240px;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 56px 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 500px);
    grid-template-areas:
      "top top"
      "hero finder"
      "ribbon ribbon"
      "howto howto"
      "foot foot";
    grid-template-rows: auto 1fr auto auto auto;
    column-gap: clamp(56px, 7vw, 120px);
    align-items: center;
  }
  .home::before {
    left: 24px;
  }
  .home::after {
    right: 24px;
  }
  .topbar {
    padding: 36px 0 0;
    align-self: start;
  }
  .hero {
    padding: 56px 0;
    justify-self: start;
  }
  .hero h1 {
    font-size: clamp(110px, 9.6vw, 148px);
  }
  .lede {
    margin-top: 28px;
    max-width: 30ch;
    font-size: 20px;
  }
  /* Pegado al final de "QUÉ VAN", como un sello sobre el cartel. */
  .stamp {
    top: 34px;
    right: -64px;
    font-size: 11px;
    padding: 8px 12px;
  }

  .finder {
    grid-area: finder;
    display: block;
    position: relative;
    z-index: 10;
    padding: 28px 28px 20px;
    background: color-mix(in srgb, var(--surface) 72%, transparent);
    border: 1px solid var(--line);
    border-top: 2px solid var(--acc);
    box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--acc) 35%, transparent);
    animation: rise 0.7s 0.08s ease both;
  }
  .finder-h {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
  }
  .search {
    padding: 0;
    gap: 12px;
    animation: none;
  }
  .field .box {
    height: 66px;
    padding-left: 20px;
  }
  #artist {
    font-size: 19px;
  }
  .go {
    height: 52px;
    padding: 0 26px;
    font-size: 18px;
  }
  .stepper {
    height: 54px;
    padding-left: 20px;
  }
  .stepper span {
    font-size: 15px;
  }
  .recents {
    padding: 28px 0 0;
    animation: none;
  }
  .rec-list .pick b {
    font-size: 24px;
  }
  .rec-list li:last-child {
    border-bottom: none;
  }
  .ribbon {
    margin: 8px calc(50% - 50vw) 0;
  }
  .ribbon span {
    font-size: 12px;
  }

  /* Los cuatro usos, en fila: llenan el ancho y explican la app de un vistazo. */
  .howto {
    grid-area: howto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-top: 40px;
    animation: rise 0.7s 0.16s ease both;
  }
  .howto article {
    padding: 0 28px;
    border-left: 1px solid var(--line);
  }
  .howto article:first-child {
    padding-left: 0;
    border-left: none;
  }
  .howto .n {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--acc);
  }
  .howto h3 {
    margin-top: 10px;
    font-family: var(--f-cond);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  .howto p {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    max-width: 30ch;
  }
  .howto a {
    white-space: nowrap;
  }
  .foot {
    padding: 40px 0 0;
  }

  /* Resultados: cabecera del artista a todo el ancho (foto y nombre grande),
     y debajo los controles fijos a la izquierda y la lista a la derecha. */
  .bar .in {
    max-width: 1240px;
    padding: 0 44px;
    height: 60px;
  }
  .bar .label {
    font-size: 12px;
    text-align: left;
    padding-left: 8px;
  }
  .bar-find {
    display: none;
  }
  .bar-search,
  .bar.finding .bar-search {
    display: block;
    position: static;
    flex: 0 1 440px;
    margin: 0 12px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    animation: none;
  }
  .bar .field .box {
    height: 42px;
  }
  .bar .go {
    height: 32px;
  }
  .res {
    max-width: 1240px;
    padding: 0 56px;
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    grid-template-areas:
      "hero hero"
      "side main";
    column-gap: 64px;
    align-items: start;
  }
  .res.solo {
    display: block;
    max-width: 760px;
  }

  /* Portada: la foto, casi siempre horizontal, ocupa la derecha de la
     cabecera y se funde con el fondo hacia la izquierda, donde van el nombre
     y los datos. El encuadre ancho deja fuera las franjas negras que Deezer
     añade al meter una foto apaisada en su cuadrado. */
  .res-hero {
    grid-area: hero;
    position: relative;
    padding: 4px 0 36px;
    border-bottom: 1px solid var(--line);
  }
  .res-hero .tab {
    position: relative;
    z-index: 2;
    margin-top: 28px;
  }
  .res-hero .portrait {
    position: absolute;
    top: 58px;
    right: 0;
    bottom: 36px;
    width: 66%;
    aspect-ratio: auto;
    max-height: none;
    border-top: none;
  }
  .res-hero .portrait img {
    object-position: center;
  }
  /* En la portada ancha, la cuadrada o vertical va entera a la derecha y su
     borde izquierdo se funde: no se le corta la cabeza. */
  .res-hero .portrait.tall img {
    width: auto;
    max-width: 100%;
    margin-left: auto;
    object-position: center 22%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%);
    mask-image: linear-gradient(90deg, transparent 0, #000 35%);
  }
  .res-hero .portrait::after {
    background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 75%, transparent) 22%, transparent 58%),
      linear-gradient(to top, var(--bg) 0%, transparent 38%);
  }
  .res-id {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 760px;
    padding-top: 150px;
  }
  .res-hero:not(:has(.portrait:not(.none))) .res-id {
    padding-top: 28px;
  }
  .res-hero .stats {
    background: color-mix(in srgb, var(--bg) 70%, transparent);
    backdrop-filter: blur(6px);
  }
  .res-hero .artist,
  .res-hero .portrait:not(.none) + .res-id .artist {
    margin-top: 0;
    font-size: clamp(80px, 8vw, 132px);
    line-height: 0.86;
    text-shadow: 0 4px 40px color-mix(in srgb, var(--bg) 80%, transparent);
  }
  .res-hero .artist.m {
    font-size: clamp(64px, 6.2vw, 104px);
  }
  .res-hero .artist.l {
    font-size: clamp(50px, 4.8vw, 80px);
  }
  .res-hero .stats {
    margin-top: 22px;
    max-width: 560px;
  }
  .res-hero .stats div {
    padding: 12px 16px;
  }
  .res-hero .stats b {
    font-size: 34px;
  }
  .res-hero .meta {
    margin-top: 14px;
  }

  .res-side {
    grid-area: side;
    position: sticky;
    top: 60px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 28px 0 32px;
    /* Si la ficha no cabe se desplaza con la rueda, sin barra a la vista. */
    scrollbar-width: none;
  }
  .res-side::-webkit-scrollbar {
    display: none;
  }
  .res-main {
    grid-area: main;
    padding-top: 28px;
  }
  .res-side .modes {
    margin-top: 0;
  }
  .res-foot {
    max-width: 1240px;
    padding: 48px 56px 0;
  }
  .results {
    padding-bottom: 56px;
  }
  .artist {
    font-size: 76px;
  }
  .artist.m {
    font-size: 62px;
  }
  .artist.l {
    font-size: 50px;
  }
  .res.solo .artist {
    font-size: 96px;
  }
  .stats b {
    font-size: 28px;
  }
  .mode-what {
    font-size: 14px;
  }

  /* El botón de playlist deja de flotar: vive en la ficha. */
  .cta-wrap {
    position: static;
    padding: 24px 0 0;
    background: none;
    animation: none;
  }
  .cta {
    max-width: none;
  }
  .toast {
    bottom: 40px;
  }

  .sort {
    margin-top: 0;
    padding: 0 0 8px;
  }
  .group-h {
    padding: 22px 16px 8px;
  }
  .song > .hit {
    grid-template-columns: 52px 1fr auto;
    padding: 16px 16px;
    column-gap: 0;
  }
  .song .n {
    font-size: 13px;
  }
  .song .head {
    gap: 12px;
  }
  .art {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
  .song .title {
    font-size: 26px;
  }
  /* Con ancho de sobra, el dato de cada canción va siempre a la vista. */
  .song .sub {
    display: block;
    /* Ocupa sólo el hueco que deja el título: nunca lo recorta. */
    flex: 1 1 0;
    min-width: 0;
    text-align: right;
    padding-left: 16px;
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .song.open .sub {
    visibility: hidden;
  }
  .song .pct {
    min-width: 72px;
    text-align: right;
    font-size: 24px;
  }
  .song .more {
    padding: 0 16px 18px calc(52px + 16px + 54px);
  }
  .song .more p {
    font-size: 14px;
  }
  .divider {
    margin: 30px 0 0;
  }
  .divider b {
    font-size: 36px;
  }
  .tape-note {
    margin: 12px 0 4px;
    max-width: 60ch;
  }
  .alts {
    padding: 28px 0 0;
  }

  /* Cómo funciona: titular fijo a la izquierda, texto a la derecha. */
  .faqp {
    max-width: 1240px;
    padding: 0 56px 72px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    column-gap: 80px;
    align-items: start;
  }
  .faqp > header {
    position: sticky;
    top: 0;
  }
  .faqp h1 {
    font-size: clamp(110px, 10vw, 150px);
  }
  .faqp .lede {
    max-width: 34ch;
    font-size: 17px;
  }
  .faq {
    margin-top: 112px;
  }
  .faq h2 {
    font-size: 46px;
  }
  .faq p {
    font-size: 16px;
  }
  .faqp .foot {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1440px) {
  .home,
  .res,
  .bar .in,
  .res-foot,
  .faqp {
    max-width: 1360px;
  }
  .res {
    grid-template-columns: 380px minmax(0, 1fr);
    column-gap: 80px;
  }
  .res-hero .portrait {
    width: 62%;
  }
}
