/* Sitio web de la emisora (ver docs/sitio-web.md). Claro por defecto, oscuro si el oyente lo
   elige o si su sistema lo usa. El color de la radio llega en tema.css (--brand, --accent). */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/montserrat-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/montserrat-latin-wght-italic.woff2") format("woff2");
}

:root {
  --brand: #1d4ed8;
  --accent: #e11d48;
  --bg: #ffffff;
  --bg-2: #f4f6fb;
  --card: #ffffff;
  --text: #0b1220;
  --text-2: #334155;
  --muted: #64748b;
  --line: #e5e8ef;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 8px 24px rgb(15 23 42 / 0.08);
  --dock-bg: rgb(255 255 255 / 0.92);
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --gutter: 20px;
  --hd-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0e18;
    --bg-2: #111726;
    --card: #131a2b;
    --text: #f1f5f9;
    --text-2: #cbd5e1;
    --muted: #94a3b8;
    --line: #1f2940;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 30px rgb(0 0 0 / 0.35);
    --dock-bg: rgb(19 26 43 / 0.94);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0e18;
  --bg-2: #111726;
  --card: #131a2b;
  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --line: #1f2940;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 30px rgb(0 0 0 / 0.35);
  --dock-bg: rgb(19 26 43 / 0.94);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 120px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 110px;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--brand);
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}
.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.i {
  flex: none;
}
.center {
  text-align: center;
}
.muted {
  color: var(--muted);
}
.empty {
  color: var(--muted);
  padding: 32px 0;
}

/* ---------------------------------------------------------------- botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.btn:hover {
  color: #fff;
  filter: brightness(1.08);
}
.btn-soft {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-soft:hover {
  color: var(--brand);
  filter: none;
}
.btn-red {
  background: var(--accent);
  border-radius: 999px;
  min-height: 40px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.ibtn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
}
.ibtn:hover {
  background: var(--bg-2);
  color: var(--brand);
}
.cbtn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
}
.cbtn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.only-dark {
  display: none;
}
:root[data-theme="dark"] .only-light {
  display: none;
}
:root[data-theme="dark"] .only-dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light {
    display: none;
  }
  :root:not([data-theme="light"]) .only-dark {
    display: block;
  }
}

/* ---------------------------------------------------------------- cabecera */
.hd {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
}
.hd-top {
  border-bottom: 1px solid var(--line);
}
.hd-top-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--hd-h);
}
.logo {
  display: flex;
  align-items: center;
  flex: none;
  height: 48px;
}
.logo img {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.logo-text {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--brand);
}
.logo-dark {
  display: none;
}
:root[data-theme="dark"] .logo:has(.logo-dark) .logo-light {
  display: none;
}
:root[data-theme="dark"] .logo-dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo:has(.logo-dark) .logo-light {
    display: none;
  }
  :root:not([data-theme="light"]) .logo-dark {
    display: block;
  }
}
.hd-date {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-size: 0.78rem;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.hd-date strong {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.hd-date span {
  color: var(--muted);
}
.hd-date b {
  color: var(--text);
}
.hd-meta {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.hd-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}
.hd-stat span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.hd-stat b {
  font-size: 0.85rem;
  color: var(--text);
}
.hd-stat small {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.soc {
  display: flex;
  gap: 4px;
}
.soc a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--text-2);
}
.soc a:hover {
  color: var(--brand);
  background: var(--bg-2);
}
.soc-round a {
  background: var(--bg-2);
  width: 36px;
  height: 36px;
}
.hd-tools {
  display: flex;
  gap: 2px;
}
.hd-nav {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.hd-nav-in {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 48px;
}
.logo-mini {
  display: none;
  height: 36px;
}
.logo-mini img {
  height: 36px;
}
.hd.is-compact .hd-top {
  display: none;
}
.hd.is-compact .logo-mini {
  display: flex;
}
.pills ul {
  display: flex;
  gap: 4px;
  align-items: center;
}
.pills a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}
.pills a[aria-current="page"] {
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
}
.pills .has-sub {
  position: relative;
}
.pills .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  flex-direction: column;
  align-items: stretch;
}
.pills .has-sub:hover .sub,
.pills .has-sub:focus-within .sub {
  display: flex;
}
.pills .sub a {
  text-transform: none;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 8px 10px;
}
.hd-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.station {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  border: 0;
  background: none;
  padding: 4px 6px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.hd-search {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.hd-search .wrap {
  display: flex;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.hd-search input,
.search-big input,
.form input,
.form textarea {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  width: 100%;
}

/* ---------------------------------------------------------------- secciones */
.sec {
  padding-top: 36px;
  padding-bottom: 8px;
}
.sec-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.sec-h h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  padding-bottom: 8px;
  margin-bottom: -1px;
  border-bottom: 3px solid var(--brand);
}
.sec-h h2 .i {
  color: var(--brand);
}
.see {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding-bottom: 8px;
}
.car-nav {
  display: flex;
  gap: 8px;
  padding-bottom: 8px;
}
.kick {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.kick-solid {
  background: var(--brand);
  color: #fff;
  padding: 4px 9px;
  border-radius: 4px;
}
.kick-solid:hover {
  color: #fff;
}
.kick-plain {
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 6px 0 12px;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}
.cv {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}
.cv-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
}
.badge,
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
}
.badge-live {
  background: var(--accent);
}

/* hero */
.hero {
  background: var(--brand);
  padding: 18px 0 22px;
}
.hero-car {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgb(0 0 0 / 0.25);
  background: #000;
}
.hero-slide {
  position: relative;
  aspect-ratio: 12 / 5;
  min-height: 300px;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.82) 0%, rgb(0 0 0 / 0.55) 45%, rgb(0 0 0 / 0.1) 100%);
}
.hero-txt {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  max-width: 640px;
  padding: 32px;
  color: #fff;
}
.hero-txt h2 {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 800;
  margin: 12px 0 14px;
}
.hero-txt h2 a:hover {
  color: #fff;
  text-decoration: underline;
}
.hero-rel {
  border-top: 1px solid rgb(255 255 255 / 0.3);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-rel li {
  position: relative;
  padding-left: 16px;
  font-weight: 700;
  font-size: 0.86rem;
}
.hero-rel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  border: 5px solid transparent;
  border-left-color: #fff;
}
.hero-rel a:hover {
  color: #fff;
  text-decoration: underline;
}
.hero-ex {
  color: rgb(255 255 255 / 0.85);
}
.hero-dots {
  position: absolute;
  z-index: 2;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgb(255 255 255 / 0.45);
}
.hero-dots button[aria-selected="true"] {
  background: #fff;
  box-shadow: 0 0 0 3px var(--brand);
}

