/* The Ananya Subramanian Show — cinematic editorial */
:root {
  --bg: #0b0b0c;
  --bg-2: #131315;
  --text: #f2efe9;
  --muted: rgba(242, 239, 233, .7);
  --faint: rgba(242, 239, 233, .14);
  --accent: #ff6a1a;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --radius: 5px;
  --pad: clamp(20px, 4vw, 56px);
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }

.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 {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

.accent, .accent-text { color: var(--accent); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }
.display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  line-height: .92; letter-spacing: .005em; margin: 0;
}
.display .serif { font-size: 1.06em; line-height: 1; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 44px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 14px/1 var(--sans); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.pill svg { width: 16px; height: 16px; flex: none; }
.pill:hover { transform: translateY(-2px); }
.pill--light { background: var(--text); color: var(--bg); }
.pill--light:hover { background: #fff; }
.pill--accent { background: var(--accent); color: var(--bg); }
.pill--accent:hover { background: #ff8441; }
.pill--outline { border-color: rgba(242, 239, 233, .45); color: var(--text); background: transparent; }
.pill--outline:hover { border-color: var(--text); background: rgba(242, 239, 233, .06); }
.pill--dark { background: var(--bg); color: var(--text); }
.pill--dark:hover { background: #000; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 1. HUD ---------- */
.hud {
  position: relative; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 8px var(--pad);
  border-bottom: 1px solid var(--faint);
  font: 500 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; font-variant-caps: all-small-caps;
  color: var(--muted);
}
.hud__left { display: flex; align-items: center; gap: 8px; }
.hud__rec { color: var(--accent); font-weight: 600; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 1.1s steps(1, end) infinite; }
.hud__mid { color: var(--text); white-space: nowrap; }
.hud__right { display: flex; justify-content: flex-end; gap: 8px; }
@keyframes blink { 50% { opacity: .15; } }

/* ---------- 2. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 25;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--pad);
  background: rgba(11, 11, 12, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--faint);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { font-family: var(--display); text-transform: uppercase; font-size: 20px; letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: 14px; color: var(--muted);
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px; transition: color .3s var(--ease), background-size .5s var(--ease);
}
.nav a:hover { color: var(--text); background-size: 100% 1px; }

/* ---------- 3. Hero ---------- */
.hero { padding: clamp(56px, 10vh, 120px) var(--pad) clamp(40px, 7vh, 80px); }
.eyebrow {
  margin: 0 0 28px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.eyebrow span { color: var(--accent); margin: 0 .4em; }
.hero__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.5rem, 10.2vw, 12.5rem); line-height: .9; letter-spacing: .005em;
  margin: 0;
}
.hero__title .line { display: block; }
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; overflow: hidden; vertical-align: top; padding-top: .04em; margin-top: -.04em; }
.char > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 28ms + 120ms); }
.hero__title.in .char > span { transform: none; }
.hero__sub {
  margin: clamp(22px, 3vw, 36px) 0 0;
  font: 400 clamp(1.5rem, 3.2vw, 2.9rem)/1.15 var(--serif); color: var(--text);
}
.rotator { display: inline-block; height: 1.15em; overflow: hidden; vertical-align: bottom; }
.rotator__list { display: flex; flex-direction: column; transition: transform .8s var(--ease); }
.rotator__list > span { display: block; height: 1.15em; font-style: italic; color: var(--accent); white-space: nowrap; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4vw, 44px); }

/* ---------- Frames / scanlines ---------- */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 50% 40%, transparent 60%, rgba(0, 0, 0, .45));
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }

/* ---------- 4. Filmstrip ---------- */
.filmstrip { padding: 8px 0 40px; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); }
.filmstrip__viewport { overflow: hidden; padding: 28px 0 18px; }
.filmstrip__track { display: flex; gap: 16px; width: max-content; animation: film 70s linear infinite; }
.filmstrip:hover .filmstrip__track { animation-play-state: paused; }
.film-frame { width: 300px; height: 400px; flex: none; }
.film-frame--empty { background: linear-gradient(160deg, #1c1a18, #0f0f11); }
.film-frame__num, .film-frame__sport {
  position: absolute; z-index: 2; font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; color: var(--text); text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}
.film-frame__num { top: 14px; right: 14px; }
.film-frame__sport { bottom: 14px; left: 14px; }
.film-frame__sport::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
@keyframes film { to { transform: translateX(-50%); } }
.countdown { margin: 0; text-align: center; font: 500 12px/1 var(--sans); letter-spacing: .3em; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 150px) var(--pad); border-bottom: 1px solid var(--faint); }
.section__label {
  display: flex; align-items: center; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px);
  font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.section__label span { color: var(--accent); font-variant-numeric: tabular-nums; }
.section__label::after { content: ""; flex: 1; height: 1px; background: var(--faint); }

/* ---------- 5. About ---------- */
.about__top { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.about__title { font-size: clamp(2.8rem, 7vw, 7.2rem); }
.about__lede { margin: 0; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--muted); max-width: 46ch; }
.pillars { list-style: none; padding: 0; margin: clamp(56px, 8vw, 110px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--faint); }
.pillar { padding: 32px clamp(18px, 2.5vw, 40px) 8px; border-left: 1px solid var(--faint); }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar__num { display: block; font: 400 15px/1 var(--display); color: var(--accent); letter-spacing: .1em; margin-bottom: 26px; }
.pillar__title { margin: 0 0 12px; font: 400 clamp(1.6rem, 2.4vw, 2.2rem)/1 var(--display); text-transform: uppercase; }
.pillar p { margin: 0; color: var(--muted); max-width: 36ch; }

/* ---------- 6. Statement ---------- */
.statement { padding: clamp(90px, 14vw, 200px) var(--pad); border-bottom: 1px solid var(--faint); }
.statement__text {
  margin: 0; font: 400 clamp(2.6rem, 8.4vw, 9.5rem)/.94 var(--display); text-transform: uppercase; letter-spacing: .005em;
}
.statement__text .w { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(.12em); transition: opacity 1s var(--ease), filter 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i) * 110ms); }
.statement__text.in .w { opacity: 1; filter: blur(0); transform: none; }

