/* ==========================================================
   Como Se Fosse Hoje — estilos
   Conceito da marca: objetos obsoletos em cores impossíveis.
   ========================================================== */

@font-face { font-family: "Gilroy"; src: url("../fonts/Gilroy-ExtraBold.otf") format("opentype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Grotesca"; src: url("../fonts/GrotescaReforma-Magra.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Grotesca"; src: url("../fonts/GrotescaReforma-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Grotesca"; src: url("../fonts/GrotescaReforma-Tres-quartos.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Grotesca Cond"; src: url("../fonts/GrotescaReforma-RegularCondensada.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Grotesca Cond"; src: url("../fonts/GrotescaReforma-NegritoCondensada.otf") format("opentype"); font-weight: 600; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --lime: #D9D60B;      /* Pantone 388C */
  --purple: #2E003D;    /* Pantone 2627C */
  --orange: #9A3000;    /* laranja de leitura (contraste AA sobre o verde) */
  --orange-deep: #7A2400;
  --orange-hot: #F26A1B;

  /* Modo claro: fundo verde, conteúdo laranja */
  --bg: var(--lime);
  --ink: var(--orange);
  --title: var(--orange-deep);
  --title-bg: transparent;
  --accent: var(--orange-hot);
  --btn-bg: var(--purple);   /* botões e controles clicáveis: roxo da marca */
  --btn-ink: var(--lime);
  --ctl: var(--purple);      /* contorno e ícone dos controles (ghost, ícones, abas, campos) */
  --band-bg: var(--orange);  /* faixa do PicPay */
  --band-ink: var(--lime);
  --line: rgba(154, 48, 0, .35);
  --soft: rgba(154, 48, 0, .08);
  --duo-dark: var(--orange);
  --duo-light: var(--lime);

  --font-display: "Gilroy", "Arial Black", sans-serif;
  --font-body: "Grotesca", "Helvetica Neue", Arial, sans-serif;
  --font-label: "Grotesca Cond", "Arial Narrow", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  color-scheme: light;
}

/* Modo escuro: fundo roxo, títulos em preto, conteúdo em branco.
   Preto sobre roxo não tem contraste, então os títulos ganham uma
   "fita" verde por trás — como as etiquetas dos dials antigos. */
:root[data-theme="dark"] {
  --bg: var(--purple);
  --ink: #FFFFFF;
  --title: #000000;
  --title-bg: var(--lime);
  --accent: var(--lime);
  --btn-bg: var(--lime);
  --btn-ink: #000000;
  --ctl: #FFFFFF;
  --band-bg: var(--lime);
  --band-ink: #000000;
  --line: rgba(255, 255, 255, .3);
  --soft: rgba(255, 255, 255, .07);
  --duo-dark: var(--purple);
  --duo-light: var(--lime);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  transition: background-color .35s ease, color .35s ease;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--btn-bg); color: var(--btn-ink); padding: 10px 14px; z-index: 50; }
.skip:focus { top: 12px; }

/* Títulos: laranja no claro, preto sobre fita verde no escuro */
.t {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--title);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.02;
}
.t > span, .t.tape {
  background: var(--title-bg);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
:root[data-theme="dark"] .t > span, :root[data-theme="dark"] .t.tape { padding: .02em .22em; }

.label {
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .8rem;
  line-height: 1.3;
}
.meta { font-family: var(--font-label); font-size: .95rem; letter-spacing: .02em; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 46px; padding: .6em 1.15em;
  border: 2px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn--ghost:hover { background: var(--soft); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.icon-btn {
  width: 46px; height: 46px; display: inline-grid; place-items: center;
  border-radius: 50%; border: 2px solid currentColor; background: transparent;
  color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 2px solid var(--line); transition: background-color .35s ease; }
.site-header .wrap { display: flex; align-items: center; gap: 12px 20px; min-height: 72px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: .95; color: var(--title); }
:root[data-theme="dark"] .brand-name { color: var(--lime); }
.site-nav { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
.site-nav .nav-link { font-weight: 700; text-decoration: none; padding: 8px 2px; border-bottom: 2px solid transparent; }
.site-nav .nav-link:hover, .site-nav .nav-link[aria-current="page"] { border-bottom-color: currentColor; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.site-nav .short { display: none; }
@media (max-width: 560px) {
  .site-header .wrap { flex-wrap: nowrap; gap: 10px; min-height: 64px; }
  .brand { gap: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: .95rem; white-space: nowrap; }
  .site-nav { gap: 8px; flex-wrap: nowrap; }
  .site-nav .nav-link { font-size: .95rem; }
  .site-nav .long { display: none; }
  .site-nav .short { display: inline; }
  .site-nav .btn { min-height: 40px; padding-inline: .9em; font-size: .95rem; }
  .site-nav .icon-btn { width: 40px; height: 40px; }
  .panel { scroll-margin-top: 80px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 4.6rem); line-height: .98; }
:root[data-theme="dark"] .hero h1 { line-height: 1.12; }
.hero .label { display: block; margin-bottom: 18px; }
.hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34ch; margin: 24px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero-media { order: -1; max-width: 520px; } }

/* Duotone: o rádio antigo pintado com as cores da marca */
.duotone { position: relative; isolation: isolate; background: var(--duo-light); overflow: hidden; border-radius: var(--radius); }
.duotone img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(1.05); mix-blend-mode: multiply; }
.duotone::after { content: ""; position: absolute; inset: 0; background: var(--duo-dark); mix-blend-mode: lighten; pointer-events: none; transition: background-color .35s ease; }
.hero-media { position: relative; }
.hero-media .duotone { aspect-ratio: 4 / 3; border: 2px solid var(--ink); }
.hero-media figcaption { margin-top: 10px; }
.on-air {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg); color: var(--ink); border: 2px solid var(--ink);
  padding: 6px 10px; border-radius: 999px;
}
.on-air::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Seções ---------- */
.section { padding-block: clamp(48px, 7vw, 96px); border-top: 2px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.section-head p { margin: 8px 0 0; max-width: 46ch; }

/* ---------- Dial (carrossel dos últimos episódios) ---------- */
.dial {
  position: relative; height: 92px; overflow: hidden;
  border: 2px solid var(--ink); border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12px) bottom 0 left 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 60px) bottom 0 left 0 / 100% 26px no-repeat,
    var(--soft);
  margin-bottom: 26px;
}
.dial-strip { position: absolute; inset: 0 auto 0 0; display: flex; align-items: flex-start; padding-top: 14px; transition: transform .55s cubic-bezier(.3, .7, .2, 1); will-change: transform; }
.dial-stop {
  width: var(--stop, 160px); flex: none; text-align: center;
  background: none; border: 0; color: var(--ink); cursor: pointer; padding: 4px 0;
  font-family: var(--font-label); font-weight: 600; letter-spacing: .08em; font-size: .9rem; opacity: .55;
  transition: opacity .3s ease;
}
.dial-stop small { display: block; font-weight: 400; letter-spacing: .04em; font-size: .75rem; }
.dial-stop[aria-current="true"] { opacity: 1; }
.dial-needle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--accent); z-index: 2; pointer-events: none; }
.dial-needle::before { content: ""; position: absolute; top: -2px; left: 50%; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--accent); }
:root:not([data-theme="dark"]) .dial-needle, :root:not([data-theme="dark"]) .dial-needle::before { background: var(--orange-deep); }

.carousel { position: relative; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 330px);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px calc(50% - min(41%, 165px)) 18px;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.ep-card {
  scroll-snap-align: center; display: flex; flex-direction: column;
  border: 2px solid var(--ink); border-radius: var(--radius);
  text-decoration: none; overflow: hidden;
  transition: transform .35s ease, opacity .35s ease;
  opacity: .62; transform: scale(.94);
}
.ep-card.is-active { opacity: 1; transform: none; }
.ep-card img { aspect-ratio: 1; width: 100%; object-fit: cover; border-bottom: 2px solid var(--ink); background: var(--soft); }
.ep-card .body { padding: 16px 16px 18px; display: grid; gap: 8px; }
.ep-card h3 { font-size: 1.45rem; }
.ep-card .go { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
.ep-card:hover h3 > span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
.knob {
  width: 56px; height: 56px; border-radius: 50%; cursor: pointer; color: var(--ink);
  border: 2px solid var(--ink);
  background: repeating-conic-gradient(var(--soft) 0 6deg, transparent 6deg 12deg), var(--bg);
  display: grid; place-items: center;
  transition: transform .45s cubic-bezier(.3, .7, .2, 1);
}
.knob svg { width: 22px; height: 22px; }
.knob:disabled { opacity: .35; cursor: default; }
.carousel-status { min-width: 9ch; text-align: center; }

/* ---------- PicPay ---------- */
.support { background: var(--band-bg); color: var(--band-ink); border-top: 0; }
.support .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.support h2 { color: var(--band-ink); font-size: clamp(1.9rem, 4vw, 3.2rem); }
:root[data-theme="dark"] .support h2 > span { background: none; padding: 0; }
.support p { margin: 12px 0 0; max-width: 48ch; font-size: 1.15rem; }
.support .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); min-height: 56px; padding-inline: 1.5em; font-size: 1.1rem; }
@media (max-width: 720px) { .support .wrap { grid-template-columns: 1fr; } }

