:root {
  --bg: #0b0b0c;
  --panel: #101011;
  --text: #f4f3ef;
  --muted: #929297;
  --faint: #626268;
  --line: #242427;
  --line-strong: #343438;
  --accent: #a974ff;
  --spotify: #1ed760;
  --youtube: #ff0033;
  --max: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 24px;
}
body.player-open { padding-bottom: 128px; }
a { color: inherit; }
button, input { font: inherit; }
.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
}
.brand-mark {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.brand-mark svg {
  width: 18px;
  height: 18px;
  display: block;
}
.episodes-jump {
  color: var(--muted);
  text-decoration: none;
  font-family: "DM Mono", monospace;
  font-size: 11px;
}
.episodes-jump span { color: var(--accent); margin-left: 5px; }
.episodes-jump:hover { color: var(--text); }

.hero {
  padding: 84px 0 88px;
  border-bottom: 1px solid var(--line);
}
.hero-kicker, .section-label {
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .15em;
}
.hero h1 {
  max-width: 660px;
  margin: 18px 0 0;
  font-size: clamp(28px, 4.15vw, 42px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 600;
}
.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: 12px;
  margin-top: 36px;
}
.platform {
  min-height: 74px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: #111113;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.platform:hover { transform: translateY(-2px); border-color: #57575e; background: #151517; }
.platform-primary { border-color: rgba(30,215,96,.4); }
.platform-primary:hover { border-color: var(--spotify); }
.platform-youtube { border-color: rgba(255,0,51,.4); }
.platform-youtube:hover { border-color: var(--youtube); }
.platform-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.platform-icon svg { width: 32px; height: 32px; display: block; }
.spotify-icon { color: var(--spotify); }
.platform-icon.youtube { color: var(--youtube); }
.platform-icon.youtube svg { width: 31px; height: 23px; }
.platform span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.platform small { color: var(--faint); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .08em; }
.platform strong { font-size: 15px; font-weight: 600; }
.platform b { color: var(--faint); font-size: 16px; font-weight: 400; }
.platform:hover b { color: var(--text); }
.platform-note { margin: 14px 0 0; color: var(--faint); font-size: 11px; }

.episodes { padding: 58px 0 76px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}
.section-head h2 { margin: 8px 0 0; font-size: 28px; letter-spacing: -.035em; font-weight: 600; }
.feed-status { color: var(--faint); font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .02em; }
.episodes-list { border-top: 1px solid var(--line-strong); }
.episode {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 92px;
  gap: 20px;
  align-items: start;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}
.episode-number { padding-top: 2px; color: var(--faint); font-family: "DM Mono", monospace; font-size: 10px; }
.episode-content { min-width: 0; }
.episode-meta { margin-bottom: 8px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .02em; text-transform: uppercase; }
.episode h3 { margin: 0; max-width: 700px; font-size: 21px; line-height: 1.25; letter-spacing: -.025em; font-weight: 600; }
.episode-description { max-width: 690px; margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.episode-actions { display: flex; justify-content: flex-end; align-items: flex-start; gap: 8px; padding-top: 14px; }
.listen-here,
.download-episode {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #111113;
  color: var(--text);
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}
.listen-here:hover,
.download-episode:hover { transform: scale(1.05); border-color: #55565d; background: #171719; }
.episode-glyph { display: block; font-size: 13px; line-height: 1; transform: translateX(1px); }
.download-episode svg { width: 17px; height: 17px; display: block; }
.episode.is-active .listen-here {
  background: #fff;
  border-color: #fff;
  color: #090909;
}
.episode.is-active .episode-glyph { transform: translateX(0); }
.listen-here:disabled { opacity: .4; cursor: not-allowed; }
.listen-here:disabled:hover { transform: none; border-color: var(--line-strong); background: #111113; }
.episode-skeleton { height: 128px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgba(255,255,255,.018), transparent); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
.feed-message { color: var(--muted); line-height: 1.6; }

.footer {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
}
.footer > div:first-child { display: flex; gap: 10px; }
.footer strong { color: var(--muted); font-weight: 500; }
.footer-links { display: flex; gap: 18px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Player: inspirado na hierarquia do Spotify, sem tentar copiar a interface inteira. */
.player {
  position: fixed;
  z-index: 100;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20,20,22,.985);
  border-top: 1px solid #2a2a2d;
  box-shadow: 0 -18px 45px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}
.player-inner {
  min-height: 98px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(330px, 520px) minmax(180px, 1fr);
  gap: 26px;
  align-items: center;
}
.player-nowplaying { min-width: 0; display: flex; align-items: center; gap: 12px; }
.player-art {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 4px;
  background: linear-gradient(145deg, #20182b, #111114 65%);
  border: 1px solid #2b2532;
}
.player-art span { width: 2px; border-radius: 2px; background: var(--accent); }
.player-art span:nth-child(1) { height: 8px; opacity: .45; }
.player-art span:nth-child(2) { height: 17px; opacity: .7; }
.player-art span:nth-child(3) { height: 28px; }
.player-art span:nth-child(4) { height: 15px; opacity: .72; }
.player-art span:nth-child(5) { height: 7px; opacity: .45; }
.player-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.player-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.player-copy span { color: var(--faint); font-size: 10px; }
.player-center { min-width: 0; }
.transport { height: 38px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.play-main {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #090909;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.play-main:hover { transform: scale(1.06); background: #f1f1f1; }
.transport-glyph { display: block; font-size: 15px; line-height: 1; transform: translateX(1px); }
.play-main.is-playing .transport-glyph { transform: translateX(0); font-size: 14px; }
.progress-row { display: grid; grid-template-columns: 38px minmax(0,1fr) 38px; align-items: center; gap: 10px; }
.time { color: #8a8a90; font-family: "DM Mono", monospace; font-size: 9px; font-variant-numeric: tabular-nums; }
.progress-row .time:first-child { text-align: right; }
.range {
  --fill: 0%;
  appearance: none;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(to right, #f1f1f1 0 var(--fill), #4a4a4f var(--fill) 100%);
  cursor: pointer;
}
.range:hover { background: linear-gradient(to right, var(--spotify) 0 var(--fill), #4a4a4f var(--fill) 100%); }
.range::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .12s ease; }
.range:hover::-webkit-slider-thumb { opacity: 1; }
.range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; opacity: 0; }
.range:hover::-moz-range-thumb { opacity: 1; }
.player-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.mute, .close-player { border: 0; background: none; color: #a5a5aa; cursor: pointer; padding: 0; display: grid; place-items: center; }
.mute { width: 24px; height: 24px; }
.mute svg { width: 18px; height: 18px; }
.close-player { width: 26px; height: 26px; margin-left: 6px; font-size: 20px; font-weight: 300; }
.mute:hover, .close-player:hover { color: #fff; }
.volume { width: 92px; }

@media (max-width: 820px) {
  .player-inner { grid-template-columns: minmax(0,1fr) minmax(280px, 1.3fr) auto; gap: 14px; }
  .player-art { display: none; }
  .volume { width: 64px; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 30px), var(--max)); }
  .site-header { min-height: 64px; }
  .hero { padding: 62px 0 64px; }
  .hero h1 { max-width: 560px; font-size: clamp(28px, 8vw, 36px); }
  .hero-copy { font-size: 14px; }
  .platforms { grid-template-columns: 1fr; max-width: 420px; }
  .episodes { padding-top: 46px; }
  .episode { grid-template-columns: 30px minmax(0,1fr); gap: 14px; padding: 22px 0 24px; }
  .episode-actions { grid-column: 2; justify-content: flex-start; padding-top: 0; }
  .episode h3 { font-size: 19px; }
  .episode-description { font-size: 12px; }
  .footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 24px 0; }
  body.player-open { padding-bottom: 168px; }
  .player-inner { min-height: 148px; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 10px 14px; padding-top: 12px; padding-bottom: 12px; }
  .player-nowplaying { grid-column: 1; grid-row: 1; }
  .player-copy strong { max-width: 65vw; }
  .player-center { grid-column: 1 / -1; grid-row: 2; }
  .transport { height: 34px; margin-bottom: 4px; }
  .play-main { width: 32px; height: 32px; }
  .player-tools { grid-column: 2; grid-row: 1; }
  .volume, .mute { display: none; }
  .progress-row { grid-template-columns: 34px 1fr 34px; gap: 7px; }
}

/* Garante que os ícones alternativos nunca apareçam simultaneamente. */
[hidden] {
  display: none !important;
}
