/* =====================================================================
   mediawatcher — tokens
   ===================================================================== */
:root {
  --bg: #05070a;
  --bg-2: #0b0f16;
  --panel: #11161f;
  --panel-2: #171d28;
  --line: #1e2633;
  --line-2: #2a3444;
  --text: #eef1f6;
  --muted: #8a94a6;
  --dim: #5b6575;
  --red: #dc2626;
  --red-hi: #f87171;
  --red-glow: rgba(220, 38, 38, .45);
  --amber: #f5a524;
  --green: #22c55e;
  --violet: #7c6cf6;
  --teal: #14b8a6;
  --pink: #ec4899;
  --sky: #38bdf8;
  --grad-hot: linear-gradient(90deg, #f87171 0%, #f5a524 55%, #ec4899 100%);
  --top-h: 72px;
  /* side padding grows past 1440px of content, so everything sits in a centered column on wide screens */
  --gutter: max(clamp(16px, 4vw, 56px), calc(50vw - 720px));
  --radius: 10px;
  --radius-lg: 16px;
  /* one typeface everywhere; the old serif/mono roles now map to Inter weights and tabular figures */
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--body);
  --mono: var(--body);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* ambient colour wash behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 420px at 6% -4%, rgba(220,38,38,.20), transparent 62%),
    radial-gradient(760px 520px at 100% 8%, rgba(124,108,246,.16), transparent 60%),
    radial-gradient(680px 520px at 50% 108%, rgba(20,184,166,.12), transparent 60%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select { font: inherit; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

.mono { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.serif { font-weight: 600; }
body { font-variant-numeric: tabular-nums; }
em { font-style: normal; }
[hidden] { display: none !important; }

/* =====================================================================
   top bar
   ===================================================================== */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--top-h);
  display: flex; align-items: center; gap: 22px; padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(5,7,10,.85) 0%, rgba(5,7,10,0) 100%);
  transition: background .25s var(--ease), backdrop-filter .25s;
}
.top.solid {
  background: rgba(5,7,10,.82); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,.04);
}
.nav { display: flex; gap: 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
@media (max-width: 1240px) { .nav a { padding: 8px 9px; font-size: 13px; } }
.nav a {
  position: relative; padding: 8px 12px; border-radius: 8px;
  color: var(--muted); font-weight: 500; font-size: 14px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav a.active { color: var(--text); }
.nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad-hot);
}

.search { position: relative; margin-left: auto; flex: 0 1 300px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 38px; padding: 0 12px 0 36px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.06); color: var(--text);
  transition: background .15s, border-color .15s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; background: rgba(10,14,20,.95); border-color: var(--line-2); }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.search-drop {
  position: absolute; top: 44px; left: 0; right: 0; min-width: 340px;
  background: #0c1017; border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6); max-height: 70vh; overflow-y: auto;
}
.search-drop a { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 6px 8px; border-radius: 8px; }
.search-drop a:hover, .search-drop a.sel { background: rgba(255,255,255,.06); }
.search-drop img, .search-drop .thumb { width: 38px; height: 56px; border-radius: 4px; object-fit: cover; background: var(--panel); }
.search-drop .t { font-weight: 500; font-size: 14px; line-height: 1.3; }
.search-drop .m { color: var(--muted); font-size: 12px; }
.search-drop .all { display: block; text-align: center; padding: 10px; color: var(--red-hi); font-size: 13px; font-weight: 500; }
.user {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--violet), var(--pink)); color: #fff; font-weight: 700; font-size: 14px; text-transform: uppercase;
  box-shadow: 0 6px 18px -6px rgba(236,72,153,.6);
}
.gear { color: var(--muted); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; }

/* auth */
.auth { min-height: calc(100vh - var(--top-h) - 120px); display: grid; place-items: center; }
.auth .panel { width: min(420px, 100%); padding: 30px; }
.auth .tabs { margin-bottom: 20px; }
.auth .tabs a { cursor: pointer; }
.auth .field input { font-family: var(--body); font-size: 15px; }
.auth .btn { width: 100%; justify-content: center; }
.auth .brand-big { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 22px; font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.users { display: grid; gap: 8px; }
.users .row-u { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--bg-2); }
.users .row-u .u { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); font-weight: 700; text-transform: uppercase; font-size: 13px; }
.users .row-u .m { color: var(--muted); font-size: 12px; }
.code { font-family: var(--mono); font-size: 18px; letter-spacing: .12em; padding: 8px 12px; border-radius: 8px; background: var(--bg-2); border: 1px dashed var(--line-2); display: inline-block; }
.gear:hover { color: var(--text); background: rgba(255,255,255,.06); }

/* =====================================================================
   layout
   ===================================================================== */
.view { padding: calc(var(--top-h) + 20px) var(--gutter) 100px; min-height: 100vh; }
.view:focus { outline: none; }
.view > .hero-full, .view > .player-wrap { margin-top: calc(-1 * (var(--top-h) + 20px)); }

.section { margin-bottom: 44px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.section-head h2 {
  margin: 0; font-weight: 700; font-size: 24px; letter-spacing: -.02em; line-height: 1.15;
}
.section-head h2 em, h1.page-title em, .panel h2 em { font-style: normal; color: inherit; }
.section-head .count { color: var(--dim); font-size: 12px; font-weight: 500; }
.section-head .more { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.section-head .more:hover { color: var(--text); }

h1.page-title {
  margin: 8px 0 22px; font-weight: 800; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; line-height: 1.05;
}
.page-sub { color: var(--muted); margin: -12px 0 24px; max-width: 640px; }
.eyebrow { color: var(--muted); text-transform: uppercase; font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.eyebrow.red { color: var(--red-hi); }

/* scroll rows with arrows */
.row-wrap { position: relative; }
.row {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--col, 170px); gap: 14px;
  overflow-x: auto; padding: 6px 0 12px; scroll-snap-type: x proximity; scrollbar-width: none;
  scroll-padding: 0;
}
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }
.row.wide { --col: 300px; }
.row.ep { --col: 280px; }
.row.people { --col: 120px; }
.row-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(12,16,23,.9); border: 1px solid var(--line-2); color: var(--text);
  display: grid; place-items: center; opacity: 0; transition: opacity .15s;
}
.row-btn.prev { left: -20px; } .row-btn.next { right: -20px; }
.row-wrap:hover .row-btn, .row-btn:focus-visible { opacity: 1; }
.row-btn:hover { background: var(--panel-2); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px 14px; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* =====================================================================
   cards
   ===================================================================== */
.card { display: block; position: relative; }
.card .poster {
  position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--radius);
  background: var(--panel); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover .poster, .card:focus-visible .poster { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1), 0 0 36px -6px var(--red-glow); }