/* ---------- 7. Episodes ---------- */
.episodes__title { font-size: clamp(3rem, 9vw, 9.5rem); margin-bottom: clamp(36px, 5vw, 64px); }
.feed-status { margin: -20px 0 24px; font-size: 13px; color: var(--muted); min-height: 1em; }
.feed-status:empty { display: none; }

.card { position: relative; display: flex; flex-direction: column; gap: 18px; }
.card__media { position: relative; aspect-ratio: 1 / 1; }
.card__body { display: flex; flex-direction: column; gap: 14px; }
.card:hover .frame img, .card:focus-within .frame img { transform: scale(1.06); }
.play {
  position: absolute; z-index: 3; left: 16px; bottom: 16px;
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--accent); color: var(--bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .5s var(--ease), background .3s var(--ease);
}
.play svg { width: 40%; height: 40%; margin-left: 6%; }
.play:hover { transform: scale(1.08); background: #ff8441; }
.card__meta {
  display: flex; justify-content: space-between; gap: 12px;
  font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  font-variant-numeric: tabular-nums; padding-bottom: 12px; border-bottom: 1px solid var(--faint);
}
.card__meta b { color: var(--accent); font-weight: 600; }
.card__title { margin: 0; font: 400 clamp(1.5rem, 2.1vw, 2rem)/1.02 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.card__title a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .7s var(--ease);
}
.card:hover .card__title a, .card__title a:focus-visible { background-size: 100% 2px; }
.card__guest { margin: -8px 0 0; font: 400 1.35rem/1.1 var(--serif); font-style: italic; color: var(--text); }
.card__guest:empty { display: none; }
.card__blurb { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__yt { font-size: 13px; color: var(--muted); text-decoration-color: var(--accent); text-underline-offset: 3px; align-self: flex-start; }
.card__yt:hover { color: var(--text); }

.card--featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; margin-bottom: clamp(56px, 7vw, 96px); }
.card--featured .card__body { display: flex; flex-direction: column; gap: 20px; }
.card--featured .play { width: clamp(72px, 9vw, 112px); height: clamp(72px, 9vw, 112px); left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); }
.card--featured .play:hover { transform: translate(-50%, -50%) scale(1.08); }
.card--featured .card__title { font-size: clamp(2.2rem, 4.6vw, 4.6rem); line-height: .96; }
.card--featured .card__guest { font-size: clamp(1.6rem, 2.4vw, 2.3rem); margin: 0; }
.card--featured .card__blurb { -webkit-line-clamp: 1; font-size: 16px; }
.card__tag { font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 36px); }
.grid--next { padding-bottom: clamp(72px, 9vw, 120px); border-bottom: 1px solid var(--faint); }

.all { padding-top: clamp(56px, 7vw, 96px); }
.all__head { display: grid; gap: 24px; margin-bottom: 18px; }
.all__title { font-size: clamp(2.2rem, 5vw, 4.6rem); }
.all__controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(242, 239, 233, .3); background: transparent; color: var(--muted);
  font: 500 13px/1 var(--sans); transition: all .35s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--text); }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.search { display: flex; flex-direction: column; gap: 6px; min-width: min(320px, 100%); }
