:root {
  color-scheme: dark;
  --bg: #090b0f;
  --surface: #11151b;
  --surface-raised: #171c24;
  --surface-soft: #1d232d;
  --navigation-surface: #0d1117;
  --text: #f5f7fb;
  --muted: #929cab;
  --subtle: #7f8997;
  --line: #262e3a;
  --line-strong: #374151;
  --accent: #6d58dc;
  --accent-hover: #8874ed;
  --accent-soft: #27233f;
  --positive: #54d49a;
  --positive-soft: #153327;
  --warning: #cc9410;
  --warning-soft: #372a15;
  --danger: #ff727d;
  --danger-soft: #3c1d22;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); touch-action: manipulation; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
input, select, textarea { font-size: 16px !important; }
button { color: inherit; }
button, a, input, select, textarea, [role="button"] { touch-action: manipulation; }
button:not(:disabled), [role="button"]:not([aria-disabled="true"]), select { cursor: pointer; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; opacity: .58; }
img { max-width: 100%; }
::selection { background: var(--warning); color: #111319; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 3000; padding: .7rem 1rem; border-radius: var(--radius-sm); background: var(--accent); color: white; }
.skip-link:focus { top: 1rem; }
.page-shell { min-height: calc(100vh - 64px); padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.container-xl, .container-lg, .container-sm { --bs-gutter-x: 2rem; }

/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: 1000; min-height: calc(64px + env(safe-area-inset-top)); padding: calc(.7rem + env(safe-area-inset-top)) 0 .7rem; background: #0c0f14; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); font-size: .92rem; font-weight: 800; letter-spacing: .08em; }
.brand-mark { display: block; flex: none; width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.brand.light { color: white; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-search { align-items: center; gap: .65rem; width: min(38vw, 460px); padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--muted); }
.header-search:focus-within { border-color: var(--accent); }
.header-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.header-search input::placeholder { color: var(--subtle); }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--muted); }
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface-raised); color: var(--text); }
.icon-btn.danger { color: var(--danger); }
.notification-dot { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border: 2px solid #0c0f14; border-radius: 999px; background: var(--danger); color: white; font-size: .62rem; font-weight: 800; }
.avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--avatar, var(--accent)); color: #0b0d10; font-size: .72rem; font-weight: 900; }
.avatar-xl { width: 82px; height: 82px; border-radius: 22px; font-size: 1.3rem; }
.desktop-nav { background: #0c0f14; border-bottom: 1px solid var(--line); }
.desktop-nav .container-xl { padding-top: .45rem; padding-bottom: .45rem; }
.nav-pill { display: flex; align-items: center; gap: .5rem; padding: .58rem .85rem; border-radius: 9px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.nav-pill:hover { background: var(--surface); color: var(--text); }
.nav-pill.active { background: var(--surface-soft); color: white; }
.nav-pill.active i { color: var(--accent-hover); }
.mobile-nav { position: fixed; bottom: 0; z-index: 1000; display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; padding: .35rem max(.25rem, env(safe-area-inset-right)) calc(.65rem + env(safe-area-inset-bottom)) max(.25rem, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: var(--navigation-surface); }
.mobile-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 50px; padding: .42rem .2rem; border-radius: 9px; color: var(--subtle); font-size: .65rem; font-weight: 700; }
.mobile-nav a i { font-size: 1.18rem; }
.mobile-nav a.active { background: var(--surface-soft); color: white; font-weight: 850; }
.mobile-nav a.active i { color: var(--accent-hover); }
.mobile-nav a.active::after { position: absolute; bottom: .18rem; width: 16px; height: 2px; border-radius: 999px; background: currentColor; content: ""; }

/* Shared elements */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; border-radius: 10px; font-weight: 750; }
.btn-sm { min-height: 40px; }
.btn-lg { min-height: 50px; border-radius: 12px; }
.btn-accent, .btn-warning { border: 1px solid var(--accent); background: var(--accent); color: white; }
.btn-accent:hover, .btn-warning:hover { border-color: var(--accent-hover); background: var(--accent-hover); color: white; }
.btn-ink, .btn-dark { border: 1px solid var(--line-strong); background: var(--surface-soft); color: white; }
.btn-ink:hover, .btn-dark:hover { border-color: #4b5666; background: #252d38; color: white; }
.btn-outline-dark, .btn-outline-light { border-color: var(--line-strong); color: var(--text); }
.btn-outline-dark:hover, .btn-outline-light:hover { border-color: var(--line-strong); background: var(--surface-soft); color: white; }
.btn-outline-danger { border-color: #75343b; color: var(--danger); }
.btn-danger { border-color: var(--danger); background: var(--danger); color: #170b0d; }
.btn-danger:hover { border-color: #ff8b94; background: #ff8b94; color: #170b0d; }
.eyebrow { display: block; margin-bottom: .55rem; color: var(--accent-hover); font-size: .67rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.dark { color: var(--accent-hover); }
.text-link { display: inline-flex; align-items: center; gap: .35rem; color: #b8adff; font-size: .84rem; font-weight: 700; }
.text-link:hover { color: white; }
.btn-close { filter: invert(1) grayscale(1); }
.toast-region { position: fixed; top: calc(76px + env(safe-area-inset-top)); right: max(1rem,env(safe-area-inset-right)); z-index: 2100; display: grid; gap: .55rem; width: min(360px,calc(100vw - 2rem)); pointer-events: none; }
.trackey-toast { width: 100%; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface-raised); color: var(--text); box-shadow: 0 14px 40px rgba(0,0,0,.42); pointer-events: auto; }
.trackey-toast .toast-body { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .65rem; padding: .78rem .85rem; font-size: .8rem; font-weight: 650; line-height: 1.4; }
.trackey-toast .toast-body > i { font-size: 1rem; }
.trackey-toast.toast-success { border-color: #275940; }
.trackey-toast.toast-success .toast-body > i { color: var(--positive); }
.trackey-toast.toast-error { border-color: #713039; }
.trackey-toast.toast-error .toast-body > i { color: var(--danger); }
.page-intro { padding: 2.5rem 0 1.4rem; }
.page-intro.compact { padding-bottom: 1.1rem; }
.page-intro.minimal { padding: 1rem 0 .7rem; }
.page-intro.minimal .eyebrow { margin-bottom: 0; }
.page-intro h1, .welcome-row h1 { margin: 0; color: white; font-size: clamp(2.35rem, 7vw, 4.7rem); font-weight: 800; letter-spacing: -.055em; line-height: .98; }
.page-intro p, .welcome-row p { max-width: 650px; margin: .8rem 0 0; color: var(--muted); }
.section-block { padding: 2.2rem 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.45rem, 4vw, 2rem); font-weight: 750; letter-spacing: -.035em; }
.section-heading p { margin: .2rem 0 0; color: var(--muted); }
.status-tag { display: inline-flex; align-items: center; gap: .28rem; width: max-content; padding: .25rem .5rem; border-radius: 999px; background: var(--positive-soft); color: #8be4b7; font-size: .58rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.status-tag.quiet { background: var(--surface-soft); color: var(--muted); }
.kicker { color: var(--subtle); font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.progress { overflow: hidden; border-radius: 999px; background: #252b35; }
.progress-bar { border-radius: 999px; background: var(--bar, var(--accent)); }
.empty-state { display: flex; flex-direction: column; align-items: center; min-height: 340px; justify-content: center; padding: 3rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); text-align: center; }
.empty-state > i { color: var(--accent-hover); font-size: 2.6rem; }
.empty-state h1, .empty-state h2 { margin: 1rem 0 .35rem; font-weight: 800; }
.empty-state p { max-width: 430px; color: var(--muted); }

/* Landing */
.landing-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 350px; background: var(--bg); border: 0; }
.landing-hero.has-backdrop::before { position: absolute; z-index: -2; inset: 0; background-image: var(--landing-backdrop); background-position: center 20%; background-size: cover; content: ""; opacity: .82; transform: scale(1.015); }
.landing-hero.has-backdrop::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg,rgba(9,11,15,.05) 0%,rgba(9,11,15,.18) 38%,rgba(9,11,15,.78) 74%,var(--bg) 100%),linear-gradient(90deg,rgba(9,11,15,.38),transparent 70%); content: ""; }
.landing-grid { display: grid; grid-template-columns: 104px minmax(0,1fr); align-items: end; gap: .85rem; padding: 7.5rem 0 1.35rem; }
.landing-grid h1 { margin: .12rem 0 .32rem; overflow-wrap: anywhere; font-size: clamp(1.85rem,8vw,3rem); font-weight: 800; letter-spacing: -.05em; line-height: .92; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-copy { max-width: 590px; margin: 0 0 1.7rem; color: var(--muted); font-size: 1.04rem; }
.landing-feature-poster { display: flex; align-items: end; width: 104px; aspect-ratio: 2/3; overflow: hidden; padding: .55rem; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: var(--accent); color: #101216; box-shadow: 0 12px 28px rgba(0,0,0,.28); }
.landing-feature-poster.has-image { padding: 0; background: var(--surface-soft); }
.landing-feature-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.landing-feature-poster strong { overflow-wrap: anywhere; font-size: 1rem; font-weight: 850; line-height: .9; }
.landing-feature-copy { min-width: 0; }
.landing-feature-meta { display: flex; flex-wrap: wrap; gap: .2rem .55rem; margin: 0; color: #c1c8d2; font-size: .64rem; }
.landing-feature-meta span + span::before { margin-right: .55rem; color: var(--subtle); content: "·"; }
.landing-feature-overview { display: -webkit-box; max-width: 650px; margin: .45rem 0 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #c1c8d2; font-size: .72rem; line-height: 1.4; }
.landing-feature-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .62rem; }
.landing-feature-actions .btn { padding: .42rem .68rem; font-size: .7rem; }
.landing-poster-grid { display: grid; grid-auto-columns: calc((100% - 1.1rem)/2.5); grid-auto-flow: column; gap: .55rem; overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: .45rem; scroll-snap-type: inline mandatory; scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }
.landing-poster-card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.landing-poster-grid .landing-poster-card { scroll-snap-align: start; }
.landing-poster-card:hover { border-color: var(--line-strong); }
.landing-poster-art { display: flex; align-items: end; width: 100%; aspect-ratio: 2/3; overflow: hidden; padding: .65rem; background: var(--accent); color: #101216; }
.landing-poster-art.has-image { padding: 0; background: var(--surface-soft); }
.landing-poster-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.landing-poster-art strong { overflow-wrap: anywhere; font-size: clamp(.8rem,4vw,1.8rem); font-weight: 850; line-height: .9; }
.how-it-works { margin-top: 1rem; padding: 2.25rem 0 3rem; border: 0; background: var(--bg); }
.feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
.feature-grid article { position: relative; min-height: 170px; padding: .9rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.feature-grid article > i { color: var(--accent-hover); font-size: 1.7rem; }
.feature-grid h3 { margin: .9rem 0 .35rem; font-size: .92rem; font-weight: 750; line-height: 1.15; }
.feature-grid p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.42; }
.step-number { position: absolute; top: .78rem; right: .78rem; color: var(--subtle); font-size: .66rem; font-weight: 800; }

/* Show cards */
.show-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.show-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.show-card:hover { border-color: var(--line-strong); background: var(--surface-raised); }
.show-card-link { display: flex; flex-direction: column; height: 100%; }
.show-card-link:focus-visible { outline-offset: -3px; }
.poster { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 3/4; padding: .75rem; background: var(--accent); color: #111319; }
.poster.has-image { position: relative; overflow: hidden; padding: 0; background: var(--surface-soft); }
.poster-image { width: 100%; height: 100%; object-fit: cover; }
.poster-badge { position: absolute; top: .55rem; left: .55rem; max-width: calc(100% - 1.1rem); overflow: hidden; padding: .3rem .46rem; border-radius: 999px; background: rgba(9,11,15,.88); color: white; text-overflow: ellipsis; white-space: nowrap; }
.poster-network, .poster-season { font-size: .62rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.poster-status { position: absolute; right: .55rem; bottom: .55rem; z-index: 2; padding: .32rem .5rem; border-radius: 999px; background: var(--status-bg); box-shadow: 0 0 0 1px var(--status-border),0 3px 12px rgba(0,0,0,.35); color: var(--status-color); font-size: .56rem; font-weight: 800; line-height: 1; text-transform: uppercase; }
.poster strong { overflow-wrap: anywhere; font-size: clamp(1.3rem, 7vw, 2.7rem); font-weight: 850; line-height: .86; letter-spacing: -.06em; }
.show-card-body { flex: 1; padding: .85rem; }
.show-card h3 { margin: 0; font-size: .98rem; font-weight: 750; line-height: 1.15; }
.muted-line, .card-overview { margin: .3rem 0 0; color: var(--muted); font-size: .7rem; }
.card-overview { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.progress-row { display: flex; align-items: center; gap: .5rem; margin-top: .85rem; }
.progress-row .progress { flex: 1; height: 5px; }
.progress-row > span { color: var(--muted); font-size: .66rem; font-weight: 800; }

@media (max-width: 575.98px) {
  .show-card-body { padding: .58rem; }
  .show-card-body > .d-flex { display: block !important; }
  .show-card h3 { display: -webkit-box; overflow: hidden; font-size: .78rem; line-height: 1.18; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .muted-line { overflow: hidden; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
  .card-overview { font-size: .6rem; -webkit-line-clamp: 2; }
  .poster-badge { top: .4rem; left: .4rem; max-width: calc(100% - .8rem); padding: .24rem .36rem; }
  .poster-status { right: .4rem; bottom: .4rem; max-width: calc(100% - .8rem); overflow: hidden; padding: .28rem .4rem; font-size: .47rem; text-overflow: ellipsis; white-space: nowrap; }
  .progress-row { gap: .35rem; margin-top: .55rem; }
  .progress-row > span { font-size: .56rem; }
}

/* Watch dashboard */
.welcome-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding: 2.8rem 0 .6rem; }
.welcome-row h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
.continue-grid { display: grid; gap: .75rem; }
.continue-card { display: flex; align-items: center; gap: 1rem; padding: .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mini-poster { display: flex; flex: none; flex-direction: column; justify-content: space-between; width: 58px; aspect-ratio: 2/3; overflow: hidden; padding: .45rem; border-radius: 8px; background: var(--accent); color: #111319; font-size: .42rem; font-weight: 850; text-transform: uppercase; }
.mini-poster.has-image { padding: 0; background: var(--surface-soft); }
.mini-poster img { width: 100%; height: 100%; object-fit: cover; }
.mini-poster strong { font-size: .95rem; line-height: .9; text-transform: none; }
.continue-card h3 { margin: .1rem 0; font-size: 1.02rem; font-weight: 750; }
.continue-card p, .continue-card small { margin: 0; color: var(--muted); font-size: .73rem; }
.continue-card .progress { height: 5px; margin: .65rem 0 .25rem; }
.continue-card .progress-bar { background: var(--accent); }
.round-action { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: white; font-size: 1.15rem; }
.upcoming-strip { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.upcoming-item { display: grid; grid-template-columns: 48px 42px minmax(0,1fr) auto; align-items: center; gap: .65rem; padding: .7rem; border-bottom: 1px solid var(--line); }
.upcoming-item:last-child { border-bottom: 0; }
.upcoming-item:hover { background: var(--surface-raised); }
.upcoming-item time { display: flex; flex-direction: column; align-items: center; border-right: 1px solid var(--line); }
.upcoming-item time strong { color: var(--accent-hover); font-size: .58rem; letter-spacing: .1em; }
.upcoming-item time span { font-size: 1.4rem; font-weight: 800; }
.upcoming-item h3 { margin: .1rem 0; font-size: .94rem; font-weight: 750; }
.upcoming-item p { margin: 0; color: var(--muted); font-size: .74rem; }
.episode-poster { display: grid; place-items: center; width: 38px; aspect-ratio: 2/3; overflow: hidden; padding: .25rem; border-radius: 6px; background: var(--accent); color: #111319; font-size: .45rem; font-weight: 850; line-height: .9; overflow-wrap: anywhere; }
.episode-poster.has-image { padding: 0; background: var(--surface-soft); }
.episode-poster img { display: block; width: 100%; height: auto; object-fit: contain; }
.upcoming-item .episode-poster { width: 48px; }

/* Episode queue */
.episode-queue-page { padding-top: .8rem; padding-bottom: 2rem; }
.queue-page-title { padding: 1rem 0 .7rem; }
.queue-page-title h1 { margin: 0; font-size: clamp(1.45rem, 7vw, 2rem); font-weight: 800; letter-spacing: -.04em; }
.queue-summary { display: flex; flex-wrap: wrap; gap: .45rem; margin: -.2rem 0 1rem; }
.queue-summary span { padding: .38rem .58rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .66rem; }
.queue-summary strong { color: var(--text); }
.queue-section { margin-top: 1.25rem; }
.queue-date-groups { display: grid; gap: .85rem; }
.queue-date-group { scroll-margin-top: calc(80px + env(safe-area-inset-top)); }
.queue-date-group > header { padding: .2rem .05rem .38rem; border: 0; background: transparent; }
.queue-date-group > header time { color: var(--text); font-size: .76rem; font-weight: 750; }
.queue-date-group > header strong { font-size: .75rem; }
.queue-date-group > header time span, .queue-date-group > header > span { color: var(--muted); font-size: .66rem; }
.queue-items { display: grid; gap: .42rem; }
.queue-episode { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: .55rem; padding: .5rem .58rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.queue-episode:hover { border-color: var(--line-strong); background: var(--surface-raised); }
.queue-episode.is-missed { border-color: transparent; }
.queue-episode.is-missed:hover { border-color: var(--surface-raised); }
.queue-episode.is-missed .queue-poster, .queue-episode.is-missed .queue-copy { opacity: .58; filter: saturate(.65); }
.queue-episode.is-missed:hover .queue-poster, .queue-episode.is-missed:hover .queue-copy { opacity: .78; }
.queue-poster { display: grid; place-items: center; width: 42px; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 6px; background: var(--accent); color: #111319; font-size: .8rem; font-weight: 850; }
.queue-poster img { width: 100%; height: 100%; object-fit: cover; }
.queue-copy { min-width: 0; }
.queue-copy .kicker { font-size: .62rem; }
.queue-copy h3 { margin: .05rem 0; overflow: hidden; font-size: .8rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.queue-copy p { margin: 0; overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.queue-watch-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--muted); font-size: .9rem; }
.queue-watch-button:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); }
.queue-air-status { display: grid; place-items: center; width: 34px; height: 34px; color: var(--subtle); }
.queue-caught-up { display: flex; align-items: center; gap: .65rem; margin-top: 1.25rem; padding: .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.queue-caught-up > i { color: var(--positive); font-size: 1.2rem; }
.queue-caught-up h2 { margin: 0; font-size: .82rem; font-weight: 750; }
.queue-caught-up p { margin: .12rem 0 0; color: var(--muted); font-size: .64rem; }
.queue-upcoming-section { padding-bottom: 1rem; }
.recent-grid { display: grid; gap: .4rem; }
.recent-item { display: flex; align-items: center; gap: .55rem; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.recent-check { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--positive-soft); color: var(--positive); }
.recent-item h3 { margin: 0; font-size: .8rem; font-weight: 750; }
.recent-item p { margin: .08rem 0 0; color: var(--muted); font-size: .64rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat-row div { display: flex; flex-direction: column; padding: 1rem; border-right: 1px solid var(--line); }
.stat-row div:last-child { border: 0; }
.stat-row strong { font-size: 1.7rem; font-weight: 750; }
.stat-row span { color: var(--muted); font-size: .64rem; }
.list-stack { display: grid; gap: .65rem; }
.progress-list-item { display: flex; align-items: center; gap: .8rem; padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.progress-list-item:hover { border-color: var(--line-strong); background: var(--surface-raised); }
.cover-swatch { display: grid; place-items: center; flex: none; width: 48px; aspect-ratio: 2/3; overflow: hidden; border-radius: 8px; background: var(--accent); color: #101216; font-size: 1.35rem; font-weight: 850; }
.cover-swatch.has-image { background: var(--surface-soft); }
.cover-swatch img { display: block; width: 100%; height: 100%; object-fit: cover; }
.progress-list-item h3 { margin: 0; font-size: .93rem; font-weight: 750; }
.progress-list-item .progress { height: 5px; margin: .5rem 0; }
.progress-list-item p { margin: 0; color: var(--muted); font-size: .68rem; }
.watch-dashboard { padding-top: .65rem; }
.watch-dashboard .stat-row { border-radius: 9px; }
.watch-dashboard .stat-row div { padding: .45rem .5rem; }
.watch-dashboard .stat-row strong { font-size: 1.1rem; line-height: 1; }
.watch-dashboard .stat-row span { margin-top: .12rem; font-size: .56rem; line-height: 1.2; }
.watch-dashboard .section-block { padding: .85rem 0; }
.watch-dashboard .section-heading { margin-bottom: .45rem; }
.watch-dashboard .section-heading h2 { font-size: 1rem; }
.watch-dashboard .list-stack { gap: .28rem; }
.watch-dashboard .progress-list-item { gap: .45rem; min-height: 48px; padding: .38rem .48rem; border-radius: 8px; }
.watch-dashboard .cover-swatch { width: 32px; border-radius: 5px; }
.watch-dashboard .progress-list-item h3 { font-size: .76rem; }
.watch-dashboard .progress-list-item .progress { height: 3px; margin: .2rem 0; }
.watch-dashboard .progress-list-item p { font-size: .61rem; line-height: 1.25; }
.watch-dashboard .progress-list-item > .bi-chevron-right { font-size: .65rem; }

/* Discover and lists */
.discover-search, .ops-search { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem; padding: .5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.discover-search i { margin-left: .4rem; color: var(--muted); }
.discover-search input { min-width: 0; padding: .55rem 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.filter-scroll { display: flex; gap: .45rem; overflow-x: auto; padding: 1rem 0; scrollbar-width: none; }
.filter-chip { flex: none; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .77rem; font-weight: 700; }
.filter-chip:hover { border-color: var(--line-strong); color: white; }
.filter-chip.active { border-color: var(--accent); background: var(--accent-soft); color: #c8c0ff; }
.discover-page { padding-bottom: 1.5rem; }
.discover-section { padding: .75rem 0 1rem; }
.discover-section + .discover-section { margin-top: .45rem; }
.discover-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.discover-section-heading h2 { margin: 0; font-size: 1.12rem; font-weight: 800; letter-spacing: -.025em; }
.discover-section-heading > span { color: var(--muted); font-size: .72rem; font-weight: 700; }
.discover-poster-row { display: grid; grid-auto-columns: minmax(118px,38vw); grid-auto-flow: column; gap: .65rem; overflow-x: auto; overscroll-behavior-inline: contain; padding: .15rem .1rem .45rem; scroll-padding-inline: .1rem; scroll-snap-type: inline mandatory; scrollbar-width: none; }
.discover-poster-row::-webkit-scrollbar { display: none; }
.discover-poster-card { position: relative; min-width: 0; scroll-snap-align: start; }
.discover-poster-link { display: block; }
.discover-poster-frame { display: grid; width: 100%; aspect-ratio: 2/3; place-items: end start; overflow: hidden; padding: .7rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); color: var(--text); }
.discover-poster-frame.has-image { padding: 0; }
.discover-poster-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.discover-poster-frame strong { overflow-wrap: anywhere; font-size: .9rem; line-height: 1.05; }
.discover-card-meta { min-height: 42px; padding: .48rem .1rem 0; }
.discover-card-meta h3 { display: -webkit-box; margin: 0; overflow: hidden; color: var(--text); font-size: .76rem; font-weight: 750; line-height: 1.22; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.discover-list-form { margin: 0; }
.discover-add-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(12,15,20,.9); color: var(--text); font-size: 1rem; }
.discover-add-button:hover { border-color: var(--warning); color: var(--warning); }
.discover-status { display: inline-flex; align-items: center; min-height: 28px; padding: .3rem .5rem; border-radius: 999px; background: var(--status-bg); box-shadow: inset 0 0 0 1px var(--status-border); color: var(--status-color); font-size: .6rem; font-weight: 800; line-height: 1; }
.discover-poster-card .discover-list-form, .discover-poster-card .discover-card-meta > .discover-add-button, .discover-poster-card .discover-card-meta > .discover-status { position: absolute; top: .45rem; right: .45rem; }
.discover-results-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem .55rem; }
.discover-genre-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(126px,36vw); gap: .55rem; overflow-x: auto; overscroll-behavior-inline: contain; padding: .1rem .1rem .45rem; scroll-padding-inline: .1rem; scroll-snap-type: inline mandatory; scrollbar-width: none; }
.discover-genre-row::-webkit-scrollbar { display: none; }
.discover-genre-link { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 48px; padding: .68rem .72rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-size: .76rem; font-weight: 750; scroll-snap-align: start; }
.discover-genre-link i { color: var(--muted); font-size: .68rem; }
.discover-genre-link:hover { border-color: var(--line-strong); background: var(--surface-raised); }
.genre-page { padding-top: .75rem; padding-bottom: 1.5rem; }
.genre-page-header { margin-bottom: .9rem; }
.genre-back-link { display: inline-flex; align-items: center; gap: .15rem; margin-bottom: .55rem; color: var(--muted); font-size: .7rem; font-weight: 750; }
.genre-page-header > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.genre-page-header h1 { margin: 0; font-size: 1.35rem; font-weight: 850; letter-spacing: -.03em; }
.genre-page-header span { color: var(--muted); font-size: .68rem; font-weight: 700; }
.genre-load-more { display: flex; justify-content: center; padding: 1.1rem 0 .35rem; }
.genre-load-more .btn { min-width: 150px; }
.discover-recommendation-list { display: grid; gap: .65rem; }
.discover-recommendation-card { display: grid; grid-template-columns: 88px minmax(0,1fr) auto; align-items: center; gap: .8rem; min-height: 132px; padding: .62rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.discover-recommendation-poster { display: grid; width: 88px; aspect-ratio: 2/3; place-items: end start; overflow: hidden; padding: .55rem; border-radius: 8px; background: var(--surface-soft); color: var(--text); }
.discover-recommendation-poster.has-image { padding: 0; }
.discover-recommendation-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.discover-recommendation-poster strong { overflow-wrap: anywhere; font-size: .75rem; line-height: 1.05; }
.discover-recommendation-copy { min-width: 0; }
.discover-recommendation-copy h3 { margin: 0; font-size: .95rem; font-weight: 800; line-height: 1.2; }
.discover-recommendation-copy p { margin: .32rem 0 0; color: var(--muted); font-size: .7rem; }
.discover-recommendation-copy .discover-recommendation-genre { color: var(--muted); font-weight: 750; }
.discover-recommendation-copy .discover-recommendation-summary { display: -webkit-box; overflow: hidden; margin-top: .38rem; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; line-height: 1.35; }
.discover-recommendation-card > .discover-status { max-width: 76px; justify-content: center; text-align: center; white-space: normal; }
.list-filter-help { display: flex; align-items: flex-start; gap: .45rem; margin: -1rem 0 1rem; color: var(--muted); font-size: .72rem; }
.list-filter-help i { flex: none; color: var(--accent-hover); }
.list-filter-help strong { color: var(--text); }
.results-heading { display: flex; justify-content: space-between; align-items: end; margin: 1.4rem 0 1rem; }
.results-heading h2 { margin: 0; font-size: 1.4rem; font-weight: 750; }
.results-heading span { color: var(--muted); font-size: .76rem; }
.my-list-stack { display: grid; gap: .42rem; overflow: visible !important; }
.my-list-item { position: relative; display: grid; grid-template-columns: 66px 1fr; align-items: stretch; overflow: visible !important; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.my-list-item:has(.dropdown-menu.show), .my-list-item.status-menu-open { z-index: 100; }
.list-poster { display: flex; flex-direction: column; justify-content: space-between; width: 100%; height: 100%; min-height: 99px; overflow: hidden; padding: .4rem; border-radius: 8px 0 0 8px; background: var(--accent); color: #111319; font-size: .4rem; font-weight: 850; }
.list-poster.has-image { padding: 0; background: var(--surface-soft); }
.list-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.list-poster strong { overflow-wrap: anywhere; font-size: .82rem; line-height: .9; }
.list-copy { min-width: 0; overflow: visible !important; padding: .45rem .5rem; }
.list-copy h2 { margin: .52rem 0 0; font-size: .82rem; font-weight: 750; line-height: 1.12; }
.list-copy > p { margin: .28rem 0 0; color: var(--muted); font-size: .58rem; line-height: 1.25; }
.my-list-item .icon-btn { width: 36px; height: 36px; border-radius: 8px; font-size: .78rem; }
.list-status-form, .list-status-form .dropdown { display: inline-flex; overflow: visible !important; }
.status-watching { --status-color: #62a9f8; --status-bg: #142a42; --status-border: #28547d; }
.status-planned { --status-color: #a89bff; --status-bg: var(--accent-soft); --status-border: #514695; }
.status-paused { --status-color: #cc9410; --status-bg: var(--warning-soft); --status-border: #6a501c; }
.status-completed { --status-color: var(--positive); --status-bg: var(--positive-soft); --status-border: #275940; }
.status-caught_up { --status-color: var(--positive); --status-bg: var(--positive-soft); --status-border: #275940; }
.status-dropped { --status-color: var(--danger); --status-bg: var(--danger-soft); --status-border: #713039; }
.list-status-badge { display: inline-flex; align-items: center; min-height: 32px; padding: .27rem .55rem !important; border: 0; border-radius: var(--bs-border-radius-pill) !important; background-color: var(--status-bg); box-shadow: inset 0 0 0 1px var(--status-border); color: var(--status-color); font-size: .65rem; font-weight: 800; line-height: 1; letter-spacing: .01em; vertical-align: middle; }
.list-status-badge:hover, .list-status-badge:focus, .list-status-badge.show { background-color: var(--status-bg); box-shadow: inset 0 0 0 1px var(--status-color); color: var(--status-color); }
.list-status-badge.dropdown-toggle::after { margin-left: .42rem; vertical-align: .12em; }
.list-status-menu { --bs-dropdown-min-width: 156px; --bs-dropdown-padding-y: .35rem; --bs-dropdown-bg: var(--surface-raised); --bs-dropdown-border-color: var(--line-strong); --bs-dropdown-border-radius: 12px; --bs-dropdown-link-color: var(--muted); --bs-dropdown-link-hover-color: var(--text); --bs-dropdown-link-hover-bg: var(--surface-soft); z-index: 2200; overflow: visible !important; padding: .38rem; box-shadow: 0 16px 42px rgba(0,0,0,.5); }
.list-status-menu .dropdown-item { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: .55rem; min-height: 40px; padding: .52rem .58rem; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: .72rem; font-weight: 700; }
.list-status-menu .dropdown-item:hover, .list-status-menu .dropdown-item:focus { background: var(--surface-soft); color: var(--text); }
.list-status-menu .dropdown-item.is-active { color: var(--text); }
.status-dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--status-color); }

/* Calendar */
.calendar-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.view-switch { display: flex; width: max-content; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.view-switch a { padding: .45rem .8rem; border-radius: 7px; color: var(--muted); font-size: .73rem; font-weight: 700; }
.view-switch a:hover { color: white; }
.view-switch a.active { background: var(--surface-soft); color: white; }
.calendar-date-nav { display: grid; grid-template-columns: 40px minmax(150px,auto) 40px; align-items: center; text-align: center; }
.calendar-date-nav a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.calendar-date-nav a:hover { border-color: var(--line-strong); color: white; }
.calendar-date-nav strong { padding: 0 .7rem; font-size: .78rem; }
.agenda-day { display: grid; grid-template-columns: 66px 1fr; gap: .75rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.agenda-day > header > div { display: none; }
.agenda-day header time { display: flex; flex-direction: column; align-items: center; }
.agenda-day header strong { color: var(--accent-hover); font-size: .62rem; letter-spacing: .08em; }
.agenda-day header span { font-size: 1.9rem; font-weight: 800; }
.calendar-agenda .agenda-day, .calendar-day .agenda-day, .calendar-week-list .agenda-day { grid-template-columns: 48px minmax(0,1fr); gap: .55rem; padding: .62rem 0; }
.calendar-agenda .agenda-day header time, .calendar-day .agenda-day header time, .calendar-week-list .agenda-day header time { gap: .04rem; }
.calendar-agenda .agenda-day header strong, .calendar-day .agenda-day header strong, .calendar-week-list .agenda-day header strong { font-size: .62rem; line-height: 1.1; }
.calendar-agenda .agenda-day header span, .calendar-day .agenda-day header span, .calendar-week-list .agenda-day header span { font-size: 1.35rem; line-height: 1; }
.agenda-items { display: grid; gap: .5rem; }
.agenda-item { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: .75rem; padding: .65rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.agenda-item:hover { background: var(--surface-raised); }
.agenda-item h3 { margin: .05rem 0; font-size: .93rem; font-weight: 750; }
.agenda-item p { margin: 0; color: var(--muted); font-size: .7rem; }
.calendar-empty-day { margin: .7rem 0; color: var(--subtle); font-size: .72rem; }
.week-date-strip { display: grid; grid-template-columns: repeat(7,minmax(44px,1fr)); gap: .25rem; overflow-x: auto; padding: .15rem 0 .42rem; }
.week-date-toggle { display: grid; min-width: 44px; padding: .4rem .2rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); text-align: center; }
.week-date-toggle:hover { border-color: var(--line-strong); color: white; }
.week-date-toggle.active { border-color: var(--accent); background: var(--accent-soft); color: #d1caff; }
.week-date-toggle time { display: flex; flex-direction: column; gap: .1rem; }
.week-date-toggle span { font-size: .62rem; font-weight: 800; letter-spacing: .06em; }
.week-date-toggle strong { font-size: 1.1rem; line-height: 1; }
.week-filter-note { margin: 0 0 .7rem; color: var(--subtle); font-size: .68rem; }

/* Show and episode details */
.show-hero { position: relative; isolation: isolate; overflow: hidden; border: 0; background: transparent; }
.show-hero.has-backdrop::before { position: absolute; z-index: -2; inset: 0; background-image: var(--hero-backdrop); background-position: center 18%; background-size: cover; content: ""; opacity: .74; transform: scale(1.015); }
.show-hero.uses-poster-backdrop::before { background-position: center 28%; filter: blur(12px); opacity: .36; transform: scale(1.1); }
.show-hero.has-backdrop::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg,rgba(9,11,15,.06) 0%,rgba(9,11,15,.16) 36%,rgba(9,11,15,.72) 72%,var(--bg) 100%),linear-gradient(90deg,rgba(9,11,15,.28) 0%,transparent 68%,rgba(9,11,15,.22) 100%); content: ""; }
.show-hero-grid { display: grid; grid-template-columns: 104px minmax(0,1fr); align-items: center; column-gap: .7rem; row-gap: .45rem; padding: 7.2rem 0 .9rem; }
.hero-poster { display: flex; grid-column: 1; grid-row: 1; flex-direction: column; justify-content: space-between; width: 104px; max-width: none; aspect-ratio: 2/3; padding: .65rem; border-radius: 10px; background: var(--accent); color: #111319; font-size: .52rem; font-weight: 850; text-transform: uppercase; }
.hero-poster.has-image { overflow: hidden; padding: 0; background: var(--surface-soft); }
.hero-poster.has-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-poster strong { overflow-wrap: anywhere; font-size: 1.25rem; font-weight: 850; line-height: .88; letter-spacing: -.055em; text-transform: none; }
.genre-tag { padding: .24rem .46rem; border: 1px solid rgba(109,88,220,.28); border-radius: 999px; background: rgba(109,88,220,.14); color: #c8c0ff; font-size: .56rem; font-weight: 700; }
.genre-tag:hover { border-color: rgba(109,88,220,.48); background: rgba(109,88,220,.22); color: #ded8ff; }
.show-hero-copy { display: contents; }
.show-identity { display: flex; grid-column: 2; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; text-align: left; }
.show-identity h1 { margin: .12rem 0 0; overflow-wrap: anywhere; font-size: clamp(1.35rem, 6.5vw, 1.9rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.show-subtitle { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .12rem .28rem; margin: .25rem 0 0; color: var(--muted); font-size: .68rem; line-height: 1.3; }
.show-subtitle b { color: var(--subtle); font-weight: 400; }
.show-summary { grid-column: 1 / -1; margin-top: .08rem; }
.show-overview { display: -webkit-box; max-width: 690px; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: #b6bec9; font-size: .8rem; line-height: 1.45; }
.show-summary.expanded .show-overview { display: block; overflow: visible; }
.summary-toggle { margin-top: .25rem; padding: 0; border: 0; background: transparent; color: var(--accent-hover); font-size: .7rem; font-weight: 750; }
.show-meta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: .3rem; margin-top: .3rem; }
.show-genres { justify-content: flex-start; gap: .25rem; margin: 0; }
.hero-actions { display: flex; grid-column: 1 / -1; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .05rem; overflow: visible; }
.hero-primary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-width: 0; }
.show-hero .hero-actions .btn { padding: .4rem .65rem; font-size: .72rem; }
.series-status-form { position: relative; z-index: 5; }
.series-status-display { width: max-content; margin: 0 0 .05rem; }
.reaction-group { display: flex; gap: .35rem; }
.reaction-group .btn.active { border-color: var(--accent); background: var(--accent-soft); color: #c8c0ff; }
.show-content { display: grid; gap: .9rem; padding-top: .9rem; }
.season-block { margin-bottom: .62rem; }
.season-header { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: .38rem; border: 1px solid transparent; border-radius: 10px; background: transparent; transition: border-color .15s ease,background-color .15s ease; }
.season-header:has(.season-toggle.collapsed) { border-color: var(--line); background: var(--surface); }
.season-header:has(.season-toggle.collapsed):hover { border-color: var(--line-strong); background: var(--surface-raised); }
.season-toggle { display: flex; align-items: center; width: 100%; padding: .56rem .15rem .56rem .65rem; border: 0; background: transparent; color: var(--text); text-align: left; }
.season-toggle span { display: flex; flex-direction: column; }
.season-toggle strong { font-size: 1rem; font-weight: 750; }
.season-toggle small { color: var(--muted); font-size: .68rem; }
.season-actions { display: flex; align-items: center; padding: .1rem .5rem .1rem .1rem; }
.season-actions button { display: inline-grid; place-items: center; width: auto; min-width: 44px; min-height: 44px; padding: .55rem .7rem; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 1.35rem; line-height: 1; }
.season-actions button:hover { border: 0; background: transparent; color: var(--text); }
.season-bulk-toggle { white-space: nowrap; }
.season-bulk-toggle.is-complete { border: 0; background: transparent; color: var(--positive); }
.season-bulk-toggle.is-complete:hover { color: #72e3ad; }
.episode-list { display: grid; gap: .44rem; padding-top: .32rem; }
.episode-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 58px; padding: .6rem .68rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.episode-row:last-child { border: 1px solid var(--line); }
.episode-row:hover { background: var(--surface-raised); }
.episode-link { display: flex; align-items: center; flex: 1; gap: .75rem; min-width: 0; }
.episode-row.is-unavailable:hover { background: var(--surface); }
.episode-unavailable { color: var(--muted); cursor: default; }
.episode-row.is-unavailable h3 { color: var(--muted); }
.episode-locked { display: grid; place-items: center; flex: none; width: 38px; height: 38px; color: var(--subtle); }
.episode-number { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--surface-soft); color: var(--muted); font-size: .76rem; font-weight: 800; }
.episode-row h3 { margin: 0; font-size: .86rem; font-weight: 700; line-height: 1.25; }
.episode-row p, .discussion-count { margin: .14rem 0 0; color: var(--muted); font-size: .68rem; }
.discussion-count { display: inline-flex; align-items: center; gap: .18rem; }
.watched-toggle { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--muted); }
.watched-toggle span { display: none; }
.watched-toggle.watched { border-color: #275940; background: var(--positive-soft); color: var(--positive); }
.show-sidebar { display: grid; align-content: start; gap: .75rem; }
.info-panel { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.info-panel h2 { font-weight: 750; }
.info-panel p { color: var(--muted); font-size: .8rem; }
.provider-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .58rem .75rem; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-soft); color: var(--text); font-size: .72rem; font-weight: 750; }
.provider-pill.provider-logo-only { padding: 0; border: 0; border-radius: 8px; background: transparent; }
.provider-pill.provider-logo-only img { display: block; width: 34px; height: 34px; border: 0; border-radius: 8px; object-fit: contain; background: transparent; }
.info-panel dl { margin: 0; }
.info-panel dl div { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .76rem; }
.info-panel dl div:last-child { border: 0; }
.info-panel dd { margin: 0; color: var(--muted); font-weight: 700; }
.details-panel { margin-top: .55rem; padding: 0; border: 0; border-radius: 0; background: transparent; }
.details-panel .eyebrow { font-size: .55rem; }
.details-panel dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; margin-top: .4rem; }
.details-panel dl div { display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; padding: 0; border: 0; font-size: .69rem; }
.details-panel dt { order: 1; color: var(--subtle); font-size: .62rem; font-weight: 750; line-height: 1.25; letter-spacing: .07em; text-transform: uppercase; }
.details-panel dd { order: 2; margin-top: .18rem; overflow-wrap: anywhere; color: var(--text); font-size: .75rem; font-weight: 750; line-height: 1.2; }
.details-panel .tmdb-attribution { margin-top: .55rem; padding-top: .5rem; font-size: .58rem !important; line-height: 1.3; }
.where-to-watch-panel { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .68rem .75rem; }
.setting-toggle:has(input[name="reply_notifications"]), .setting-toggle:has(input[name="reaction_notifications"]) { display: none; }
.push-control { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.push-control > div { display: flex; min-width: 0; flex-direction: column; }
.push-control strong { font-size: .78rem; }
.push-control small { color: var(--muted); font-size: .66rem; line-height: 1.3; }
.push-control .btn { flex: none; min-width: 92px; }
.tmdb-attribution { margin: .8rem 0 0; padding-top: .75rem; border-top: 1px solid var(--line); color: var(--subtle) !important; font-size: .66rem !important; }
.episode-sheet-modal { --bs-modal-bg: var(--navigation-surface); --bs-modal-border-color: var(--line-strong); }
.episode-sheet-modal .modal-dialog { display: flex; width: 100%; max-width: none; min-height: 100%; height: 100dvh; margin: 0; flex-direction: column; justify-content: flex-end; }
.episode-sheet-modal .modal-content { flex: 0 1 auto; max-height: min(88dvh,760px); overflow: hidden; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 22px 22px 0 0; background: var(--navigation-surface); box-shadow: 0 -18px 55px rgba(0,0,0,.55); transform: translateY(var(--episode-sheet-drag,0)); transition: transform .2s ease-out; will-change: transform; }
.episode-sheet-modal.fade .modal-dialog { transform: translateY(100%); transition: transform .22s ease-out; }
.episode-sheet-modal.show .modal-dialog { transform: translateY(0); }
.episode-sheet-modal.is-dragging .modal-content { transition: none; }
.episode-sheet-modal.is-dragging [data-sheet-drag-handle] { cursor: grabbing; }
.episode-sheet-modal + .modal-backdrop, .modal-backdrop.show { opacity: .72; }
.episode-sheet-grabber { display: grid; place-items: center; min-height: 28px; padding-top: 7px; touch-action: none; cursor: grab; }
.episode-sheet-grabber span { width: 38px; height: 4px; border-radius: 999px; background: var(--line-strong); }
.episode-sheet-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; padding: .35rem 1rem .75rem; touch-action: none; cursor: grab; }
.episode-sheet-header button, .episode-sheet-header a { touch-action: manipulation; cursor: pointer; }
.episode-sheet-header > div { min-width: 0; }
.episode-sheet-header .kicker { display: block; margin-bottom: .2rem; color: var(--muted); }
.episode-sheet-header h2 { margin: 0; overflow-wrap: anywhere; font-size: 1.25rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.episode-sheet-close { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-soft); color: var(--muted); }
.episode-sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 1rem calc(1rem + env(safe-area-inset-bottom)); }
.episode-sheet-art { display: grid; width: 100%; aspect-ratio: 16/9; place-items: center; overflow: hidden; border-radius: 12px; background: var(--surface-soft); color: var(--subtle); }
.episode-sheet-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.episode-sheet-art > i { font-size: 2rem; }
.episode-sheet-meta { display: flex; flex-wrap: wrap; gap: .35rem .75rem; margin-top: .7rem; color: var(--muted); font-size: .68rem; font-weight: 700; }
.episode-sheet-overview { margin: .7rem 0 0; color: #c0c7d1; font-size: .82rem; line-height: 1.5; }
.episode-sheet-actions { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-top: 1rem; }
.episode-sheet-actions > form:first-child { min-width: 0; }
.episode-sheet-actions .btn { min-height: 42px; padding: .45rem .7rem; font-size: .75rem; }
.episode-reaction-group { display: flex; flex: none; gap: .4rem; margin-left: auto; }
.episode-reaction-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--muted); font-size: 1rem; }
.episode-reaction-button.active { border-color: var(--accent); background: var(--accent-soft); color: #c8c0ff; }
.episode-sheet-provider { margin-top: .9rem; }
.episode-page-fallback { padding-top: 1rem; padding-bottom: 2rem; }
.episode-page-fallback .modal-content { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface-raised); }
.discussion-section { padding: 2.3rem 0; }
.count-badge { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 .35rem; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: .68rem; vertical-align: middle; }
.discussion-lock { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.discussion-lock > i { color: var(--accent-hover); font-size: 2rem; }
.discussion-lock h3 { margin: 0; font-weight: 750; }
.discussion-lock p { margin: .25rem 0 0; color: var(--muted); }
.comment-form { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.comment-form label { display: block; margin-bottom: .5rem; font-weight: 750; }
.comment-form textarea { width: 100%; min-height: 110px; padding: .75rem; border: 1px solid var(--line); border-radius: 9px; outline: 0; resize: vertical; background: var(--surface-soft); color: var(--text); }
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .5rem; }
.comment-form small { color: var(--muted); }
.comment-list { display: grid; gap: .75rem; margin-top: 1rem; }
.comment { display: grid; grid-template-columns: 40px 1fr; gap: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.comment header { display: flex; justify-content: space-between; gap: 1rem; }
.comment time { color: var(--muted); font-size: .68rem; }
.comment p { margin: .5rem 0; }
.comment-action { padding: .3rem; border: 0; background: transparent; color: var(--muted); font-size: .7rem; }

/* Notifications and settings */
.notification-list { display: grid; gap: .6rem; }
.notification-item { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.notification-item:hover { background: var(--surface-raised); }
.notification-item.unread { border-color: #514695; background: #151329; }
.notification-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--surface-soft); color: var(--accent-hover); }
.notification-item h2 { margin: .1rem 0; font-size: .98rem; font-weight: 750; }
.notification-item p { margin: 0; color: var(--muted); font-size: .76rem; }
.settings-grid { display: grid; gap: 1rem; }
.profile-card { display: flex; flex-direction: column; align-items: center; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); text-align: center; }
.profile-card h2 { margin: 1rem 0 0; font-weight: 750; }
.profile-card p { color: var(--muted); }
.settings-form { display: grid; gap: 1rem; }
.settings-form section { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.form-section-heading { display: flex; gap: .75rem; margin-bottom: 1rem; }
.form-section-heading > i { color: var(--accent-hover); font-size: 1.3rem; }
.form-section-heading h2 { margin: 0; font-size: 1.08rem; font-weight: 750; }
.form-section-heading p { margin: .1rem 0; color: var(--muted); font-size: .73rem; }
.form-grid { display: grid; gap: .8rem; }
.form-grid label, .auth-form-wrap form > label { display: flex; flex-direction: column; gap: .35rem; color: #c5ccd5; font-size: .73rem; font-weight: 700; }
.form-grid select, .form-grid input, .auth-form-wrap input { width: 100%; min-height: 44px; padding: .72rem; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: var(--surface-soft); color: var(--text); }
.form-grid select:focus, .form-grid input:focus, .auth-form-wrap input:focus { border-color: var(--accent); }
.setting-toggle { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); cursor: pointer; }
.setting-toggle > span:first-child { display: flex; flex-direction: column; }
.setting-toggle small { color: var(--muted); }
.setting-toggle input { position: absolute; opacity: 0; }
.switch { position: relative; flex: none; width: 44px; height: 25px; border-radius: 999px; background: #353d49; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #a6afbb; transition: left .15s, background .15s; }
.setting-toggle input:checked + .switch { background: var(--accent); }
.setting-toggle input:checked + .switch::after { left: 22px; background: white; }
.settings-actions { display: flex; justify-content: flex-end; }
.danger-zone { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1rem; padding: 1rem; border: 1px solid #5c2c32; border-radius: var(--radius); background: #171114; }
.danger-zone > div { flex: 1 1 300px; }
.danger-zone h2 { margin: 0; font-size: 1rem; font-weight: 750; }
.danger-zone p { margin: .2rem 0 0; color: var(--muted); font-size: .73rem; }

/* Authentication */
.auth-shell { min-height: calc(100vh - 64px); }
.auth-poster { display: none; }
.auth-panel { display: grid; place-items: center; padding: 2rem 1rem; }
.auth-form-wrap { width: min(100%, 450px); }
.auth-form-wrap h2 { margin: 0; font-size: 2.3rem; font-weight: 800; letter-spacing: -.045em; }
.auth-form-wrap > p { margin: .5rem 0 1.5rem; color: var(--muted); }
.auth-form-wrap form { display: grid; gap: 1rem; }
.form-between { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .73rem; }
.check-line { display: inline-flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: .4rem; width: max-content; cursor: pointer; }
.auth-form-wrap .check-line input { flex: none; width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--accent); }
.link-button { border: 0; background: transparent; color: var(--muted); text-decoration: underline; }
.auth-switch { margin-top: 1.4rem; color: var(--muted); text-align: center; }
.auth-switch a { color: #b8adff; font-weight: 750; }
.demo-hint { display: flex; align-items: center; gap: .7rem; margin-top: 1.4rem; padding: .8rem; border: 1px solid #514695; border-radius: 10px; background: var(--accent-soft); color: #cbc4ff; font-size: .73rem; }
.demo-hint > i { font-size: 1.25rem; }
.demo-hint div { display: flex; flex-direction: column; }
.demo-hint span { color: #9f96d7; }
.verification-state { display: grid; justify-items: stretch; gap: 1rem; margin-top: 1.25rem; text-align: center; }
.verification-state > strong { overflow-wrap: anywhere; font-size: 1rem; }
.verification-state > p { margin: 0; color: var(--muted); }
.verification-state > .text-link { justify-self: center; }
.verification-icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin: 0 auto; border-radius: 50%; background: rgba(204,148,16,.14); color: var(--warning); font-size: 1.45rem; }
.security-settings { max-width: 900px; margin: 0 auto 4rem; }
.security-settings > section { margin-bottom: 1rem; }
.recovery-box { padding: 1rem; margin: 1rem 0; border: 1px solid var(--warning); border-radius: 12px; background: rgba(204,148,16,.09); }
.recovery-box p { margin: .25rem 0 .75rem; color: var(--muted); }
.recovery-codes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem; }
.recovery-codes code,.mfa-key code { display: block; padding: .55rem .7rem; border-radius: 8px; background: #080a09; color: var(--accent); letter-spacing: .08em; }
.mfa-key { display: grid; gap: .45rem; margin: 1rem 0; }
.mfa-key span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.session-list { display: grid; gap: .6rem; }
.session-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem; border: 1px solid var(--line); border-radius: 10px; }
.session-row div { min-width: 0; }
.session-row small { display: block; margin-top: .2rem; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .recovery-codes { grid-template-columns: 1fr; } .session-row { align-items: flex-start; } }
.modal-content { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-raised); color: var(--text); }
.modal-header, .modal-footer { border-color: var(--line); }

@media (min-width: 576px) {
  .show-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
  .mini-poster { width: 78px; }
  .my-list-item { grid-template-columns: 72px 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .discussion-lock { flex-direction: row; align-items: center; }
  .discussion-lock > div { flex: 1; }
  .episode-row { padding: .62rem .7rem; }
  .season-header { grid-template-columns: minmax(0,1fr) auto; align-items: stretch; }
  .season-actions { align-items: center; padding: .1rem .7rem .1rem .1rem; }
  .season-bulk-toggle { min-width: 44px; }
  .watched-toggle { display: flex; width: auto; padding: 0 .65rem; gap: .35rem; }
  .watched-toggle span { display: inline; }
}

@media (min-width: 768px) {
  .landing-poster-grid { grid-auto-columns: calc((100% - 4.25rem)/6); gap: .85rem; }
  .landing-grid { grid-template-columns: 160px minmax(0,1fr); align-items: end; gap: 1.25rem; max-width: 940px; padding: 10rem 0 2rem; }
  .landing-feature-poster { width: 160px; border-radius: 12px; }
  .landing-grid h1 { font-size: clamp(3rem,5vw,4.8rem); }
  .landing-feature-meta { font-size: .75rem; }
  .landing-feature-overview { max-width: 720px; font-size: .86rem; }
  .landing-feature-actions .btn { padding: .5rem .8rem; font-size: .76rem; }
  .show-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .feature-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
  .feature-grid article { min-height: 0; padding: 1.4rem; border-radius: var(--radius-lg); }
  .feature-grid article > i { font-size: 2.1rem; }
  .feature-grid h3 { margin: 1.2rem 0 .4rem; font-size: 1.08rem; }
  .feature-grid p { font-size: .85rem; }
  .step-number { top: 1rem; right: 1rem; font-size: .72rem; }
  .continue-grid { grid-template-columns: repeat(2, 1fr); }
  .recent-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row div { padding: 1.25rem; }
  .stat-row strong { font-size: 2.35rem; }
  .stat-row span { font-size: .73rem; }
  .agenda-day { grid-template-columns: 180px 1fr; }
  .agenda-day > header { display: flex; gap: 1rem; }
  .agenda-day > header > div { display: block; }
  .agenda-day > header h2 { margin: 0; font-size: 1rem; font-weight: 750; }
  .agenda-day > header p { margin: 0; color: var(--muted); font-size: .7rem; }
  .calendar-agenda .agenda-day, .calendar-day .agenda-day, .calendar-week-list .agenda-day { grid-template-columns: 118px minmax(0,1fr); gap: .65rem; padding: .72rem 0; }
  .calendar-agenda .agenda-day > header, .calendar-day .agenda-day > header, .calendar-week-list .agenda-day > header { gap: .55rem; }
  .calendar-agenda .agenda-day > header h2, .calendar-day .agenda-day > header h2, .calendar-week-list .agenda-day > header h2 { font-size: .86rem; }
  .calendar-agenda .agenda-day > header p, .calendar-day .agenda-day > header p, .calendar-week-list .agenda-day > header p { font-size: .62rem; }
  .show-hero-grid { grid-template-columns: 180px 1fr; align-items: center; column-gap: 1.25rem; padding: 9rem 0 1.25rem; }
  .hero-poster { grid-row: 1 / span 3; width: 100%; max-width: 180px; }
  .show-identity { grid-column: 2; }
  .show-identity h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: .95; }
  .show-subtitle { margin-top: .35rem; font-size: .78rem; }
  .show-summary { grid-column: 2; margin-top: .45rem; }
  .show-summary .show-overview { display: block; overflow: visible; -webkit-line-clamp: unset; font-size: .9rem; }
  .summary-toggle { display: none !important; }
  .show-genres { margin-top: 0; }
  .hero-actions { grid-column: 2; margin-top: .5rem; }
  .show-content { grid-template-columns: minmax(0, 1fr) 280px; }
  .settings-grid { grid-template-columns: 240px 1fr; }
  .profile-card { align-self: start; position: sticky; top: 120px; }
  .settings-form section { padding: 1.4rem; }
}

@media (min-width: 992px) {
  .page-shell { padding-bottom: 0; }
  .show-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .continue-grid { grid-template-columns: repeat(3, 1fr); }
  .recent-grid { grid-template-columns: repeat(3, 1fr); }
  .my-list-stack { grid-template-columns: repeat(2, 1fr); }
  .auth-shell { display: grid; grid-template-columns: 1.05fr .95fr; min-height: calc(100vh - 64px); }
  .auth-poster { display: flex; flex-direction: column; justify-content: space-between; padding: 3rem; border-right: 1px solid var(--line); background: #0d1117; }
  .auth-poster h1 { margin: .5rem 0 1rem; font-size: clamp(3.8rem, 6vw, 6rem); font-weight: 800; letter-spacing: -.075em; line-height: .85; }
  .auth-poster p { max-width: 520px; color: var(--muted); }
  .auth-panel { padding: 4rem; }
  .poster strong { font-size: clamp(1.6rem, 2.4vw, 2.6rem); }
}

html.is-navigating::before { content: ''; position: fixed; z-index: 2000; top: 0; left: 0; width: 38%; height: 3px; background: var(--accent); animation: live-progress .8s ease-in-out infinite alternate; }
html.is-navigating main { opacity: .72; transition: opacity .15s ease; }
@keyframes live-progress { from { transform: translateX(-30%); } to { transform: translateX(195%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  html.is-navigating::before { animation: none; width: 100%; }
}
:focus-visible { outline: 3px solid var(--warning); outline-offset: 3px; }
.header-search:focus-within, .discover-search:focus-within, .ops-search:focus-within { border-color: var(--warning); box-shadow: 0 0 0 2px rgba(204,148,16,.22); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--warning) !important; box-shadow: 0 0 0 2px rgba(204,148,16,.22); outline: 0; }
.discover-search input:focus-visible { border: 0 !important; box-shadow: none; outline: 0; }
[aria-busy="true"] { cursor: progress; }
body[aria-busy="true"] button, body[aria-busy="true"] a { cursor: progress; }
@media (prefers-contrast: more) {
  :root { --muted: #bbc3ce; --subtle: #a4aebb; --line: #505b69; --line-strong: #778392; }
  .status-tag, .list-status-badge, .filter-chip.active, .mobile-nav a.active { box-shadow: inset 0 0 0 2px currentColor; }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { border: 2px solid var(--bg); border-radius: 999px; background: #333b47; }
