/* =========================================================
   Modelo WebRádio 2 — estilos do site público
   Tema "estúdio": fundo índigo profundo, cor de destaque
   escolhida pelo cliente no painel (--accent).
   ========================================================= */

:root {
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --bg: #171a33;
  --bg-2: #1d2140;
  --surface: #242a4f;
  --surface-2: #2c335d;
  --line: rgba(222, 226, 255, .1);
  --text: #eef0fa;
  --muted: #a3a9cf;
  --live: #ff4d5e;
  --accent-ink: color-mix(in oklab, var(--accent) 82%, white);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .65);

  --r-xl: 28px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --wrap: 1180px;
  --player-h: 76px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f1f2f8;
  --bg-2: #e7e9f3;
  --surface: #ffffff;
  --surface-2: #f4f5fb;
  --line: rgba(23, 26, 51, .11);
  --text: #171a33;
  --muted: #5a5f86;
  --accent-ink: color-mix(in oklab, var(--accent) 58%, #171a33);
  --shadow: 0 18px 40px -26px rgba(23, 26, 51, .35);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  [data-theme="auto"] {
    --bg: #f1f2f8; --bg-2: #e7e9f3; --surface: #fff; --surface-2: #f4f5fb;
    --line: rgba(23, 26, 51, .11); --text: #171a33; --muted: #5a5f86;
    --accent-ink: color-mix(in oklab, var(--accent) 58%, #171a33);
    --shadow: 0 18px 40px -26px rgba(23, 26, 51, .35);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom));
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.ic { flex: none; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.block { margin-block: clamp(2.5rem, 6vw, 4.5rem); }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); text-decoration: none; min-width: 0; }
.brand img { height: 44px; width: auto; max-width: 180px; object-fit: contain; }
.brand-name { font: 700 1.2rem/1.1 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a {
  display: block; padding: .45rem .7rem; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: .95rem;
}
.nav a:hover { color: var(--text); background: var(--line); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: inset 0 -2px 0 var(--accent); }
.topbar-actions { display: flex; gap: .25rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--line); }
.menu-btn { display: none; }
[data-theme="dark"] .only-dark, [data-theme="light"] .only-light { display: block; }
[data-theme="dark"] .only-light, [data-theme="light"] .only-dark { display: none; }
[data-theme="auto"] .only-light { display: none; }
@media (prefers-color-scheme: light) { [data-theme="auto"] .only-dark { display: none; } [data-theme="auto"] .only-light { display: block; } }

@media (max-width: 980px) {
  .menu-btn { display: inline-grid; }
  .topbar-actions { margin-left: auto; }
  .nav { position: fixed; inset: 68px 0 auto 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .75rem 1.25rem 1.25rem; display: none; max-height: calc(100vh - 68px - var(--player-h)); overflow: auto; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { font-size: 1.1rem; padding: .75rem 1rem; border-radius: var(--r-md); }
}
/* Quando o menu não cabe numa linha (muitas páginas ou nome longo), o JS ativa o modo compacto */
.is-compact .menu-btn { display: inline-grid; }
.is-compact .topbar-actions { margin-left: auto; }
.is-compact .nav { position: fixed; inset: 68px 0 auto 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .75rem 1.25rem 1.25rem; display: none; max-height: calc(100vh - 68px - var(--player-h)); overflow: auto; }
.is-compact .nav.is-open { display: block; }
.is-compact .nav ul { flex-direction: column; }
.is-compact .nav a { font-size: 1.1rem; padding: .75rem 1rem; border-radius: var(--r-md); }

/* ---------- Botões e formulários ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .65rem 1.25rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.1;
  transition: transform .15s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: color-mix(in oklab, var(--accent) 88%, white); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--line); }
.btn-xl { min-height: 56px; padding: .8rem 1.6rem; font-size: 1.08rem; }
.btn-sm { min-height: 38px; padding: .45rem .95rem; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent-ink); cursor: pointer; display: inline-flex; gap: .45rem; align-items: center; }

.form { display: grid; gap: .9rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; font-weight: 700; font-size: .93rem; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: .75rem .9rem; border-radius: var(--r-sm);
  background: var(--bg-2); border: 1.5px solid var(--line); font-weight: 400; font-size: 1rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent); }
.form .btn { justify-self: start; }
.form-status:empty { display: none; }
.form-status { margin: 0; font-weight: 700; }
.form-status.ok { color: #45d483; }
.form-status.err { color: var(--live); }
[data-theme="light"] .form-status.ok { color: #12804a; }
.closed-note { display: flex; gap: .6rem; align-items: flex-start; color: var(--muted); background: var(--bg-2); padding: 1rem; border-radius: var(--r-md); margin: 0; }

.notice { display: flex; gap: .6rem; align-items: center; margin: 1.25rem 0 0; padding: .85rem 1.1rem; border-radius: var(--r-md); font-weight: 700; }
.notice.ok { background: color-mix(in oklab, #45d483 18%, var(--surface)); }
.notice.err { background: color-mix(in oklab, var(--live) 18%, var(--surface)); }

/* ---------- Seções ---------- */
.panel { background: var(--surface); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 1.75rem); }
.panel-quiet { background: transparent; border: 1.5px solid var(--line); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.split-wide { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); margin-block: 1rem 4rem; }
@media (max-width: 860px) { .split-wide { grid-template-columns: 1fr; } }
.sec-title { display: flex; align-items: center; gap: .55rem; font-size: clamp(1.35rem, 2.4vw, 1.65rem); }
.sec-title .ic { color: var(--accent-ink); }
.sec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sec-row a { font-weight: 700; display: inline-flex; align-items: center; gap: .25rem; }
.page-head { padding-block: clamp(2rem, 6vw, 3.5rem) 1.5rem; }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; margin-bottom: .3em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.empty { padding: 2rem 0; }