.card .poster img { width: 100%; height: 100%; object-fit: cover; }
.card .noimg { padding: 14px; color: var(--muted); font-size: 13px; display: grid; place-items: center; height: 100%; text-align: center; }
.card .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.6); }
.card .bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--red); }
.card .tag {
  position: absolute; top: 8px; left: 8px; padding: 3px 7px; border-radius: 6px;
  background: rgba(5,7,10,.8); backdrop-filter: blur(6px); font-family: var(--mono); font-size: 11px; color: var(--text);
}
.card .tag.right { left: auto; right: 8px; }
.card .tag.rate { color: var(--amber); }
.card .card-title { margin-top: 10px; font-weight: 500; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .card-meta { color: var(--muted); margin-top: 2px; font-size: 12px; }
.card .play-hint {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s;
  background: linear-gradient(180deg, rgba(5,7,10,0) 30%, rgba(5,7,10,.75) 100%);
}
.card:hover .play-hint { opacity: 1; }
.play-hint span {
  width: 48px; height: 48px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 8px 24px var(--red-glow);
}

/* wide (16:9) card — sports, episodes, up next */
.wcard { display: block; position: relative; }
.wcard .thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--panel);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wcard { --c: var(--red); }
.wcard:hover .thumb, .wcard:focus-visible .thumb { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.55), 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 0 34px -6px color-mix(in srgb, var(--c) 70%, transparent); }
.wcard .w-meta .cat { color: var(--c); font-weight: 600; text-transform: capitalize; }
.wcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.wcard .thumb .vsart {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(120% 100% at 50% 0%, #1a2230 0%, #0c1017 70%);
}
.wcard .thumb .vsart img { width: 44%; height: 60%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
.wcard .thumb .vsart .v { color: var(--dim); font-size: 15px; font-weight: 600; }
.wcard .thumb .textart { width: 100%; height: 100%; display: grid; place-items: center; padding: 16px; text-align: center;
  background: radial-gradient(120% 100% at 50% 0%, #1a2230 0%, #0c1017 70%); font-family: var(--serif); font-size: 22px; color: var(--muted); }
.wcard .thumb .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.6); }
.wcard .thumb .bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--red); }
.wcard .thumb .chip { position: absolute; top: 8px; left: 8px; }
.wcard .thumb .chip.right { left: auto; right: 8px; }
.wcard .thumb .len { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(5,7,10,.8); font-family: var(--mono); font-size: 11px; }
.wcard .w-title { margin-top: 10px; font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wcard .w-meta { color: var(--muted); font-size: 12px; margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.wcard .w-meta .sep { color: var(--dim); }
.wcard .w-over { color: var(--muted); font-size: 12px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wcard.done .thumb { opacity: .55; }
.wcard .thumb .check { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }

/* chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4;
  background: rgba(5,7,10,.8); backdrop-filter: blur(6px); color: var(--text);
}
.chip.live { background: var(--red); color: #fff; font-weight: 500; }
.chip.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.3s infinite; }
.chip.viewers { background: var(--amber); color: #1a1200; font-weight: 500; }
.chip.soon { background: rgba(245,165,36,.18); color: var(--amber); }
.chip.hd { background: rgba(255,255,255,.1); }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .2 } }

/* people */
.person { text-align: center; }
.person img, .person .noface { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; background: var(--panel); }
.person .noface { display: grid; place-items: center; color: var(--dim); font-weight: 700; font-size: 22px; }
.person .n { font-size: 13px; font-weight: 500; line-height: 1.25; }
.person .c { font-size: 12px; color: var(--muted); }

/* =====================================================================
   buttons
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.07); font-weight: 600; font-size: 14px;
  transition: background .15s, border-color .15s, transform .15s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: rgba(255,255,255,.12); }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, #f04545 0%, #dc2626 55%, #c81e5b 100%); border-color: transparent; color: #fff; box-shadow: 0 8px 26px var(--red-glow); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.on { border-color: var(--red-hi); color: var(--red-hi); background: rgba(220,38,38,.1); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.icon { width: 44px; padding: 0; justify-content: center; }
.btn .mono { opacity: .75; }
.btn svg { flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* =====================================================================
   hero (home carousel + detail pages)
   ===================================================================== */
.hero-full {
  position: relative; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
  min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
}
.hero-full .slides, .hero-full .backdrop { position: absolute; inset: 0; }
.hero-full .backdrop {
  background-size: cover; background-position: center 20%; opacity: 0; transition: opacity .8s var(--ease);
  transform: scale(1.04);
}
.hero-full .backdrop.on { opacity: 1; animation: kenburns 14s linear both; }
@keyframes kenburns { from { transform: scale(1.04) } to { transform: scale(1.12) } }
.hero-full::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(60% 70% at 8% 100%, rgba(220,38,38,.28), transparent 65%),
    linear-gradient(90deg, rgba(5,7,10,.92) 0%, rgba(5,7,10,.55) 45%, rgba(5,7,10,.1) 100%),
    linear-gradient(180deg, rgba(5,7,10,.2) 0%, rgba(5,7,10,0) 35%, rgba(5,7,10,.75) 80%, var(--bg) 100%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%; padding: 60px var(--gutter) 48px;
  display: flex; gap: 32px; align-items: flex-end;
}
.hero-copy { max-width: 720px; }
.hero-copy .eyebrow { display: inline-flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.hero-copy h1 {
  margin: 0 0 14px; font-weight: 800; font-size: clamp(34px, 5.2vw, 66px); line-height: .98; letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-copy .facts { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 13px; margin-bottom: 16px; align-items: center; }
.hero-copy .facts .rate { color: var(--amber); font-weight: 600; }
.hero-copy .overview { color: #c8cfda; max-width: 600px; margin: 0 0 22px; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-poster { width: 200px; flex: none; border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
.hero-dots { position: absolute; right: var(--gutter); bottom: 52px; z-index: 3; display: flex; gap: 6px; }
.hero-dots button { width: 22px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); transition: background .2s, width .2s; }
.hero-dots button.on { background: var(--red); width: 34px; }
.hero-tabs { display: flex; gap: 6px; margin-bottom: 14px; }

/* detail hero (shorter) */
.hero-full.detail { min-height: 62vh; }
.next-air { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,.06); font-size: 13px; }
.next-air b { color: var(--text); }

/* rating box */
.ratebox { margin-top: 18px; display: grid; gap: 10px; max-width: 760px; }
.rb-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); font-size: 13px; font-weight: 500; color: var(--text);
}
.pill:hover { background: rgba(255,255,255,.12); }
.pill.on { border-color: var(--teal); color: var(--teal); background: rgba(20,184,166,.12); }
.pill.on.like { border-color: var(--green); color: var(--green); background: rgba(34,197,94,.12); }
.pill.on.dislike { border-color: var(--red-hi); color: var(--red-hi); background: rgba(220,38,38,.12); }
.rb-stars { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; }
.stars { display: inline-flex; gap: 1px; }
.stars .st { position: relative; color: rgba(255,255,255,.18); display: inline-flex; }
.stars .st svg { width: 22px; height: 22px; }
.stars .st.full { color: var(--amber); }
.stars .st.half { background: linear-gradient(90deg, var(--amber) 50%, rgba(255,255,255,.18) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars .st.half svg { fill: currentColor; }
.stars.hot .st { cursor: pointer; }
.stars.hot .st:hover { transform: scale(1.15); }
.rb-val { color: var(--muted); }
.rb-stars .x { color: var(--dim); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; }
.rb-stars .x:hover { color: var(--red-hi); }
.rb-review { border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.04); }
.rb-review summary { cursor: pointer; padding: 10px 14px; font-weight: 500; font-size: 14px; color: var(--muted); list-style: none; }
.rb-review summary::-webkit-details-marker { display: none; }
.rb-review[open] summary { color: var(--text); }
.rb-review textarea {
  display: block; width: calc(100% - 28px); margin: 0 14px 10px; padding: 10px 12px; border-radius: 8px; resize: vertical;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 14px;
}
.rb-review textarea:focus { outline: none; border-color: var(--red-hi); }
.rb-review .actions { padding: 0 14px 12px; }
.review-card { padding: 16px 18px; border-radius: var(--radius); background: var(--panel); display: grid; grid-template-columns: 64px 1fr; gap: 16px; }
.review-card img { width: 64px; border-radius: 6px; }
.review-card .rt { font-weight: 600; font-size: 15px; }
.review-card .rm { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; margin: 4px 0 8px; flex-wrap: wrap; }
.review-card .rm .stars .st svg { width: 14px; height: 14px; }
.review-card p { margin: 0; color: #c8cfda; font-size: 14px; white-space: pre-wrap; }

/* episode manual mark */
.wcard .mark {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(5,7,10,.75); color: rgba(255,255,255,.7); opacity: 0; transition: opacity .15s, background .15s;
}
.wcard:hover .mark, .wcard .mark.on { opacity: 1; }
.wcard .mark.on { background: var(--teal); color: #03211d; }
.wcard .mark:hover { background: var(--teal); color: #03211d; }

/* taste profile */
.taste { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 36px; }
.taste .chart .hbar .track i { background: var(--grad-hot); }
.taste .chart .hbar .track i.neg { background: var(--line-2); }
.taste-summary { padding: 18px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(124,108,246,.18), var(--panel) 60%); border: 1px solid rgba(124,108,246,.3); }
.taste-summary h3 { margin: 0 0 6px; font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.taste-summary p { margin: 0; color: #c8cfda; font-size: 14px; }
.taste-summary .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.taste-summary .tags span { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: rgba(255,255,255,.08); }
.taste-summary .tags span.neg { color: var(--muted); text-decoration: line-through; }
.import-log { max-height: 220px; overflow: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--bg-2); border-radius: 8px; padding: 10px 12px; margin-top: 10px; white-space: pre-wrap; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* =====================================================================
   episodes
   ===================================================================== */
.season-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.season-bar h2 { margin: 0; font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.select {
  height: 38px; padding: 0 36px 0 14px; border-radius: 9px; appearance: none;
  background: rgba(255,255,255,.07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a94a6' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid rgba(255,255,255,.1); color: var(--text); font-weight: 500;
}
.select option { background: #0c1017; }
.season-bar .sp { margin-left: auto; color: var(--muted); font-size: 13px; }
.episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px 16px; }
.wcard .epnum { position: absolute; left: 8px; top: 8px; }

/* =====================================================================
   watch page
   ===================================================================== */
.player-wrap { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); background: #000; padding-top: var(--top-h); }
.player { width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - var(--top-h)); margin: 0 auto; border: 0; display: block; }
.now { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; justify-content: space-between; margin: 22px 0 26px; }
.now h1 { margin: 6px 0 4px; font-weight: 800; font-size: 30px; letter-spacing: -.03em; line-height: 1.05; }
.now .sub { color: var(--muted); }
.ep-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.ep-strip::-webkit-scrollbar { display: none; }
.ep-strip a {
  flex: none; padding: 7px 12px; border-radius: 8px; background: var(--panel); border: 1px solid transparent;
  font-family: var(--mono); font-size: 12px; color: var(--muted); position: relative; overflow: hidden;
}
.ep-strip a.current { color: #fff; background: var(--red); }
.ep-strip a:hover:not(.current) { border-color: var(--line-2); color: var(--text); }
.ep-strip a .p { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--p, 0%); background: var(--red-hi); }

/* =====================================================================
   sports
   ===================================================================== */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.tabs a {
  padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s;
}
.tabs a:hover { color: var(--text); background: rgba(255,255,255,.1); }
.tabs a.active { background: var(--red); color: #fff; border-color: transparent; box-shadow: 0 6px 18px -6px var(--red-glow); }

.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 12px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.tiles::-webkit-scrollbar { display: none; }
.tile {
  --c: var(--red);
  position: relative; aspect-ratio: 1 / .78; border-radius: var(--radius); padding: 14px; overflow: hidden;
  background: radial-gradient(130% 110% at 0% 0%, color-mix(in srgb, var(--c) 34%, var(--panel)) 0%, var(--panel) 72%);
  border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .25s var(--ease), border-color .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--c) 60%, transparent); }
.tile.active { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c), 0 10px 30px -8px color-mix(in srgb, var(--c) 70%, transparent); }
.tile .ico { font-size: 30px; line-height: 1; filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--c) 60%, transparent)); }
.tile .name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.tile .n { position: absolute; top: 10px; right: 10px; }

.day-group { margin-bottom: 26px; }
.day-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.day-head h3 { margin: 0; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.day-head .d { color: var(--muted); font-size: 12px; font-weight: 500; }

/* match hero */
.match-hero { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin: 22px 0 26px; }
.match-hero .side { display: flex; align-items: center; gap: 14px; }
.match-hero .side img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
.match-hero .side .nm { font-weight: 800; font-size: 26px; letter-spacing: -.03em; line-height: 1.05; }
.match-hero .side .fl { display: block; margin-top: 4px; }
.match-hero .v { color: var(--dim); font-size: 20px; font-weight: 600; }
.match-hero .when { margin-left: auto; text-align: right; display: grid; gap: 6px; justify-items: end; }
.follow {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px;
  border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 12px; font-weight: 500;
}
.follow:hover { color: var(--text); border-color: var(--muted); }
.follow.on { color: var(--amber); border-color: rgba(245,165,36,.5); background: rgba(245,165,36,.1); }

.streams { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-bottom: 26px; }
.streams button {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; text-align: left;
  padding: 12px 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid transparent; transition: border-color .15s, background .15s;
}
.streams button:hover { border-color: var(--line-2); background: var(--panel-2); }
.streams button.current { border-color: var(--red); background: rgba(220,38,38,.08); }
.streams .src { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.streams .lang { font-weight: 600; font-size: 14px; grid-row: 2; }
.streams .right { grid-row: 1 / span 2; display: grid; gap: 4px; justify-items: end; }
.streams .viewers { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.streams button.reload { display: inline-flex; align-items: center; gap: 8px; justify-content: center; color: var(--muted); border-style: dashed; border-color: var(--line-2); background: transparent; font-weight: 500; }
.streams button.reload:hover { color: var(--text); }

/* =====================================================================
   schedule + following
   ===================================================================== */
.sched { display: grid; grid-template-columns: 1fr; gap: 10px; }
.sched-item {
  display: grid; grid-template-columns: 74px 56px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid transparent;
}
.sched-item:hover { border-color: var(--line-2); }
.sched-item .tm { font-family: var(--mono); font-size: 13px; }
.sched-item .tm small { display: block; color: var(--dim); font-size: 11px; }
.sched-item .art { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--panel-2); }
.sched-item .art.badges { display: flex; align-items: center; justify-content: center; gap: 2px; }
.sched-item .art.badges img { width: 24px; height: 24px; object-fit: contain; }
.sched-item .what .t { font-weight: 600; font-size: 14px; }
.sched-item .what .s { color: var(--muted); font-size: 12px; margin-top: 2px; }
.sched-item .go { color: var(--muted); font-size: 12px; font-weight: 500; }
.sched-item.live-item { border-color: rgba(220,38,38,.35); }

.follow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.follow-card { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius); background: var(--panel); }
.follow-card img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--panel-2); }
.follow-card img.badge { object-fit: contain; padding: 4px; }
.follow-card .t { font-weight: 600; font-size: 14px; line-height: 1.25; }
.follow-card .s { color: var(--muted); font-size: 12px; }
.follow-card .x { color: var(--dim); width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; }
.follow-card .x:hover { color: var(--red-hi); background: rgba(220,38,38,.1); }

/* =====================================================================
   stats
   ===================================================================== */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 36px; }
.stat {
  padding: 18px 18px 16px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid rgba(255,255,255,.04);
  display: grid; gap: 4px; align-content: start;
}
.stat .l { color: var(--muted); font-size: 12px; font-weight: 500; }
.stat .v { font-weight: 800; font-size: 36px; line-height: 1; letter-spacing: -.03em; }
.stat .v small { font-family: var(--body); font-size: 14px; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.stat .d { color: var(--dim); font-size: 12px; }
.stat { --c: var(--red); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, var(--panel)), var(--panel) 62%); border-color: color-mix(in srgb, var(--c) 28%, transparent); }
.stat:nth-child(2) { --c: var(--amber); } .stat:nth-child(3) { --c: var(--pink); } .stat:nth-child(4) { --c: var(--violet); } .stat:nth-child(5) { --c: var(--sky); } .stat:nth-child(6) { --c: var(--teal); }
.stat.hi { --c: var(--red); }
.stat .v { color: color-mix(in srgb, var(--c) 70%, #fff); }
.charts { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.chart {
  padding: 18px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid rgba(255,255,255,.04);
}
.chart h3 { margin: 0 0 2px; font-size: 14px; font-weight: 600; }
.chart .sub { color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis { fill: var(--dim); font-family: var(--mono); font-size: 10px; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .bar-rect { fill: var(--red); }
.chart .bar-rect.dim { fill: var(--line-2); }
.chart .val { fill: var(--muted); font-family: var(--mono); font-size: 10px; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; }
.hbar .n { font-weight: 500; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hbar .v { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.hbar .track { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hbar .track i { display: block; height: 100%; width: var(--p, 0%); background: var(--red); border-radius: 3px; }
/* categorical: movies red, tv violet, sports teal — validated for CVD on the panel surface */
.hbar .track i.amber { background: #0d9488; }
.hbar .track i.blue { background: #7c6cf6; }

/* =====================================================================
   settings / states
   ===================================================================== */
.panel {
  background: var(--panel); border: 1px solid rgba(255,255,255,.05); border-radius: var(--radius-lg);
  padding: 26px; max-width: 680px;
}
.panel h2 { margin: 4px 0 8px; font-weight: 700; font-size: 22px; letter-spacing: -.02em; line-height: 1.15; }
.panel p { color: var(--muted); margin: 0 0 14px; }
.panel ol { color: #c8cfda; padding-left: 20px; margin: 0 0 20px; }
.panel ol li { margin-bottom: 6px; }
.link { color: var(--red-hi); text-decoration: underline; text-underline-offset: 3px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 500; font-size: 14px; }
.field input {
  height: 42px; padding: 0 12px; border-radius: 9px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text); font-family: var(--mono); font-size: 13px;
}
.field input:focus { border-color: var(--red-hi); outline: none; }
.field .hint { color: var(--muted); font-size: 13px; }
.status { margin-top: 12px; font-size: 14px; }
.status.ok { color: var(--green); }
.status.bad { color: var(--red-hi); }

.empty { color: var(--muted); padding: 26px 0; }
.empty a { color: var(--red-hi); }
.error { color: var(--red-hi); padding: 20px 0; }
.loading { color: var(--dim); padding: 22px 0; font-family: var(--mono); font-size: 12px; }
.loading::after { content: ""; display: inline-block; width: 1em; text-align: left; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { to { content: "..." } }
.skel { background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0 } }
.note { color: var(--dim); font-size: 12px; }

/* fade-in on route change */
.view > * { animation: rise .35s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }

/* =====================================================================
   responsive
   ===================================================================== */
@media (max-width: 1000px) {
  .charts { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --top-h: 60px; }
  .top, .top.solid { gap: 8px; padding-inline: 12px; backdrop-filter: none; background: rgba(5,7,10,.94); box-shadow: 0 1px 0 rgba(255,255,255,.04); }
  .search-drop { position: fixed; left: 12px; right: 12px; top: calc(64px + env(safe-area-inset-top)); min-width: 0; }
  .bell-drop { position: fixed; left: 12px; right: 12px; top: calc(64px + env(safe-area-inset-top)); width: auto; }
  .hero-full { min-height: 68vh; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 36px; }
  .hero-poster { width: 110px; }
  .hero-dots { bottom: 14px; }
  .row { --col: 130px; }
  .row.wide { --col: 240px; } .row.ep { --col: 240px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px 10px; }
  .sched-item { grid-template-columns: 62px 44px 1fr; }
  .sched-item .go { display: none; }
  .sched-item .art { width: 44px; height: 44px; }
  .match-hero .side .nm { font-size: 20px; }
  .match-hero .when { margin-left: 0; text-align: left; justify-items: start; }
  .row-btn { display: none; }
}

/* =====================================================================
   header extras: icon buttons, bell, avatars
   ===================================================================== */
.iconbtn { color: var(--muted); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; flex: none; position: relative; }
.iconbtn:hover { color: var(--text); background: rgba(255,255,255,.06); }
.bell-wrap { position: relative; flex: none; }
.badge { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.bell-drop { position: absolute; right: 0; top: 46px; width: min(360px, calc(100vw - 32px)); background: #0c1017; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.6); max-height: 70vh; overflow-y: auto; z-index: 60; }
.bell-drop a { display: grid; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.bell-drop a:last-child { border-bottom: 0; }
.bell-drop a.unread { background: rgba(220,38,38,.06); }
.bell-drop a b { font-size: 14px; }
.bell-drop a span { color: var(--muted); }
.bell-drop a small { color: var(--dim); font-family: var(--mono); font-size: 11px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-weight: 700; font-size: 13px; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, hsl(var(--h, 300) 70% 55%), hsl(calc(var(--h, 300) + 40) 70% 45%)); }
.avatar.big { width: 52px; height: 52px; font-size: 22px; vertical-align: middle; }
.user { background: linear-gradient(135deg, hsl(var(--h, 300) 70% 55%), hsl(calc(var(--h, 300) + 40) 70% 45%)); }
.title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.title-row .page-title { margin-bottom: 14px; }

/* feed */
.feed { display: grid; gap: 8px; }
.feed-item { display: grid; grid-template-columns: 30px 40px 1fr; gap: 12px; align-items: start; padding: 10px 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid transparent; }
.feed-item:hover { border-color: var(--line-2); }
.feed-item .fp { width: 40px; height: 60px; border-radius: 4px; object-fit: cover; background: var(--panel-2); display: block; }
.feed-item .ft { display: grid; gap: 4px; font-size: 14px; line-height: 1.4; }
.feed-item .ft .stars { vertical-align: middle; } .feed-item .ft .stars .st svg { width: 13px; height: 13px; }
.feed-item .fr { color: #c8cfda; font-size: 14px; }
.feed-item .fd { color: var(--dim); font-family: var(--mono); font-size: 11px; }

/* reactions on a title, group list */
.social { display: grid; gap: 14px; max-width: 800px; }
.reactions { display: grid; gap: 8px; }
.react { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--panel); font-size: 14px; }
.react .stars { vertical-align: middle; margin-left: 6px; } .react .stars .st svg { width: 13px; height: 13px; }
.react p { margin: 6px 0 0; color: #c8cfda; white-space: pre-wrap; }
.shared { display: grid; gap: 10px; }
.shared-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid transparent; }
.shared-item.fresh { border-color: rgba(34,197,94,.35); background: linear-gradient(90deg, rgba(34,197,94,.08), var(--panel) 40%); }
.shared-item img, .shared-item .fp { width: 56px; height: 84px; border-radius: 6px; object-fit: cover; background: var(--panel-2); display: block; }
.shared-item .t { font-weight: 600; font-size: 15px; }
.shared-item .m { font-size: 12px; margin: 2px 0 8px; }
.seen { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.who { position: relative; display: inline-flex; opacity: .45; }
.who.yes { opacity: 1; }
.who svg { position: absolute; right: -4px; bottom: -3px; width: 14px; height: 14px; background: var(--green); color: #052e16; border-radius: 50%; padding: 2px; }
.shared-item .x, .follow-card .x { color: var(--dim); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.shared-item .x:hover { color: var(--red-hi); background: rgba(220,38,38,.1); }

/* friends leaderboard */
.board { display: grid; gap: 8px; }
.board-row { display: grid; grid-template-columns: 28px 30px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid transparent; }
.board-row:hover { border-color: var(--line-2); }
.board-row .rank { font-weight: 800; font-size: 18px; color: var(--dim); text-align: center; }
.board-row:first-child .rank { color: var(--amber); }
.board-row .bn, .board-row .bv { display: grid; gap: 2px; font-size: 14px; }
.board-row .bv { text-align: right; }
.board-row .bv b { font-size: 18px; }
.board-row .muted { font-size: 12px; }

/* multi stream */
.multi-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.multi { display: grid; gap: 12px; grid-template-columns: 1fr; }
.multi[data-n="2"], .multi[data-n="3"], .multi[data-n="4"] { grid-template-columns: 1fr 1fr; }
.slot { display: grid; gap: 8px; }
.slot-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.slot-bar .select { flex: 1 1 200px; min-width: 0; }
.slot-player { aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.slot-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.slot-empty { color: var(--dim); display: grid; place-items: center; gap: 6px; font-size: 13px; }
.slot-empty svg { width: 40px; height: 40px; opacity: .4; }

/* collection link, binge, person, filters, pager */
.coll { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,.06); font-size: 13px; color: var(--muted); }
.coll:hover { color: var(--text); }
.binge { margin: 0 0 30px; padding: 16px 18px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(20,184,166,.14), var(--panel) 60%); border: 1px solid rgba(20,184,166,.25); }
.binge-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.binge-row b { color: var(--text); }
.person-hero { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 30px; flex-wrap: wrap; }
.person-hero img { width: 180px; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.person-hero .noface.big { width: 180px; height: 240px; border-radius: 12px; font-size: 60px; }
.person-hero .bio { max-width: 720px; color: #c8cfda; }
.person-hero .page-title { margin: 4px 0 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters .select { flex: 1 1 150px; min-width: 0; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.stat .v.sm { font-size: 24px; font-family: var(--body); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }

/* toggles */
.toggles { display: grid; gap: 12px; margin: 6px 0 12px; }
.toggle { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; font-size: 14px; cursor: pointer; }
.toggle input { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.toggle input:checked { background: var(--green); }
.toggle input:checked::after { transform: translateX(18px); }
.auth .divider { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; margin: 18px 0; }
.auth .divider::before, .auth .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth .back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 14px; }

/* continue-watching remove */
.card .rm { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 8px; background: rgba(5,7,10,.8); color: rgba(255,255,255,.8); display: grid; place-items: center; opacity: 0; transition: opacity .15s; z-index: 2; }
.card:hover .rm { opacity: 1; }
.card .rm:hover { background: var(--red); color: #fff; }

/* fantasy */
.leagues { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.league { padding: 14px 16px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid rgba(255,255,255,.05); }
.lg-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 10px 0 8px; }
.lg-score .me, .lg-score .opp { display: grid; gap: 2px; }
.lg-score .opp { text-align: right; }
.lg-score b { font-size: 14px; }
.lg-score .n { font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.03em; }
.lg-score .vs { color: var(--dim); font-weight: 600; }
.lg-score.up .me .n { color: var(--green); } .lg-score.down .opp .n { color: var(--green); }
.league details summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 500; list-style: none; padding: 6px 0; }
.league details summary::-webkit-details-marker { display: none; }
.fp-list { display: grid; gap: 4px; }
.fp-list.card-ish { padding: 10px 12px; border-radius: var(--radius); background: var(--panel); max-width: 720px; }
.fp-row { display: grid; grid-template-columns: 38px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fp-row:last-child { border-bottom: 0; }
.fp-row .pos { font-family: var(--mono); font-size: 11px; padding: 3px 0; border-radius: 4px; text-align: center; background: var(--line); color: var(--muted); }
.fp-row .pos.QB { background: rgba(236,72,153,.2); color: #f9a8d4; } .fp-row .pos.RB { background: rgba(34,197,94,.2); color: #86efac; }
.fp-row .pos.WR { background: rgba(56,189,248,.2); color: #7dd3fc; } .fp-row .pos.TE { background: rgba(245,165,36,.2); color: #fcd34d; }
.fp-row .pos.K { background: rgba(124,108,246,.2); color: #c4b5fd; } .fp-row .pos.DEF { background: rgba(220,38,38,.2); color: #fca5a5; }
.fp-row .pn { font-weight: 500; } .fp-row .pn small { color: var(--dim); margin-left: 6px; font-family: var(--mono); font-size: 11px; }
.fp-row .pts { font-family: var(--mono); font-size: 14px; font-weight: 500; min-width: 44px; text-align: right; }
.fp-row .pts.zero { color: var(--dim); }
.fp-row .game { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,.06); }
.fp-row .game.live { color: var(--red-hi); background: rgba(220,38,38,.12); }
.fp-row .game.off { background: none; }
.fp-row .lg { color: var(--muted); font-size: 12px; }

/* =====================================================================
   phone: bottom dock, sheet, sticky player, touch targets
   ===================================================================== */
.dock, .sheet, .sheet-back { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .top { padding-top: env(safe-area-inset-top); height: calc(var(--top-h) + env(safe-area-inset-top)); }
  .search { flex: 1 1 auto; min-width: 0; }
  .view { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .dock {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(5,7,10,.94); border-top: 1px solid var(--line);
  }
  .dock a, .dock button { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border-radius: 10px; color: var(--muted); font-size: 11px; font-weight: 500; min-height: 48px; }
  .dock svg { width: 22px; height: 22px; }
  .dock .active { color: var(--text); }
  .dock .active svg { color: var(--red-hi); }
  .sheet-back { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 55; }
  .sheet {
    display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 56; padding: 8px 12px calc(16px + env(safe-area-inset-bottom));
    background: #0c1017; border-radius: 18px 18px 0 0; border-top: 1px solid var(--line-2); animation: sheetUp .25s var(--ease);
  }
  .sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 4px auto 10px; }
  .sheet a { padding: 14px 12px; border-radius: 10px; font-size: 16px; font-weight: 500; }
  .sheet a.active { background: rgba(220,38,38,.12); color: var(--red-hi); }
  @keyframes sheetUp { from { transform: translateY(100%) } to { transform: none } }
  .player-wrap { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top)); z-index: 30; padding-top: 0; margin-top: calc(-1 * (var(--top-h) + 20px) + var(--top-h)); box-shadow: 0 10px 30px rgba(0,0,0,.6); }
  .view > .player-wrap { margin-top: 0; }
  .btn { min-height: 44px; }
  .pill { height: 38px; }
  .tabs a { padding: 9px 14px; font-size: 14px; }
  .tile { aspect-ratio: 1 / .9; }
  .tiles { grid-auto-columns: 120px; }
  .multi[data-n="2"], .multi[data-n="3"], .multi[data-n="4"] { grid-template-columns: 1fr; }
  .feed-item .fr { font-size: 15px; }
  .shared-item { grid-template-columns: 48px 1fr auto; }
  .shared-item img, .shared-item .fp { width: 48px; height: 72px; }
  .board-row { grid-template-columns: 24px 30px 1fr auto; padding: 10px; }
  .card .rm, .wcard .mark, .row-btn { opacity: 1; }
  .hero-copy h1 { font-size: 34px; }
  .hero-full { min-height: 60vh; }
  .stat .v { font-size: 32px; }
  .person-hero img, .person-hero .noface.big { width: 120px; }
  .filters .select { flex-basis: calc(50% - 4px); }
}
@media (hover: none) { .card .rm, .wcard .mark, .card .play-hint { opacity: 1; } .card .play-hint { opacity: 0; } }

/* =====================================================================
   TV mode: 10-foot UI
   ===================================================================== */
body.tv { font-size: 20px; --top-h: 88px; --gutter: 64px; }
body.tv .nav a { font-size: 19px; padding: 12px 18px; }
body.tv .search input { height: 48px; font-size: 18px; }
body.tv :focus, body.tv .card:focus .poster, body.tv .wcard:focus .thumb, body.tv .tile:focus { outline: 4px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 8px rgba(255,255,255,.18), 0 20px 50px rgba(0,0,0,.7); border-radius: 12px; }
body.tv .card:focus, body.tv .wcard:focus { outline: none; box-shadow: none; }
body.tv .card:focus .poster, body.tv .wcard:focus .thumb { transform: scale(1.06); }
body.tv .row { --col: 240px; gap: 22px; padding: 14px 6px 22px; scroll-snap-type: none; }
body.tv .row.wide { --col: 420px; } body.tv .row.ep { --col: 400px; } body.tv .row.people { --col: 160px; }
body.tv .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px 22px; }
body.tv .grid.wide { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
body.tv .card .card-title, body.tv .wcard .w-title { font-size: 19px; }
body.tv .card .card-meta, body.tv .wcard .w-meta { font-size: 15px; }
body.tv .section-head h2 { font-size: 40px; }
body.tv h1.page-title { font-size: 64px; }
body.tv .hero-copy h1 { font-size: 80px; }
body.tv .hero-copy .overview { font-size: 22px; max-width: 900px; -webkit-line-clamp: 4; }
body.tv .btn { height: 60px; padding: 0 28px; font-size: 20px; border-radius: 14px; }
body.tv .pill { height: 48px; font-size: 17px; }
body.tv .tabs a { padding: 12px 22px; font-size: 18px; }
body.tv .tile { aspect-ratio: 1 / .7; } body.tv .tiles { grid-auto-columns: 220px; }
body.tv .tile .name { font-size: 19px; } body.tv .tile .ico { font-size: 40px; }
body.tv .chip { font-size: 14px; padding: 5px 10px; }
body.tv .streams button { padding: 18px 20px; } body.tv .streams .lang { font-size: 18px; }
body.tv .episodes { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
body.tv .row-btn, body.tv .card .play-hint, body.tv .search-drop { display: none; }
body.tv .dock { display: none; }
body.tv .player { max-height: 100vh; }

/* =====================================================================
   settings layout, admin, sources, scores, chat, channels, movie night
   ===================================================================== */
.settings-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 22px; }
.settings-nav a { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--muted); font-size: 13px; font-weight: 500; }
.settings-nav a:hover { color: var(--text); background: rgba(255,255,255,.1); }
.settings-nav .admin-link { margin-left: auto; color: var(--red-hi); background: rgba(220,38,38,.1); display: inline-flex; align-items: center; gap: 6px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.settings-grid .panel { max-width: none; scroll-margin-top: calc(var(--top-h) + 16px); }
.settings-grid .panel p { font-size: 14px; }
.settings-grid .actions input { flex: 1 1 200px; min-width: 0; height: 42px; padding: 0 12px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); font-size: 14px; }
.settings-grid .actions input:focus { border-color: var(--red-hi); outline: none; }
.field input { font-family: var(--body); font-size: 14px; }
.field .actions { margin: 0; }
.toggle input[type=radio] { width: 22px; height: 22px; border-radius: 50%; justify-self: center; border: 2px solid var(--line-2); background: transparent; }
.toggle input[type=radio]::after { width: 10px; height: 10px; top: 4px; left: 4px; background: transparent; transition: none; }
.toggle input[type=radio]:checked { background: transparent; border-color: var(--red-hi); }
.toggle input[type=radio]:checked::after { background: var(--red-hi); transform: none; }
.toggle small { font-weight: 400; }
.more-imports summary { cursor: pointer; color: var(--muted); font-size: 14px; margin: 4px 0 10px; }
/* live scoring: numbers count up, the cell and row flash, a +x.x badge floats off */
.fp-row .pts, .lg-score .n { position: relative; }
.fp-row .pts .v, .lg-score .n .v { display: inline-block; transition: color .4s; }
.fp-row .pts.gain .v, .lg-score .n.gain .v { color: var(--green); animation: ptsPop .9s cubic-bezier(.2,.8,.2,1); }
.fp-row .pts.loss .v, .lg-score .n.loss .v { color: var(--red-hi); animation: ptsPop .9s cubic-bezier(.2,.8,.2,1); }
@keyframes ptsPop { 0% { transform: scale(1) } 30% { transform: scale(1.28) } 100% { transform: scale(1) } }
.fp-row { border-radius: 6px; }
.fp-row.gain { animation: rowGain 1.8s ease-out; } .fp-row.loss { animation: rowLoss 1.8s ease-out; }
@keyframes rowGain { 0% { background: rgba(34,197,94,.3); box-shadow: inset 3px 0 0 var(--green) } 100% { background: transparent; box-shadow: inset 3px 0 0 transparent } }
@keyframes rowLoss { 0% { background: rgba(220,38,38,.3); box-shadow: inset 3px 0 0 var(--red-hi) } 100% { background: transparent; box-shadow: inset 3px 0 0 transparent } }
.delta { position: absolute; right: 0; top: -15px; font-size: 12px; font-weight: 800; letter-spacing: 0; pointer-events: none; white-space: nowrap; animation: floatUp 2s ease-out forwards; }
.lg-score .n .delta { font-size: 15px; top: 4px; }
.lg-score .me .n .delta { right: auto; left: 100%; margin-left: 8px; }
.lg-score .opp .n .delta { right: 100%; margin-right: 8px; }
.delta.gain { color: var(--green); } .delta.loss { color: var(--red-hi); }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(6px) } 12% { opacity: 1; transform: translateY(0) } 100% { opacity: 0; transform: translateY(-30px) } }
.lg-score.swap b { animation: leadSwap .8s ease-out; }
@keyframes leadSwap { 0% { transform: translateX(0) } 30% { transform: translateX(3px) } 60% { transform: translateX(-3px) } 100% { transform: translateX(0) } }
.eyebrow.live-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red-hi); margin-right: 7px; vertical-align: 1px; animation: pulse 1.4s ease-in-out infinite; }
.lg-list { list-style: none; display: grid; gap: 6px; margin: 0 0 10px; padding: 0; }
.lg-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius); background: var(--panel); }
.lg-list li span { flex: 1; font-weight: 500; } .lg-list li small { color: var(--dim); font-size: 11px; }
.fan-src { padding: 12px 0; border-top: 1px solid var(--line); }
.fan-src:first-of-type { border-top: 0; padding-top: 0; }
.fan-src > b { display: block; margin-bottom: 6px; }
.fan-src p { margin-bottom: 8px; }
.fan-src .field { margin-bottom: 8px; }
.users .row-u.wide { grid-template-columns: 30px 1fr auto; }
.users .row-u .actions { margin: 0; gap: 6px; }
.health { display: grid; gap: 6px; margin-bottom: 12px; }
.hrow { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--bg-2); font-size: 14px; }
.hrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hrow.bad .dot { background: var(--red-hi); }
.hrow .muted { font-size: 12px; }
.settings-grid.admin .import-log { max-height: 320px; }

/* player source switcher under the video */
.sources { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.sources .lab { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-right: 4px; }
.sources button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; font-weight: 500; color: var(--muted); }
.sources button:hover { color: var(--text); border-color: var(--line-2); }
.sources button.on { color: #fff; background: var(--red); border-color: var(--red); }
.sources .note { flex-basis: 100%; }

/* live scores */
.score-chip { position: absolute; right: 8px; bottom: 8px; display: grid; grid-template-columns: auto auto; gap: 0 10px; align-items: center; padding: 6px 8px; border-radius: 8px; background: rgba(5,7,10,.86); backdrop-filter: blur(6px); font-size: 12px; line-height: 1.2; }
.score-chip b, .score-chip i { font-style: normal; font-weight: 700; }
.score-chip small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; padding: 16px 20px; margin: -8px 0 22px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid rgba(255,255,255,.05); }
.scoreboard.in { border-color: rgba(220,38,38,.35); }
.sb-team { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sb-team.home { flex-direction: row-reverse; }
.sb-team img { width: 44px; height: 44px; object-fit: contain; }
.sb-team .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-team .sc { font-weight: 800; font-size: 34px; letter-spacing: -.03em; line-height: 1; margin-left: auto; }
.sb-team.home .sc { margin-left: 0; margin-right: auto; }
.scoreboard.post .sb-team:not(.won) .sc { color: var(--muted); }
.sb-mid { display: grid; justify-items: center; gap: 2px; text-align: center; min-width: 120px; }
.sb-mid b { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.sb-mid .live-dot { color: var(--red-hi); }
.sb-mid span { color: var(--muted); font-size: 13px; }
.sb-mid small { color: var(--dim); font-size: 11px; }

/* chat + who's here */
.chat-sec .section-head { align-items: center; }
.here { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 13px; }
.here .avatar { width: 24px; height: 24px; font-size: 11px; margin-right: -6px; border: 2px solid var(--bg); }
.here .muted { margin-left: 12px; }
.chat { border-radius: var(--radius-lg); background: var(--panel); border: 1px solid rgba(255,255,255,.05); overflow: hidden; }
.chat-log { max-height: 360px; min-height: 120px; overflow-y: auto; padding: 14px; display: grid; gap: 10px; align-content: start; }
.chat-log .empty { padding: 20px 0; text-align: center; font-size: 14px; }
.chat-line { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.chat-line b { font-size: 13px; }
.chat-line small { color: var(--dim); font-size: 11px; margin-left: 8px; }
.chat-line p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.chat-line.me b { color: var(--red-hi); }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--bg-2); }
.chat-form input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 14px; }
.chat-form input:focus { outline: none; border-color: var(--red-hi); }
.now-list { display: grid; gap: 8px; }
.now-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid rgba(220,38,38,.25); font-size: 14px; }
.now-item .join { color: var(--red-hi); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }

/* trailer modal + providers */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.82); display: grid; place-items: center; padding: 20px; }
.modal-box { position: relative; width: min(1000px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.modal-box iframe { width: 100%; height: 100%; border: 0; }
.modal-box .x { position: absolute; top: 8px; right: 8px; z-index: 1; width: 36px; height: 36px; border-radius: 8px; background: rgba(5,7,10,.8); color: #fff; display: grid; place-items: center; }
.providers { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 14px; }
.pgroup { display: inline-flex; align-items: center; gap: 6px; }
.pgroup small { color: var(--muted); font-size: 12px; margin-right: 4px; }
.pgroup img { width: 30px; height: 30px; border-radius: 7px; }

/* movie night */
.night { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; margin-bottom: 14px; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(220,38,38,.16), var(--panel) 60%); border: 1px solid rgba(220,38,38,.25); }
.night h3 { margin: 2px 0 4px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.night p { margin: 0; font-size: 13px; }
.shared-item { grid-template-columns: 56px 1fr auto; }
.shared-item .vote { display: flex; align-items: center; gap: 6px; }
.shared-item .vote .pill { padding: 6px 10px; }
.shared-item.picked { border-color: var(--amber); background: linear-gradient(90deg, rgba(245,165,36,.16), var(--panel) 50%); }

/* channels */
.player-wrap .player { width: 100%; }

@media (max-width: 1000px) { .settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .settings-nav { margin-top: 0; }
  .settings-nav .admin-link { margin-left: 0; }
  .scoreboard { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .sb-team.home { flex-direction: row; }
  .sb-team.home .sc { margin-left: auto; margin-right: 0; }
  .sb-mid { justify-items: start; text-align: left; }
  .chat-log { max-height: 280px; }
  .sources .note { display: none; }
  .night { padding: 14px; }
  .shared-item { grid-template-columns: 48px 1fr; }
  .shared-item .vote { grid-column: 2; justify-content: flex-end; }
}
body.tv .settings-grid { grid-template-columns: 1fr; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