/* últimas noticias */
.latest {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
}
.latest-big .cv {
  aspect-ratio: 16 / 9;
}
.latest-big h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 14px 0 10px;
}
.latest-big p {
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.latest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-title {
  font-size: 0.92rem;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-ex {
  color: var(--muted);
  font-size: 0.86rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-boxed {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card-boxed:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-boxed .card-body {
  padding: 4px 4px 6px;
}
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* anuncios */
.slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}
.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}
.slide {
  flex: 0 0 100%;
}
.slide img {
  width: 100%;
  aspect-ratio: 16 / 5;
  object-fit: cover;
}
.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.slider-prev {
  left: 12px;
}
.slider-next {
  right: 12px;
}

/* programación en vivo */
.prog-now {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.prog-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background: linear-gradient(135deg, var(--brand), #0b1220);
  color: #fff;
}
.prog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prog-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgb(255 255 255 / 0.4);
}
.prog-info {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.prog-info b {
  background: #fff;
  color: #0b1220;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.prog-info small {
  font-size: 0.72rem;
  background: rgb(0 0 0 / 0.55);
  padding: 3px 8px;
  border-radius: 4px;
}
.prog-card:hover {
  color: #fff;
}

/* mosaico */
.mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 420px;
}
.tile {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.tile-big {
  grid-row: span 2;
}
.tile:nth-child(2) {
  grid-column: span 2;
}
.tile a,
.tile .cv {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}
.tile a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(0 0 0 / 0.85), rgb(0 0 0 / 0) 65%);
}
.tile-txt {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.tile-txt b {
  font-weight: 800;
  font-size: 0.86rem;
  line-height: 1.25;
}
.tile-big .tile-txt b {
  font-size: 1.15rem;
  text-transform: uppercase;
}
.tile-txt small {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0.85;
}

/* carruseles */
.car {
  overflow: hidden;
}
.car-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s ease;
}
.car-item {
  flex: 0 0 calc((100% - 48px) / 4);
}
.car-wide {
  flex-basis: 100%;
}
.viral {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  align-items: center;
}
.viral-txt h3 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  margin: 12px 0;
}
.viral-txt p {
  color: var(--muted);
  margin-bottom: 10px;
}
.viral-img .cv {
  aspect-ratio: 16 / 9;
}
.band-dark {
  background: #05070d;
  color: #fff;
  margin-top: 36px;
  padding-bottom: 32px;
}
.band-dark .sec-h {
  border-color: rgb(255 255 255 / 0.12);
}
.band-dark .cbtn {
  background: transparent;
  border-color: rgb(255 255 255 / 0.25);
  color: #fff;
}
.card-dark .card-title a:hover {
  color: #fff;
  text-decoration: underline;
}
.card-dark .kick,
.card-dark .more {
  color: rgb(255 255 255 / 0.65);
}

