/* Súbele · DIVEEI CX — «Haz de escenario» (marca/filosofia_haz_de_escenario.md):
   negro absoluto, blanco del logo 光 y un solo ámbar para lo que está al aire o subiendo. Letra Archivo itálica ancha. */
:root {
  color-scheme: dark;
  --negro: #000;
  --blanco: #fff;
  --humo: #8c8c8c;
  --linea: #262626;
  --panel: #0e0e0e;
  --ambar: #ffc23d;
  --ambar-suave: rgb(255 194 61 / .14);
  --display: "Archivo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0; padding-bottom: 96px;
  background: var(--negro); color: var(--blanco);
  font: 400 16px/1.5 var(--display); font-size-adjust: from-font; font-variant-numeric: tabular-nums;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 3px; border-radius: 4px; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.envoltura { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Cabecera */
.cabecera { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 8px; position: relative; z-index: 2; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marca img { width: 44px; height: 44px; border-radius: 10px; }
.marca-nombre { font: italic 800 1.35rem/1 var(--display); font-stretch: 125%; }
.marca-nombre small { display: block; margin-top: 3px; font: 500 .72rem/1 var(--display); font-stretch: 100%; font-style: normal; color: var(--humo); }
.cabecera-acciones { display: flex; gap: 8px; }
.enlace-pulso {
  background: none; border: 1px solid var(--linea); border-radius: 99px; padding: 7px 14px;
  font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.enlace-pulso:hover { border-color: var(--blanco); }

/* Escenario: un solo haz de luz cálida sobre la pista */
.escenario { position: relative; padding: 28px 0 40px; isolation: isolate; }
.haz {
  position: absolute; z-index: -1; pointer-events: none;
  top: -110px; left: -10%; width: 120%; height: calc(100% + 110px);
  background: conic-gradient(from 132deg at 8% 0%, transparent 0deg, rgb(255 214 120 / .24) 13deg, rgb(255 255 255 / .1) 20deg, transparent 31deg);
  filter: blur(6px); transform-origin: 8% 0%;
  animation: barrido 1.6s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes barrido { from { opacity: 0; transform: rotate(-14deg); } to { opacity: 1; transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .haz { animation: none; } }
.aire-estado { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .875rem; font-weight: 600; color: var(--humo); }
.punto { width: 8px; height: 8px; border-radius: 50%; background: var(--humo); }
.al-aire .punto { background: var(--ambar); box-shadow: 0 0 0 4px var(--ambar-suave); }
.al-aire .aire-estado { color: var(--ambar); }
.titular { font: italic 850 clamp(3rem, 13vw, 6rem)/.9 var(--display); font-stretch: 125%; letter-spacing: -.015em; margin: 0 0 14px; }
.bajada { color: var(--humo); margin: 0 0 26px; max-width: 46ch; font-size: 1.05rem; }
.al-aire .bajada { color: var(--blanco); font-weight: 600; }
.aire-acciones { display: flex; align-items: center; gap: 18px; }
.btn-aire {
  display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 99px; padding: 13px 22px 13px 16px;
  background: var(--blanco); color: var(--negro); font-weight: 700; font-size: 1rem;
}
.btn-aire svg { fill: currentColor; }
.btn-aire:hover { background: var(--ambar); }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 26px; }
.eq i { width: 4px; height: 25%; border-radius: 2px; background: var(--linea); }
.al-aire .eq i { background: var(--ambar); }
@media (prefers-reduced-motion: no-preference) {
  .al-aire .eq i { animation: eq 900ms ease-in-out infinite alternate; }
  .al-aire .eq i:nth-child(2) { animation-delay: -300ms; }
  .al-aire .eq i:nth-child(3) { animation-delay: -650ms; }
  .al-aire .eq i:nth-child(4) { animation-delay: -150ms; }
  .al-aire .eq i:nth-child(5) { animation-delay: -500ms; }
}
@keyframes eq { from { height: 18%; } to { height: 100%; } }

/* Carteles */
.productos { padding: 0; }
.sec-cab { padding: 0 16px; margin-bottom: 14px; }
.sec-cab h2 { margin: 0; font: italic 800 1.6rem/1 var(--display); font-stretch: 118%; }
.sec-cab p { margin: 6px 0 0; color: var(--humo); font-size: .9rem; }
.carrusel {
  display: flex; gap: 14px; overflow-x: auto; padding: 2px 16px 16px;
  scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.carrusel::-webkit-scrollbar { display: none; }
.prod { flex: 0 0 188px; scroll-snap-align: start; text-decoration: none; color: inherit; }
.prod img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--panel); box-shadow: 0 0 0 1px var(--linea); }
.prod.cartel img { aspect-ratio: 2 / 3; }
.prod span { display: block; margin-top: 10px; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.prod b { display: block; margin-top: 2px; font-size: .8rem; font-weight: 500; color: var(--humo); }
.prod:hover b, .prod:focus-visible b { color: var(--blanco); text-decoration: underline; }

/* Pestañas */
.tabs { position: sticky; top: 0; z-index: 2; margin-top: 22px; background: rgb(0 0 0 / .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.tabs-fila { display: flex; gap: 6px; padding-top: 10px; padding-bottom: 10px; }
.tabs button { background: none; border: 0; border-radius: 99px; padding: 8px 16px; color: var(--humo); font-weight: 600; }
.tabs button:hover { color: var(--blanco); }
.tabs button[aria-pressed="true"] { background: var(--blanco); color: var(--negro); }

/* Listas: renglones iguales con líneas finísimas, como canales de consola */
main { padding-top: 4px; }
#q { width: 100%; margin-top: 16px; padding: 11px 16px; border-radius: 99px; border: 1px solid var(--linea); background: var(--panel); color: var(--blanco); font: inherit; }
#q::placeholder { color: var(--humo); }
.nota { color: var(--humo); margin: 18px 0; }
.lista { list-style: none; margin: 6px 0; padding: 0; }
.item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--linea); }
.item.sonando { background: linear-gradient(90deg, var(--ambar-suave), transparent 75%); box-shadow: inset 2px 0 0 var(--ambar); }
.num { font: italic 800 1.5rem/1 var(--display); font-stretch: 112%; color: var(--ambar); text-align: center; }
.ico { display: grid; place-items: center; }
.ico svg { width: 20px; height: 20px; fill: var(--humo); }
.sonando .ico svg { fill: var(--ambar); }
.info { min-width: 0; }
.info button { all: unset; cursor: pointer; display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info button:focus-visible { outline: 2px solid var(--ambar); outline-offset: 2px; }
.info small { display: flex; flex-wrap: wrap; gap: 0 12px; color: var(--humo); font-size: .82rem; overflow: hidden; white-space: nowrap; }
.info small span { overflow: hidden; text-overflow: ellipsis; }
.crece { color: var(--ambar); font-weight: 600; }
.votos { display: flex; gap: 6px; }
.votos button { background: none; border: 1px solid var(--linea); border-radius: 99px; padding: 6px 12px; font-size: .8rem; font-weight: 600; }
.votos button[aria-pressed="true"] { background: var(--ambar); border-color: var(--ambar); color: var(--negro); }
.votos .baja[aria-pressed="true"] { background: var(--linea); border-color: var(--linea); color: var(--blanco); }
.item a { color: var(--blanco); font-size: .85rem; font-weight: 600; }
.ver-mas { display: inline-block; margin: 18px 0 6px; color: var(--blanco); font-weight: 600; }

/* Pie */
.pie { margin-top: 48px; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--linea); color: var(--humo); font-size: .875rem; }
.pie .marca img { width: 34px; height: 34px; border-radius: 8px; }
.pie .marca-nombre { font-size: 1.05rem; color: var(--blanco); }
.pie p { max-width: 52ch; margin: 12px 0; }
.pie-enlaces { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pie-enlaces a { color: var(--blanco); font-weight: 600; text-decoration: none; }
.pie-enlaces a:hover { text-decoration: underline; }

/* Reproductor */
.player {
  position: fixed; inset: auto 0 0 0; z-index: 3; display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--panel); box-shadow: 0 -1px 0 var(--linea);
}
.video { width: 104px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--negro); }
.video iframe { width: 100%; height: 100%; }
#yt-wrap { width: 100%; height: 100%; }
#audio-wrap { width: 100%; height: 100%; place-items: center; background: var(--negro); box-shadow: inset 0 0 0 1px var(--ambar); border-radius: 8px; }
#audio-wrap img { width: 40px; height: 40px; border-radius: 8px; }
#audio-wrap:not([hidden]) { display: grid; }
.ahora strong, .ahora span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ahora span { color: var(--humo); font-size: .82rem; }
.controles { display: flex; gap: 8px; }
.controles button { display: grid; place-items: center; min-width: 44px; min-height: 44px; background: none; border: 1px solid var(--linea); border-radius: 99px; padding: 0 12px; font-size: .8rem; font-weight: 600; }
.controles svg { fill: currentColor; }
#radio[aria-pressed="true"] { background: var(--blanco); color: var(--negro); border-color: var(--blanco); }

@media (min-width: 760px) {
  .escenario { padding: 40px 0 56px; }
  .prod { flex-basis: 210px; }
  .carrusel, .sec-cab { padding-left: 16px; padding-right: 16px; }
  .player { max-width: 1120px; margin: 0 auto; border-radius: 14px 14px 0 0; }
}