/* ---------- Hero / console ---------- */
.hero { padding-top: clamp(1.25rem, 4vw, 2.5rem); }
.console {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem);
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in oklab, var(--accent) 16%, transparent) 0%, transparent 55%),
    var(--surface);
  border-radius: var(--r-xl) var(--r-xl) var(--r-md) var(--r-md);
  padding: clamp(1.5rem, 5vw, 3.25rem);
  box-shadow: var(--shadow);
}
.onair-lamp { display: flex; align-items: center; gap: .6rem; font-weight: 700; margin-bottom: 1.25rem; font-size: 1rem; }
.lamp {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: color-mix(in oklab, var(--muted) 50%, transparent);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .15);
}
.is-live .lamp, .lamp.is-on {
  background: var(--live);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--live) 25%, transparent), 0 0 18px var(--live);
  animation: lamp 2.4s ease-in-out infinite;
}
@keyframes lamp { 50% { box-shadow: 0 0 0 7px color-mix(in oklab, var(--live) 10%, transparent), 0 0 26px var(--live); } }
.program {
  font-size: clamp(2.6rem, 7.5vw, 5.2rem); font-weight: 800; letter-spacing: -.03em;
  font-variation-settings: "opsz" 96; line-height: .98; margin-bottom: 1.25rem; text-wrap: balance;
}
.host { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.75rem; }
.host img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.host p { margin: 0; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.up-next { margin: 1.5rem 0 0; }
.btn .i-pause, .play-btn .i-pause { display: none; }
[data-playing] .btn[data-play] .i-play, [data-playing] .play-btn .i-play { display: none; }
[data-playing] .btn[data-play] .i-pause, [data-playing] .play-btn .i-pause { display: inline-flex; }

.np { align-self: center; text-align: left; }
.np-art {
  aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2);
  margin-bottom: 1rem; max-width: 340px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
}
.np-art img { width: 100%; height: 100%; object-fit: cover; }
.np-label { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .9rem; margin: 0 0 .25rem; }
.np-song { font: 700 1.35rem/1.2 var(--font-display); margin: 0 0 .2rem; }
.np-artist { margin: 0; }
.np-listeners { margin: .6rem 0 0; font-size: .9rem; }

@media (max-width: 820px) {
  .console { grid-template-columns: 1fr; }
  .np { display: grid; grid-template-columns: 96px 1fr; column-gap: 1rem; align-items: center; padding-top: 1.25rem; border-top: 1px solid var(--line); }
  .np-art { grid-row: span 4; margin: 0; width: 96px; border-radius: var(--r-md); }
  .np-song { font-size: 1.1rem; }
}