/* videos */
.vid-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background: #000;
  color: #fff;
}
.vid-stage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.vid-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vid-info {
  position: absolute;
  left: 28px;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.6);
}
.vid-info h2,
.vid-info h3 {
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  font-weight: 900;
  max-width: 640px;
}
.vid-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.vid-list-all {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.vid-thumb {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.vid-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 3px solid transparent;
}
.vid-thumb[aria-pressed="true"] img {
  border-color: var(--brand);
}
.vid-thumb span {
  font-size: 0.8rem;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ranking */
.rank {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.rank li {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rank-art {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-2);
}
.rank-art img,
.rank-art span {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rank-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rank-n {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}
.rank-meta b {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
}
.rank-meta small {
  color: var(--muted);
  font-size: 0.74rem;
}
.votes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 3px;
}
.votes button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.15);
  color: #fff;
}
.votes button[aria-pressed="true"] {
  background: #fff;
  color: var(--brand);
}
.votes output {
  font-size: 0.72rem;
  font-weight: 800;
}
.rank-list {
  grid-template-columns: 1fr;
}
.rank-list li {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.rank-list .rank-art {
  width: 64px;
  flex: none;
}
.rank-list .rank-meta {
  flex: 1;
  min-width: 0;
}
.rank-list .votes {
  width: 150px;
}
.status {
  color: var(--muted);
  margin-top: 12px;
}
.status.is-err {
  color: var(--accent);
}
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-2);
  border-radius: 999px;
  margin-bottom: 18px;
}
.tabs button {
  border: 0;
  background: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}
.tabs button[aria-pressed="true"],
.tabs button[aria-selected="true"] {
  background: var(--brand);
  color: #fff;
}

/* equipo */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.person {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.person img,
.person-ph {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(1);
  transition: filter 0.3s;
  margin-bottom: 8px;
}
.person-ph {
  display: grid;
  place-items: center;
  background: var(--bg-2);
  color: var(--muted);
}
.person:hover img {
  filter: none;
}
.person b {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.person small {
  color: var(--muted);
  font-size: 0.78rem;
}

/* historial */
.hist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  min-width: 0;
}
.hist img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}
.hist div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.hist b {
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hist span {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hist time {
  font-size: 0.68rem;
  color: var(--muted);
}
.hist .is-now {
  border-color: var(--brand);
  box-shadow: inset 3px 0 0 var(--brand);
}
.hist-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  border: 0 !important;
  background: none !important;
}

/* ---------------------------------------------------------------- páginas */
.page-h {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.page-h h1,
.page-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
}
.page-h p {
  color: var(--muted);
}
.narrow {
  max-width: 760px;
}
.search-big {
  display: flex;
  gap: 10px;
  max-width: 560px;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}
.pager-n {
  color: var(--muted);
  font-size: 0.86rem;
}
.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  padding-top: 28px;
}
.art-head {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.art-img {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}
.art-head:has(.art-img) .art-head-txt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  color: #fff;
  background: linear-gradient(0deg, rgb(0 0 0 / 0.85), rgb(0 0 0 / 0));
}
.art-head h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 900;
  margin: 12px 0 8px;
}
.art-date {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.85;
}
.art-lead {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 18px;
}
.prose {
  color: var(--text-2);
  line-height: 1.75;
  font-size: 1.02rem;
}
.prose > * + * {
  margin-top: 1em;
}
.prose h2,
.prose h3 {
  color: var(--text);
  font-weight: 800;
  margin-top: 1.4em;
}
.prose a {
  color: var(--brand);
  text-decoration: underline;
}
.prose img {
  border-radius: var(--radius-sm);
  height: auto;
}
.prose blockquote {
  margin: 1.2em 0;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--brand);
  font-weight: 600;
  color: var(--text);
}
.prose ul {
  list-style: disc;
  padding-left: 1.4em;
}
.prose ol {
  list-style: decimal;
  padding-left: 1.4em;
}
.prose iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius-sm);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
}
.prose td,
.prose th {
  border: 1px solid var(--line);
  padding: 8px;
}
.art-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
.also {
  position: sticky;
  top: 130px;
  align-self: start;
}
.also h2 {
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  padding-left: 12px;
  border-left: 4px solid var(--brand);
  margin-bottom: 18px;
}
.also li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.also-n {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--muted);
  line-height: 1;
}
.also a {
  font-weight: 700;
  font-size: 0.86rem;
  display: block;
}
.also small {
  color: var(--muted);
  font-size: 0.72rem;
}
.prog-head {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}
.prog-head img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 1;
  object-fit: cover;
}
.prog-head h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
}
.when {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 16px;
  color: var(--text-2);
  font-weight: 600;
}
.when li {
  display: flex;
  gap: 8px;
  align-items: center;
}
.lead {
  color: var(--text-2);
  line-height: 1.7;
}
.lead p + p {
  margin-top: 0.8em;
}
.person-head .soc {
  margin-top: 16px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-2);
  font-weight: 700;
  font-size: 0.86rem;
}
.week-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 18px;
  padding-bottom: 4px;
}
.week-tabs button {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}
.week-tabs button[aria-selected="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.day {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.day[hidden] {
  display: none;
}
.slot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.slot time {
  display: flex;
  flex-direction: column;
  font-weight: 900;
  font-size: 1.1rem;
  min-width: 64px;
}
.slot time small {
  font-weight: 600;
  font-size: 0.74rem;
  color: var(--muted);
}
.slot img,
.slot-ph {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  color: var(--muted);
}
.slot span {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.slot span small {
  color: var(--muted);
}
.slot-live {
  display: none;
}
.slot.is-live {
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent);
}
.slot.is-live .slot-live {
  display: inline-flex;
}