/* ---------- Rodapé ---------- */
.site-footer { padding-block: 48px; border-top: 2px solid var(--line); }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.site-footer ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.site-footer p { margin: 10px 0 0; }

/* ---------- Lista de episódios ---------- */
.page-head { padding-block: clamp(36px, 6vw, 72px) 24px; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
.page-head p { margin: 14px 0 0; font-size: 1.15rem; }
.filters {
  display: grid; grid-template-columns: minmax(0, 1fr) 190px 170px auto; gap: 14px; align-items: end;
  margin-top: 28px; max-width: 980px;
}
.field { display: grid; gap: 6px; }
.filters input, .filters select {
  font: inherit; color: var(--ink); background: var(--soft); width: 100%;
  border: 2px solid var(--ink); border-radius: var(--radius); padding: 11px 14px; min-height: 50px;
}
.filters input::placeholder { color: var(--ink); opacity: .6; }
.input-icon, .select { position: relative; }
.input-icon .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; pointer-events: none; }
.input-icon input { padding-left: 44px; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; }
.select select option { color: #000; background: #fff; }
.select .ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; pointer-events: none; }
.filters .btn { min-height: 50px; }
.filters .btn[hidden] { display: none; }
.result { margin-top: 14px !important; font-size: 1rem !important; min-height: 1.4em; }
@media (max-width: 820px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .field--search { grid-column: 1 / -1; }
  .filters .btn { grid-column: 1 / -1; justify-self: start; }
}
.year { padding-block: 26px 10px; }
.year h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 10px; }
.ep-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ep-row a {
  display: grid; grid-template-columns: 64px 5.5rem minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 12px 6px; border-bottom: 1px solid var(--line); text-decoration: none;
}
.ep-row a:hover { background: var(--soft); }
.ep-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; }
.ep-row .num { font-family: var(--font-label); font-weight: 600; letter-spacing: .06em; }
.ep-row .name { font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.ep-row .facts { justify-content: flex-end; }
@media (max-width: 640px) {
  .ep-row a { grid-template-columns: 56px minmax(0, 1fr); gap: 4px 14px; }
  .ep-row img { width: 56px; height: 56px; grid-row: span 3; }
  .ep-row .num, .ep-row .name, .ep-row .facts { grid-column: 2; }
  .ep-row .facts { justify-content: flex-start; }
}
.empty { padding: 28px 0; font-size: 1.1rem; }

/* ---------- Página do episódio ---------- */
.crumb { padding-top: 22px; }
.crumb a { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.crumb a:hover { text-decoration: underline; }
.ep-hero { padding-block: 22px 28px; }
.ep-hero .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: end; }
.ep-hero .cover { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); border-radius: var(--radius); }
.ep-hero h1 { font-size: clamp(2.1rem, 5vw, 4.2rem); margin: 10px 0 14px; }
:root[data-theme="dark"] .ep-hero h1 { line-height: 1.14; }
.ep-meta { margin-bottom: 20px; font-size: 1.05rem; }
.ep-meta .ic { width: 17px; height: 17px; }
.ep-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Mobile: tag, título e data/duração primeiro; depois a capa quadrada na largura toda; depois os botões */
@media (max-width: 640px) {
  .ep-hero .wrap { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .ep-hero .wrap > div { display: contents; }
  .ep-hero .label { order: 1; }
  .ep-hero h1 { order: 2; }
  .ep-hero .ep-meta { order: 3; }
  .ep-hero .cover { order: 4; width: 100%; height: auto; aspect-ratio: 1 / 1; margin-bottom: 20px; }
  .ep-hero .ep-actions { order: 5; }
}

.player { padding-bottom: 8px; }
.player-frame { min-height: 152px; border-radius: 12px; overflow: hidden; background: var(--soft); }
.player-frame iframe { display: block; width: 100%; height: 152px; border: 0; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; }
.platforms .label { margin-right: 6px; }

.ep-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(28px, 4vw, 56px); align-items: start; padding-block: 36px 56px; }
@media (max-width: 767px) { .ep-layout { grid-template-columns: 1fr; } }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.prose p { margin: 0 0 1em; max-width: 62ch; font-size: 1.15rem; }
.credits { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; }
.credits p { font-size: .95rem; margin: 0 0 .35em; overflow-wrap: anywhere; }