/* ---------- Dial da programação (o elemento marcante) ---------- */
.dial-wrap {
  background: var(--bg-2); border-radius: var(--r-md) var(--r-md) var(--r-xl) var(--r-xl);
  margin-top: 6px; padding: 1.25rem clamp(1rem, 4vw, 2rem) 1.5rem;
}
.dial-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .75rem; }
.dial-head h2 { font-size: 1.1rem; margin: 0; }
.dial-head a { font-weight: 700; font-size: .95rem; display: inline-flex; gap: .2rem; align-items: center; }
.dial-scroll { overflow-x: auto; scrollbar-width: thin; padding-bottom: .5rem; }
.dial-track {
  position: relative; height: 112px; min-width: 1100px;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 24)) 0 28px / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, color-mix(in oklab, var(--muted) 55%, transparent) 0 2px, transparent 2px calc(100% / 8)) 0 24px / 100% 16px no-repeat;
}
.dial-tick { position: absolute; top: 0; transform: translateX(-50%); font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.dial-tick:first-of-type { transform: none; }
.dial-tick:last-of-type { transform: translateX(-100%); }
.dial-block {
  position: absolute; top: 48px; height: 58px; padding: .45rem .6rem;
  background: var(--surface); border-left: 3px solid var(--muted); border-radius: 4px var(--r-sm) var(--r-sm) 4px;
  overflow: hidden; display: grid; align-content: center; min-width: 4px;
}
.dial-block.is-live { border-left-color: var(--accent); }
.dial-block.is-now { background: color-mix(in oklab, var(--accent) 22%, var(--surface)); }
.dial-block strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dial-block span { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dial-needle {
  position: absolute; top: 20px; bottom: 0; width: 2px; background: var(--live); z-index: 2;
  transform: translateX(-1px); pointer-events: none;
}
.dial-needle::before { content: ""; position: absolute; top: -2px; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--live); }
.dial-needle span {
  position: absolute; bottom: -2px; left: 6px; background: var(--live); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; font-variant-numeric: tabular-nums;
}
.dial-empty { margin: .5rem 0 0; }

/* ---------- Destaques ---------- */
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: min(100%, 860px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-lg); }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; scroll-snap-align: start; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 8 / 3; background: var(--surface); color: #fff; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-cap { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.25rem 1rem; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); font: 700 1.25rem var(--font-display); }
@media (max-width: 640px) { .slide { aspect-ratio: 16 / 9; } }