/* formularios */
.box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 22px;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form h2 {
  font-size: 1.15rem;
  font-weight: 900;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-weight: 700;
  font-size: 0.86rem;
}
.form [aria-invalid="true"] {
  border-color: var(--accent);
}
.err {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}
.ok {
  color: #15803d;
  font-weight: 700;
}
:root[data-theme="dark"] .ok {
  color: #4ade80;
}
.results {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.results button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  text-align: left;
}
.results button:hover {
  border-color: var(--brand);
}
.results img,
.chosen img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}
.results span,
.chosen span {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.results small,
.chosen small {
  color: var(--muted);
}
.chosen {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 2px solid var(--brand);
  border-radius: 12px;
}
.chosen[hidden],
[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------------- pie */
.ft {
  padding: 56px 0 24px;
}
.ft-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 48px 28px 28px;
  background: radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--brand) 70%, #fff) 0%, var(--brand) 45%, color-mix(in srgb, var(--brand) 70%, #000) 100%);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.ft-brand img {
  height: 54px;
  width: auto;
}
.ft-brand .logo-text {
  color: #fff;
  font-size: 1.8rem;
}
.ft-tag {
  opacity: 0.8;
  font-size: 0.86rem;
}
.ft-text {
  max-width: 560px;
  opacity: 0.9;
  font-size: 0.9rem;
}
.ft-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 12px 0;
}
.ft-links a,
.ft-links span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.18);
  font-size: 0.8rem;
  font-weight: 600;
}
.ft-links a:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.22);
}
.ft-copy {
  font-size: 0.74rem;
  opacity: 0.75;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  width: 100%;
}

/* ---------------------------------------------------------------- reproductor flotante */
.dock {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(820px, calc(100% - 24px));
}
.dock-in {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  border-radius: 16px;
  background: var(--dock-bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  box-shadow: 0 12px 40px rgb(15 23 42 / 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.dock-cover {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-2);
  flex: none;
}
.dock-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.3;
}
.dock-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
}
.dock-top .badge-live {
  background: #0b1220;
  font-size: 0.56rem;
}
:root[data-theme="dark"] .dock-top .badge-live {
  background: var(--accent);
}
.dock-top b {
  color: var(--brand);
  font-weight: 800;
}
.dock-song {
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dock-eq {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 30px;
  width: 120px;
  flex: none;
}
.dock-eq i {
  flex: 1;
  height: 100%;
  border-radius: 99px;
  background: var(--brand);
  opacity: 0.85;
  transform: scaleY(0.12);
  transform-origin: center;
}
.dock-play {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--brand);
  color: #fff;
  flex: none;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 45%, transparent);
}
.dock-play:hover {
  filter: brightness(1.1);
}
.is-loading .dock-play {
  animation: pulse 1s infinite;
}
.tap-hint .dock-play {
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 20%, transparent);
  }
}
.dock-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.dock-vol,
.dock-st {
  position: relative;
}
.dock-st-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
}
.dock-pop {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px;
}
.dock-vol .dock-pop input {
  width: 140px;
  accent-color: var(--brand);
}
.dock-st-list {
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}
.dock-st-list button {
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
}
.dock-st-list button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
}
.dock-st-list small {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
}
.is-watching .dock-eq i {
  transform: scaleY(0.12) !important;
}

/* video en vivo (página pública del panel) */
.live-tv {
  position: fixed;
  z-index: 45;
  right: 20px;
  bottom: 100px;
  width: min(560px, calc(100% - 24px));
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.4);
}
.live-tv iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.live-tv .ibtn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgb(0 0 0 / 0.6);
  color: #fff;
  z-index: 1;
}

.fabs {
  position: fixed;
  z-index: 50;
  left: 18px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fab {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 0;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}
.fab-up {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.scrolled .fab-up {
  opacity: 1;
  pointer-events: auto;
}

/* ---------------------------------------------------------------- menú */
.ov {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  overflow-y: auto;
  padding-bottom: 120px;
}
.ov-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--hd-h);
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgb(15 23 42 / 0.04);
}
.ov-bar-r {
  min-width: 40px;
}
.ov-in {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  padding-top: 28px;
}
.ov-nav {
  border-right: 1px solid var(--line);
}
.ov-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ov-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-left: 3px solid var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.ov-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.ov-h {
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lcs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.lc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.lc-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: #1a1d24;
  color: #fff;
  min-height: 66px;
}
.lc-txt {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.lc-txt small {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0.6;
}
.lc-now .lc-txt small {
  opacity: 1;
}
.lc-txt b {
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}
.lc-txt span {
  font-size: 0.66rem;
  opacity: 0.7;
}
.lc-box img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
}
.lc-play {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}
.lc time {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
.lc-now time {
  color: var(--text);
}
.ov-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 4px 18px rgb(15 23 42 / 0.05);
}
.ov-follow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.86rem;
}