/* Painel lateral: transcrição + materiais */
.panel { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 768px) { .panel { position: sticky; top: 92px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; } }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--ink); }
.tab {
  font: inherit; font-weight: 700; color: var(--ink); background: transparent; border: 0; cursor: pointer;
  padding: 14px 10px; min-height: 50px; display: inline-flex; justify-content: center; align-items: center; gap: 8px;
}
.tab + .tab { border-left: 2px solid var(--ink); }
.tab[aria-selected="true"] { background: var(--btn-bg); color: var(--btn-ink); }
.tab .count { font-family: var(--font-label); font-size: .85rem; border: 1.5px solid currentColor; border-radius: 999px; padding: 0 7px; }
.tabpanel { padding: 18px; overflow-y: auto; overscroll-behavior: contain; }
.tabpanel[hidden] { display: none; }
.note { font-size: .9rem; padding: 10px 12px; border: 1.5px dashed var(--ink); border-radius: var(--radius); margin: 0 0 16px; }
.transcript { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.transcript li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
.ts {
  font-family: var(--font-label); font-weight: 600; font-size: .85rem; letter-spacing: .04em;
  color: var(--ink); background: var(--soft); border: 1.5px solid var(--line); border-radius: 4px;
  padding: 3px 7px; height: fit-content; cursor: pointer;
}
.ts:hover { border-color: currentColor; }
.transcript .who { display: block; font-weight: 700; font-size: .9rem; }
.transcript p { margin: 2px 0 0; font-size: 1rem; }
.materials { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.material { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1.5px solid var(--line); border-radius: var(--radius); }
.material .thumb { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; display: grid; place-items: center; background: var(--soft); font-family: var(--font-label); font-weight: 600; letter-spacing: .06em; border: 1.5px solid var(--line); }
.material .name { font-weight: 700; line-height: 1.25; }
.material .meta { font-size: .85rem; opacity: .85; }
.material .btn { min-height: 40px; padding: .5em .9em; font-size: .9rem; }
.download-all { margin-top: 16px; width: 100%; justify-content: center; }

/* Anterior / próximo */
.ep-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 56px; }
.ep-nav a { display: grid; gap: 6px; padding: 18px 20px; border: 2px solid var(--ink); border-radius: var(--radius); text-decoration: none; }
.ep-nav a:hover { background: var(--soft); }
.ep-nav .next { text-align: right; grid-column: 2; }
.ep-nav .name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1.1; }
@media (max-width: 560px) { .ep-nav { grid-template-columns: 1fr; } .ep-nav .next { grid-column: 1; } }