/* ---------- Recados ---------- */
.recado { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.recado:last-child { border-bottom: 0; }
.recado-text { margin: 0 0 .35rem; font-size: 1.05rem; overflow-wrap: anywhere; }
.recado-meta { margin: 0; font-size: .9rem; color: var(--muted); }
.recado-meta strong { color: var(--text); }
.recado-meta time::before { content: "— "; }
.recados .recado { padding: 1.1rem 1.25rem; background: var(--surface); border-radius: var(--r-md); border: 0; margin-bottom: .75rem; }

/* ---------- Notícias ---------- */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 1.25rem; }
.news-grid .is-big { grid-row: span 2; }
.news-grid-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); grid-template-rows: none; }
@media (max-width: 760px) { .news-grid { grid-template-columns: 1fr; } .news-grid .is-big { grid-row: auto; } }
.news-card { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.news-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.news-grid:not(.news-grid-list) .news-card:not(.is-big) .news-link { flex-direction: row; }
.news-grid:not(.news-grid-list) .news-card:not(.is-big) .news-img { width: 38%; flex: none; aspect-ratio: auto; }
.news-img { aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-link:hover .news-img img { transform: scale(1.04); }
.news-ph { display: grid; place-items: center; height: 100%; min-height: 120px; color: var(--muted); }
.news-body { padding: 1.1rem 1.25rem 1.3rem; }
.news-body time { font-size: .85rem; color: var(--muted); }
.news-body h3 { font-size: 1.2rem; margin: .3rem 0 .45rem; }
.is-big .news-body h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.news-body p { margin: 0; color: var(--muted); font-size: .97rem; }
.news-link:hover h3 { color: var(--accent-ink); }

/* ---------- Eventos ---------- */
.event-list { display: grid; gap: .6rem; }
.event-row {
  display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem .8rem .8rem;
  background: var(--surface); border-radius: var(--r-md); color: inherit; text-decoration: none;
}
.event-row:hover { background: var(--surface-2); }
.event-row .chev { margin-left: auto; color: var(--muted); }
.date-tile {
  display: grid; place-items: center; width: 58px; height: 62px; flex: none; border-radius: var(--r-sm);
  background: var(--accent); color: var(--on-accent); line-height: 1;
}
.date-tile b { font: 800 1.6rem var(--font-display); }
.date-tile small { font-size: .78rem; font-weight: 700; }
.event-info { display: grid; gap: .15rem; min-width: 0; }
.event-info strong { font-size: 1.05rem; }
.event-info .muted { font-size: .9rem; }
.is-past .date-tile { background: var(--bg-2); color: var(--muted); }
.past-title { margin-top: 2.5rem; }

/* ---------- Mais pedidas ---------- */
.chart { list-style: none; margin: 0; padding: 0; }
.chart li { display: flex; align-items: center; gap: .85rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.chart img { border-radius: 6px; object-fit: cover; width: 44px; height: 44px; }
.rank { width: 2ch; font: 800 1.5rem var(--font-display); color: var(--accent-ink); text-align: right; font-variant-numeric: tabular-nums; }
.chart li:nth-child(n+4) .rank { color: var(--muted); font-size: 1.15rem; }
.chart-txt { display: grid; min-width: 0; flex: 1; }
.chart-txt strong, .chart-txt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Extras ---------- */
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-chat { aspect-ratio: 4 / 5; background: var(--bg-2); }
.listener { display: flex; gap: 1.25rem; align-items: center; }
.listener img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); }
.listener h2 { font-size: 1.6rem; margin-bottom: .3rem; }
.listener p:last-child { margin: 0; }
.kicker { display: flex; gap: .35rem; align-items: center; color: var(--accent-ink); font-weight: 700; margin: 0 0 .25rem; }
.pix { display: grid; gap: .5rem; background: var(--bg-2); border-radius: var(--r-md); padding: 1rem; margin-bottom: 1rem; justify-items: start; }
.pix span { font-size: .9rem; color: var(--muted); }
.pix code { font-size: 1.05rem; word-break: break-all; }
.sponsors ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.sponsor { display: grid; place-items: center; gap: .4rem; text-align: center; min-height: 110px; padding: 1rem; border-radius: var(--r-md); border: 1.5px solid var(--line); color: inherit; text-decoration: none; }
.sponsor img { max-height: 64px; width: auto; object-fit: contain; }
.sponsor span { font-size: .85rem; color: var(--muted); }
a.sponsor:hover { border-color: var(--accent); }

/* ---------- Programação ---------- */
.tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.5rem; scrollbar-width: thin; }
.tabs button {
  border: 1.5px solid var(--line); background: transparent; border-radius: 999px; padding: .55rem 1rem;
  font-weight: 700; cursor: pointer; white-space: nowrap; color: var(--muted);
}
.tabs button small { font-weight: 400; color: var(--accent-ink); }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tabs button[aria-selected="true"] small { color: inherit; opacity: .8; }
@media (max-width: 700px) { .tab-full { display: none; } }
.schedule { list-style: none; margin: 0 0 4rem; padding: 0; border-left: 2px solid var(--line); }
.slot { display: grid; grid-template-columns: 92px 1fr; gap: 1.25rem; padding: 1.1rem 0 1.1rem 1.25rem; position: relative; }
.slot::before { content: ""; position: absolute; left: -7px; top: 1.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); }
.slot.is-now::before { background: var(--live); border-color: var(--live); box-shadow: 0 0 12px var(--live); }
.slot.is-now { background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 14%, transparent), transparent 70%); border-radius: 0 var(--r-md) var(--r-md) 0; }
.slot-time { font: 700 1.35rem/1 var(--font-display); font-variant-numeric: tabular-nums; display: grid; gap: .3rem; }
.slot-time small { font: 400 .9rem var(--font-body); color: var(--muted); }
.slot-body h3 { font-size: 1.3rem; margin-bottom: .35rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.slot-host { display: flex; align-items: center; gap: .5rem; margin: 0 0 .3rem; }
.slot-host img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.slot-body p:last-child { margin-bottom: 0; }
.badge-live { display: inline-flex; align-items: center; gap: .4rem; font: 700 .8rem var(--font-body); background: color-mix(in oklab, var(--live) 18%, transparent); color: var(--text); padding: .2rem .6rem .2rem .45rem; border-radius: 999px; }
.badge-live .lamp { width: 9px; height: 9px; }
@media (max-width: 520px) { .slot { grid-template-columns: 64px 1fr; gap: .9rem; } .slot-time { font-size: 1.1rem; } }

/* ---------- Artigo ---------- */
.article { max-width: 780px; padding-top: 2rem; }
.article-head h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); font-weight: 800; margin: .75rem 0 .5rem; text-wrap: balance; }
.back { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; text-decoration: none; }
.article-cover { width: 100%; border-radius: var(--r-lg); margin: 1.5rem 0; }
.article-cover.is-poster { max-height: 80vh; width: auto; margin-inline: auto; }
.article-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 3rem; margin-bottom: 4rem; }
@media (max-width: 860px) { .article-layout { grid-template-columns: 1fr; } }
.prose { font-size: 1.1rem; line-height: 1.75; max-width: 68ch; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose img { border-radius: var(--r-md); margin-block: 1.25rem; }
.prose blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 4px solid var(--accent); color: var(--muted); font-size: 1.2rem; }
.facts { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: .4rem; }
.share { display: flex; gap: .75rem; flex-wrap: wrap; margin: 2rem 0 3rem; }
.side .sec-title { font-size: 1.2rem; }
.people-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.people-mini li { display: flex; gap: .75rem; align-items: center; }
.people-mini img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.people-mini span { display: grid; line-height: 1.3; }