/* ---------------------------------------------------------------- navegación */
.is-navigating main {
  opacity: 0.6;
  transition: opacity 0.2s;
}

/* ---------------------------------------------------------------- pantallas medianas y chicas */
@media (max-width: 1080px) {
  .hd-soc,
  .hd-meta {
    display: none;
  }
  .grid4,
  .rank,
  .vid-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .car-item {
    flex-basis: calc((100% - 16px) / 2);
  }
  .car-wide {
    flex-basis: 100%;
  }
  .article-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .also {
    position: static;
  }
}
@media (max-width: 860px) {
  .pills,
  .tv-btn span {
    display: none;
  }
  .logo-mini {
    display: flex;
  }
  .hd-top {
    display: none;
  }
  .hd-nav-right {
    gap: 4px;
  }
  .hd-nav-right::after {
    content: none;
  }
  .latest,
  .prog-now,
  .viral,
  .prog-head,
  .ov-in {
    grid-template-columns: 1fr;
  }
  .grid3,
  .hist,
  .team {
    grid-template-columns: repeat(2, 1fr);
  }
  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .tile {
    aspect-ratio: 4 / 3;
  }
  .tile-big,
  .tile:nth-child(2) {
    grid-column: span 2;
    grid-row: auto;
  }
  .ov-nav {
    border-right: 0;
  }
  .lcs {
    grid-template-columns: 1fr;
  }
  .dock-eq {
    display: none;
  }
  .hero-slide {
    aspect-ratio: 4 / 5;
  }
  .hero-txt {
    padding: 22px;
  }
  .hero-dots {
    top: 18px;
    transform: none;
    flex-direction: row;
  }
}
@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }
  .grid3,
  .grid4,
  .hist,
  .latest-grid,
  .rank {
    grid-template-columns: 1fr;
  }
  .team {
    grid-template-columns: 1fr 1fr;
  }
  .car-item {
    flex-basis: 85%;
  }
  .car-wide {
    flex-basis: 100%;
  }
  .vid-list {
    grid-template-columns: 1fr 1fr;
  }
  .dock {
    bottom: 8px;
  }
  .dock-st-btn span,
  .dock-vol {
    display: none;
  }
  .fabs {
    bottom: 96px;
    left: auto;
    right: 14px;
  }
  .fabs [data-theme-toggle] {
    display: none;
  }
  .rank-list .votes {
    width: auto;
  }
  .art-head:has(.art-img) .art-head-txt {
    position: static;
    color: var(--text);
    background: none;
    padding: 16px 0 0;
  }
  .live-tv {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 90px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* voto registrado */
.voted {
  border: 0;
  border-radius: 18px;
  padding: 28px;
  max-width: 360px;
  text-align: center;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.3);
}
.voted::backdrop {
  background: rgb(15 23 42 / 0.55);
}
.voted h2 {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.voted p {
  color: var(--muted);
  margin-bottom: 18px;
}

.mobile-only {
  display: none;
}
.ov-bar-r {
  display: flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 860px) {
  .mobile-only {
    display: inline-grid;
  }
  .ov-bar .station {
    display: none;
  }
}
@media (max-width: 560px) {
  .card-sm {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
  .card-sm .card-media {
    width: 128px;
    flex: none;
  }
  .card-sm .cv {
    aspect-ratio: 4 / 3;
  }
}

/* El logo nunca se recolorea: en modo oscuro va el mismo, salvo que la radio suba uno para el
   modo oscuro (.logo-dark). */
.station {
  white-space: nowrap;
  max-width: 46vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------------------------------------------------------- chat */
.chat-fab {
  position: fixed;
  z-index: 50;
  right: 72px;
  bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: var(--shadow);
}
.chat-fab-icon {
  position: fixed;
  z-index: 50;
  right: 18px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: #0b1220;
  color: #fff;
  box-shadow: var(--shadow);
}
:root[data-theme="dark"] .chat-fab-icon {
  background: var(--brand);
}
.dot-ok {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}
.chat {
  position: fixed;
  z-index: 55;
  right: 18px;
  bottom: 84px;
  width: min(380px, calc(100% - 24px));
  height: min(560px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgb(15 23 42 / 0.28);
  overflow: hidden;
}
.chat[hidden] {
  display: none;
}
.chat-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 16px;
  background: var(--brand);
  color: #fff;
}
.chat-h div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.chat-h small {
  opacity: 0.8;
  font-size: 0.74rem;
}
.chat-h .ibtn {
  color: #fff;
}
.chat-h .ibtn:hover {
  background: rgb(255 255 255 / 0.15);
  color: #fff;
}
.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--bg-2);
  max-width: 92%;
}
.chat-list li.is-mine {
  align-self: flex-end;
  background: color-mix(in srgb, var(--brand) 14%, var(--card));
}
.chat-list b {
  font-size: 0.78rem;
  color: var(--brand);
}
.chat-list span {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.chat-list time {
  grid-row: 1;
  grid-column: 2;
  font-size: 0.66rem;
  color: var(--muted);
}
.chat-list .chat-empty {
  display: block;
  background: none;
  color: var(--muted);
  text-align: center;
  max-width: none;
}
.chat-foot {
  border-top: 1px solid var(--line);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-say {
  display: flex;
  gap: 8px;
}
.chat-say input,
.chat-login input {
  flex: 1;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  width: 100%;
}
.chat-say .btn {
  min-height: 42px;
  padding: 0 14px;
}
.chat-login {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-intro,
.chat-who,
.chat-rules {
  font-size: 0.82rem;
  color: var(--muted);
}
.chat-rules {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-2);
}
.chat-or {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}
.chat-google {
  display: flex;
  justify-content: center;
  min-height: 44px;
}
.chat-msg {
  font-size: 0.82rem;
}
.chat-msg.err {
  color: var(--accent);
}
.linkbtn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
}
@media (max-width: 560px) {
  .chat-fab {
    display: none;
  }
  .chat-fab-icon {
    bottom: 96px;
    right: 14px;
  }
  .scrolled .chat-fab-icon {
    bottom: 150px;
  }
  .chat {
    inset: auto 8px 8px 8px;
    width: auto;
    height: min(70vh, 560px);
    z-index: 70;
  }
}

/* ---------------------------------------------------------------- podcasts */
.pods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pod {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pod img,
.pod-ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand), #0b1220);
}
.pod-ph {
  display: grid;
  place-items: center;
  color: rgb(255 255 255 / 0.7);
}
.pod b {
  font-weight: 800;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pod small {
  color: var(--muted);
  font-size: 0.74rem;
}
.episode h1 {
  margin: 10px 0 6px;
}
.episode-audio {
  width: 100%;
  margin: 16px 0;
}
.rss {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand);
  font-weight: 700;
}
@media (max-width: 860px) {
  .pods {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* clima del oyente */
.hd-weather {
  position: relative;
}
.hd-weather .hd-stat {
  border: 0;
  background: none;
  padding: 4px 6px;
  border-radius: 8px;
  text-align: left;
}
.hd-weather .hd-stat:hover {
  background: var(--bg-2);
}
.weather-pop {
  position: absolute;
  z-index: 45;
  top: calc(100% + 6px);
  right: 0;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
}
.weather-pop .btn {
  min-height: 38px;
  font-size: 0.8rem;
}

/* ---------------------------------------------------------------- selector de radios (cabecera y barra) */
.tv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.tv-btn:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.stsel {
  position: relative;
}
.stsel-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-width: 340px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s;
}
.stsel-btn:hover,
.stsel-btn[aria-expanded="true"] {
  border-color: var(--brand);
}
.stsel-art {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-2);
}
.stsel-art .sig-art {
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.stsel-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.stsel-txt small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.stsel-txt small .dot {
  width: 6px;
  height: 6px;
}
.stsel-txt b {
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stsel-cta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand);
  white-space: nowrap;
}
.stsel-btn[aria-expanded="true"] .stsel-cta .i {
  transform: rotate(180deg);
}
.stsel-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 60;
  width: min(340px, calc(100vw - 24px));
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stsel-h {
  margin: 4px 8px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.stl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dock-st-list {
  width: min(340px, calc(100vw - 24px));
  display: block;
  padding: 8px;
}
.sti,
.dock-st-list .sti {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.sti:hover {
  background: var(--bg-2);
}
.sti[aria-pressed="true"],
.dock-st-list .sti[aria-pressed="true"] {
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--text);
}
.sti .sig-art {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
.sti-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sti-txt b {
  font-size: 0.9rem;
  font-weight: 800;
}
.sti-txt small {
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
}
.sti-vid {
  display: inline-grid;
  place-items: center;
  color: var(--muted);
}
.sti-check {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  visibility: hidden;
}
.sti[aria-pressed="true"] .sti-check {
  visibility: visible;
}

/* La imagen de una señal; sin imagen elegida, un fondo de la marca con la carátula del tema encima. */
.sig-art {
  display: block;
  object-fit: cover;
  background: var(--bg-2);
}
.sig-art-ph {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000));
}
.sig-art-ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------------- portada: TV */
.tvh-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
}
.tvh-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.tvh-sigs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
}
.tvh-sigs button {
  min-height: 34px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}