/* Recomendados */
/* Ouça também: 4 episódios no desktop (4 colunas) e no tablet (2 × 2); 3 no mobile */
.recs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.recs .ep-card h3 { font-size: 1.25rem; }
/* Tablet: uma linha horizontal; o que não cabe vira carrossel (arrastar para o lado) */
@media (min-width: 768px) and (max-width: 1023px) {
  .recs {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 260px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scroll-padding-inline: var(--gutter);
    scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
  }
  .recs .ep-card { scroll-snap-align: start; }
}
@media (max-width: 767px) { .recs { grid-template-columns: 1fr; } .recs .ep-card:nth-child(n + 4) { display: none; } }
.recs .ep-card { opacity: 1; transform: none; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--btn-bg); color: var(--btn-ink); padding: 12px 18px; border-radius: 999px; font-weight: 700;
  transition: opacity .25s ease, transform .25s ease; pointer-events: none; z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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

/* ---------- Ícones (Lucide + logos das plataformas) ---------- */
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.icon-btn .ic { width: 22px; height: 22px; }
.icon-btn .logo-ic { width: 24px; height: 24px; }
.btn-spotify .logo-ic { width: 1.3em; height: 1.3em; }
.knob .ic { width: 24px; height: 24px; }
.tab .ic { width: 18px; height: 18px; }
.material .thumb .ic { width: 26px; height: 26px; }
.ep-nav .label { display: inline-flex; align-items: center; gap: 6px; }
.ep-nav .next .label { justify-content: flex-end; }
.ep-nav .ic { width: 15px; height: 15px; }
a.icon-btn { text-decoration: none; }
/* Logos das plataformas: ocupam o botão inteiro, com 4px de respiro até a borda */
.platform-icons .icon-btn .ic, .platforms .icon-btn .ic { width: calc(100% - 8px); height: calc(100% - 8px); }

