/* The Knowledge — podcast page for davidelikwu.com/podcast
   Same design language as the homepage cards: warm paper, dark cards with a glass foot, Geist + Newsreader.
   Sizes, used everywhere: 52 primary capsule (r26) · 48 round button · 36 small round or pill (r18) · 20 card padding. */

@font-face { font-family: Geist; src: url(assets/geist.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: Newsreader; src: url(assets/newsreader.woff2) format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: Newsreader; src: url(assets/newsreader-italic.woff2) format('woff2'); font-weight: 400 500; font-style: italic; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #f8f7f3;
  --ink: #1c211e;
  --muted: #686c66;
  --faint: #8f938b;
  --line: #e2e1da;
  --raised: #ffffff;
  --hover: #efeee8;
  --accent: #e8743b;
  --shadow: 0 1px 2px rgb(28 33 30 / .06), 0 16px 34px -20px rgb(28 33 30 / .45);
  --serif: Newsreader, Georgia, 'Times New Roman', serif;
  --sans: Geist, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 24px;
  --toolbar-h: 0px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151915;
    --ink: #f0f1e9;
    --muted: #a9b0a6;
    --faint: #7e867c;
    --line: #2b322a;
    --raised: #1f251e;
    --hover: #283027;
    --accent: #ee8a52;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 34px -20px rgb(0 0 0 / .75);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--toolbar-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 18px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }

/* ——— Header ——— */
.site-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-name { font: 500 20px/1 var(--serif); letter-spacing: -.01em; }
.site nav { display: flex; gap: 4px; }
.site nav a { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 18px; color: var(--muted); font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.site nav a[aria-current="page"] { color: var(--ink); background: var(--hover); }

/* ——— Cards: the homepage's glass foot ——— */
.g { --fg: #fff; --fg2: rgb(255 255 255 / .72); --fg3: rgb(255 255 255 / .54); --ctl: rgb(255 255 255 / .1); --ctl2: rgb(255 255 255 / .18); --rule: rgb(255 255 255 / .16); --pri: #fff; --pri-fg: #171b18;
  position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; background: #101310; color: #fff; box-shadow: var(--shadow); }
.show, .latest { display: flex; flex-direction: column; }
.show .pic, .latest .art { flex: 1 0 auto; }
.g .pic { position: relative; aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.g .photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.g .mirror { position: absolute; left: 0; right: 0; top: 100%; z-index: -2; width: 100%; height: 72px; object-fit: cover; object-position: 50% 100%; transform: scaleY(-1); -webkit-mask-image: linear-gradient(0deg, #000, transparent); mask-image: linear-gradient(0deg, #000, transparent); }
.g .pic::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(8 10 9 / 0) 36%, rgb(8 10 9 / .5) 80%, rgb(8 10 9 / .64)); }
.g .head { position: relative; }
.g .ttl { font: 500 clamp(30px, 3.2vw, 40px)/1.04 var(--serif); letter-spacing: -.022em; text-wrap: balance; }
.g .dsc { margin-top: 8px; max-width: 38ch; font-size: 15px; line-height: 1.45; color: rgb(255 255 255 / .86); text-wrap: pretty; }
.g .band { position: relative; padding: 20px 24px 24px; }
.g .band::before { content: ''; position: absolute; inset: 0; z-index: 0; background: rgb(13 16 14 / .76); -webkit-backdrop-filter: blur(26px) saturate(1.4); backdrop-filter: blur(26px) saturate(1.4); box-shadow: inset 0 1px 0 rgb(255 255 255 / .12); }
.g .band > * { position: relative; z-index: 1; }

.icons { display: flex; gap: 8px; }
.ibtn { width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; color: var(--fg); background: var(--ctl); box-shadow: inset 0 0 0 1px var(--rule); transition: background .15s; }
.ibtn svg { width: 17px; height: 17px; }
.ibtn svg.glyph { fill: currentColor; stroke: none; }
.sub-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.sub-row b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; }
.show .band { display: grid; gap: 18px; }
.about { max-width: 46ch; font-size: 15px; line-height: 1.5; color: var(--fg2); text-wrap: pretty; }
.about span { display: block; margin-top: 4px; color: var(--fg3); font-size: 13.5px; }
.sub-row { padding-top: 18px; border-top: 1px solid var(--rule); }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; padding-top: clamp(8px, 2vw, 24px); padding-bottom: clamp(48px, 6vw, 80px); }

/* Latest episode: the episode's own artwork, then the band with what it is and one Play */
.latest .art { border-radius: 0; box-shadow: none; }
.latest .meta { color: var(--fg2); }
.latest-tag { color: #ffb185; font-weight: 600; }
.latest h2 { margin-top: 6px; font: 500 22px/1.22 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.latest .summary { margin-top: 8px; color: var(--fg2); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.play-main { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px 0 22px; border-radius: 26px; background: var(--pri); color: var(--pri-fg); font-size: 15px; font-weight: 600; transition: transform .15s, filter .15s; }
.play-main svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.play-main:active { transform: scale(.98); }
.latest .watch { width: 52px; height: 52px; border-radius: 26px; display: grid; place-items: center; background: var(--ctl); box-shadow: inset 0 0 0 1px var(--rule); }
.latest .watch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.latest .notes { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--fg2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }

/* ——— Artwork ——— */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.meta > * + *::before { content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; vertical-align: middle; margin-right: 10px; transform: translateY(-1px); }
.art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #2a1d14; container-type: inline-size; isolation: isolate; }
.art img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease, transform .7s var(--ease); }
.art img.loaded { opacity: 1; }
/* Episodes without artwork get a typeset plate in the show's colours */
.plate { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 7cqi 7.5cqi; color: #fff6ee; background: radial-gradient(120% 120% at 15% 0%, #c75a20, #7d300f 55%, #3d1708); }
.plate-no { font: 500 max(10px, 3.6cqi)/1 var(--sans); letter-spacing: .02em; color: #ffc59c; font-variant-numeric: tabular-nums; }
.plate-name { padding-right: 12cqi; font: 500 clamp(12px, 8.6cqi, 76px)/1.04 var(--serif); letter-spacing: -.02em; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.plate-name.is-title { font-size: clamp(11px, 6.8cqi, 40px); line-height: 1.1; font-style: italic; }
.plate::after { content: ''; position: absolute; left: 7.5cqi; top: calc(7cqi + max(10px, 3.6cqi) + 2.4cqi); width: 9cqi; height: max(1.5px, .45cqi); background: #ffc59c; }
.latest .plate-name { font-size: clamp(30px, 10.5cqi, 72px); letter-spacing: -.028em; }

/* ——— Archive toolbar ——— */
.toolbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); transition: box-shadow .2s; }
.toolbar.stuck { box-shadow: 0 1px 0 var(--line); }
.toolbar-inner { display: grid; grid-template-columns: auto auto minmax(240px, 360px); justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.toolbar-head { display: flex; align-items: baseline; gap: 12px; }
.toolbar h2 { font: 500 30px/1 var(--serif); letter-spacing: -.015em; }
.count { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.segmented { position: relative; display: grid; grid-template-columns: repeat(3, auto); padding: 4px; border-radius: 22px; background: var(--hover); box-shadow: inset 0 0 0 1px var(--line); }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: var(--x, 4px); width: var(--w, 0); border-radius: 18px; background: var(--ink); transition: left .32s var(--ease), width .32s var(--ease); }
.segmented button { position: relative; z-index: 1; height: 36px; padding: 0 16px; border-radius: 18px; color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.segmented button[aria-checked="true"] { color: var(--paper); font-weight: 600; }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 16px; width: 18px; height: 18px; stroke: var(--muted); }
.search input { width: 100%; height: 44px; padding: 0 44px 0 44px; border-radius: 22px; border: 0; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; -webkit-appearance: none; appearance: none; transition: box-shadow .15s; }
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search kbd { position: absolute; right: 14px; font: 500 12px/1 var(--sans); color: var(--faint); border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; }
.search input:focus ~ kbd, .search input:not(:placeholder-shown) ~ kbd { display: none; }
@media (hover: none) { .search kbd { display: none; } }

/* ——— Episode cards: artwork, then a dark foot with the title ——— */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 20px; padding-top: 8px; padding-bottom: 32px; }
.year { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; padding-top: 28px; margin-bottom: -4px; }
.year:first-child { padding-top: 8px; }
.year h3 { font: 500 24px/1 var(--serif); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.year span { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.ep { --fg: #fff; --fg2: rgb(255 255 255 / .72); --fg3: rgb(255 255 255 / .54); --ctl: rgb(255 255 255 / .1); --rule: rgb(255 255 255 / .16);
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 22px; background: #141714; color: #fff; box-shadow: var(--shadow); animation: rise .45s var(--ease) both; transition: transform .25s var(--ease), box-shadow .25s; }
.ep-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 12px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .1); }
.ep h3 { font: 500 15.5px/1.32 var(--sans); letter-spacing: -.006em; text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.ep .meta { color: var(--fg3); font-size: 12.5px; min-width: 0; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; gap: 0 8px; }
.ep .meta > * + *::before { margin-right: 8px; }
.ep-links { position: relative; z-index: 2; display: flex; gap: 6px; flex-shrink: 0; margin-right: -2px; }
.ep-link { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 16px; color: var(--fg2); background: var(--ctl); box-shadow: inset 0 0 0 1px var(--rule); transition: background .15s, color .15s; }
.ep-link svg { width: 16px; height: 16px; stroke-width: 1.6; }
.hit { position: absolute; inset: 0; z-index: 1; border-radius: 22px; }
.hit:focus-visible { outline-offset: 2px; }
.badge { position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; background: #fff; color: #171b18; box-shadow: 0 6px 16px -4px rgb(0 0 0 / .45); transition: transform .25s var(--ease), opacity .2s, background .2s, color .2s; }
.badge svg { width: 17px; height: 17px; fill: currentColor; stroke: none; margin-left: 2px; }
.badge .bars { display: none; }
.is-playing .badge svg { display: none; }
.is-playing .badge .bars { display: flex; }
.bars { gap: 2.5px; align-items: flex-end; height: 14px; }
.bars i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; transform: scaleY(.4); }
.is-playing .bars i { animation: eq 1s ease-in-out infinite; }
.is-playing .bars i:nth-child(2) { animation-delay: -.35s; animation-duration: .8s; }
.is-playing .bars i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.15s; }
@media (hover: hover) {
  .ep .badge { opacity: 0; transform: scale(.85); }
  .ep:hover .badge, .ep:focus-within .badge, .ep.is-current .badge { opacity: 1; transform: none; }
}
@media (hover: none) { .ep .badge { display: none; } .ep.is-current .badge { display: grid; } }
.progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 3px; background: rgb(0 0 0 / .3); }
.progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: #fff; }
.ep.is-current { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent), var(--shadow); }
.ep.is-target { animation: flash 1.6s ease; }

.pill { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 22px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; transition: background .15s, transform .15s; }
.pill:active { transform: scale(.98); }
.empty { text-align: center; padding: 56px 0 72px; color: var(--muted); display: grid; justify-items: center; gap: 16px; }
.empty strong { color: var(--ink); font-weight: 500; }
.more-row { display: flex; justify-content: center; padding-bottom: 72px; }
.site-foot { display: flex; gap: 20px; justify-content: center; padding-top: 32px; padding-bottom: 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ——— Player: the homepage's player card, floating ——— */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 0 12px max(12px, env(safe-area-inset-bottom)); pointer-events: none; }
.player-card { pointer-events: auto; max-width: 440px; margin: 0 auto; border-radius: 28px; background: rgb(16 19 16 / .9); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); box-shadow: 0 24px 60px -18px rgb(0 0 0 / .6), inset 0 0 0 1px rgb(255 255 255 / .08); animation: up .45s cubic-bezier(.2, .8, .2, 1) both; }
.video-panel { position: relative; }
.video-frame { aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe, .video-frame > div { width: 100%; height: 100%; border: 0; display: block; }
.video-external { position: absolute; top: 12px; right: 12px; height: 32px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 16px; background: rgb(18 22 19 / .5); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 13px; font-weight: 600; }
.player-body { display: grid; gap: 14px; padding: 16px 20px 18px; }
.player-head { display: grid; grid-template-columns: 56px minmax(0, 1fr) 36px 36px; gap: 10px 12px; align-items: center; }
.player-art { width: 56px; height: 56px; border-radius: 11px; overflow: hidden; background: #2a1d14; container-type: inline-size; }
.player-art img { width: 100%; height: 100%; object-fit: cover; }
.player-art .plate { padding: 10cqi; justify-content: center; }
.player-art .plate-name { font-size: 15cqi; -webkit-line-clamp: 3; padding-right: 0; }
.player-art .plate-no, .player-art .plate::after { display: none; }
.player-text { min-width: 0; margin-right: 4px; }
.player-title { font-size: 14.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.player-sub { margin-top: 2px; color: var(--fg3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.player-sub a { color: var(--fg2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.ghost { width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; color: var(--fg2); background: var(--ctl); box-shadow: inset 0 0 0 1px var(--rule); transition: background .15s, color .15s; }
.ghost svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.player-seek input { --v: 0%; --b: 0%; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 20px; margin: 0; background: transparent; cursor: pointer; }
.player-seek input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #fff var(--v), rgb(255 255 255 / .3) var(--v) var(--b), rgb(255 255 255 / .18) var(--b)); }
.player-seek input::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #fff var(--v), rgb(255 255 255 / .3) var(--v) var(--b), rgb(255 255 255 / .18) var(--b)); }
.player-seek input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 6px; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .4); transition: transform .15s; }
.player-seek input::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 6px; background: #fff; }
.player-seek input:focus-visible { outline: none; }
.player-seek input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgb(232 116 59 / .6); }
.times { display: flex; justify-content: space-between; margin-top: 0; }
.time { font-size: 12px; color: var(--fg3); font-variant-numeric: tabular-nums; }
/* Five controls spread evenly; both ends are the same 72px pill */
.player-controls { display: flex; justify-content: space-between; align-items: center; }
.pill-ctl { width: 72px; height: 36px; border-radius: 18px; background: var(--ctl); box-shadow: inset 0 0 0 1px var(--rule); }
.media-modes { display: grid; grid-template-columns: 1fr 1fr; padding: 2px; }
.media-modes button { height: 32px; border-radius: 16px; display: grid; place-items: center; color: var(--fg3); transition: background .2s, color .2s; }
.media-modes button svg { width: 17px; height: 17px; }
.media-modes button[aria-pressed="true"] { background: var(--ctl2); color: var(--fg); }
.media-modes.off #mode-video { opacity: .35; pointer-events: none; }
.rate-btn { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.skip-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 22px; transition: background .15s; }
.skip-btn svg { width: 28px; height: 28px; stroke-width: 1.5; }
.skip-btn span { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 2px; font-size: 9.5px; font-weight: 700; }
.play-btn { position: relative; width: 60px; height: 60px; border-radius: 30px; display: grid; place-items: center; background: #fff; color: #171b18; transition: transform .15s; }
.play-btn:active { transform: scale(.95); }
.play-btn svg { width: 23px; height: 23px; fill: currentColor; stroke: none; }
.play-btn .i-play { margin-left: 2px; }
.play-btn .i-pause, .player.is-playing .play-btn .i-play { display: none; }
.player.is-playing .play-btn .i-pause { display: block; }
.spinner { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent); opacity: 0; transition: opacity .2s; }
.player.is-loading .spinner { opacity: 1; animation: spin .8s linear infinite; }
.player-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px 16px; background: linear-gradient(180deg, rgb(232 116 59 / .24), rgb(232 116 59 / .14)); box-shadow: inset 0 1px 0 rgb(255 180 140 / .22); }
.player-foot p { font-size: 14.5px; font-weight: 600; }
.player-foot .ibtn { background: rgb(255 255 255 / .14); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); }
/* Minimised: one row, the episode keeps playing */
.player.is-min .player-card { border-radius: 24px; }
.player.is-min .video-panel, .player.is-min .player-seek, .player.is-min .player-controls, .player.is-min .player-foot { display: none; }
.player.is-min .player-body { padding: 8px 8px 8px 8px; }
.player.is-min .player-head { grid-template-columns: 48px minmax(0, 1fr) 36px 48px; }
.player.is-min .player-close { display: none; }
.player.is-min .player-art { width: 48px; height: 48px; border-radius: 10px; }
.player.is-min #p-min svg { transform: rotate(180deg); }
.player .mini-play { display: none; }
.player.is-min .mini-play { display: grid; width: 48px; height: 48px; }
.player.is-min .mini-play svg { width: 19px; height: 19px; }
.player.is-min .mini-play .spinner { inset: -3px; }

@media (hover: hover) {
  .site nav a:hover { background: var(--hover); color: var(--ink); }
  .ibtn:hover, .ghost:hover, .ep-link:hover, .skip-btn:hover, .pill-ctl.rate-btn:hover { background: var(--ctl2); color: var(--fg); }
  .play-main:hover, .play-btn:hover { filter: brightness(.93); }
  .latest .notes:hover { color: var(--fg); text-decoration-color: currentColor; }
  .pill:hover { background: var(--hover); }
  .segmented button:not([aria-checked="true"]):hover { color: var(--ink); }
  .player-sub a:hover { text-decoration-color: currentColor; }
  .player-foot .ibtn:hover { background: rgb(255 255 255 / .24); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ep:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgb(28 33 30 / .08), 0 22px 40px -20px rgb(28 33 30 / .5); }
  .ep:hover .art img.loaded { transform: scale(1.035); }
}

.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translate(-50%, 16px); z-index: 60; background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 22px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-player .toast { bottom: 300px; }
body.has-player .site-foot { padding-bottom: 340px; }
body.has-player.player-min .site-foot { padding-bottom: 120px; }
body.has-player.player-min .toast { bottom: 100px; }

/* ——— Responsive ——— */
@media (max-width: 980px) {
  .intro { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .toolbar-inner { grid-template-columns: 1fr auto; }
  .search { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .site-inner { height: 60px; }
  .intro { gap: 12px; padding-top: 4px; padding-bottom: 40px; }
  .g { border-radius: 24px; }
  .g .pic { padding: 20px; }
  .g .band { padding: 20px; }
  .g .ttl { font-size: 28px; }
  .g .dsc { font-size: 14.5px; }
  .latest h2 { font-size: 20px; }
  .latest-actions { margin-top: 16px; }
  .play-main { flex: 1; }
  .latest .notes { display: none; }
  .sub-row .wide { display: none; }
  .toolbar-inner { grid-template-columns: 1fr; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .toolbar-head { justify-content: space-between; }
  .segmented { grid-template-columns: repeat(3, 1fr); }
  .toolbar.stuck .toolbar-head, .toolbar.stuck .segmented { display: none; }
  .toolbar h2 { font-size: 26px; }
  /* Compact rows so 152 episodes stay scannable on a phone */
  .grid { grid-template-columns: 1fr; gap: 10px; padding-top: 4px; }
  .year { padding-top: 24px; margin-bottom: 4px; }
  .ep { display: grid; grid-template-columns: 128px minmax(0, 1fr); border-radius: 18px; }
  .ep .art { height: 100%; aspect-ratio: auto; min-height: 84px; }
  .ep-body { padding: 12px 12px 10px 14px; gap: 6px; box-shadow: none; }
  .ep h3 { font-size: 14.5px; }
  .ep .meta { font-size: 12px; gap: 0 8px; flex-wrap: nowrap; white-space: nowrap; }
  .ep .meta > * + *::before { margin-right: 8px; }
  .ep .notes-link { display: none; }
  .ep-link { width: 30px; height: 30px; }
  .badge { width: 32px; height: 32px; right: 8px; bottom: 8px; }
  .badge svg { width: 13px; height: 13px; }
  .hit { border-radius: 18px; }
  .player { padding-left: 8px; padding-right: 8px; }
  .player-card { border-radius: 24px; }
  .player-body { padding: 14px 16px 16px; }
  .player-foot { padding: 12px 16px 14px; }
}

@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes up { from { opacity: 0; transform: translateY(24px); } }
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flash { 0%, 100% { box-shadow: var(--shadow); } 20%, 60% { box-shadow: 0 0 0 3px var(--accent), var(--shadow); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