.tvh-sigs button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}
.tvh-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}
.tvh-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------------------------------------------------------- portada: radios */
.sigs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.sigs > li {
  min-width: 0;
}
.sig {
  min-width: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}
.sig:hover {
  border-color: color-mix(in srgb, var(--brand) 50%, var(--line));
}
@media (prefers-reduced-motion: no-preference) {
  .sig:hover {
    transform: translateY(-2px);
  }
}
.sig[aria-pressed="true"] {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand), var(--shadow);
}
.sig-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
}
.sig-media .sig-art {
  width: 100%;
  height: 100%;
}
.sig-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
}
.sig-badge .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgb(0 0 0 / 0.65);
  color: #fff;
}
.sig-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.3);
}
.sig-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
  flex: 1;
}
.sig-name {
  font-size: 1.02rem;
  font-weight: 800;
}
.sig-desc {
  font-size: 0.82rem;
  color: var(--text-2);
}
/* «Sonando:» queda fijo; solo el tema se desliza, en su propio espacio. */
.sig-now-row {
  display: flex;
  gap: 4px;
  min-width: 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.sig-now-row:has(.sig-now:empty) {
  display: none;
}
.sig-now-row b {
  flex: none;
  font-weight: 700;
}
.sig-now {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sig-state {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand);
}
.sig .when-on,
.is-playing .sig[aria-pressed="true"] .when-off {
  display: none;
}
.is-playing .sig[aria-pressed="true"] .when-on {
  display: inline;
}

@media (max-width: 860px) {
  .stsel-cta {
    display: none;
  }
  .stsel-btn {
    max-width: 52vw;
  }
}
@media (max-width: 560px) {
  /* En el teléfono la cabecera no da para todo: el video queda en el botón de la barra de abajo. */
  .tv-btn {
    display: none;
  }
  .hd-nav-right {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
  }
  .stsel {
    min-width: 0;
    flex: 0 1 auto;
  }
  .stsel-txt small {
    display: none;
  }
  .stsel-btn {
    min-height: 40px;
    max-width: 100%;
    gap: 8px;
    padding-right: 12px;
  }
  .stsel-art {
    width: 32px;
    height: 32px;
  }
  .sigs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .sig-play {
    width: 42px;
    height: 42px;
  }
  .sig-body {
    padding: 10px 12px 12px;
  }
  .tvh-title {
    font-size: 1rem;
  }
}

/* La barra de abajo en el teléfono: todo en una línea, lo largo se corta con «…». */
.dock-top {
  min-width: 0;
  white-space: nowrap;
}
.dock-top .badge-live {
  flex: none;
}
.dock-top b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 560px) {
  .dock-tools {
    gap: 2px;
  }
  .dock-st-btn {
    padding: 8px 10px;
  }
}
/* En un teléfono angosto, el selector de la cabecera muestra la imagen de la señal y la flecha. */
@media (max-width: 420px) {
  .dock-top .badge-live {
    display: none;
  }
  .stsel-txt {
    display: none;
  }
  .stsel-btn {
    padding: 4px 8px 4px 4px;
    gap: 4px;
  }
  .stsel-cta {
    display: inline-flex;
    margin: 0;
    font-size: 0;
  }
}