/* ---------- Fotos, vídeos, equipe ---------- */
.album { margin-bottom: 3rem; }
.gallery { columns: 4 220px; column-gap: .75rem; }
.gallery a { display: block; margin-bottom: .75rem; border-radius: var(--r-md); overflow: hidden; break-inside: avoid; }
.gallery img { width: 100%; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 9, 20, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; gap: .75rem; justify-items: center; padding: 3.5rem 4rem; }
.lightbox img { max-height: 80vh; max-width: 100%; width: auto; border-radius: var(--r-sm); }
.lightbox figcaption { color: #eef0fa; }
.lightbox .icon-btn { position: fixed; color: #fff; background: rgba(255, 255, 255, .1); width: 48px; height: 48px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; }
.lb-next { right: 1rem; top: 50%; }
@media (max-width: 600px) { .lightbox figure { padding: 3.5rem .5rem; } .lb-prev, .lb-next { top: auto !important; bottom: 1.5rem; } }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.5rem; margin-bottom: 4rem; }
.video { margin: 0; }
.video-thumb, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--r-md); overflow: hidden; background: #000; cursor: pointer; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.video figcaption { font-weight: 700; margin-top: .6rem; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 3.5rem; }
.person { text-align: center; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); margin-bottom: .9rem; background: var(--surface); }
.person h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.person p { font-size: .95rem; margin-bottom: .4rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; align-content: start; }
.contact-item { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border-radius: var(--r-md); border: 1.5px solid var(--line); color: inherit; text-decoration: none; }
a.contact-item:hover { border-color: var(--accent); }
.contact-item .ic { color: var(--accent-ink); }
.contact-item > span { display: grid; }
.contact-item strong { font-size: .88rem; color: var(--muted); font-weight: 400; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 2rem 0 4rem; flex-wrap: wrap; }
.notfound { text-align: center; padding: 5rem 0; }
.notfound-code { font: 800 clamp(6rem, 20vw, 11rem)/1 var(--font-display); color: var(--accent); margin: 0; letter-spacing: -.05em; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 4rem; padding-top: 3rem; background: var(--bg-2); }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-in { grid-template-columns: 1fr; } }
.footer-brand strong { font: 800 1.4rem var(--font-display); display: block; margin-bottom: .4rem; }
.footer-brand p { color: var(--muted); max-width: 40ch; }
.footer h2 { font-size: 1rem; margin-bottom: .8rem; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.plain a, .plain li { display: inline-flex; gap: .5rem; align-items: center; color: var(--text); text-decoration: none; }
.plain a:hover { color: var(--accent-ink); }
.socials { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--text); }
.socials a:hover { border-color: var(--accent); color: var(--accent-ink); }
.footer-legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 2rem 1.5rem; margin-top: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-legal a { color: inherit; }

/* ---------- Player fixo ---------- */
.player {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, black);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  color: #eef0fa;
}
[data-theme="light"] .player { background: #171a33; }
.player-in { display: flex; align-items: center; gap: 1rem; height: var(--player-h); width: min(100% - 1.5rem, var(--wrap)); margin-inline: auto; }
.player-art { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: cover; background: #2c335d; }
.player-meta { min-width: 0; flex: 1; }
.player-title { margin: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-sub { margin: 0; display: flex; align-items: center; gap: .45rem; font-size: .88rem; color: #a3a9cf; white-space: nowrap; overflow: hidden; }
.player-sub span:last-child { overflow: hidden; text-overflow: ellipsis; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #6b7099; flex: none; }
[data-playing] .live-dot { background: var(--live); box-shadow: 0 0 8px var(--live); }
.play-btn {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 0;
  background: var(--accent); color: var(--on-accent); cursor: pointer; flex: none;
}
.play-btn:hover { transform: scale(1.05); }
.play-btn .spinner { display: none; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--accent); animation: spin .8s linear infinite; }
.player[data-state="loading"] .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-vol { display: flex; align-items: center; gap: .25rem; color: #eef0fa; }
.player-vol .icon-btn { color: inherit; }
.player-vol .icon-btn:hover { background: rgba(255, 255, 255, .08); }
.i-mute { display: none; }
[data-muted] .i-mute { display: inline-flex; }
[data-muted] .i-vol { display: none; }
.player-vol input { width: 110px; accent-color: var(--accent); }
.player-error { margin: 0; text-align: center; font-size: .85rem; background: var(--live); color: #fff; padding: .3rem; }
@media (max-width: 640px) {
  .player-vol { display: none; }
  .player-in { gap: .75rem; }
  .player-art { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
