:root {
  --bg: #050505;
  --bg-soft: #0f0a16;
  --card: #171127;
  --card-2: #22193a;
  --purple: #5b3e86;
  --purple-soft: #7d5caf;
  --gold: #f0c62b;
  --gold-soft: #ffe07a;
  --muted: #d3c9df;
  --white: #fbf8ff;
  --header-h: 80px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, #2e1f4c 0%, transparent 26%),
    linear-gradient(180deg, #090909, #050505 52%, #09070d 100%);
  color: var(--white);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { color: var(--muted); }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; line-height: 1.15; margin: 0 0 16px; color: #fff; }
h3 { color: #fff; line-height: 1.25; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--gold); color: #1d1430; padding: 10px 14px;
  font-weight: 800; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.wrap { width: min(1100px, 100% - 32px); margin: auto; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(5, 5, 5, .92);
  border-bottom: 1px solid rgba(240, 198, 43, .2);
  backdrop-filter: blur(14px);
}
.nav { display: flex; justify-content: space-between; align-items: center; min-height: var(--header-h); gap: 20px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 56px; width: auto; filter: drop-shadow(0 0 16px rgba(240, 198, 43, .12)); }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-size: .9rem; text-decoration: none; color: #f0e8ffcc; transition: color .18s ease;
}
.site-nav a:hover { color: var(--gold); }
.nav-toggle { display: none; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 19px;
  background: var(--gold); color: #1d1430; border: 1px solid #f7dc6f; border-radius: var(--radius);
  text-decoration: none; font-weight: 900; box-shadow: 0 10px 28px rgba(240, 198, 43, .16);
  transition: transform .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--gold-soft); }
.btn.secondary { background: transparent; color: var(--white); border-color: rgba(240, 198, 43, .55); box-shadow: none; }
.btn.secondary:hover { background: rgba(240, 198, 43, .08); }
.btn-meta { font-weight: 600; font-size: .8rem; opacity: .7; }

/* Labels */
.eyebrow, .mini-label, .media-label {
  color: var(--gold); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800;
}
.media-label { margin: 0 0 8px; }

/* Hero */
.hero {
  padding: 74px 0 90px;
  background:
    radial-gradient(ellipse at 82% 24%, rgba(91, 62, 134, .58), transparent 44%),
    linear-gradient(180deg, #120d1e, #050505);
  border-bottom: 0;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(255px, .65fr);
  grid-template-areas: "copy media" "ai media";
  column-gap: 54px;
  align-items: center;
}
.hero-copy { grid-area: copy; }
.hero-media { grid-area: media; margin: 0; }
.hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.65rem); line-height: 1.04; letter-spacing: -.05em;
  max-width: 900px; margin: 20px 0; color: #fff;
}
.hero h1 .accent { color: var(--gold); }
.lead { font-size: 1.24rem; max-width: 690px; color: #e4dff0; }

.hero-vertical {
  position: relative; width: min(100%, 340px); margin: auto; aspect-ratio: 9 / 16;
  border-radius: 4px; overflow: hidden; border: 2px solid rgba(240, 198, 43, .45);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(91, 62, 134, .55) inset; background: #251832;
}
.hero-vertical img { width: 100%; height: 100%; object-fit: cover; }
.vertical-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 22px; background: linear-gradient(0deg, rgba(5, 5, 5, .95) 0%, rgba(5, 5, 5, .48) 38%, transparent 72%);
}
.vertical-inner strong { font-size: 1.35rem; line-height: 1.15; color: #fff; }
.vertical-inner small { color: #f6e8ba; font-size: .92rem; }
.video-facade { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; }
.video-play {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; padding-left: 3px;
  background: var(--gold); color: #1d1430; border-radius: 50%; font-size: 20px; transition: transform .18s ease;
}
.video-facade:hover .video-play { transform: scale(1.08); }
.hero-vertical iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ai-feature {
  grid-area: ai; margin-top: 30px; padding: 23px 25px; max-width: 645px;
  border: 1px solid rgba(240, 198, 43, .34); border-left: 4px solid var(--gold); border-radius: 3px;
  background: linear-gradient(110deg, #35244f, #1b1229 77%); box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
}
.ai-label { display: block; text-transform: uppercase; color: #f6d96d; font-weight: 850; font-size: .78rem; letter-spacing: .15em; margin-bottom: 9px; }
.ai-feature h2 { font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.2; letter-spacing: -.02em; margin: 0; }
.ai-feature p { margin: 11px 0 0; font-size: .96rem; line-height: 1.55; color: #e8e0f2; }

/* Sponsor band */
.season-sponsor {
  padding: 21px 0;
  background: linear-gradient(100deg, #110d18, #211533 55%, #151421);
  border-top: 1px solid rgba(240, 198, 43, .18); border-bottom: 1px solid rgba(240, 198, 43, .18);
}
.sponsor-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px 28px; }
.sponsor-copy { display: flex; flex-direction: column; gap: 3px; }
.sponsor-kicker { color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.sponsor-copy p { margin: 0; color: #fff; font-size: 1.05rem; font-weight: 600; text-wrap: balance; }
.sponsor-brand { display: inline-flex; align-items: center; }
.sponsor-brand img { height: 64px; width: auto; }
.sponsor-btn { min-height: 44px; padding: 10px 16px; }

/* Sections */
section { padding: 72px 0; border-bottom: 1px solid rgba(240, 198, 43, .09); }
.sectionlead { max-width: 680px; margin-bottom: 28px; }
.feature-image {
  width: 100%; height: auto; aspect-ratio: 780 / 470; object-fit: cover;
  border-radius: 4px; border: 1px solid rgba(240, 198, 43, .18); box-shadow: 0 16px 42px rgba(0, 0, 0, .22);
}

.card {
  background: linear-gradient(180deg, rgba(34, 25, 58, .98), rgba(18, 12, 31, .98));
  border: 1px solid rgba(240, 198, 43, .16); border-radius: 4px; overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .24);
}
.panel { padding: 28px; }
.panel h3 { margin-top: 0; }

/* Latest episodes (generated by scripts/update_episodes.py) */
.latest { margin-bottom: 40px; }
.latest-title { margin: 0 0 16px; font-size: 1.25rem; }
.episode-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.episode-card a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(240, 198, 43, .16); border-radius: var(--radius);
  overflow: hidden; transition: border-color .18s ease, background-color .18s ease;
}
.episode-card a:hover { border-color: var(--gold); background: rgba(240, 198, 43, .06); }
.episode-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--card); }
.episode-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.episode-no { color: var(--gold); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.episode-body strong {
  font-size: .98rem; line-height: 1.35; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Archive call to action */
.archive-cta { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; padding: 22px 24px; border: 1px solid rgba(240, 198, 43, .22); border-radius: var(--radius); background: rgba(240, 198, 43, .04); }
.archive-cta p { margin: 0; color: #fff; font-size: 1.1rem; font-weight: 600; }

/* 360 */
.immersive-poster {
  display: block; position: relative; overflow: hidden; isolation: isolate;
  border: 2px solid var(--gold); border-radius: var(--radius); text-decoration: none; box-shadow: 0 20px 55px #0006;
}
.immersive-poster img { width: 100%; height: auto; aspect-ratio: 1972 / 898; object-fit: cover; transition: transform .25s ease; }
.immersive-poster:hover img { transform: scale(1.025); }
.immersive-overlay {
  position: absolute; inset: auto 0 0 0; display: flex; align-items: center; gap: 13px; padding: 27px 25px 20px;
  background: linear-gradient(0deg, rgba(2, 2, 5, .92), rgba(2, 2, 5, .55) 65%, transparent); color: #fff;
}
.immersive-play {
  display: grid; place-items: center; flex-shrink: 0; height: 48px; width: 48px; padding-left: 3px;
  background: var(--gold); color: #1d1430; border-radius: 50%; font-size: 19px;
}
.immersive-overlay strong { font-size: 1.4rem; }
.immersive-overlay small { margin-left: auto; color: #f8df81; font-size: .89rem; }

/* Partners */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.logo-slot {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; min-height: 120px;
  padding: 20px; text-align: center; color: #f2e0a5;
  border: 1px dashed rgba(240, 198, 43, .45); border-radius: var(--radius); background: rgba(240, 198, 43, .03);
}
.logo-slot.filled { height: 100%; border-style: solid; border-color: rgba(240, 198, 43, .35); background: rgba(255, 255, 255, .04); text-decoration: none; transition: border-color .18s ease; }
.logo-slot img { display: block; width: auto; height: auto; max-width: 100%; max-height: 64px; }
.logo-slot img.logo-badge { max-height: 84px; }
.logo-slot.filled:hover { border-color: var(--gold); }
.partners-cta { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-top: 22px; }
.partners-cta p { margin: 0; }

/* Media */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; container-type: inline-size; }
.stat { font-size: clamp(1.3rem, 8cqi, 2rem); font-weight: 800; color: var(--gold); white-space: nowrap; line-height: 1.2; }
.stat small { font-size: .55em; margin-left: .15em; }
.micro { font-size: .85rem; color: var(--muted); }
.tiny { color: var(--muted); font-size: .8rem; }
.press-heading { margin: 40px 0 0; }
.press-list { list-style: none; padding: 0; display: grid; gap: 12px; margin: 16px 0 0; }
.press-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px;
  border: 1px solid rgba(240, 198, 43, .16); background: rgba(255, 255, 255, .035); border-radius: var(--radius);
  text-decoration: none; transition: border-color .18s ease, background-color .18s ease;
}
.press-item:hover { border-color: var(--gold); background: rgba(240, 198, 43, .06); }
.press-item small { color: var(--gold); display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.press-item strong { font-size: .96rem; }

/* Contact */
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 15px;
  border: 1px solid rgba(240, 198, 43, .28); border-radius: var(--radius); text-decoration: none; background: rgba(240, 198, 43, .04);
}
.socials a:hover { color: var(--gold); border-color: var(--gold); }
.social-empty { font-size: .9rem; }

footer { padding: 30px 0; color: var(--muted); font-size: .85rem; }

/* 404 */
.not-found { min-height: 70vh; display: grid; place-content: center; text-align: center; padding: 48px 16px; }
.not-found img { margin: 0 auto 24px; }

/* Responsive */
@media (max-width: 960px) {
  .episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .hero { padding: 48px 0 64px; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) 280px; column-gap: 36px; }
  .ai-feature { padding: 20px 22px; }
}

@media (max-width: 700px) {
  .hero-layout { grid-template-columns: 1fr; grid-template-areas: "copy" "media" "ai"; }
  .hero-media { margin-top: 36px; }
  .hero-vertical { width: min(100%, 360px); margin: 0 auto; }
  .hero-media .media-label { text-align: center; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  section { padding: 55px 0; }
  .logo img { height: 44px; }
  .grid { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-slot { min-height: 76px; padding: 12px; }
  .sponsor-line { grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; }
  .sponsor-brand img { height: 52px; }
  .sponsor-copy p { font-size: .95rem; }
  .sponsor-btn { grid-column: 1 / -1; justify-content: center; }
  .logo-slot img { max-height: 40px; }
  .logo-slot img.logo-badge { max-height: 56px; }
  .lead { font-size: 1.1rem; }
  .panel { padding: 22px; }

  /* Collapsible menu; only when JS is available, otherwise links stay visible */
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    background: transparent; color: var(--white); font: inherit; font-weight: 700; cursor: pointer;
    border: 1px solid rgba(240, 198, 43, .55); border-radius: var(--radius);
  }
  .js .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 8px 16px 16px; background: #08060c; border-bottom: 1px solid rgba(240, 198, 43, .2);
  }
  .js .site-nav.open { display: flex; }
  .js .site-nav a { font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .site-nav a { padding: 0 6px; font-size: .8rem; }
}

@media (max-width: 620px) {
  .episode-grid { grid-template-columns: 1fr; }
  .episode-card:nth-child(n + 4) { display: none; }
  .episode-card a { flex-direction: row; align-items: center; }
  .episode-card img { width: 42%; flex-shrink: 0; }
  .episode-body { padding: 10px 12px; }
  .episode-body strong { font-size: .9rem; }
  .immersive-overlay { position: static; background: #0b0811; padding: 14px; gap: 10px; flex-wrap: wrap; }
  .immersive-overlay strong { font-size: 1.08rem; }
  .immersive-overlay small { margin-left: 52px; flex-basis: 100%; margin-top: -8px; }
  .immersive-play { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .btn:hover, .immersive-poster:hover img { transform: none; }
}

/* Hero brand line inside the H1 */
.hero h1 .h1-brand {
  display: block; margin-bottom: 20px; color: var(--gold); text-wrap: balance;
  font-size: .8rem; line-height: 1.5; letter-spacing: .18em; text-transform: uppercase; font-weight: 800;
}
.platforms { margin: 16px 0 0; }
.platforms a { color: var(--gold); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.platforms a:hover { text-decoration: underline; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.about p { max-width: 640px; }
.about-side { display: grid; gap: 20px; }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(240, 198, 43, .16); }
.facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(240, 198, 43, .16); }
.facts dt { color: var(--gold); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; padding-top: 3px; }
.facts dd { margin: 0; color: #fff; }
.facts a { color: var(--gold-soft); display: inline-block; padding: 10px 0; margin: -10px 0; }

/* Sponsorship formats */
.formats { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.formats li { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(240, 198, 43, .16); border-radius: var(--radius); }
.formats strong { color: #fff; }
.formats span { color: var(--muted); font-size: .92rem; }

/* Contact */
.email-line { margin: 14px 0 32px; }
.email-line a { color: var(--gold-soft); font-weight: 700; display: inline-block; padding: 10px 0; margin: -10px 0; }
.actions-tight { margin-top: 12px; margin-bottom: 32px; }

@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 820px) and (min-width: 701px) {
  .about-side { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 28px; }
}

@media (max-width: 700px) {
  .formats { grid-template-columns: 1fr; }
}