/* En el teléfono la barra deja espacio al tema: las radios se eligen en la cabecera, y el Play va al
   final, donde cae el pulgar. */
@media (max-width: 560px) {
  .dock {
    width: calc(100% - 16px);
  }
  .dock-in {
    gap: 10px;
    padding: 6px 6px 6px 6px;
  }
  .dock-st {
    display: none;
  }
  .dock-cover {
    width: 48px;
    height: 48px;
  }
  .dock-play {
    order: 5;
    width: 48px;
    height: 48px;
  }
  .dock-play svg {
    width: 22px;
    height: 22px;
  }
  .dock-top {
    font-size: 0.7rem;
  }
  .dock-song {
    font-size: 0.84rem;
  }
}
.sig-badge i {
  white-space: nowrap;
}
@media (max-width: 360px) {
  .sig-badge .badge {
    display: none;
  }
}

/* Títulos que no caben (el script les pone .mq y la distancia): van y vuelven con pausa en las puntas. */
.mq {
  text-overflow: clip !important;
}
.mq-in {
  display: inline-block;
  white-space: nowrap;
}
.mq .mq-in {
  animation: mq var(--mq-t, 8s) ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes mq {
  0%,
  18% {
    transform: translateX(0);
  }
  82%,
  100% {
    transform: translateX(var(--mq-dx, 0));
  }
}
@media (prefers-reduced-motion: reduce) {
  .mq .mq-in {
    animation: none;
  }
}

/* Las tarjetas de radios se acomodan a cuántas hay: con 2, horizontales a media fila; con 3, tres
   columnas; con 4 o más, las que quepan. En el teléfono, siempre de a dos. */
@media (min-width: 561px) {
  .sigs-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sigs-3 .sig-media {
    aspect-ratio: 4 / 3;
  }
  .sigs-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sigs-2 .sig {
    flex-direction: row;
    align-items: stretch;
  }
  .sigs-2 .sig-media {
    width: clamp(160px, 40%, 240px);
    flex: none;
    aspect-ratio: 1;
  }
  .sigs-2 .sig-body {
    justify-content: center;
    padding: 20px 22px;
    gap: 6px;
  }
  .sigs-2 .sig-name {
    font-size: 1.2rem;
  }
  .sigs-2 .sig-state {
    margin-top: 6px;
  }
}
/* En pantallas grandes las tarjetas de radios tienen espacio: letra más grande. */
@media (min-width: 861px) {
  .sig-name {
    font-size: 1.3rem;
  }
  .sig-desc {
    font-size: 0.98rem;
  }
  .sig-now-row {
    font-size: 0.92rem;
  }
  .sig-state {
    font-size: 0.82rem;
  }
  .sig-badge .badge-live,
  .sig-badge .badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
  .sig-body {
    gap: 6px;
    padding: 18px 20px 20px;
  }
  .sigs-2 .sig-name {
    font-size: 1.6rem;
  }
  .sigs-2 .sig-desc {
    font-size: 1.05rem;
  }
  .sigs-2 .sig-now-row {
    font-size: 1rem;
  }
  .sigs-2 .sig-state {
    font-size: 0.88rem;
  }
  .sigs-2 .sig-body {
    padding: 24px 28px;
    gap: 8px;
  }
  .sigs-2 .sig-media {
    width: clamp(180px, 42%, 270px);
  }
}
/* El texto de la tarjeta respeta su ancho (sin esto, en la tarjeta horizontal un título largo
   estiraba la columna hasta el borde y nunca se deslizaba). */
.sig-body {
  min-width: 0;
}
/* Mientras se desliza, los bordes se desvanecen en vez de cortar las letras de golpe. */
.mq {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 14px), transparent 100%);
}