.search label { font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.search input {
  height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(242, 239, 233, .3);
  background: var(--bg-2); color: var(--text); font: 400 15px var(--sans);
}
.search input::placeholder { color: rgba(242, 239, 233, .55); }
.search input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(255, 106, 26, .25); }
.all__count { margin: 0 0 28px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.all__more { display: flex; justify-content: center; margin-top: 56px; }
.empty { grid-column: 1 / -1; color: var(--muted); padding: 40px 0; }

/* ---------- 8. Marquee ---------- */
.marquee { padding: clamp(40px, 6vw, 80px) 0; border-bottom: 1px solid var(--faint); overflow: hidden; }
.marquee__row { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track--reverse { animation-direction: reverse; }
.marquee__track span {
  font: 400 clamp(4rem, 11vw, 11rem)/1 var(--display); text-transform: uppercase; white-space: nowrap; padding-right: .3em;
}
.marquee__row--outline span { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.marquee__row--solid span { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 9. Host ---------- */
.host__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.host__photo { position: relative; margin: 14px; }
.host__photo .frame { aspect-ratio: 4 / 5; }
.corner { position: absolute; width: 34px; height: 34px; border: 0 solid var(--accent); }
.corner--tl { top: -14px; left: -14px; border-top-width: 2px; border-left-width: 2px; }
.corner--tr { top: -14px; right: -14px; border-top-width: 2px; border-right-width: 2px; }
.corner--bl { bottom: -14px; left: -14px; border-bottom-width: 2px; border-left-width: 2px; }
.corner--br { bottom: -14px; right: -14px; border-bottom-width: 2px; border-right-width: 2px; }
.host__name { font-size: clamp(3rem, 7.4vw, 7.6rem); }
.host__lines { margin: 28px 0; display: flex; flex-direction: column; font: 400 clamp(1.6rem, 2.8vw, 2.6rem)/1.12 var(--serif); font-style: italic; }
.host__bio { margin: 0 0 32px; color: var(--muted); max-width: 52ch; }

/* ---------- 10. Guest ---------- */
.guest { background: var(--accent); color: var(--bg); padding: clamp(80px, 12vw, 170px) var(--pad); }
.guest__eyebrow { margin: 0 0 20px; font: 600 12px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.guest__title { margin: 0; font: 400 clamp(4.5rem, 19vw, 21rem)/.84 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.guest__line { margin: 28px 0 36px; max-width: 30ch; font: 400 clamp(1.5rem, 2.8vw, 2.5rem)/1.12 var(--serif); }

/* ---------- 11. Subscribe ---------- */
.subscribe__title { font-size: clamp(3rem, 9vw, 9.5rem); margin-bottom: 40px; }

/* ---------- 12. Footer ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
  padding: 40px var(--pad) 48px; font-size: 14px; color: var(--muted);
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand p { margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { text-decoration: none; padding: 6px 0; }
.footer__links a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
body.player-open .site-footer { padding-bottom: 130px; }

/* ---------- Player ---------- */
.player {
  position: fixed; z-index: 50; left: 50%; bottom: 14px;
  width: min(980px, calc(100% - 24px));
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(19, 19, 21, .94); border: 1px solid var(--faint);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  transform: translate(-50%, 140%); transition: transform .7s var(--ease);
}
.player[hidden] { display: none; }
.player.open { transform: translate(-50%, 0); }
.player__art { width: 56px; height: 56px; border-radius: var(--radius); object-fit: cover; background: var(--bg); }
.player__btn, .player__close {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
}
.player__btn { background: var(--accent); color: var(--bg); }
.player__btn svg { width: 18px; height: 18px; }
.player__btn .i-pause { display: none; }
.player.playing .player__btn .i-pause { display: block; }
.player.playing .player__btn .i-play { display: none; }
.player__close { background: transparent; color: var(--muted); }
.player__close:hover { color: var(--text); background: rgba(242, 239, 233, .08); }
.player__close svg { width: 18px; height: 18px; }
.player__body { min-width: 0; }
.player__title { margin: 0 0 6px; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__seekrow { display: flex; align-items: center; gap: 12px; }
.player__seek { flex: 1; min-width: 0; accent-color: var(--accent); height: 20px; }
.player__time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about__top, .card--featured, .host__grid { grid-template-columns: 1fr; }
  .host__photo { max-width: 520px; }
}
@media (max-width: 760px) {
  .nav, .brand__name { display: none; }
  .hud { grid-template-columns: auto 1fr; font-size: 10px; letter-spacing: .1em; }
  .hud__mid { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:first-child { border-left: 0; padding: 28px 0; border-bottom: 1px solid var(--faint); }
  .film-frame { width: 220px; height: 293px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .player { grid-template-columns: auto 1fr auto; gap: 10px; }
  .player__art { display: none; }
  .all__controls { flex-direction: column; align-items: stretch; }
}

/* ---------- Reduced motion: everything off ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .statement__text .w, .char > span { opacity: 1 !important; transform: none !important; filter: none !important; }
  .filmstrip__viewport { overflow-x: auto; }
  .marquee__track { transform: none; }
  .pill:hover, .play:hover { transform: none; }
  .card--featured .play:hover { transform: translate(-50%, -50%); }
  .card:hover .frame img { transform: none; }
}
