:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #141414;
  color: #f2f2f2;
  --accent: #e5aa24;
  --gutter: clamp(20px, 4vw, 64px);
  --poster-width: clamp(142px, 13.4vw, 195px);
  --gap: clamp(16px, 1.9vw, 28px);
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 20% 0, #252525 0, #191919 36rem, #141414 70rem); min-height: 100vh; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 20; background: #252525; color: white; padding: 14px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 10; background: #171717f7; border-bottom: 1px solid #ffffff12; }
.header-inner { max-width: 1680px; margin: auto; padding: 0 var(--gutter); min-height: 86px; display: flex; gap: 64px; align-items: center; }
.wordmark { font-size: 22px; letter-spacing: -.7px; font-weight: 700; white-space: nowrap; }
.wordmark span { color: #b7b7b7; font-weight: 400; }
.tabs { display: flex; gap: 32px; }
.tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 30px 3px 27px; color: #aaa; background: none; font-size: 16px; font-weight: 600; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabs button:hover { color: #fff; }
main { max-width: 1680px; margin: auto; padding: 34px var(--gutter) 72px; }
main:focus, [role="tabpanel"]:focus { outline: none; }
[role="tabpanel"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 10px; }
h1 { font-size: 17px; font-weight: 400; color: #aaa; margin: 0 0 32px; }
.library-section { margin-bottom: 42px; min-width: 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
h2 { margin: 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.25; font-weight: 650; letter-spacing: -.4px; }
.carousel-controls { display: flex; gap: 7px; flex-shrink: 0; }
.carousel-controls button { border: 1px solid #ffffff16; color: #ddd; width: 40px; height: 40px; border-radius: 50%; background: #ffffff05; cursor: pointer; font-size: 26px; line-height: 1; }
.carousel-controls button:hover:enabled { background: #ffffff13; }
.carousel-controls button:disabled { opacity: .25; cursor: default; }
.carousel { display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #555 transparent; padding: 5px 2px 12px; margin: -5px -2px 0; }
.carousel > li { flex: 0 0 var(--poster-width); }
ul { list-style: none; padding: 0; margin: 0; }
.card { min-width: 0; }
.poster { aspect-ratio: 2 / 3; background: #252525; border-radius: 5px; overflow: hidden; position: relative; }
.poster img { display: block; width: 100%; height: 100%; object-fit: contain; }
.poster img:not([src]) { visibility: hidden; }
.poster.image-missing::after { content: "Artwork unavailable"; display: grid; place-content: center; position: absolute; inset: 0; padding: 12px; color: #aaa; text-align: center; font-size: 13px; }
.card-title { font-size: 14px; font-weight: 500; line-height: 1.4; margin: 11px 0 4px; min-height: 2.8em; max-height: 2.8em; overflow: auto; scrollbar-width: none; overflow-wrap: anywhere; }
.card-title::-webkit-scrollbar { display: none; }
.card-subtitle { margin: 0; min-height: 2.8em; font-size: 13px; line-height: 1.4; color: #a3a3a3; overflow-wrap: anywhere; }
.grid-section { border-top: 1px solid #ffffff14; padding-top: 34px; margin-top: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--poster-width), 1fr)); gap: 28px var(--gap); }
#status { color: #bbb; padding: 20px 0; }
@media (max-width: 620px) {
  :root { --gutter: 20px; --poster-width: 142px; --gap: 16px; }
  .header-inner { min-height: 112px; display: block; padding-top: 18px; }
  .wordmark { font-size: 20px; }
  .tabs { gap: 30px; }
  .tabs button { padding: 18px 2px 14px; }
  main { padding-top: 26px; }
  h1 { margin-bottom: 24px; }
  .library-section { margin-bottom: 32px; }
  .section-header { margin-bottom: 14px; }
  .carousel-controls button { width: 36px; height: 36px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

/* Episode collection only: existing portrait rows retain their sizing and typography. */
.carousel-landscape > li { flex-basis: clamp(240px, 25vw, 340px); }
.episode-card .poster { aspect-ratio: 16 / 9; background: #101010; }
.episode-card .poster img { object-fit: contain; }
.episode-show { font-size: 14px; font-weight: 650; line-height: 1.4; margin: 11px 0 0; }
.episode-card .card-title { font-weight: 400; margin-top: 5px; }
.episode-card .card-subtitle { min-height: 1.4em; }