/* Mobile: botão do Spotify no cabeçalho só com o ícone */
@media (max-width: 560px) {
  .site-nav .btn-spotify { width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .site-nav .btn-spotify .btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-nav .btn-spotify .logo-ic { width: 28px; height: 28px; }
}

/* Data e duração com ícones */
.facts { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.fact { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fact .ic { width: 15px; height: 15px; vertical-align: 0; }

/* Plataformas como botões de ícone */
.platforms .icon-btn { width: 48px; height: 48px; }
.site-footer .platform-icons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* Arrastar o dial e os cards com o mouse */
@media (hover: hover) and (pointer: fine) {
  .track, .dial { cursor: grab; }
}
.track.is-dragging, .dial.is-dragging { cursor: grabbing; user-select: none; }
.track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; }
.track.is-dragging .ep-card { pointer-events: none; }
.dial.is-dragging .dial-strip { transition-duration: .15s; }
.ep-card img { -webkit-user-drag: none; user-select: none; }

/* ---------- Player fixo no rodapé (áudio nativo) ---------- */
body.has-mini { padding-bottom: 104px; }
body.has-mini .toast { bottom: 118px; }
.mini {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--bg); border-top: 2px solid var(--ink);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .14);
  transition: background-color .35s ease;
}
.mini-in {
  display: grid; align-items: center; gap: 8px 16px; padding-block: 12px;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  grid-template-areas: "play cover main actions";
}
.mini-play {
  grid-area: play; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--btn-bg); color: var(--btn-ink);
}
.mini-play .ic { width: 24px; height: 24px; }
.mini.is-loading .mini-play { animation: mini-wait .7s ease-in-out infinite alternate; }
@keyframes mini-wait { from { opacity: 1; } to { opacity: .55; } }
.mini-cover { grid-area: cover; width: 52px; height: 52px; border-radius: 4px; object-fit: cover; border: 1.5px solid var(--ink); }
.mini-main { grid-area: main; min-width: 0; display: grid; gap: 4px; }
.mini-head { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.mini-tag { flex: none; font-size: .72rem; white-space: nowrap; }
.mini-title {
  min-width: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none;
}
.mini-title:hover { text-decoration: underline; }
.mini-progress { display: flex; align-items: center; gap: 10px; }
.mini-time { font-family: var(--font-label); font-size: .88rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; min-width: 4.4ch; }
.mini-time[data-dur] { text-align: right; }

/* Barra de progresso com as cores da marca */
.mini-seek {
  flex: 1; min-width: 0; height: 22px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none; --p: 0%;
}
.mini-seek::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--ink) var(--p), var(--line) var(--p));
}
.mini-seek::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line); }
.mini-seek::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--ink); }
.mini-seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--bg);
}
.mini-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid var(--bg); }
.mini-seek:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 999px; }