/* Auditoría UI/UX: el texto que se desliza se detiene al pasar el mouse o con el foco del teclado;
   rótulos legibles; botones del TV cómodos para el dedo. */
:is(.sig, .sti, .dock-in, .stsel-btn, .rank li):is(:hover, :focus-within) .mq .mq-in {
  animation-play-state: paused;
}
.stsel-txt small {
  font-size: 0.68rem;
}
.tvh-sigs button {
  min-height: 40px;
}

/* Ranking de la portada ordenado: el texto ocupa siempre el mismo alto (título hasta 2 líneas,
   artista en 1 con «…»), así las barras de votos quedan alineadas; la carátula lleva borde (una
   con fondo blanco no se pierde) y el botón «Ver lista completa» tiene aire. */
.rank li {
  min-width: 0;
}
.rank-art {
  border: 1px solid var(--line);
}
.rank-meta {
  align-items: flex-start;
  min-width: 0;
}
.rank-meta > div {
  flex: 1;
  min-width: 0;
}
.rank-n {
  flex: none;
  min-width: 1.4ch;
  text-align: center;
}
.rank-meta b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}
.rank-meta small {
  display: block;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank:not(.rank-list) .rank-meta {
  min-height: calc(2 * 1.25em + 1.4em);
}
.rank:not(.rank-list) .votes {
  margin-top: auto;
}
[data-ranking] > .center {
  margin-top: 28px;
}
/* En el teléfono, el ranking de la portada de a dos (de a uno, cada carátula llenaba la pantalla). */
@media (max-width: 560px) {
  .rank:not(.rank-list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
  .rank:not(.rank-list) .rank-n {
    font-size: 1.6rem;
  }
  .rank:not(.rank-list) .rank-meta {
    gap: 6px;
  }
}

/* La caja del video: encima del hueco del TV en la portada, o en una ventanita abajo a la derecha
   (sobre la barra y el chat) al bajar con sonido, al ir a otra sección o con «Ver video». */
.tv-box {
  position: absolute;
  z-index: 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}
.tv-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.tv-box .ibtn {
  position: absolute;
  top: 8px;
  z-index: 1;
  display: none;
  background: rgb(0 0 0 / 0.6);
  color: #fff;
}
.tv-box .tv-close {
  right: 8px;
}
.tv-box .tv-back {
  right: 52px;
}
.tv-box.is-float {
  position: fixed;
  z-index: 45;
  right: 18px;
  bottom: 100px;
  width: min(400px, 42vw);
  aspect-ratio: 16 / 9;
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.4);
}
.tv-box.is-float .tv-close,
.tv-box.can-back .tv-back {
  display: grid;
}
@media (prefers-reduced-motion: no-preference) {
  .tv-box.is-float {
    animation: tv-in 0.2s ease-out;
  }
  @keyframes tv-in {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
  }
}
@media (max-width: 560px) {
  .tv-box.is-float {
    right: 10px;
    bottom: 92px;
    width: 64vw;
  }
}

/* El botón de video encendido (el TV suena o está en la ventanita). */
[data-watch][aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}

/* El chat y los botones flotantes no tapan el video: en el teléfono suben sobre la ventanita del
   TV; en la portada, el botón «¿Chatear?» se esconde mientras el TV pasa por debajo. */
.tv-under-chat .chat-fab {
  display: none;
}
@media (max-width: 560px) {
  .is-watching .chat-fab-icon,
  .is-watching .fabs {
    bottom: calc(104px + 36vw);
  }
  .scrolled .is-watching .chat-fab-icon {
    bottom: calc(158px + 36vw);
  }
}