.mini-actions { grid-area: actions; display: flex; align-items: center; gap: 8px; }
.mini .icon-btn { width: 42px; height: 42px; }
.mini .icon-btn .ic { width: 20px; height: 20px; }
.mini-speed {
  min-width: 54px; height: 42px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  border: 2px solid currentColor; background: transparent; color: var(--ink);
  font-family: var(--font-label); font-weight: 600; font-size: .95rem; letter-spacing: .03em;
}
.mini-speed:hover { background: var(--soft); }

/* Mobile: play + título + compartilhar/baixar em cima, progresso embaixo */
@media (max-width: 640px) {
  body.has-mini { padding-bottom: 112px; }
  .mini-in {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "play main actions" "prog prog prog";
    gap: 6px 12px; padding-block: 8px 6px;
  }
  .mini-cover, .mini-skip, .mini-speed { display: none; }
  .mini-play { width: 46px; height: 46px; }
  .mini-play .ic { width: 21px; height: 21px; }
  .mini-main { display: contents; }
  .mini-head { grid-area: main; flex-direction: column; align-items: flex-start; gap: 0; }
  .mini-title { font-size: .98rem; max-width: 100%; }
  .mini-progress { grid-area: prog; }
  .mini-actions { gap: 6px; }
  .mini .icon-btn { width: 38px; height: 38px; }
  .mini .icon-btn .ic { width: 18px; height: 18px; }
}

/* ---------- Dropdown dos filtros (Mês / Ano) ---------- */
.dd { position: relative; }
.dd-btn {
  width: 100%; min-height: 50px; padding: 11px 42px 11px 14px; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink); background: var(--soft);
  border: 2px solid var(--ink); border-radius: var(--radius);
}
.dd-btn[aria-expanded="true"] { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.dd .ic { transition: transform .2s ease; }
.dd-btn[aria-expanded="true"] ~ .ic { transform: translateY(-50%) rotate(180deg); }
.dd-list {
  position: absolute; z-index: 25; left: 0; right: 0; top: calc(100% - 2px);
  margin: 0; padding: 6px; list-style: none;
  max-height: 290px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
  font-family: var(--font-body); font-size: 1.0625rem;
}
.dd-list:focus { outline: none; }
.dd-list:focus-visible { box-shadow: 0 14px 30px rgba(0, 0, 0, .18), inset 0 0 0 2px var(--accent); }
.dd-list li { padding: 9px 12px; border-radius: 4px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.dd-list li.is-active { background: var(--soft); text-decoration: underline; text-underline-offset: .2em; }
.dd-list li[aria-selected="true"] { background: var(--btn-bg); color: var(--btn-ink); font-weight: 700; }
.dd-list li[aria-selected="true"]::after { content: "✓"; font-weight: 700; }
.dd-list { scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }

/* Botão do PicPay ocupa a largura toda no mobile */
@media (max-width: 720px) {
  .support .btn { width: 100%; justify-content: center; }
}

/* Capa sempre completa: a imagem segue a largura do card (quadrada, sem corte) */
.ep-card img { height: auto; aspect-ratio: 1 / 1; }
/* Card com a largura exata da capa (300px) em todas as telas.
   Em telas muito estreitas, encolhe para caber sem rolagem lateral. */
.track { grid-auto-columns: min(300px, calc(100vw - 48px)); padding-inline: calc(50% - min(150px, calc(50vw - 24px))); }

/* ---------- Player completo (gaveta) — só no mobile ---------- */
.mini-grip, .mini-sheet { display: none; }
@media (max-width: 640px) {
  body.has-mini { padding-bottom: 120px; }
  .mini-in { position: relative; padding-top: 16px; touch-action: none; }
  /* Puxador: indica que dá para arrastar para cima */
  .mini-grip {
    display: grid; place-items: center; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 72px; height: 16px; padding: 0; border: 0; background: none; cursor: grab; color: var(--ink);
  }
  .mini-grip span { width: 38px; height: 4px; border-radius: 999px; background: currentColor; opacity: .55; }
  .mini-head { cursor: pointer; }

  .mini-sheet {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 40;
    background: var(--bg); color: var(--ink);
    transform: translateY(100%); visibility: hidden;
    transition: transform .38s cubic-bezier(.3, .7, .2, 1), visibility 0s linear .38s;
  }
  .mini.is-open .mini-sheet { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.3, .7, .2, 1), visibility 0s; }
  .mini.is-dragging .mini-sheet { visibility: visible; transition: none; }
  html.sheet-open { overflow: hidden; }

  .sheet-top {
    position: relative; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
    padding: 18px 16px 8px; touch-action: none; text-align: center;
  }
  .sheet-handle { position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 999px; background: currentColor; opacity: .55; }
  .sheet-close { width: 42px; height: 42px; }
  .sheet-top .mini-tag { font-size: .78rem; }

  .sheet-body {
    flex: 1; overflow-y: auto; overscroll-behavior: contain;
    display: flex; flex-direction: column; gap: 18px;
    padding: 8px 24px calc(24px + env(safe-area-inset-bottom));
  }
  .sheet-cover {
    width: 100%; max-width: min(100%, 44vh); height: auto; aspect-ratio: 1 / 1; align-self: center;
    object-fit: cover; border: 2px solid var(--ink); border-radius: var(--radius); touch-action: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
  }
  .sheet-info { display: grid; gap: 6px; }
  .sheet-title { font-family: var(--font-display); font-weight: 800; font-size: 1.65rem; line-height: 1.08; text-decoration: none; color: var(--ink); }
  .sheet-title:hover { text-decoration: underline; }
  .sheet-body .mini-progress { gap: 10px; }
  .sheet-body .mini-time { font-size: .95rem; }

  .sheet-controls { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 18px; }
  .sheet-controls .mini-speed { justify-self: start; }
  .sheet-skip { width: 52px; height: 52px; }
  .sheet-skip .ic { width: 24px; height: 24px; }
  .sheet-play {
    width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; background: var(--btn-bg); color: var(--btn-ink);
  }
  .sheet-play .ic { width: 32px; height: 32px; }
  .mini.is-loading .sheet-play { animation: mini-wait .7s ease-in-out infinite alternate; }

  .sheet-actions { display: grid; gap: 10px; margin-top: 4px; }
  .sheet-actions .btn { justify-content: center; width: 100%; min-height: 50px; }
  .sheet-spotify .logo-ic { width: 1.35em; height: 1.35em; }
  .sheet-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 640px) {
  .sheet-controls .mini-speed { display: inline-block; }
  .sheet-body { justify-content: safe center; }
}
@media (max-width: 640px) {
  /* Fechar à direita, rótulo no centro */
  .sheet-top .mini-tag { grid-column: 2; grid-row: 1; }
  .sheet-close { grid-column: 3; grid-row: 1; }
  /* Linha de controles: velocidade · voltar · play · avançar · baixar */
  .sheet-controls { grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 8px; }
  .sheet-controls .mini-speed {
    justify-self: center; min-width: 52px; height: 52px; padding: 0;
    border: 0; background: none; font-size: 1.1rem; font-weight: 600;
  }
  .sheet-controls .mini-speed:hover { background: none; text-decoration: underline; text-underline-offset: .2em; }
  .sheet-one { display: grid; }
}
@media (max-width: 640px) {
  /* Voltar · play · avançar centralizados na tela; velocidade e baixar nas pontas */
  .sheet-controls { grid-template-columns: 1fr auto auto auto 1fr; justify-content: stretch; gap: 14px; }
  .sheet-controls .mini-speed { justify-self: start; }
  .sheet-controls [data-download] { justify-self: end; border: 0; background: none; width: 52px; }
  .sheet-controls [data-download]:hover { background: var(--soft); }
}
@media (max-width: 640px) {
  .mini .sheet-controls .sheet-skip .ic { width: 24px; height: 24px; }
}

/* ---------- Cor dos controles clicáveis ----------
   Modo claro: roxo da marca (#2E003D). Modo escuro: branco (como antes).
   Conteúdo (textos, cards, lista, dial) continua na cor de leitura. */
.btn--ghost, .icon-btn, .knob, .mini-speed, .mini-grip, .ts,
.site-nav .nav-link, .crumb a, .ep-nav a, .dd-btn, .filters input, .input-icon .ic, .select .ic { color: var(--ctl); }
.knob, .dd-btn, .filters input, .ep-nav a { border-color: var(--ctl); }
.filters input::placeholder { color: var(--ctl); }
.tabs { border-bottom-color: var(--ctl); }
.tab { color: var(--ctl); }
.tab + .tab { border-left-color: var(--ctl); }
.tab[aria-selected="true"] { color: var(--btn-ink); }
.ts { border-color: color-mix(in srgb, var(--ctl) 40%, transparent); }
.support .btn { color: var(--ctl); }
.mini-seek::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--ctl) var(--p), color-mix(in srgb, var(--ctl) 30%, transparent) var(--p)); }
.mini-seek::-moz-range-track { background: color-mix(in srgb, var(--ctl) 30%, transparent); }
.mini-seek::-moz-range-progress { background: var(--ctl); }
.mini-seek::-webkit-slider-thumb { background: var(--ctl); }
.mini-seek::-moz-range-thumb { background: var(--ctl); }
.mini-grip span, .sheet-handle { background: var(--ctl); }
@media (max-width: 640px) {
  .mini-head { min-width: 0; }
  .mini-tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Esqueletos de carregamento ---------- */
.sk {
  display: block; border-radius: 4px;
  background: linear-gradient(90deg, var(--soft) 30%, color-mix(in srgb, var(--ink) 15%, transparent) 50%, var(--soft) 70%) 0 0 / 300% 100%;
  animation: sk-shine 1.4s ease-in-out infinite;
}
@keyframes sk-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sk-line { height: .9em; margin: .45em 0; max-width: 100%; }
.sk-h1 { height: clamp(2rem, 5vw, 4rem); margin: .25em 0; max-width: 100%; }
.sk-h2 { height: clamp(1.6rem, 3vw, 2.4rem); max-width: 100%; }
.sk-title { height: 1.5rem; width: 85%; margin: .3em 0; }
.sk-gap { height: 18px; }
.sk-pill { height: 46px; border-radius: 999px; max-width: 100%; }
.sk-media { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.sk-dial { height: 92px; border-radius: var(--radius); margin-bottom: 26px; }
.sk-cover { width: 100%; aspect-ratio: 1 / 1; border-radius: 0; }
.sk-card { opacity: 1 !important; transform: none !important; border-color: var(--line); pointer-events: none; }
.sk-card .sk-cover { border-bottom: 2px solid var(--line); }
.sk-track { overflow: hidden; }
.sk-field { height: 50px; border-radius: var(--radius); }
.sk-player { height: 152px; border-radius: 12px; }
.sk-panel { height: 340px; border-radius: var(--radius); }
.ep-hero .sk-cover { border-radius: var(--radius); }
.ep-actions .sk-pill { flex: none; }

/* Linha da lista no mesmo grid das linhas reais */
.sk-row { display: grid; grid-template-columns: 64px 5.5rem minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.sk-thumb { width: 64px; height: 64px; border-radius: 3px; }
.sk-row .sk-line { margin: 0; }
@media (max-width: 640px) {
  .sk-row { grid-template-columns: 56px minmax(0, 1fr); gap: 6px 14px; }
  .sk-thumb { width: 56px; height: 56px; grid-row: span 3; }
  .ep-hero .sk-ep-text .sk-h1 { order: 2; }
}

/* Capas: brilho no lugar da imagem até ela baixar */
:is(.ep-card img, .ep-row img, .ep-hero .cover, .mini-cover, .sheet-cover, img.thumb):not(.is-loaded) {
  background: linear-gradient(90deg, var(--soft) 30%, color-mix(in srgb, var(--ink) 15%, transparent) 50%, var(--soft) 70%) 0 0 / 300% 100%;
  animation: sk-shine 1.4s ease-in-out infinite;
}
/* Player do Spotify: brilho até o embed carregar */
.player-frame:not(.is-ready) {
  background: linear-gradient(90deg, var(--soft) 30%, color-mix(in srgb, var(--ink) 15%, transparent) 50%, var(--soft) 70%) 0 0 / 300% 100%;
  animation: sk-shine 1.4s ease-in-out infinite;
}
.ep-hero .sk-cover { border-color: var(--line); }
