/* Inter, hosted with Vault (one small variable file; Google Fonts sent the TV ~1 MB of TTF). */
@font-face { font-family: Inter; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../assets/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../assets/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #07080a;
  --bg-2: #0d0e11;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-hi: rgba(255, 255, 255, 0.13);
  --accent: #f43f5e;
  --accent-soft: rgba(244, 63, 94, 0.16);
  --gold: #fbbf24;
  --radius: 14px;
  --wrap: 1460px;
  --gutter: 48px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { display: block; }
svg { width: 1.15em; height: 1.15em; flex: none; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Nav ---------- */
#nav { position: fixed; inset: 14px 0 auto; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.nav-inner {
  pointer-events: auto;
  max-width: calc(var(--wrap) - var(--gutter) * 2 + 32px);
  margin: 0 auto;
  height: 58px;
  display: flex; align-items: center; gap: 22px;
  padding: 0 10px 0 18px;
  border-radius: 18px;
  border: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
#nav.scrolled .nav-inner, .nav-inner:hover {
  background: rgba(14, 15, 18, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.4);
}
.brand img { height: 20px; width: auto; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.5)); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 9px 15px; border-radius: 11px; font-weight: 500; color: #d4d4d8; transition: background 0.2s, color 0.2s; }
.nav-links a:hover { color: #fff; background: var(--glass); }
.nav-links a.active { color: #fff; background: var(--glass-hi); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; position: relative; }
.search-btn {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 8px 0 14px; min-width: 210px;
  border-radius: 12px; background: rgba(14, 15, 18, 0.55); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #b4b4bc; transition: border-color 0.2s, color 0.2s;
}
.search-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.18); }
.search-btn span { flex: 1; text-align: left; }
kbd { font: 600 11px/1 ui-monospace, monospace; padding: 5px 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #7f1d1d); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12); /* the settings page's dark ring, no rose edge */
}
.avatar:has(img), .st-pic:has(img) { background: #15161a; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.menu {
  position: absolute; right: 0; top: 52px; min-width: 200px; padding: 8px;
  background: rgba(18, 19, 23, 0.96); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); backdrop-filter: blur(18px);
}
.menu-name { padding: 8px 12px 10px; font-weight: 700; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; color: #d4d4d8; }
.menu a:hover, .menu button:hover { background: var(--glass); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 26px; border-radius: 999px;
  font-weight: 650; font-size: 15px; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: #fff; color: #09090b; }
.btn-primary:hover { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16), 0 10px 30px rgba(0, 0, 0, 0.4); }
.btn-glass { background: rgba(20, 20, 24, 0.55); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.14); }
.btn-round { width: 50px; padding: 0; justify-content: center; background: rgba(20, 20, 24, 0.55); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(12px); }
.btn-round:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(640px, 88vh); display: flex; align-items: flex-end; overflow: hidden; transition: opacity 0.22s; }
.stage { position: absolute; inset: 0; }
.stage-img, .bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-img { animation: kenburns 24s ease-out both; }
.bg-video { opacity: 0; transition: opacity 1.2s var(--ease); transform: scale(1.22); }
.stage.playing .bg-video { opacity: 1; }
.stage.playing .stage-img { opacity: 0; transition: opacity 1.2s; }
.shade {
  /* Reaches 2px past the bottom and starts with solid background: on a fractional position (the page sliding
     in) the picture's last row of pixels would otherwise show as a bright line under the hero. */
  position: absolute; inset: 0 0 -2px;
  background:
    linear-gradient(90deg, rgba(7, 8, 10, 0.92) 0%, rgba(7, 8, 10, 0.6) 32%, rgba(7, 8, 10, 0) 62%),
    linear-gradient(0deg, var(--bg) 0, var(--bg) 6px, rgba(7, 8, 10, 0.55) 22%, rgba(7, 8, 10, 0) 48%),
    linear-gradient(180deg, rgba(7, 8, 10, 0.72) 0%, rgba(7, 8, 10, 0) 22%);
}
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero-body { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-bottom: 7vh; }
.hero-copy { max-width: 600px; animation: rise 0.7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.eyebrow { flex-wrap: wrap; }
.pill-link { transition: background 0.2s, border-color 0.2s; }
.pill-link:hover, .pill-link:focus-visible { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.4); outline: none; }
/* A streaming original's quiet mark under the poster, above any award: just the service's logo. */
.og-mark { display: inline-flex; align-items: center; height: 22px; margin-top: -4px; color: #fff; opacity: 0.86; transition: opacity 0.2s; animation: rise 0.8s 0.2s var(--ease) both; }
.og-mark:hover, .og-mark:focus-visible { opacity: 1; }
.og-mark .og-n { display: block; height: 22px; width: auto; }
.og-mark .og-logo { display: block; height: 22px; }
.og-mark .og-name { font-size: 15px; line-height: 22px; font-weight: 700; }
.og-mark:focus-visible { outline: 2px solid #fff; outline-offset: 5px; border-radius: 4px; }
.eb-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: #e4e4e7; padding: 4px 2px; border-radius: 8px; }
.eb-link svg { width: 16px; height: 16px; }
.eb-link svg:last-child { width: 14px; height: 14px; opacity: 0.6; transition: transform 0.2s; }
.eb-link:hover svg:last-child, .eb-link:focus-visible svg:last-child { transform: translateX(3px); opacity: 1; }
html.tv .eb-link:focus { outline: none; box-shadow: 0 0 0 3px #fff; }
.pill {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; background: rgba(10, 10, 12, 0.6); border: 1px solid rgba(255, 255, 255, 0.16);
}
.gold { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); font-weight: 650; }
.gold svg { width: 0.95em; height: 0.95em; }
/* Score chips: IMDb's yellow tag and Rotten Tomatoes' tomato, like the streaming apps. */
.scores { display: inline-flex; align-items: center; gap: 10px; }
.scores:empty { display: none; }
.sc { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-imdb b { background: #f5c518; color: #000; font-size: 0.72em; font-weight: 900; letter-spacing: -0.02em; padding: 1px 4px; border-radius: 3px; line-height: 1.25; }
.sc-rt svg { width: 1.3em; height: 1.3em; margin: -0.15em -1px -0.15em -2px; }
.sc-rt.fresh svg { color: #fa320a; }
.sc-rt.rotten svg { color: #0ac855; }
.logo { max-width: min(520px, 90%); max-height: 190px; width: auto; height: auto; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.6)); }
.logo.big { max-height: 220px; }
.title-text { font-size: clamp(44px, 6vw, 84px); line-height: 0.95; letter-spacing: -0.03em; font-weight: 900; margin: 0; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 20px 0 14px; color: #e4e4e7; font-weight: 500; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--dim); display: inline-block; }
.cert { padding: 2px 7px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 5px; font-size: 12px; font-weight: 700; }
.overview { color: #d4d4d8; line-height: 1.6; font-size: 16px; margin: 0 0 28px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.overview.full { -webkit-line-clamp: 5; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* Title page: Resume, Restart, My List, Trailer and sound stay on one line where there is room (the poster sits far right). */
@media (min-width: 1000px) { .detail-body .actions { flex-wrap: nowrap; width: max-content; } }

.hero-strip { display: flex; gap: 12px; align-items: flex-end; }
.strip-item {
  position: relative; width: 110px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12); opacity: 0.55;
  transition: width 0.4s var(--ease), opacity 0.3s, border-color 0.3s;
}
.strip-item:hover { opacity: 0.9; }
.strip-item.on { width: 160px; opacity: 1; border-color: rgba(255, 255, 255, 0.85); }
.strip-item img { width: 100%; height: 100%; object-fit: cover; }
.strip-item span {
  position: absolute; inset: auto 0 0; padding: 14px 8px 6px; font-size: 11px; font-weight: 600; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
}
.strip-item .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; display: none; }
.strip-item.on .bar { display: block; }

/* ---------- Rows ---------- */
.rows { position: relative; z-index: 3; margin-top: -2vh; padding-bottom: 80px; }
.row { margin-top: 54px; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.row-head h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 10px; }
.count { font-size: 12px; font-weight: 600; color: var(--dim); }
.row-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.see-all { display: flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; font-size: 14px; transition: color 0.2s; }
.see-all:hover { color: #fff; }

.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 15 * 7px) / 8);
  gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 10px 0 14px; margin: -10px 0 -14px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail.rail-wide { grid-auto-columns: calc((100% - 15px * 3) / 4); }
.rail-btn {
  position: absolute; top: 0; bottom: 70px; z-index: 4; width: 48px;
  display: grid; place-items: center; opacity: 0; transition: opacity 0.25s;
}
.rail-btn svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 6px #000); }
.rail-btn.prev { left: calc(var(--gutter) * -1); background: linear-gradient(90deg, var(--bg), transparent); }
.rail-btn.next { right: calc(var(--gutter) * -1); background: linear-gradient(-90deg, var(--bg), transparent); }
.rail-wrap:hover .rail-btn { opacity: 1; }
.row.at-start .prev, .row.at-end .next { opacity: 0 !important; pointer-events: none; }

/* ---------- Cards ---------- */
.card { display: block; min-width: 0; }
.card-art {
  position: relative; aspect-ratio: 2/3; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2) center / cover no-repeat; border: 1px solid var(--line); /* blurhash.js placeholder sits behind the picture */
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.3s, opacity 0.45s; }
/* With a mouse: each poster keeps its own layer, so it doesn't snap by a fraction of a pixel when the hover lift ends. */
/* the Top 10 numbers ride on their own layer too, or they trail behind the posters while a row scrolls */
@media (hover: hover) { html:not(.tv) .card-art, html:not(.tv) .rank-n { will-change: transform; } }
.card:hover .card-art { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.35); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.card:hover .card-art img { transform: scale(1.05); }
.card:focus-visible { outline: none; }
.card:focus-visible .card-art { box-shadow: 0 0 0 3px #fff; }
.card-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; font-weight: 700; color: var(--muted); }
.chip-rate {
  position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 8px; font-size: 12px; font-weight: 700;
  background: rgba(10, 10, 12, 0.72); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.1);
}
.chip-rate svg { width: 11px; height: 11px; color: var(--gold); }
/* Watched: the whole picture dims (bright and white posters too) with a white check that keeps a dark edge. */
.chip-watched { position: absolute; inset: 0; background: rgba(5, 6, 8, 0.52); pointer-events: none; transition: background 0.2s; }
.chip-watched svg { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; padding: 5px; box-sizing: border-box; border-radius: 50%; background: #fff; color: #09090b; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.55); }
.card:hover .chip-watched, .ep:hover .chip-watched, html.tv .card:focus .chip-watched, html.tv .ep:focus .chip-watched { background: rgba(5, 6, 8, 0.2); }
.chip-rate, .progress, .wide-play, .saga-next { z-index: 1; }
.card-title { margin-top: 11px; font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Continue Watching: the name, and "12m left" at the right end of the same line. */
.wide-title { display: flex; align-items: baseline; gap: 10px; }
.wide-title span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wide-title small { margin-left: auto; flex: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.card-meta { margin-top: 3px; color: var(--dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.card.wide .card-art { aspect-ratio: 16/9; }
.wide-play {
  position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: #000;
  opacity: 0; transform: scale(0.8); transition: opacity 0.25s, transform 0.25s var(--ease);
}
.wide-play svg { width: 22px; height: 22px; } /* the icon is drawn optically centered already */
.card:hover .wide-play, .ep:hover .wide-play { opacity: 1; transform: none; }
.progress { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); }

/* ---------- Skeletons ---------- */
.sk { background: linear-gradient(90deg, #111216 0%, #1a1b20 50%, #111216 100%); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: 8px; }
.sk-title { width: 220px; height: 26px; }
.sk-sub { width: 320px; height: 14px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Browse ---------- */
.browse { padding-top: 130px; padding-bottom: 80px; }
.browse-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.browse-head h1 { font-size: 64px; font-weight: 900; letter-spacing: -0.04em; margin: 0; line-height: 1; }
.browse-head p { color: var(--muted); font-size: 16px; margin: 14px 0 0; }
.browse-tools { display: flex; gap: 12px; align-items: center; }
.field {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; width: 280px;
  border-radius: 14px; background: var(--glass); border: 1px solid var(--line); color: var(--muted);
}
.field:focus-within { border-color: rgba(255, 255, 255, 0.3); }
.field input { all: unset; flex: 1; color: var(--text); }
.seg { display: flex; padding: 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.seg button { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { background: #fff; color: #09090b; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 10px; }
.select { position: relative; display: flex; align-items: center; }
.select select {
  appearance: none; height: 42px; padding: 0 40px 0 16px; border-radius: 12px; cursor: pointer;
  background: var(--glass); border: 1px solid var(--line); color: var(--text); font: 600 14px Inter, sans-serif;
}
.select select:hover { border-color: rgba(255, 255, 255, 0.2); }
.select option { background: #141519; }
.select svg { position: absolute; right: 13px; pointer-events: none; color: var(--muted); width: 16px; }
.grid-head { margin: 30px 0 18px; color: var(--muted); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 26px 16px; }
.grid-more { height: 1px; }
.empty { color: var(--muted); grid-column: 1 / -1; padding: 40px 0; }

/* ---------- Detail ---------- */
.hero.detail { min-height: max(680px, 92vh); }
.detail-body { align-items: center; padding-top: 120px; }
.tagline { font-style: italic; color: #d4d4d8; font-size: 18px; margin: 16px 0 0; }
/* "New Episode Every Sunday": a running show's rhythm, under the title. */
.airs { margin: 14px 0 0; color: #4ade80; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.airs[hidden] { display: none; }
.btn-round[hidden] { display: none; }
.genres { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(10, 10, 12, 0.5); border: 1px solid rgba(255, 255, 255, 0.16); }
.poster-card {
  width: 270px; flex: none; aspect-ratio: 2/3; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  transform: perspective(900px) rotateY(-8deg); transition: transform 0.6s var(--ease);
  animation: rise 0.8s 0.1s var(--ease) both;
}
.poster-col { flex: none; width: 270px; display: grid; gap: 22px; justify-items: center; }
/* The title's biggest award under the poster, between two laurel branches. */
.poster-award { display: flex; align-items: center; gap: 10px; color: #d4d4d8; animation: rise 0.8s 0.2s var(--ease) both; }
.poster-award[hidden] { display: none; }
.poster-award.won { color: #e8c766; }
.poster-award .laurel { width: 22px; height: 46px; flex: none; opacity: 0.9; }
.poster-award .laurel:last-child { transform: scaleX(-1); }
.poster-award div { display: grid; justify-items: center; text-align: center; line-height: 1.15; }
.poster-award span { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.poster-award b { font-size: 17px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 2px; }
.poster-award small { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.poster-card:hover { transform: perspective(900px) rotateY(0deg) translateY(-6px); }
.poster-card img { width: 100%; height: 100%; object-fit: cover; }
.tabs-wrap { position: relative; z-index: 3; padding-bottom: 90px; }
.tabs { display: flex; gap: 30px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.tabs button { padding: 14px 0; font-weight: 650; color: var(--muted); position: relative; transition: color 0.2s; }
.tabs button:hover { color: #fff; }
.tabs button.on { color: #fff; }
.tabs button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }

.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 26px 16px; }
.person { text-align: center; }
.person-pic {
  display: grid; place-items: center; width: 108px; aspect-ratio: 2 / 3; height: auto; margin: 0 auto 12px; border-radius: 14px; overflow: hidden;
  background: var(--bg-2); border: 2px solid var(--line); font-size: 30px; font-weight: 800; color: var(--muted);
}
.person-pic { position: relative; }
.person-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } /* fills the circle, cropped like the person page */
.person b { display: block; font-size: 14px; }
.person small { display: block; color: var(--dim); margin-top: 3px; font-size: 12.5px; }

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; }
.about h3 { margin: 0 0 14px; font-size: 22px; }
.about p { color: #d4d4d8; line-height: 1.7; margin: 0; }
.about dl { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; margin: 0; }
.about dt { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 7px; }
.about dd { margin: 0; font-weight: 600; }

.season-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.season-pills button { height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; background: var(--glass); border: 1px solid var(--line); color: #d4d4d8; }
.season-pills button.on { background: #fff; color: #09090b; border-color: #fff; }
.ep-list { display: grid; gap: 10px; }
.ep { display: grid; grid-template-columns: 260px 1fr; gap: 22px; padding: 12px; border-radius: 16px; transition: background 0.2s; }
.ep:hover { background: var(--glass); }
.ep-art { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.ep-art img { width: 100%; height: 100%; object-fit: cover; }
.ep-top { display: flex; align-items: baseline; gap: 14px; }
.ep-num { font-size: 22px; font-weight: 800; color: var(--dim); min-width: 26px; }
.ep h3 { margin: 0; font-size: 17px; flex: 1; }
.ep-len { color: var(--muted); font-size: 13px; }
.ep p { color: var(--muted); line-height: 1.6; margin: 10px 0 0 40px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Modal + search ---------- */
.modal, .search-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(16px); animation: fade 0.25s both; }
@keyframes fade { from { opacity: 0; } }
.modal { display: grid; place-items: center; padding: 30px; }
.modal-box { width: min(1100px, 100%); border-radius: 18px; overflow: hidden; background: #0c0d10; border: 1px solid var(--line); box-shadow: 0 40px 100px #000; animation: rise 0.4s var(--ease) both; }
.modal-box header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 600; border-bottom: 1px solid var(--line); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.x { margin-left: auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.x:hover { background: var(--glass); color: #fff; }
.modal video { width: 100%; display: block; aspect-ratio: 16/9; background: #000; }
.search-overlay { overflow-y: auto; padding-top: 110px; padding-bottom: 60px; }
.search-bar { display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 14px 0 22px; border-radius: 20px; background: rgba(20, 21, 25, 0.9); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--muted); }
.search-bar svg { width: 22px; height: 22px; }
.search-bar input { all: unset; flex: 1; min-width: 0; font-size: 22px; font-weight: 500; color: var(--text); }
.search-results { margin-top: 34px; }
.hint { color: var(--muted); text-align: center; padding: 40px 0; }

/* ---------- Profiles ---------- */
.profiles { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; background: radial-gradient(ellipse at top, rgba(244, 63, 94, 0.12), transparent 60%); }
.profiles-logo { height: 34px; width: auto; margin-bottom: 44px; }
.profiles h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 40px; }
.profile-list { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.profile { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted); font-weight: 600; font-size: 16px; transition: color 0.2s; }
.profile-pic {
  width: 140px; height: 140px; border-radius: 26px; overflow: hidden; display: grid; place-items: center;
  font-size: 54px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #fb7185, #9f1239);
  outline: 3px solid transparent; outline-offset: 4px; transition: transform 0.3s var(--ease), outline-color 0.2s;
}
.profile:nth-child(4n+2) .profile-pic { background: linear-gradient(135deg, #60a5fa, #1e3a8a); }
.profile:nth-child(4n+3) .profile-pic { background: linear-gradient(135deg, #fbbf24, #b45309); }
.profile:nth-child(4n+4) .profile-pic { background: linear-gradient(135deg, #34d399, #065f46); }
.profile-pic img { width: 100%; height: 100%; object-fit: cover; }
.profile:hover, .profile.picked { color: #fff; }
.profile:hover .profile-pic, .profile.picked .profile-pic { transform: scale(1.06); outline-color: #fff; }
.pw-form { margin-top: 40px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pw-form input { height: 50px; width: 260px; padding: 0 18px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: var(--text); font: 500 15px Inter, sans-serif; outline: none; }
.pw-form input:focus { border-color: rgba(255, 255, 255, 0.35); }
.other-user { margin-top: 34px; color: var(--dim); font-weight: 600; font-size: 14px; }
.other-user:hover { color: #fff; }
.pw-form input.name-in { width: 200px; }
.pw-err { width: 100%; text-align: center; color: #fb7185; margin: 4px 0 0; min-height: 1em; }

.empty-page { padding-top: 200px; text-align: center; }
.empty-page h1 { font-size: 48px; margin: 0 0 10px; }
.empty-page p { color: var(--muted); margin: 0 0 28px; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1200px) {
  .rail { grid-auto-columns: calc((100% - 15px * 5) / 6); }
  .rail.rail-wide { grid-auto-columns: calc((100% - 15px * 2) / 3); }
  .hero-strip { display: none; }
}
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
  :root { --gutter: 16px; }
  .nav-links, .search-btn span, .search-btn kbd { display: none; }
  .search-btn { min-width: 0; padding: 0 12px; }
  .rail { grid-auto-columns: 38%; gap: 12px; }
  .rail.rail-wide { grid-auto-columns: 78%; }
  .rail-btn { display: none; }
  .hero { min-height: 82vh; }
  .poster-card, .poster-col { display: none; }
  .browse-head h1 { font-size: 44px; }
  .field { width: 100%; }
  .browse-tools { width: 100%; flex-wrap: wrap; }
  .about { grid-template-columns: 1fr; gap: 30px; }
  .ep { grid-template-columns: 1fr; }
  .ep p { margin-left: 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .profile-pic { width: 100px; height: 100px; font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Player ---------- */
body.watching { overflow: hidden; }
.player { position: fixed; inset: 0; z-index: 80; background: #000; cursor: none; user-select: none; }
.player.awake, .player.paused { cursor: default; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.p-shade {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, transparent 22%, transparent 62%, rgba(0, 0, 0, 0.88) 100%);
}
.p-top, .p-bottom { position: absolute; left: 0; right: 0; padding: 0 40px; opacity: 0; transition: opacity 0.35s, transform 0.35s var(--ease); }
.p-top { top: 0; display: flex; align-items: center; gap: 18px; padding-top: 28px; transform: translateY(-10px); }
.p-bottom { bottom: 0; padding-bottom: 26px; transform: translateY(10px); }
.player.awake .p-shade, .player.paused .p-shade, .player.awake .p-top, .player.paused .p-top, .player.awake .p-bottom, .player.paused .p-bottom { opacity: 1; transform: none; }
.player:not(.awake):not(.paused) .p-top, .player:not(.awake):not(.paused) .p-bottom { pointer-events: none; }

/* Pause screen: paused and left alone, the title and its cast come up over the dimmed picture. */
.p-rest {
  position: absolute; inset: 0; display: flex; align-items: center; padding: 0 6vw; pointer-events: none; opacity: 0; transition: opacity 0.7s;
  background: linear-gradient(90deg, rgba(7, 8, 10, 0.94) 0%, rgba(7, 8, 10, 0.82) 38%, rgba(7, 8, 10, 0.35) 70%, rgba(7, 8, 10, 0.15) 100%);
}
.player.resting .p-rest { opacity: 1; }
.player.resting .p-shade, .player.resting .p-top, .player.resting .p-bottom, .player.resting .p-center, .player.resting .p-subs, .player.resting .p-skip { opacity: 0 !important; pointer-events: none !important; }
.player.resting { cursor: none; }
.ps-box { max-width: min(620px, 52vw); display: flex; flex-direction: column; align-items: flex-start; transform: translateY(12px); transition: transform 0.9s var(--ease); }
.player.resting .ps-box { transform: none; }
.ps-kicker { font-size: 14px; font-weight: 650; color: var(--accent); letter-spacing: 0.02em; margin-bottom: 16px; }
.ps-logo-box { margin-bottom: 22px; }
.ps-logo { display: block; max-width: 420px; max-height: 130px; object-fit: contain; object-position: left center; filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6)); }
.ps-title { margin: 0 0 14px; font-size: clamp(32px, 4vw, 56px); font-weight: 800; line-height: 1.05; }
.ps-ep { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.ps-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #d4d4d8; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.ps-story { margin: 0 0 16px; color: #c4c4cc; font-size: 17px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ps-time { color: #a1a1aa; font-size: 15px; font-weight: 600; margin-bottom: 30px; }
.ps-cast-head { font-size: 15px; font-weight: 700; color: #e4e4e7; margin-bottom: 12px; }
.ps-cast { display: flex; gap: 18px; }
.ps-person { width: 86px; display: flex; flex-direction: column; gap: 3px; }
.ps-face { width: 86px; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: #1c1d22; margin-bottom: 6px; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); }
.ps-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-face span { font-size: 22px; font-weight: 700; color: #71717a; }
.ps-person b { font-size: 13px; font-weight: 650; line-height: 1.25; }
.ps-person small { font-size: 12px; color: #a1a1aa; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.tv .ps-box { max-width: 760px; }
html.tv .ps-kicker { font-size: 20px; }
html.tv .ps-logo { max-width: 520px; max-height: 160px; }
html.tv .ps-meta, html.tv .ps-time { font-size: 20px; }
html.tv .ps-story { font-size: 22px; }
html.tv .ps-cast-head { font-size: 20px; }
html.tv .ps-person, html.tv .ps-face { width: 110px; }
html.tv .ps-person b { font-size: 16px; }
html.tv .ps-person small { font-size: 15px; }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
  .p-rest { padding: 0 max(24px, env(safe-area-inset-left)); background: linear-gradient(90deg, rgba(7, 8, 10, 0.95) 0%, rgba(7, 8, 10, 0.85) 55%, rgba(7, 8, 10, 0.5) 100%); }
  .ps-box { max-width: 88vw; }
  .ps-kicker { margin-bottom: 8px; font-size: 12px; }
  .ps-logo { max-width: 240px; max-height: 70px; }
  .ps-logo-box { margin-bottom: 12px; }
  .ps-meta, .ps-time { font-size: 13px; }
  .ps-story { font-size: 14px; -webkit-line-clamp: 2; margin-bottom: 8px; }
  .ps-time { margin-bottom: 14px; }
  .ps-cast-head { font-size: 13px; margin-bottom: 8px; }
  .ps-cast { gap: 12px; }
  .ps-person, .ps-face { width: 56px; }
  .ps-person b { font-size: 11px; }
  .ps-person small { display: none; }
}

.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; min-width: 46px; padding: 0 10px; border-radius: 12px; color: #fff; transition: background 0.2s, transform 0.15s; }
.p-btn svg { width: 26px; height: 26px; }
.p-btn:hover { background: rgba(255, 255, 255, 0.12); }
.p-btn:active { transform: scale(0.92); }
.p-btn.big svg { width: 30px; height: 30px; }
.p-btn.wide { padding: 0 16px; font-weight: 650; }
.p-btn.wide svg { width: 20px; height: 20px; }
.p-back { width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px); }
.p-title { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; flex: 1 1 auto; }
.p-title b { font-size: 20px; font-weight: 800; }
.p-title span { color: #d4d4d8; font-weight: 500; white-space: pre; }
.p-logo { max-height: 84px; max-width: 360px; width: auto; object-fit: contain; object-position: left; margin-bottom: 6px; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.7)); }

.p-scrub { position: relative; height: 26px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.p-track { position: relative; width: 100%; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.22); transition: height 0.15s; }
.p-scrub:hover .p-track, .player.scrubbing .p-track { height: 8px; }
.p-track i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: inherit; }
.p-track .buf { background: rgba(255, 255, 255, 0.3); }
.p-track .seg-intro { background: rgba(251, 191, 36, 0.55); border-radius: 0; }
.p-track .played { background: var(--accent); box-shadow: 0 0 12px rgba(244, 63, 94, 0.6); }
.p-track .knob { width: 16px; height: 16px; top: 50%; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.35); transform: scale(0); transition: transform 0.15s; }
.p-scrub:hover .knob, .player.scrubbing .knob { transform: scale(1); }
.p-preview { position: absolute; bottom: 30px; width: 240px; margin-left: -120px; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.p-preview .thumb { width: 240px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.85); background-color: #111; background-repeat: no-repeat; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7); }
.p-preview .chap { font-size: 13px; font-weight: 600; text-shadow: 0 1px 4px #000; }
.p-preview .chap:empty { display: none; }
.p-preview .time { font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 7px; background: rgba(0, 0, 0, 0.75); }

.p-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.p-left, .p-right { display: flex; align-items: center; gap: 4px; }
.p-time { margin-left: 14px; color: #d4d4d8; font-variant-numeric: tabular-nums; font-size: 14px; cursor: pointer; user-select: none; padding: 4px 6px; border-radius: 8px; transition: background 0.2s; }
.p-time:hover { background: rgba(255, 255, 255, 0.1); }
.p-time b { color: #fff; font-weight: 650; }
.p-vol { display: flex; align-items: center; }
.p-vol input { width: 0; height: 18px; opacity: 0; transition: width 0.25s var(--ease), opacity 0.2s; cursor: pointer; appearance: none; -webkit-appearance: none; background: transparent; outline: none; border: 0; }
.p-vol input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; border: 0; background: linear-gradient(90deg, #fff var(--v, 100%), rgba(255, 255, 255, 0.22) var(--v, 100%)); }
.p-vol input::-moz-range-track { height: 4px; border-radius: 2px; border: 0; background: linear-gradient(90deg, #fff var(--v, 100%), rgba(255, 255, 255, 0.22) var(--v, 100%)); }
.p-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #fff; border: 0; box-shadow: none; }
.p-vol input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.p-vol input:focus-visible { outline: none; }
.p-vol:hover input, .p-vol input:focus { width: 96px; opacity: 1; margin: 0 8px 0 2px; }

.p-flash { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; }
.p-flash svg { width: 40px; height: 40px; }
.p-flash.go { animation: flash 0.6s var(--ease); }
@keyframes flash { 0% { opacity: 1; transform: scale(0.85); } 100% { opacity: 0; transform: scale(1.25); } }
.p-spin { position: absolute; left: 50%; top: 50%; margin: -32px; width: 64px; height: 64px; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.p-spin i { position: absolute; inset: 0; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.15); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
.player.buffering .p-spin { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.p-subs { position: absolute; left: 10%; right: 10%; bottom: 7%; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; transition: bottom 0.35s var(--ease); text-align: center; }
.player.awake .p-subs, .player.paused .p-subs { bottom: 150px; }
.p-subs span { font-size: clamp(18px, 2.3vw, 34px); font-weight: 600; line-height: 1.3; padding: 2px 12px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); text-shadow: 0 2px 6px #000; }

.p-skip {
  position: absolute; right: 40px; bottom: 130px; height: 52px; padding: 0 26px; border-radius: 12px; overflow: hidden;
  font-weight: 700; font-size: 16px; color: #fff; background: rgba(20, 20, 24, 0.7); border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(12px);
  animation: rise 0.4s var(--ease) both;
}
.p-skip:hover { background: #fff; color: #000; }
.p-skip .fill { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.12); transform-origin: left; transform: scaleX(0); }
.p-skip .txt { position: relative; }

.p-upnext {
  position: absolute; right: 40px; bottom: 130px; display: flex; gap: 18px; padding: 14px; width: 560px; max-width: calc(100% - 80px);
  border-radius: 18px; background: rgba(14, 15, 18, 0.88); border: 1px solid var(--line); backdrop-filter: blur(18px); box-shadow: 0 20px 60px #000;
  animation: rise 0.45s var(--ease) both;
}
.un-art { position: relative; width: 210px; flex: none; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #111; cursor: pointer; }
.un-art img { width: 100%; height: 100%; object-fit: cover; }
.un-art:hover .wide-play { opacity: 1; transform: none; }
.un-text { display: flex; flex-direction: column; min-width: 0; }
.un-text small { color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.un-text b { font-size: 18px; margin: 6px 0 auto; }
.un-actions { display: flex; gap: 8px; margin-top: 12px; }
.un-actions .btn { height: 42px; padding: 0 18px; font-size: 14px; }
.un-actions em { font-style: normal; font-variant-numeric: tabular-nums; }

.p-toast { position: absolute; left: 40px; bottom: 130px; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 14px; background: rgba(14, 15, 18, 0.85); border: 1px solid var(--line); backdrop-filter: blur(14px); font-weight: 600; animation: rise 0.4s var(--ease) both; }
.p-toast.out { animation: toast-out 0.3s var(--ease) both; }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }
.p-toast button { padding: 8px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.12); font-weight: 650; }
.p-toast button:hover { background: #fff; color: #000; }

.p-error { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: rgba(0, 0, 0, 0.8); }
.p-error h2 { font-size: 32px; margin: 0 0 10px; }
.p-error p { color: var(--muted); margin: 0 0 24px; }
.p-error div { display: flex; gap: 10px; justify-content: center; }

.p-panel {
  position: absolute; right: 24px; bottom: 110px; max-height: calc(100vh - 220px); overflow-y: auto; padding: 22px;
  border-radius: 20px; background: rgba(14, 15, 18, 0.92); border: 1px solid var(--line); backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px #000; animation: rise 0.3s var(--ease) both; cursor: default;
}
.p-panel[data-kind=eps] { width: 520px; top: 100px; max-height: none; }
.p-cols { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 28px; }
.p-panel h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.opts { display: grid; gap: 2px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; color: #d4d4d8; font-weight: 600; }
.opt small { display: block; color: var(--dim); font-weight: 500; font-size: 12px; margin-top: 2px; }
.opt:hover { background: var(--glass); color: #fff; }
.opt.on { color: #fff; background: var(--accent-soft); }
.opt.on svg { color: var(--accent); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 12px; border-radius: 10px; background: var(--glass); font-weight: 600; cursor: pointer; }
.switch input { display: none; }
.switch i { position: relative; width: 42px; height: 24px; border-radius: 24px; background: rgba(255, 255, 255, 0.2); transition: background 0.2s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); }
.p-how { grid-column: 1 / -1; margin: 0; color: var(--dim); font-size: 12.5px; }
.p-eps .season-pills { margin-bottom: 16px; }
.p-ep-list { display: grid; gap: 6px; }
.p-ep { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 8px; border-radius: 12px; transition: background 0.2s; }
.p-ep:hover { background: var(--glass); }
.p-ep.now { background: var(--accent-soft); }
.p-ep-art { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #111; }
.p-ep-art img { width: 100%; height: 100%; object-fit: cover; }
.p-ep-art .progress { left: 6px; right: 6px; bottom: 6px; height: 3px; }
.p-ep b { display: block; font-size: 14px; }
.p-ep small { display: block; color: var(--dim); margin: 3px 0 4px; font-size: 12px; }
.p-ep.now small { color: var(--accent); font-weight: 700; }
.p-ep p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
  .p-top, .p-bottom { padding-left: 16px; padding-right: 16px; }
  .p-logo { max-height: 52px; max-width: 210px; }
  .p-btn.wide span, .p-vol input, [data-a=rew], [data-a=fwd] { display: none; }
  .p-panel { left: 12px; right: 12px; bottom: 100px; }
  .p-panel[data-kind=eps] { width: auto; }
  .p-cols { grid-template-columns: 1fr; }
  .p-upnext, .p-skip { right: 16px; }
  .un-art { width: 130px; }
}

/* ---------- Studio Row rows ---------- */
.rail.rail-tiles { grid-auto-columns: calc((100% - 15px * 6) / 7); }
.card.tile .card-art { aspect-ratio: 2/3; }
.card.tile .card-title { display: none; }
div.card.soon { cursor: default; }
div.card.soon:hover .card-art { transform: none; box-shadow: none; border-color: var(--line); }
div.card.soon:hover .card-art img { transform: none; }
.card.soon .card-art img { filter: saturate(0.85); }
.chip-date { gap: 5px; }
.chip-soon { position: absolute; top: 10px; right: 10px; padding: 4px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 700; background: rgba(10, 10, 12, 0.72); color: #fff; backdrop-filter: blur(8px); }
.chip-soon.new { background: var(--accent); }
.chip-soon.dl { background: rgba(59, 130, 246, 0.9); }
.chip-date svg { color: #fff; width: 12px; height: 12px; }
/* We Think You'll Love This: three big landscape cards a row. */
.rail.rail-love { grid-auto-columns: calc((100% - 15px * 2) / 3); }
.card.love .card-art { aspect-ratio: 16/9; position: relative; }
.love-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.15) 55%, transparent); pointer-events: none; }
.love-copy { position: absolute; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 12px; justify-items: start; }
.card.love .card-art .love-logo { position: static; width: auto; height: auto; max-width: 55%; max-height: 64px; object-fit: contain; object-position: left bottom; transform: none; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6)); }
.love-name { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; text-shadow: 0 2px 12px #000; }
.love-acts { display: flex; gap: 8px; }
.love-acts span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.love-acts svg { width: 15px; height: 15px; }
.love-play { background: #fff; color: #09090b; cursor: pointer; }
.love-play:hover { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2); }
.love-more { background: rgba(20, 20, 24, 0.55); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(10px); }
@media (max-width: 1200px) { .rail.rail-love { grid-auto-columns: calc((100% - 15px) / 2); } }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) { .rail.rail-love { grid-auto-columns: 86%; } .love-more { display: none !important; } }
/* Browse by Platform: short tiles in each service's colours. */
.rail.rail-plats { grid-auto-columns: calc((100% - 15px * 4) / 5); }
.card.plat .card-art { aspect-ratio: 2.1/1; background: var(--pbg) border-box; border-color: transparent; display: grid; place-items: center; border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.card.plat:hover .card-art { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 12px 30px rgba(0, 0, 0, 0.45); }
html.tv .card.plat:focus .card-art { transform: scale(1.05); box-shadow: 0 0 0 4px #fff; }
.card.plat .card-art .plat-logo { position: static; inset: auto; width: 60%; height: 44%; object-fit: contain; transform: none; }
.card.plat.ink-dark .plat-logo { filter: brightness(0); }
.card.plat.ink-red .plat-logo { filter: brightness(0) invert(12%) sepia(90%) saturate(7472%) hue-rotate(357deg) brightness(91%) contrast(117%); }
.plat-name { font-weight: 900; font-size: 22px; letter-spacing: -0.02em; }
.ink-dark .plat-name { color: #0b0c0f; }
.ink-red .plat-name { color: #e50914; }
@media (max-width: 1200px) { .rail.rail-plats { grid-auto-columns: calc((100% - 15px * 3) / 4); } }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) { .rail.rail-plats { grid-auto-columns: 46%; } }
@media (max-width: 1200px) { .rail.rail-tiles { grid-auto-columns: calc((100% - 15px * 4) / 5); } }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) { .rail.rail-tiles { grid-auto-columns: 40%; } }

/* ---------- Studio page ---------- */

/* ---------- Franchise page ---------- */
.saga-progress { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; color: var(--muted); font-weight: 600; font-size: 14px; }
.saga-progress .bar { width: 180px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.saga-progress .bar i { display: block; height: 100%; background: var(--accent); }
.order-about { color: var(--muted); margin: -14px 0 26px; min-height: 1px; }
.order-about:empty { display: none; }
.inside { margin-top: 10px; }

/* Vault tiles: dark art, white logo */
.vtile .card-art { background: #0b0c0f; }
.vt-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55) saturate(1.1); transform: scale(1.02); transition: filter 0.5s var(--ease), transform 0.8s var(--ease), opacity 0.45s !important; }
.vt-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 55%, transparent); }
.card-art img.vt-logo { position: absolute; inset: auto 0 18px; margin: auto; width: 78%; height: 26%; object-fit: contain; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.8)); transition: transform 0.4s var(--ease) !important; }
.vt-name { position: absolute; inset: auto 0 14px; display: grid; place-items: center; padding: 16px; text-align: center; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 2px 14px #000; }
.card.vtile:hover .card-art .vt-art { filter: brightness(0.7) saturate(1.2); transform: scale(1.08); }
.vtile:hover .vt-logo { transform: scale(1.05); }
.card.vtile:hover .card-art img.vt-logo { transform: scale(1.05); }

/* ---------- Nav badge ---------- */
.nav-links .new { margin-left: 7px; padding: 2px 6px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: var(--accent); color: #fff; vertical-align: 2px; }

/* ---------- Reels ---------- */
.reels { position: fixed; inset: 0; z-index: 80; background: #050506; }
.r-top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 16px; padding: 24px 32px; pointer-events: none; }
.r-top > * { pointer-events: auto; }
.r-title { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.r-title svg { color: var(--accent); width: 24px; height: 24px; }
.r-title b { font-weight: 800; }
.r-count { color: var(--dim); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.r-mute { margin-left: auto; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px); }
.r-feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.r-feed::-webkit-scrollbar { display: none; }
.r-sk-line { width: 180px; height: 14px; margin-bottom: 16px; }
.r-sk-line.wide { width: 420px; margin-top: 18px; }
.r-sk-title { width: 300px; height: 64px; }
.r-slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; display: grid; place-items: center; padding: 90px 0 250px; }
.r-ambient { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover; filter: blur(60px) brightness(0.5) saturate(1.5); transform: scale(1.1); }
.r-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 5, 6, 0.95) 0%, rgba(5, 5, 6, 0.4) 35%, rgba(5, 5, 6, 0.2) 60%, rgba(5, 5, 6, 0.6) 100%); pointer-events: none; }
.r-frame {
  position: relative; z-index: 1; width: min(1180px, 74vw, calc((100vh - 360px) * 1.778)); aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; cursor: pointer;
  background: #000; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.75);
  transform: scale(0.94); opacity: 0.6; transition: transform 0.6s var(--ease), opacity 0.6s;
}
.r-slide.on .r-frame { transform: none; opacity: 1; }
.r-frame img, .r-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r-frame video { opacity: 0; transform: scale(1.22); transition: opacity 0.8s var(--ease); }
.r-slide.playing .r-frame video { opacity: 1; }
.r-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.15); }
.r-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.r-info { position: absolute; z-index: 2; left: 48px; bottom: 44px; max-width: 560px; }
.r-info .eyebrow { gap: 10px; color: #e4e4e7; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.r-logo { max-width: 340px; max-height: 110px; width: auto; height: auto; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.7)); }
.r-info h2 { font-size: 44px; font-weight: 900; letter-spacing: -0.03em; margin: 0; line-height: 1; }
.r-info p { color: #d4d4d8; line-height: 1.55; margin: 14px 0 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-media, .r-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.r-media { opacity: 0; transition: opacity 0.8s var(--ease); }
.r-media iframe { pointer-events: none; top: -60px; height: calc(100% + 120px); transform: scale(1.22); }
.r-slide.playing .r-media { opacity: 1; }
.pill.r-new { background: var(--accent); border-color: var(--accent); color: #fff; }
.r-status { display: flex; align-items: center; gap: 10px; margin: -6px 0 18px; color: #e4e4e7; font-weight: 550; font-size: 14px; }
.r-side { position: absolute; z-index: 2; right: 40px; bottom: 50px; display: flex; flex-direction: column; gap: 18px; }
.r-act { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; color: #e4e4e7; }
.r-act span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(10px); transition: background 0.2s, transform 0.2s var(--ease); }
.r-act span svg { width: 22px; height: 22px; }
.r-act:hover span { background: rgba(255, 255, 255, 0.2); transform: scale(1.06); }
.r-nav { position: absolute; z-index: 5; right: 40px; top: 50%; transform: translateY(-70%); display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 30px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); }
.r-nav .p-btn { border-radius: 50%; }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
  .r-top { padding: 16px; }
  .r-slide { padding: 70px 0 300px; }
  .r-frame { width: 100%; border-radius: 0; border: 0; }
  .r-info { left: 16px; right: 90px; bottom: 28px; }
  .r-logo { max-width: 220px; max-height: 70px; }
  .r-side { right: 14px; bottom: 30px; }
  .r-nav { display: none; }
  .r-info .actions .btn { height: 44px; padding: 0 18px; font-size: 14px; }
}

/* ================= TV mode (Samsung remote) ================= */
/* No blur and no slow zoom: those were what made the TV sluggish before. */
html.tv *, html.tv *::before, html.tv *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.tv .stage-img { animation: none; }
html.tv .r-ambient { filter: brightness(0.32) saturate(1.3); inset: 0; width: 100%; height: 100%; transform: none; }
html.tv #nav.scrolled .nav-inner, html.tv .nav-inner:hover { background: rgba(14, 15, 18, 0.96); }
html.tv .btn-glass, html.tv .btn-round, html.tv .p-back, html.tv .r-mute, html.tv .r-act span, html.tv .r-nav { background: rgba(28, 29, 34, 0.92); }
html.tv .p-panel, html.tv .p-upnext, html.tv .p-toast, html.tv .menu { background: rgba(16, 17, 21, 0.98); }
html.tv .modal, html.tv .search-overlay { background: rgba(5, 5, 6, 0.96); }
html.tv .rail-btn { display: none; }
html.tv .rail { scroll-snap-type: none; padding: 16px 12px 18px; margin: -16px -12px -18px; }
html.tv .p-vol input { display: none; }
html.tv .p-logo { max-height: 100px; max-width: 440px; }

/* Bigger cards for across-the-room viewing */
html.tv .rail { grid-auto-columns: calc((100% - 15px * 5) / 6); }
html.tv .rail.rail-wide { grid-auto-columns: calc((100% - 15px * 2) / 3); }
html.tv .rail.rail-tiles { grid-auto-columns: calc((100% - 15px * 5) / 6); }
html.tv .grid, html.tv 
/* Focus: one white ring everywhere (matches the Studio Row TV ring) */
html.tv :focus { outline: none; }
html.tv .card:focus .card-art { border-color: transparent; box-shadow: 0 0 0 4px #fff; }
html.tv .card:focus .wide-play { opacity: 1; transform: none; }
html.tv .card:focus .card-title { color: #fff; }
html.tv .vtile:focus .vt-art { filter: brightness(0.75) saturate(1.2); }
html.tv .btn:focus, html.tv .p-btn:focus, html.tv .search-btn:focus, html.tv .avatar:focus,
html.tv .strip-item:focus, html.tv .seg button:focus, html.tv .season-pills button:focus,
html.tv .tv-select:focus, html.tv .field:focus-within, html.tv .opt:focus, html.tv .p-skip:focus,
html.tv .menu a:focus, html.tv .menu button:focus, html.tv .other-user:focus, html.tv .see-all:focus {
  box-shadow: 0 0 0 3px #fff;
}
html.tv .btn-primary:focus { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px #fff; }
html.tv .nav-links a:focus { background: #fff; color: #09090b; }
html.tv .tabs button:focus { color: #fff; }
html.tv .tabs button:focus::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: #fff; border-radius: 2px; }
html.tv .ep:focus, html.tv .p-ep:focus { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 3px #fff; }
html.tv .profile:focus { color: #fff; }
html.tv .profile:focus .profile-pic { transform: scale(1.08); outline-color: #fff; }
html.tv .r-act:focus span { background: #fff; color: #09090b; transform: scale(1.08); }
html.tv .r-act:focus { color: #fff; }
html.tv .p-skip:focus { background: #fff; color: #000; }
/* With a mouse (testing on a PC) the normal hover look applies */
html.tv.tv-mouse :focus { box-shadow: none; transform: none; }

/* ---------- Trailer player (Reels style: framed video, the page blurred behind) ---------- */
html.tr-on, html.tr-on body { overflow: hidden; }
html.tr-on #nav, html.tr-on .tabbar { visibility: hidden; }
.tr {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 70px 48px 40px;
  background: rgba(5, 5, 7, 0.46); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  animation: fade 0.25s both;
}
.tr.out { opacity: 0; transition: opacity 0.18s; }
.tr-glow {
  position: absolute; left: 50%; top: 46%; width: min(1300px, 90vw); aspect-ratio: 16 / 9; transform: translate(-50%, -50%) scale(1.05);
  object-fit: cover; filter: blur(80px) saturate(1.6) brightness(0.8); opacity: 0.4; pointer-events: none;
}
.tr-close { position: absolute; top: 24px; right: 28px; z-index: 3; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(10px); }
.tr-stage { position: relative; z-index: 2; width: min(1180px, 100%, calc((100vh - 290px) * 16 / 9)); display: grid; gap: 22px; animation: rise 0.45s var(--ease) both; }
.tr-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.tr-still, .tr-media, .tr-media video, .tr-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.tr-media { opacity: 0; transition: opacity 0.6s var(--ease); }
/* Like Reels: a slight zoom hides the black bars most trailers have baked in */
.tr-media video, .tr-media iframe { transform: scale(1.22); }
/* YouTube: its player is taller than the frame, so its title bar and logo strip sit outside the frame and only the video shows */
.tr-media iframe { pointer-events: none; top: -60px; height: calc(100% + 120px); }
.tr.playing .tr-media, .tr.ended .tr-media { opacity: 1; }
.tr-still { filter: brightness(0.7); }
.tr-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.15); }
.tr-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 0.25s linear; }
.tr-flash { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; }
.tr-flash svg { width: 38px; height: 38px; }
.tr-flash.go { animation: flash 0.6s var(--ease); }
.tr-msg { position: absolute; inset: auto 0 44%; text-align: center; font-weight: 650; color: #e4e4e7; }
.tr-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.tr-info { min-width: 0; }
.tr-info .eyebrow { gap: 10px; color: #e4e4e7; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.tr-info .pill .tr-n { color: var(--muted); margin-left: 4px; }
.tr-info h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 900; letter-spacing: -0.03em; margin: 0; line-height: 1.05; }
.tr-logo { display: block; max-width: 300px; max-height: 84px; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.7)); }
.tr-acts { display: flex; gap: 18px; flex: none; }
.tr-acts .r-act b { font-weight: 650; }
.tr-main span { background: #fff; color: #09090b; border-color: #fff; }
.tr-main:hover span { background: #e4e4e7; }
.tr-main:disabled { opacity: 0.7; }
html.tv .tr { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(5, 5, 7, 0.6); animation: none; }
html.tv .tr-glow { filter: brightness(0.45) saturate(1.3); opacity: 0.35; }
html.tv .tr-stage { animation: none; }
html.tv .tr-media { transition: none; }
html.tv .tr-close:focus, html.tv .tr-acts .r-act:focus span { background: #fff; color: #09090b; }
html.tv .tr-main:focus span { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px #fff; }
@media (max-width: 760px) {
  .tr { padding: 70px 12px 24px; place-items: center; background: rgba(5, 5, 7, 0.62); }
  .tr-stage { width: 100%; gap: 18px; }
  .tr-frame { border-radius: 10px; }
  .tr-bar { flex-direction: column; align-items: stretch; gap: 18px; }
  .tr-acts { justify-content: space-around; }
  .tr-close { top: calc(14px + env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; }
}

/* TV speed: no hover/zoom transitions, no drawing of rows that are off screen, cheap shadows */
/* (2026-11-14: only cheap movement on the TV now — transform and opacity run on the graphics chip, not the page) */
html.tv .card-art { transition: transform 0.2s var(--ease) !important; }
html.tv .card-art img, html.tv .vt-art { transition: none !important; }
html.tv .btn { transition: background 0.15s, color 0.15s, transform 0.15s var(--ease), box-shadow 0.15s !important; }
html.tv .vt-logo, html.tv .r-frame { transition: none !important; }
html.tv .strip-item { transition: width 0.3s var(--ease), opacity 0.3s, border-color 0.3s !important; }
html.tv .nav-inner { transition: background 0.3s !important; }
html.tv .card-art img, html.tv .vt-art { transform: none !important; }
html.tv .row { content-visibility: auto; contain-intrinsic-size: auto 420px; }
/* That also cuts everything at the row's edge: give the row room below for the focus ring and tile bottoms
   (the negative margin keeps the gap between rows the same). */
html.tv .row { padding-bottom: 24px; margin-bottom: -24px; }
html.tv .poster-card { transform: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); animation: none; }
html.tv .hero-copy { animation: none; }
html.tv .card:hover .card-art { transform: none; box-shadow: none; }
html.tv .chip-rate { background: rgba(10, 10, 12, 0.85); }

/* ---------- Leave Vault? (TV) ---------- */
.exit-dialog { z-index: 200; }
.exit-box { width: min(560px, 100%); padding: 40px 44px; border-radius: 22px; text-align: center; background: #111216; border: 1px solid var(--line); box-shadow: 0 40px 100px #000; }
.exit-box h2 { margin: 0 0 10px; font-size: 34px; font-weight: 850; letter-spacing: -0.02em; }
.exit-box p { margin: 0 0 30px; color: var(--muted); font-size: 17px; }
.exit-actions { display: flex; gap: 14px; justify-content: center; }
.exit-actions .btn { min-width: 150px; justify-content: center; }

/* TV: use the whole screen. Content lines up 72 px in; rows run to the screen edges so cards slide off the edge */
html.tv { --gutter: 3.75vw; } /* 72px on a 1920 screen, in step on smaller TV boxes */
html.tv .search-btn kbd { display: none; }
html.tv .container { max-width: none; }
html.tv .nav-inner { max-width: none; }
html.tv .rail, html.tv .rail.rail-wide, html.tv .rail.rail-tiles {
  margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
  padding-left: var(--gutter); padding-right: var(--gutter);
}
html.tv .rail { grid-auto-columns: calc((100% - 2 * var(--gutter) - 15px * 6) / 7); }
html.tv .rail.rail-wide { grid-auto-columns: calc((100% - 2 * var(--gutter) - 15px * 3) / 3.6); }
html.tv .rail.rail-tiles { grid-auto-columns: calc((100% - 2 * var(--gutter) - 15px * 6) / 6.6); }
/* Platforms and networks: wide logo tiles, about 4½ across (the poster columns above made them tiny). */
html.tv .rail.rail-plats { grid-auto-columns: calc((100% - 2 * var(--gutter) - 15px * 4) / 4.6); }
/* We Think You'll Love This: three big cards on the TV too. OK opens the title, so no on-card buttons it can't reach. */
html.tv .rail.rail-love { grid-auto-columns: calc((100% - 2 * var(--gutter) - 15px * 2) / 3); }
html.tv .love-acts { display: none; }
html.tv .rail-love .card:focus .card-art { transform: scale(1.02); }
/* The row box itself spans the screen (skipping off-screen rows also clips each row to its box) */
html.tv .row { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }

/* ================= Phones ================= */
.tabbar { display: none; }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
  #nav { top: calc(10px + env(safe-area-inset-top)); }
  .tabbar {
    pointer-events: auto;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; justify-content: space-around;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(9, 10, 12, 0.94); border-top: 1px solid var(--line);
    backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  }
  .tabbar a, .tabbar button {
    flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px 2px; font-size: 10.5px; font-weight: 600; color: #8b8b93;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar svg { width: 23px; height: 23px; }
  .tabbar a.active { color: #fff; }
  .tabbar a.active svg { color: var(--accent); }
  body.watching .tabbar { display: none; }
  main { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.watching main { padding-bottom: 0; }
  .search-btn { display: none; } /* Search lives in the tab bar */
  .p-top { padding-top: calc(18px + env(safe-area-inset-top)); }
  .p-bottom { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .r-top { padding-top: calc(16px + env(safe-area-inset-top)); }
}
/* Landscape phones: keep the controls clear of the notch. */
@media (max-height: 500px) and (pointer: coarse) {
  .p-top, .p-bottom { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  .p-top { padding-top: 12px; }
  .p-bottom { padding-bottom: 10px; }
  .p-subs { bottom: 40px; }
}

/* Touch screens: big play / skip buttons in the middle of the player, no hover leftovers. */
.p-center { display: none; }
html.touch .p-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 44px; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
html.touch .player.awake .p-center, html.touch .player.paused .p-center { opacity: 1; pointer-events: auto; }
html.touch .player.buffering .p-center .c-play { opacity: 0; }
html.touch .p-center button { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.42); -webkit-tap-highlight-color: transparent; }
html.touch .p-center .c-play { width: 74px; height: 74px; }
html.touch .p-center svg { width: 26px; height: 26px; }
html.touch .p-center .c-play svg { width: 34px; height: 34px; }
html.touch .p-left [data-a=play], html.touch .p-left [data-a=rew], html.touch .p-left [data-a=fwd] { display: none; }
html.touch .p-vol { display: none; }
html.touch .p-flash { display: none; }
.p-seekhint { position: absolute; top: 50%; transform: translateY(-50%); padding: 10px 16px; border-radius: 30px; background: rgba(0, 0, 0, 0.5); font-weight: 700; font-size: 14px; pointer-events: none; opacity: 0; transition: opacity 0.25s; }
.p-seekhint.l { left: 12%; }
.p-seekhint.r { right: 12%; }
.p-seekhint.go { opacity: 1; }
@media (hover: none) {
  .card:hover .card-art, .card:hover .card-art img { transform: none; }
}
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
  .search-overlay { padding-top: calc(80px + env(safe-area-inset-top)); }
  .search-bar { height: 56px; gap: 10px; padding: 0 8px 0 16px; border-radius: 16px; }
  .search-bar input { font-size: 17px; }
}
/* Phones: a compact browse header so titles show on the first screen. */
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
  .browse { padding-top: calc(90px + env(safe-area-inset-top)); }
  .browse-head { gap: 16px; }
  .browse-head h1 { font-size: 34px; }
  .browse-head p { font-size: 14px; margin-top: 8px; }
  .browse-tools { flex-wrap: nowrap; gap: 8px; }
  .browse-tools .field { flex: 1; width: auto; min-width: 0; height: 42px; }
  .browse-tools .field input { min-width: 0; }
  .browse-tools .seg button { padding: 0 10px; font-size: 0; gap: 0; }
  .browse-tools .seg button svg { font-size: 16px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 14px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .select { flex: none; }
  .select select { height: 38px; font-size: 13px; padding: 0 34px 0 13px; }
}
/* iPhone: don't enlarge text when turned sideways, and don't zoom in when a text box or menu is tapped
   (it does that for anything under 16px, and stays zoomed). */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.touch input, html.touch select, html.touch textarea { font-size: 16px !important; }
/* Phones: studio and streaming pages. */
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
        }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) { .p-toast { left: max(16px, env(safe-area-inset-left)); right: auto; max-width: calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)); bottom: calc(120px + env(safe-area-inset-bottom)); font-size: 14px; white-space: nowrap; } }
/* Profiles: this device's profiles, Add Profile, and the sign-in form. */
.profiles-sub { color: var(--muted); margin: -24px 0 30px; text-align: center; }
.add-profile .profile-pic { background: transparent !important; border: 2px dashed rgba(255, 255, 255, 0.25); color: var(--muted); }
.add-profile .profile-pic svg { width: 40%; height: 40%; }
.pw-form { max-width: 560px; }
.pick-list { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 6px; }
.pick { padding: 9px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: #d4d4d8; }
.pick:hover, .pick.on { background: #fff; color: #09090b; }
html.tv .pick:focus { background: #fff; color: #09090b; }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
  .profiles h1 { font-size: 32px; margin-bottom: 30px; }
  .profiles-sub { margin-top: -18px; }
  .pw-form { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .pw-form input, .pw-form input.name-in { width: 100%; }
}
.pw-form .btn { justify-content: center; }
/* Polish: phones. The main button gets its own full-width line on title pages and the home hero,
   the rest share the line below; small links get a bigger tap area. */
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
  .hero-copy .actions { gap: 10px; }
  .hero-copy .actions .btn-primary { flex: 1 1 100%; justify-content: center; }
  .hero-copy .actions .btn:not(.btn-primary):not(.btn-round) { flex: 1 1 0; justify-content: center; }
  /* Restart sits beside Resume on the first line, so My List, Trailer and sound keep theirs. */
  .hero-copy .actions:has(#restart:not([hidden])) .btn-primary { flex: 1 1 calc(100% - 60px); }
  .brand { padding: 10px 6px; margin: -10px -6px; }
  .see-all { padding: 10px 0 10px 12px; margin: -10px 0; }
}
html.touch .player.panel-open .p-center { opacity: 0; pointer-events: none; }

/* TV: Vault's own list in place of the browser's dropdowns */
html.tv .select select { display: none; }
.tv-select {
  height: 42px; padding: 0 40px 0 16px; border-radius: 12px; white-space: nowrap;
  background: var(--glass); border: 1px solid var(--line); color: var(--text); font: 600 14px Inter, sans-serif;
}
.tv-pick-box { width: min(380px, 100%); max-height: 70vh; display: flex; border-radius: 18px; background: #0c0d10; border: 1px solid var(--line); box-shadow: 0 40px 100px #000; }
.tv-pick-list { display: grid; gap: 2px; align-content: start; width: 100%; padding: 10px; overflow-y: auto; }
html.tv .tv-pick, html.tv .tv-pick-box { animation: none; backdrop-filter: none; }

/* ---------- Requests ---------- */
.rq-chip {
  position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 5px; max-width: calc(100% - 20px);
  padding: 4px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(10, 10, 12, 0.78); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.1); color: #e4e4e7;
}
.rq-chip::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--dim)); }
.rq-chip svg { display: none; }
.rq-chip-inline { position: static; display: inline-flex; }
.rq-in { --c: #22c55e; }
.rq-dl { --c: #3b82f6; }
.rq-wait { --c: var(--gold); }
.rq-asked { --c: #a78bfa; }
.rq-part { --c: #2dd4bf; }
.rq-no { --c: var(--dim); }
.rq-card .card-art img { filter: saturate(0.92); }

.rq-hero { min-height: max(560px, 74vh); }
.soon-when { color: #e4e4e7; font-weight: 600; font-size: 15px; }
.soon-count { margin: 10px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; color: var(--gold); }
.rq-main { position: relative; z-index: 3; }
.rq-search { margin: 28px 0 6px; }
.rq-search .field { max-width: 640px; height: 54px; font-size: 16px; border-radius: 16px; }
.rq-results .grid-head { margin-top: 26px; }
.rq-more-wrap { display: flex; justify-content: center; margin: 30px 0 10px; }

.rq-state { margin: -8px 0 26px; }
.rq-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-weight: 600; color: #e4e4e7; }
.rq-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--dim)); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06); }
.rq-bar { flex-basis: 100%; max-width: 420px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.rq-bar i { display: block; height: 100%; background: #3b82f6; }
.btn.btn-done { background: rgba(34, 197, 94, 0.18); color: #fff; border: 1px solid rgba(34, 197, 94, 0.4); }
.btn:disabled { opacity: 0.6; cursor: default; }

.rq-after { padding-bottom: 60px; }
.rq-seasons { margin: 40px 0 10px; }
.rq-seasons .row-head { align-items: flex-end; }
.rq-season-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 16px; }
.rq-season {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; text-align: left; color: var(--text);
  background: var(--glass); border: 1px solid var(--line);
}
button.rq-season { cursor: pointer; }
button.rq-season:hover { background: var(--glass-hi); }
.rq-check { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 2px solid rgba(255, 255, 255, 0.28); color: transparent; }
.rq-check svg { width: 15px; height: 15px; }
div.rq-season .rq-check { visibility: hidden; width: 0; margin-right: -14px; }
.rq-season.on { background: var(--accent-soft); border-color: rgba(244, 63, 94, 0.5); }
.rq-season.on .rq-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.rq-season-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rq-season-text small { color: var(--muted); font-size: 13px; }
.rq-note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.rq-ask-tv { margin-top: 20px; }

.rq-cast { gap: 18px; }
.rq-person { flex: none; width: 128px; text-align: center; display: grid; justify-items: center; gap: 4px; border-radius: 12px; padding: 6px 0; }
.rq-face { width: 108px; aspect-ratio: 2 / 3; height: auto; border-radius: 14px; overflow: hidden; background: var(--glass); display: grid; place-items: center; font-size: 34px; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.rq-face img { width: 100%; height: 100%; object-fit: cover; }
.rq-person b { font-size: 14px; line-height: 1.25; }
.rq-person small { color: var(--muted); font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }


html.tv .rq-season:focus, html.tv .rq-person:focus { box-shadow: 0 0 0 3px #fff; outline: none; }
html.tv .rq-search .field { height: 60px; }
@media (max-width: 760px) {
  .rq-hero { min-height: 520px; }
  .rq-search { margin-top: 18px; }
  .rq-search .field { height: 48px; }
  .rq-season-list { grid-template-columns: 1fr; }
  .rq-person { width: 96px; }
  .rq-face { width: 84px; font-size: 26px; }
}
.rq-main.rq-searching { padding-top: 92px; }
@media (max-width: 760px) { .rq-main.rq-searching { padding-top: 64px; } }
.search-rq-head { margin: 40px 0 16px; }

/* ---------- Brand pages (studios, networks, streaming originals) ---------- */
.brand-hero { min-height: max(620px, 82vh); }
.brand-logo { display: block; max-width: min(460px, 80vw); max-height: 150px; object-fit: contain; object-position: left center; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.7)); }
.brand-hero .actions .seg { margin-left: 4px; height: 50px; align-items: center; border-radius: 999px; padding: 0 5px; }
.brand-hero .actions .seg button { height: 40px; padding: 0 18px; border-radius: 999px; }
.brand-rows { padding-bottom: 60px; }
.brand-all { margin-top: 56px; }
.brand-all .row-head { margin-bottom: 18px; }

/* ---------- Franchise timeline ---------- */
.saga-wrap { padding-bottom: 60px; }
.saga-orders { margin: 6px 0 22px; }
.order-about { color: var(--muted); margin: 0 0 18px; max-width: 760px; }
.order-about:empty { display: none; }
.rail.saga-line { grid-auto-columns: calc((100% - 18px * 3) / 3.6); gap: 18px; padding-top: 4px; }
.saga-stop { position: relative; display: grid; gap: 12px; }
.saga-stop::before { content: ''; position: absolute; top: 17px; left: 0; right: -18px; height: 2px; background: rgba(255, 255, 255, 0.14); }
.saga-stop:last-child::before { display: none; } /* the line ends at the last circle */
.saga-dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: #1a1b20; border: 2px solid rgba(255, 255, 255, 0.25); }
.saga-dot.seen { background: var(--accent); border-color: var(--accent); }
.saga-dot svg { width: 16px; height: 16px; }
.saga-stop.up-next .saga-dot { border-color: #fff; background: #fff; color: #09090b; }
.saga-stop .card-art { aspect-ratio: 16 / 9; }
.saga-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 55%); }
.card-art img.saga-logo { position: absolute; left: 14px; bottom: 12px; width: auto; height: auto; max-width: 60%; max-height: 40%; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 3px 12px #000); transform: none !important; }
.saga-name { position: absolute; left: 14px; bottom: 12px; right: 14px; font-size: 18px; }
.saga-next { position: absolute; top: 10px; right: 10px; padding: 4px 9px; border-radius: 8px; font-size: 12px; font-weight: 750; background: #fff; color: #09090b; }
.saga-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.saga-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saga-meta span { color: var(--muted); flex: none; }
.skipped .row { margin-top: 30px; }
html.tv .saga-stop:focus .card-art { box-shadow: 0 0 0 4px #fff; }
html.tv .rail.saga-line { grid-auto-columns: calc((100% - 2 * var(--gutter) - 18px * 3) / 3.4); }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
  .rail.saga-line { grid-auto-columns: 78%; }
  .brand-hero { min-height: 560px; }
}
.saga-orders { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.saga-orders::-webkit-scrollbar { display: none; }
.saga-orders button { white-space: nowrap; flex: none; }

/* ---------- Home: hero rank line, Top 10, This Week ---------- */
.hero-rank { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 18px; }
.hero-rank svg { width: 22px; height: 22px; }
.row-ranked .rail { grid-auto-columns: calc((100% - 15px * 5) / 6); }
.card.ranked { position: relative; padding-left: 34%; }
.rank-n { position: absolute; left: 0; bottom: 44px; z-index: 0; font-size: clamp(90px, 9vw, 150px); font-weight: 900; line-height: 0.8; letter-spacing: -0.08em; color: var(--bg); pointer-events: none;
  /* outline from shadows, not a stroke: a stroke also draws the lines inside letters like 4 */
  --o: rgba(255, 255, 255, 0.55);
  text-shadow: 2px 0 var(--o), -2px 0 var(--o), 0 2px var(--o), 0 -2px var(--o), 1.5px 1.5px var(--o), -1.5px 1.5px var(--o), 1.5px -1.5px var(--o), -1.5px -1.5px var(--o); }
.card.ranked .card-art, .card.ranked .card-title, .card.ranked .card-meta { position: relative; z-index: 1; }
html.tv .row-ranked .rail { grid-auto-columns: calc((100% - 2 * var(--gutter) - 15px * 4) / 4.6); }
.day-chip { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 8px; font-size: 12px; font-weight: 750; background: rgba(10, 10, 12, 0.78); border: 1px solid rgba(255, 255, 255, 0.12); }

/* ---------- Growing cards (peek.js) ---------- */
.peek { position: fixed; z-index: 70; border-radius: 14px; overflow: hidden; background: #141519; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85); opacity: 0; transform: scale(0.82); transition: opacity 0.22s, transform 0.28s var(--ease); }
.peek.on { opacity: 1; transform: none; }
.peek-art { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.peek-art img:first-child, .peek-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.peek-art video { opacity: 0; transform: scale(1.22); transition: opacity 0.6s; }
.peek.playing .peek-art video { opacity: 1; }
.peek-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 55%); }
.peek-logo { position: absolute; left: 16px; bottom: 14px; max-width: 46%; max-height: 34%; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 3px 12px #000); }
.peek-name { position: absolute; left: 16px; bottom: 14px; right: 16px; font-size: 20px; }
.peek-body { padding: 14px 16px 16px; }
.peek-acts { display: flex; align-items: center; gap: 8px; }
.peek-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(255, 255, 255, 0.35); color: #fff; }
.peek-btn svg { width: 18px; height: 18px; }
.peek-btn:hover { border-color: #fff; }
.peek-btn.main { background: #fff; color: #09090b; border-color: #fff; }
.peek-btn.on { border-color: #22c55e; color: #22c55e; }
.peek-gap { flex: 1; }
.peek-ends { font-size: 13px; font-weight: 650; color: #e4e4e7; }
.peek .meta { margin: 12px 0 6px; font-size: 14px; }
.peek-genres { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.peek p { margin: 0; color: #c4c4cc; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.tv .peek { pointer-events: none; transition: none; transform: none; }
@media (max-width: 760px) { .row-ranked .rail { grid-auto-columns: 46%; } }

/* ---------- No spoilers: unwatched episodes past the next one ---------- */
.spoiler .ep-art img, .spoiler .p-ep-art img { filter: blur(18px) brightness(0.6) saturate(0.8); transform: scale(1.15); transition: filter 0.3s; }
.ep-art, .p-ep-art { overflow: hidden; }
.spoiler .ep-text p, .spoiler.p-ep p { filter: blur(5px); user-select: none; transition: filter 0.3s; }
.spoiler:hover .ep-art img, .spoiler:focus .ep-art img, .spoiler:hover .p-ep-art img, .spoiler:focus .p-ep-art img { filter: none; transform: none; }
.spoiler:hover .ep-text p, .spoiler:focus .ep-text p, .spoiler.p-ep:hover p, .spoiler.p-ep:focus p { filter: none; }
.spoiler-tag { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: rgba(10, 10, 12, 0.7); border: 1px solid rgba(255, 255, 255, 0.14); }
.spoiler-tag svg { width: 14px; height: 14px; }
.spoiler:hover .spoiler-tag, .spoiler:focus .spoiler-tag { opacity: 0; }
html.tv .spoiler .ep-art img, html.tv .spoiler .p-ep-art img { transition: none; }

/* ---------- TV screensaver ---------- */
.ambient { position: fixed; inset: 0; z-index: 200; background: #000; opacity: 0; transition: opacity 1.2s; cursor: none; }
.ambient.on { opacity: 1; }
.amb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2s ease; }
.ambient:not(.flip) .amb-img.a, .ambient.flip .amb-img.b { opacity: 1; }
.amb-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, transparent 40%), linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 25%); }
.amb-clock { position: absolute; top: 48px; right: 64px; font-size: 44px; font-weight: 300; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.92); text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }
.amb-info { position: absolute; left: 64px; bottom: 64px; display: grid; gap: 10px; }
.amb-info img { max-width: 380px; max-height: 120px; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.8)); }
.amb-info b { font-size: 48px; font-weight: 900; letter-spacing: -0.03em; }
.amb-info span { color: rgba(255, 255, 255, 0.75); font-weight: 600; font-size: 18px; }
.amb-hint { position: absolute; right: 64px; bottom: 64px; color: rgba(255, 255, 255, 0.45); font-size: 15px; font-weight: 600; }
.amb-img:not([src]) { visibility: hidden; }


/* ---------- Collections page ---------- */
/* Tall like Home's hero, the collection anchored at the bottom so its backdrop shows above it. */
.cotd { position: relative; min-height: max(620px, 80vh); padding: 120px 0 40px; overflow: hidden; display: flex; align-items: flex-end; }
.cotd-body { width: 100%; }
.cotd-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(3px) brightness(0.42); transform: scale(1.05); }
.cotd::after { content: ''; position: absolute; inset: 0 0 -2px; background: linear-gradient(0deg, var(--bg) 0, var(--bg) 6px, transparent 55%), linear-gradient(90deg, rgba(7, 8, 10, 0.6), transparent 60%); pointer-events: none; }
.cotd-body { position: relative; z-index: 1; }
.cotd .eyebrow span:not(.pill) { color: var(--muted); font-weight: 600; font-size: 14px; }
.cotd .eyebrow span:not(.pill) + span:not(.pill)::before { content: '·'; margin-right: 12px; }
.cotd-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.cotd-logo { max-width: 440px; max-height: 130px; object-fit: contain; object-position: left; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.6)); }
.cotd-top .actions { display: flex; gap: 12px; margin: 0; flex-wrap: wrap; justify-content: flex-end; }
.cotd .saga-progress { margin-bottom: 20px; }
.rail.cotd-films { grid-auto-columns: 150px; padding-top: 6px; }
.cotd-film .card-art { aspect-ratio: 2/3; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); }
.cotd-film.seen .card-art img { filter: grayscale(0.5) brightness(0.7); }
.cotd-film.up-next .card-art { border-color: #fff; }
.cotd-film b { display: block; margin-top: 9px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cotd-film i { font-style: normal; font-size: 12px; color: var(--dim); }
.cl-rows { margin-top: 10px; padding-bottom: 20px; }
.cl-prog-text { display: flex; justify-content: space-between; gap: 8px; }
.cl-card .cl-prog { inset: auto 14px 12px; font-size: 12px; }
.cl-card .cl-check { top: 10px; }
.cl-prog { position: absolute; inset: 10px 10px auto; display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 6px #000; }
.cl-line { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.cl-line i { display: block; height: 100%; background: var(--accent); }
.cl-check { position: absolute; top: 24px; right: 10px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.cl-check svg { width: 14px; height: 14px; }
.cl-browse { padding-bottom: 90px; }
.cl-browse .cl-rows { padding: 0; }
/* Find a Collection: a search box in the same pill shape as the filters. */
.cl-find { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; min-width: 260px; flex: 0 1 320px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--muted); }
.cl-find:focus-within { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.09); }
.cl-find svg { width: 18px; height: 18px; flex: none; }
.cl-find input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 15px; }
.cl-find input::-webkit-search-cancel-button { filter: invert(1) opacity(0.6); }
.cl-view button { width: 44px; padding: 0; display: grid; place-items: center; }
.cl-view svg { width: 18px; height: 18px; }
.cl-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 24px; }
.cl-menus { display: flex; gap: 10px; }
.cl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card.cl-card { width: auto; }
.cl-card .card-art { aspect-ratio: 16/9; background: #0b0c0f; }
.cl-card .card-art > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }
.cl-card:hover .card-art > img:first-child { filter: brightness(0.8); }
.card-art img.cl-logo { position: absolute; inset: 0; margin: auto; width: 66%; height: 46%; object-fit: contain; filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.8)); }
.cl-name { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; text-align: center; padding: 16px; text-shadow: 0 2px 18px #000; }
.fr-tile .vt-name { font-size: 26px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.cotd-name { font-size: clamp(40px, 5vw, 72px); }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) { .cl-name { font-size: 20px; } .fr-tile .vt-name { font-size: 20px; } }
html.tv .cl-grid { grid-template-columns: repeat(4, 1fr); }
html.tv .cotd-bg { filter: brightness(0.38); transform: none; }
@media (max-width: 1100px) { .cl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
  .cotd { padding-top: 100px; min-height: max(520px, 72vh); }
  .cotd-top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cotd-top .actions { justify-content: flex-start; }
  .cotd-logo { max-width: 80%; max-height: 100px; }
  .rail.cotd-films { grid-auto-columns: 112px; }
  .cl-find { flex: 1 1 100%; min-width: 0; }
  .cl-tools .seg:not(.cl-view) { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .cl-view { flex: none; }
  .cl-tools .seg button { flex: none; }
  .cl-menus { width: 100%; }
  .cl-menus .select { flex: 1; }
  .cl-menus .select select { width: 100%; }
  .cl-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
}

/* Polish 2026-11-14 */
.cotd-wait .sk-title { width: 380px; height: 64px; margin: 18px 0 24px; }
.cotd-wait .sk-sub { width: 300px; }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
  /* Phones: "Ends at" on its own line (no dot left hanging), and a darker hero so the words read over bright art. */
  .meta .dot-ends { display: none; }
  .meta .ends { flex-basis: 100%; }
  .hero .shade { background: linear-gradient(0deg, var(--bg) 0, var(--bg) 6px, rgba(7, 8, 10, 0.82) 40%, rgba(7, 8, 10, 0.45) 75%, rgba(7, 8, 10, 0.6) 100%); }
  .cotd-wait .sk-title { width: 70%; height: 44px; }
}

/* ---------- Motion (2026-11-14): everything arrives and moves instead of snapping ---------- */
/* Fade only: sliding the page made Chrome draw the hero picture one pixel past the hero's edge (a bright line). */
@keyframes pagein { from { opacity: 0; } }
/* A page (and anything that replaces its placeholders) eases in. */
#main > * { animation: pagein 0.45s var(--ease) both; }
#main > .player, #main > .reels { animation: fade 0.35s both; }
.rows > .row, .tab-body > *, .grid > *, .cl-grid > * { animation: fade 0.4s var(--ease) both; }
/* Pictures fade in when they arrive instead of popping. */
.card-art img, .vt-art, .strip-item img, .cotd-bg, .cotd-film img { opacity: 0; }
.card-art img.in, .vt-art.in, .strip-item img.in, .cotd-bg.in, .cotd-film img.in { opacity: 1; }
.strip-item img, .cotd-bg { transition: opacity 0.45s; }
/* Hero pictures (Requests' come from TMDb over the internet) would otherwise be drawn top-down as they download:
   a bright band across the top for a moment. Hidden until they've fully arrived. */
.stage-img:not(.in) { opacity: 0; }
.stage-img { transition: opacity 0.5s; }
/* Hero: the next title's picture fades over the last, its words fade out and the new ones rise. */
.stage.stage-in { opacity: 0; transition: opacity 0.85s var(--ease); }
.stage.stage-in.on { opacity: 1; }
.hero-copy.out { opacity: 0; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s; animation: none; }
html.tv .hero-copy { animation: rise 0.45s var(--ease) both; }
/* TV: the focused card grows a little, smoothly. */
html.tv .card:focus .card-art { transform: scale(1.05); }
html.tv .card.wide:focus .card-art, html.tv .rail-wide .card:focus .card-art { transform: scale(1.035); }
html.tv .btn:focus { transform: scale(1.04); }
/* Overlays and menus come in softly. */
.peek { transition: opacity 0.26s, transform 0.32s var(--ease); }
.menu:not([hidden]) { animation: rise 0.22s var(--ease) both; }

/* TV, after the first test (30 fps vs ~50 before): keep the cheap movement (focused card zoom, rows gliding sideways,
   hero crossfade), drop what redraws lots of screen on every frame: posters fading in one by one, rows/grids fading,
   the page sliding in. Pictures just appear on the TV, and pages only fade. */
html.tv .card-art img, html.tv .vt-art, html.tv .strip-item img, html.tv .cotd-bg, html.tv .cotd-film img { opacity: 1; }
html.tv .rows > .row, html.tv .tab-body > *, html.tv .grid > *, html.tv .cl-grid > * { animation: none; }
html.tv #main > * { animation: fade 0.25s both; }
html.tv .stage.stage-in { transition-duration: 0.5s; }
html.tv .stage-img { transition: none; }

/* ---------- Person pages ---------- */
.pp-who { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 18px; }
.pp-pic { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); flex: none; }
.pp-none { display: grid; place-items: center; background: var(--bg-2); font-size: 60px; font-weight: 900; color: var(--muted); }
.pp-who .eyebrow { margin-bottom: 12px; }
.pp-copy { max-width: 760px; }
.pp-copy .hero-rank { margin: 0 0 4px; }
.pp-name { font-size: clamp(44px, 5.4vw, 80px); }
.pp-bio { -webkit-line-clamp: 4; }
.pp-bio.open { -webkit-line-clamp: unset; display: block; }
.pp-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 6px; }
.pp-num { padding: 18px 20px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); display: grid; gap: 4px; min-width: 0; transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease); }
a.pp-num:hover { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.pp-num small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.pp-num b { font-size: 32px; font-weight: 900; line-height: 1.1; }
.pp-num b em { font-style: normal; font-size: 18px; color: var(--muted); font-weight: 700; }
.pp-num span { color: #d4d4d8; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.person { display: block; border-radius: 14px; padding: 6px 4px; transition: background 0.2s; }
a.person:hover { background: rgba(255, 255, 255, 0.05); }
a.person:hover .person-pic { outline-color: rgba(255, 255, 255, 0.5); }
html.tv a.pp-num:focus, html.tv a.person:focus { outline: none; box-shadow: 0 0 0 3px #fff; }
html.tv a.person:focus { background: rgba(255, 255, 255, 0.08); }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
  .pp-who { gap: 16px; }
  .pp-pic { width: 92px; height: 92px; }
  .pp-nums { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pp-num { padding: 14px; }
  .pp-num b { font-size: 24px; }
}

/* ---------- Maintenance screen (maintenance.js) + restart heads-up ---------- */
.mt-overlay { position: fixed; inset: 0; z-index: 300; min-height: 0; overflow-y: auto; background: var(--bg); display: grid; place-items: center; padding: 24px; }
.mt-bg { position: fixed; inset: -20px; background: center/cover no-repeat; filter: blur(14px) brightness(0.32) saturate(1.2); transform: scale(1.05); opacity: 0; transition: opacity 0.8s var(--ease); }
.mt-bg.in { opacity: 1; }
.mt-bg.none { opacity: 1; background: radial-gradient(1200px 600px at 30% 20%, rgba(244, 63, 94, 0.12), transparent 60%), radial-gradient(900px 500px at 80% 90%, rgba(99, 102, 241, 0.1), transparent 60%); filter: none; }
.mt-word { height: 20px; width: auto; align-self: flex-start; }
.mt-lead { color: #d4d4d8; font-size: 18px; margin: 0; }
.mt-lead b { color: #fff; font-weight: 650; }
.mt-foot { color: var(--dim); font-size: 14px; margin: 0; }
.mt-dots { display: inline-flex; gap: 4px; vertical-align: middle; flex: none; }
.mt-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: mt-dot 1.2s infinite ease-in-out; }
.mt-dots i:nth-child(2) { animation-delay: 0.15s; } .mt-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes mt-dot { 0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }
@keyframes mt-pulse { 50% { opacity: 0.35; } }
.mt-card { position: relative; width: min(600px, 100%); padding: 40px 40px 34px; border-radius: 24px; background: rgba(14, 15, 18, 0.72); border: 1px solid var(--line); backdrop-filter: blur(20px); display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); animation: pagein 0.45s var(--ease) both; }
.mt-card h1 { margin: 6px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.mt-try { align-self: flex-start; }
.mt-steps { list-style: none; margin: 2px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.mt-steps li { display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; background: var(--glass); color: var(--dim); font-weight: 600; transition: background 0.4s, color 0.4s; }
.mt-steps li span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mt-steps li.done { color: #d4d4d8; }
.mt-steps li.done span { background: #22c55e; }
.mt-steps li.now { background: var(--accent-soft); color: #fff; }
.mt-steps li.now span { background: var(--accent); animation: mt-pulse 1.2s infinite; }
.mt-newbox { padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.mt-newbox h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.mt-new { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 16px; font-weight: 550; }
.mt-new li { display: flex; gap: 12px; align-items: flex-start; }
.mt-new svg { color: var(--accent); margin-top: 3px; }
.mt-d .mt-h-back { display: none; }
.mt-d h1 .mt-h-back { color: #22c55e; }
.mt-d.is-back .mt-h-soon { display: none; } .mt-d.is-back h1 .mt-h-back { display: inline; } .mt-d.is-back p.mt-h-back { display: block; }
.mt-d.is-back .mt-steps li.now { background: rgba(34, 197, 94, 0.16); } .mt-d.is-back .mt-steps li.now span { background: #22c55e; animation: none; }
.mt-back { position: fixed; left: 50%; top: 28px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; background: #fff; color: #09090b; font-weight: 700; transform: translate(-50%, -90px); transition: transform 0.5s var(--ease); }
.mt-d.is-back .mt-back { transform: translate(-50%, 0); }
.mt-toast { position: fixed; z-index: 95; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(520px, calc(100% - 32px)); display: flex; align-items: center; gap: 16px; padding: 16px 16px 16px 22px; border-radius: 18px; background: rgba(14, 15, 18, 0.9); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(18px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); animation: mt-up 0.5s var(--ease); }
.mt-toast b { display: block; } .mt-toast span { color: var(--muted); font-size: 14px; }
.mt-toast button { margin-left: auto; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.mt-toast button:hover, .mt-toast button:focus-visible { background: var(--glass); color: #fff; outline: none; }
@keyframes mt-up { from { opacity: 0; transform: translate(-50%, 20px); } }
html.tv .mt-card { background: rgba(14, 15, 18, 0.92); }
html.tv .mt-bg { filter: brightness(0.3); }
html.tv .mt-try:focus { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px #fff; }
@media (max-width: 760px) {
  .mt-card { padding: 30px 24px 26px; } .mt-card h1 { font-size: 27px; }
  .mt-steps li { padding: 8px 13px; font-size: 14px; }
  .mt-toast { bottom: 90px; }
}

/* Phones: tall title logos (TRON, Jaws…) pushed the hero copy up under the Vault wordmark. */
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
  .hero .logo { max-height: 92px; }
  .hero .logo.big { max-height: 120px; }
}

/* Phones: the title page's overview stops at 4 lines so the second row of buttons stays above the tab bar. */
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) { .overview.full { -webkit-line-clamp: 4; } }

/* Sign-in: Show Password (the form's input style must not reach the checkbox). */
.pw-form .show-pw { display: inline-flex; align-items: center; gap: 8px; color: var(--muted, #a1a1aa); font-size: 14px; cursor: pointer; user-select: none; }
.pw-form .show-pw input { width: 16px; height: 16px; padding: 0; margin: 0; border-radius: 4px; accent-color: #fff; }

/* "A New Version of Vault Is Ready" (tabs left open across a release). */
.new-version { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 20px; border-radius: 999px; background: rgba(24, 24, 27, 0.92); border: 1px solid var(--line); backdrop-filter: blur(12px); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); font-size: 15px; font-weight: 600; white-space: nowrap; }
.new-version .btn { height: 38px; padding: 0 18px; font-size: 14px; }
.new-version .x { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted, #a1a1aa); cursor: pointer; }
.new-version .x svg { width: 18px; height: 18px; }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) { .new-version { bottom: calc(92px + env(safe-area-inset-bottom)); font-size: 13px; gap: 8px; } }

/* Phones: More (Anime, Collections, Reels, Requests) as a sheet over the tab bar. */
.more-sheet { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.5); display: flex; align-items: flex-end; animation: fade-in 0.18s both; }
.more-panel { width: 100%; padding: 10px 12px calc(84px + env(safe-area-inset-bottom)); background: rgba(16, 17, 20, 0.98); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; animation: sheet-up 0.24s var(--ease) both; }
.more-grab { display: block; width: 40px; height: 4px; margin: 2px auto 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); }
.more-panel a { display: flex; align-items: center; gap: 14px; padding: 15px 10px; border-radius: 14px; font-size: 17px; font-weight: 600; color: var(--text); }
.more-panel a:active { background: var(--glass); }
.more-panel a > svg:first-child { width: 24px; height: 24px; color: #a1a1aa; flex: none; }
.more-panel a > span { flex: 1; }
.more-panel a > svg:last-child { width: 18px; height: 18px; color: #52525b; }
.more-panel .new { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.tabbar button.active { color: #fff; }
.tabbar button.active svg { color: var(--accent); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Hero strip: pictures only; the name shows on the one playing (long names were cut mid-word). */
.strip-item:not(.on) span { opacity: 0; }
.strip-item.on span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }

/* YouTube trailers: our still covers YouTube's own play button while paused or loading */
.yt-cover { position: absolute; inset: 0; background: #000 center / cover no-repeat; pointer-events: none; transition: opacity 0.25s; }
.yt-cover.off { opacity: 0; }
html.tv .yt-cover { transition: none; }
.yt-relay { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* YouTube never sees the mouse, so it never draws its own play/pause button: our controls do it all */
iframe[src*="youtube"], .yt-relay { pointer-events: none; }

/* See All at the end of a row: TV only (computers and phones use the header link) */
.see-all-card { display: none; }
html.tv .see-all-card { flex: 0 0 200px; align-self: stretch; margin-bottom: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--muted); font-size: 20px; font-weight: 650; }
html.tv .see-all-card span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
html.tv .see-all-card span svg { width: 28px; height: 28px; }
html.tv .see-all-card:focus { color: #fff; background: rgba(255, 255, 255, 0.12); outline: none; box-shadow: 0 0 0 3px #fff; }

/* Subtitle Style (player settings) */
.p-h4-gap { margin-top: 22px !important; }
.player[data-sub-size=s] .p-subs span { font-size: clamp(15px, 1.8vw, 26px); }
.player[data-sub-size=l] .p-subs span { font-size: clamp(22px, 2.9vw, 44px); }
.player[data-sub-size=xl] .p-subs span { font-size: clamp(26px, 3.6vw, 56px); }
.player[data-sub-look=shadow] .p-subs span { background: none; text-shadow: 0 0 4px #000, 0 2px 8px #000, 0 0 2px #000; }
.player[data-sub-look=solid] .p-subs span { background: #000; text-shadow: none; }

/* Versions picker (Request, admins): grouped like a store's download list */
.vs-box { width: min(620px, 100%); max-height: min(860px, calc(100vh - 60px)); display: flex; flex-direction: column; border-radius: 20px; background: #0c0d10; border: 1px solid var(--line); box-shadow: 0 40px 100px #000; animation: rise 0.4s var(--ease) both; overflow: hidden; }
.vs-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 24px 18px; border-bottom: 1px solid var(--line); }
.vs-head h2 { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -0.01em; }
.vs-x { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.vs-x:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.vs-x svg { width: 18px; height: 18px; }
.vs-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px 4px; }
.vs-pills { display: flex; gap: 8px; }
.vs-pills button { height: 36px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--muted); font-weight: 650; font-size: 14px; }
.vs-pills button.on { background: #fff; color: #09090b; }
.vs-sort { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px; color: var(--muted); font-weight: 600; font-size: 14px; }
.vs-sort svg { width: 18px; height: 18px; }
.vs-sort:hover { color: #fff; }
.vs-list { overflow-y: auto; padding: 6px 24px 18px; overscroll-behavior: contain; }
.vs-group { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.vs-res { padding: 3px 8px; border-radius: 7px; background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 800; font-size: 13px; }
.vs-res.hi { background: #fff; color: #09090b; }
.vs-item { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 18px; margin-bottom: 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.vs-item.vs-off { opacity: 0.6; }
.vs-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.vs-top { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.vs-top b { font-weight: 700; }
.vs-hdr { font-weight: 700; font-size: 14px; color: #fde68a; }
.vs-audio { color: #e4e4e7; font-size: 14.5px; font-weight: 550; }
.vs-audio span { color: var(--dim); }
.vs-facts { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13.5px; }
.vs-facts b { color: #e4e4e7; font-weight: 650; }
.vs-why { color: var(--dim); font-size: 12px; }
.vs-get { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, 0.09); color: #fff; transition: background 0.2s, transform 0.2s var(--ease); }
.vs-get:hover { background: #fff; color: #09090b; }
.vs-get svg { width: 20px; height: 20px; }
.vs-get.busy { animation: pulse 1s ease-in-out infinite; }
.vs-get.done { background: var(--accent); color: #fff; }
.vs-wait { display: grid; justify-items: center; gap: 8px; padding: 70px 10px; text-align: center; }
.vs-wait b { font-size: 18px; }
.vs-wait span { color: var(--dim); font-size: 14px; }
.vs-spin { width: 34px; height: 34px; margin-bottom: 8px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.12); border-top-color: #fff; animation: spin 0.9s linear infinite; }
.vs-foot { display: flex; justify-content: flex-end; padding: 14px 24px 18px; border-top: 1px solid var(--line); }
.vs-foot .btn { height: 42px; padding: 0 18px; font-size: 14px; }
html.tv .vs-get:focus, html.tv .vs-x:focus, html.tv .vs-pills button:focus, html.tv .vs-sort:focus { outline: none; box-shadow: 0 0 0 3px #fff; }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
  .modal.vs { padding: 0; align-items: end; }
  .vs-box { width: 100%; max-height: 88vh; border-radius: 20px 20px 0 0; }
  .vs-head, .vs-tools, .vs-list, .vs-foot { padding-left: 16px; padding-right: 16px; }
  .vs-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@keyframes pulse { 50% { opacity: 0.45; } }


/* Coming Soon: the week calendar (a column a day; on phones the days stack and empty ones fold away). */
.cal { margin-bottom: 8px; }
.cal .row-head { align-items: flex-end; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-nav b { min-width: 132px; text-align: center; font-size: 14px; font-weight: 700; }
.cal-nav button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--text); }
.cal-nav button:disabled { opacity: 0.3; }
.cal-nav svg { width: 18px; height: 18px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.cal-day { min-height: 168px; padding: 12px 10px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cal-day.today { border-color: rgba(244, 63, 94, 0.5); background: rgba(244, 63, 94, 0.06); }
.cal-date { display: flex; align-items: baseline; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.cal-date b { font-size: 20px; color: var(--text); letter-spacing: 0; }
.cal-day.today .cal-date span { color: var(--accent); }
.cal-item { display: flex; gap: 8px; align-items: center; padding: 6px; margin: 0 -4px; border-radius: 10px; min-width: 0; }
a.cal-item[href]:hover, html.tv a.cal-item:focus { background: rgba(255, 255, 255, 0.08); }
.cal-item img, .cal-noimg { width: 32px; aspect-ratio: 2/3; border-radius: 5px; object-fit: cover; flex: none; background: #1a1b1f; }
.cal-item span { display: grid; min-width: 0; }
.cal-item b { font-size: 12.5px; font-weight: 650; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-item small { font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.cal-item.show small { color: #4ade80; }
.cal-item.vault small { color: var(--accent); }
.cal-none { margin: auto 0; color: var(--dim); font-size: 12px; text-align: center; }
@media (max-width: 1100px) { .cal-week { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
  .cal .row-head { flex-wrap: wrap; gap: 10px; }
  .cal-week { grid-template-columns: 1fr; gap: 8px; }
  .cal-day { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cal-day.cal-empty { display: none; }
  .cal-quiet .cal-day.today { display: flex; }
  .cal-date { flex: 0 0 100%; }
  .cal-item { flex: 1 1 100%; }
}

/* Studios tab: platforms and networks as short tiles, studios as tall art tiles, in full grids. */
.studios-page { padding-bottom: 90px; }
.st-body { display: grid; gap: 44px; margin-top: 34px; }
.st-grid { display: grid; gap: 15px; }
.st-grid.st-plats { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); }
.st-grid.st-tiles { grid-template-columns: repeat(7, 1fr); }
.st-grid .card.tile .card-art { aspect-ratio: 2/3; }
@media (max-width: 1200px) { .st-grid.st-tiles { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) { .st-grid.st-plats { grid-template-columns: 1fr 1fr; gap: 10px; } .st-grid.st-tiles { grid-template-columns: repeat(3, 1fr); gap: 10px; } .st-body { gap: 32px; } }

/* Posters, tiles and rows can't be highlighted or dragged off by a held mouse; page text still can */
img { -webkit-user-drag: none; user-drag: none; }
.card, .rail, .tile, [class*="-card"], [class*="-tile"] { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }

/* A platform or studio on Requests */
.rq-studio-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.rq-studio-head h1 { min-height: 64px; display: flex; align-items: center; }
.rq-studio-logo { max-height: 72px; max-width: 320px; object-fit: contain; object-position: left; }
html.tv .rq-studio-logo { max-height: 90px; }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) { .rq-studio-logo { max-height: 48px; max-width: 200px; } }

/* A person's awards on the right of their hero */
.pp-awards { flex: 0 1 340px; display: grid; justify-items: center; gap: 16px; padding: 22px 22px 16px; border-radius: 18px; background: rgba(12, 13, 17, 0.55); border: 1px solid var(--line); backdrop-filter: blur(14px); animation: rise 0.7s var(--ease) both; }
.pp-awards ul { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 10px; }
.pp-awards.open ul { max-height: 46vh; overflow-y: auto; }
.pp-awards li { display: grid; gap: 2px; padding-left: 12px; border-left: 2px solid rgba(255, 255, 255, 0.16); }
.pp-awards li[hidden] { display: none; }
.pp-awards li.won { border-left-color: #e8c766; }
.pp-awards li b { font-size: 14px; font-weight: 700; }
.pp-awards li span { font-size: 12.5px; color: var(--muted); }
.pp-awards li a { color: #d4d4d8; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 2px; }
.pp-awards li a:hover { color: #fff; }
.pp-aw-all { font-size: 13px; font-weight: 650; color: var(--muted); padding: 6px 12px; border-radius: 10px; }
.pp-aw-all:hover, .pp-aw-all:focus { color: #fff; background: rgba(255, 255, 255, 0.08); }
@media (max-width: 1000px) { .pp-awards { display: none; } }

/* Stats for Nerds (player settings cog) */
.p-nerd { position: absolute; top: 132px; left: 28px; z-index: 6; width: 420px; max-height: calc(100% - 240px); overflow-y: auto; padding: 14px 16px 12px; border-radius: 14px; background: rgba(10, 11, 14, 0.82); border: 1px solid var(--line); backdrop-filter: blur(10px); font-size: 12.5px; line-height: 1.45; cursor: auto; user-select: text; }
.p-nerd[hidden] { display: none; }
.p-nerd .nerd-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.p-nerd .nerd-head b { font-size: 13px; letter-spacing: 0.04em; }
.p-nerd .nerd-x { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.p-nerd .nerd-x:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.p-nerd .nerd-x svg { width: 14px; height: 14px; }
.p-nerd h5 { margin: 10px 0 4px; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.p-nerd div:not(.nerd-head) { display: grid; grid-template-columns: 140px 1fr; gap: 10px; }
.p-nerd span { color: var(--muted); }
.p-nerd div b { font-weight: 600; font-variant-numeric: tabular-nums; word-break: break-word; }
html.tv .p-nerd { top: 160px; left: 60px; width: 560px; font-size: 17px; }
html.tv .p-nerd div:not(.nerd-head) { grid-template-columns: 170px 1fr; }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) { .p-nerd { left: 12px; right: 12px; width: auto; top: 90px; font-size: 11.5px; } .p-nerd div:not(.nerd-head) { grid-template-columns: 100px 1fr; } }

/* Phones held sideways keep the phone layout; rows show more across because the screen is short. */
@media (max-height: 500px) and (pointer: coarse) {
  .rail.rail-love { grid-auto-columns: 42%; }
  .rail.rail-plats { grid-auto-columns: 24%; }
  .rail.rail-tiles { grid-auto-columns: 20%; }
  .tabbar { padding-left: max(6px, env(safe-area-inset-left)); padding-right: max(6px, env(safe-area-inset-right)); }
  .container { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
}

/* Continue Watching: remove from the row. */
.cw-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 10, 12, 0.72); border: 1px solid rgba(255, 255, 255, 0.2); opacity: 0; transition: opacity 0.15s, background 0.15s; }
.cw-x svg { width: 15px; height: 15px; }
.card:hover .cw-x, .cw-x:focus-visible { opacity: 1; }
.cw-x:hover { background: #fff; color: #09090b; }
html.touch .cw-x { opacity: 1; }
html.tv .cw-x { display: none; }

/* Mark as Watched */
#seen svg { width: 19px; height: 19px; }
#seen:not(.on) svg { opacity: 0.75; }
.ep-top { align-items: center; }
.ep-seen { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--dim); transition: color 0.15s, background 0.15s; }
.ep-seen svg { width: 21px; height: 21px; }
.ep-seen:hover { color: #fff; background: var(--glass); }
.ep-seen.on { color: #fff; }
html.tv .ep-seen { pointer-events: none; }
.season-pills .season-seen { margin-left: auto; background: none; border-color: transparent; color: var(--muted); }
.season-pills .season-seen:hover { color: #fff; background: var(--glass); }
.season-seen[hidden] { display: none; }

/* Player menus: CC holds everything about subtitles, the cog is short. */
.p-panel[data-kind=cc] { width: min(860px, calc(100vw - 48px)); }
.p-panel[data-kind=gear], .p-panel[data-kind=room] { width: 340px; }
.p-cols.cc { grid-template-columns: 1fr 1fr 1.05fr; }
/* Films with lots of tracks (White Chicks): Audio and Subtitles scroll inside their column, about six at a time,
   instead of the menu growing over half the film. Phones keep one long sheet that scrolls as a whole. */
html:not(.touch) .p-cols.cc .opts.a, html:not(.touch) .p-cols.cc .opts.s {
  position: relative; max-height: min(320px, calc(100vh - 380px)); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) transparent; padding-right: 6px;
}
.p-set h4 { margin-bottom: 8px; }
.cc-style { transition: opacity 0.2s; }
.cc-style.off { opacity: 0.38; }
.opts.chips { grid-template-columns: 1fr 1fr; gap: 6px; }
.opts.chips .opt { justify-content: center; text-align: center; padding: 8px 6px; font-size: 13px; background: var(--glass); }
.opts.chips .opt svg { display: none; }
.opts.chips .opt.on { background: #fff; color: #09090b; }
.opt:disabled, .stepper button:disabled { cursor: default; pointer-events: none; }
/* Clearer Dialogue sliders (CC menu, computers) */
.cl-sliders { display: flex; flex-direction: column; gap: 14px; padding: 14px 12px 4px; transition: opacity 0.2s; }
.cl-sliders.off { opacity: 0.38; pointer-events: none; }
.cl-row { display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.cl-row span { display: flex; justify-content: space-between; font-size: 13px; font-weight: 650; color: #e4e4e7; }
.cl-row output { color: #a1a1aa; font-weight: 600; }
.cl-row input { width: 100%; height: 18px; cursor: pointer; appearance: none; -webkit-appearance: none; background: transparent; outline: none; border: 0; margin: 0; }
.cl-row input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #fff var(--v, 50%), rgba(255, 255, 255, 0.22) var(--v, 50%)); }
.cl-row input::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #fff var(--v, 50%), rgba(255, 255, 255, 0.22) var(--v, 50%)); }
.cl-row input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; border: 0; }
.cl-row input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.cl-reset { align-self: flex-start; height: 32px; padding: 0 14px; border-radius: 10px; background: var(--glass); font-size: 13px; font-weight: 700; }
.cl-reset:hover { background: rgba(255, 255, 255, 0.16); }
.stepper { display: grid; grid-template-columns: 38px 1fr 38px auto; align-items: center; gap: 6px; }
.stepper button { height: 36px; border-radius: 10px; background: var(--glass); font-weight: 700; padding: 0 10px; }
.stepper button:hover { background: rgba(255, 255, 255, 0.16); }
.stepper output { text-align: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.opt.tgl i { position: relative; width: 38px; height: 22px; border-radius: 22px; background: rgba(255, 255, 255, 0.2); flex: none; transition: background 0.2s; }
.opt.tgl i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease); }
.opt.tgl.on { background: none; }
.opt.tgl.on i { background: var(--accent); }
.opt.tgl.on i::after { transform: translateX(16px); }
html.tv .stepper button:focus { outline: none; background: #fff; color: #09090b; }

/* Watch Together */
.p-room { align-self: center; margin-left: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(34, 197, 94, 0.16); color: #86efac; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.p-room[hidden] { display: none; }
.room-back { justify-content: flex-start; font-weight: 700; margin-bottom: 6px; }
.room-now { display: grid; gap: 3px; padding: 10px 12px 14px; }
.room-now small { color: var(--dim); }
.room-offer { display: flex; align-items: center; gap: 12px; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto 26px; padding: 12px 18px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); text-align: left; }
.room-offer i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none; }
.room-offer span { flex: 1; min-width: 0; color: #d4d4d8; }
.room-offer b { color: #fff; }
.room-offer em { font-style: normal; font-weight: 700; padding: 6px 16px; border-radius: 999px; background: #fff; color: #09090b; }
html.tv .room-offer:focus { outline: none; box-shadow: 0 0 0 4px #fff; }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
  .p-panel[data-kind=cc], .p-panel[data-kind=gear], .p-panel[data-kind=room] { width: auto; max-height: calc(100dvh - 130px); overflow-y: auto; }
  .p-cols.cc { grid-template-columns: 1fr; gap: 20px; }
  .season-pills .season-seen { margin-left: 0; }
}
@media (max-height: 500px) and (pointer: coarse) { .p-cols.cc { grid-template-columns: 1fr 1fr; } .p-panel[data-kind=cc], .p-panel[data-kind=gear], .p-panel[data-kind=room] { top: 10px; bottom: 10px; max-height: none; } }

/* Collection / franchise page: A's hero (logo, two lines, order switch), the saga as a poster list. */
.saga-hero .saga-title { font-size: clamp(40px, 4.6vw, 68px); }
.saga-hero .saga-about { -webkit-line-clamp: 2; max-width: 600px; }
.saga-hero .btn svg { flex: none; }
.saga-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 6px 0 14px; }
.saga-head h2 { margin: 0; font-size: 24px; }
.saga-head .order-about { margin: 0; color: var(--muted); }
.saga-head .order-about:empty { display: none; }
.saga-list { display: grid; gap: 6px; }
.saga-ep { grid-template-columns: 112px 1fr; gap: 24px; align-items: center; padding: 12px 16px 12px 12px; }
.saga-ep .ep-art { aspect-ratio: 2/3; border-radius: 10px; }
.saga-ep .ep-top { align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.saga-ep h3 { margin: 0; font-size: 19px; }
.saga-ep .ep-seen { margin-left: auto; }
.saga-ep .ep-text p { margin: 8px 0 0; color: #a1a1aa; line-height: 1.55; max-width: 820px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.saga-ep h3 { flex: 0 1 auto; }
.saga-facts { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--dim); font-size: 14px; }
.saga-facts .gold svg { width: 13px; height: 13px; }
.saga-ep .saga-next { position: static; }
.saga-ep.up-next { background: rgba(255, 255, 255, 0.05); }
.saga-n { position: absolute; left: 8px; bottom: 2px; z-index: 1; font-size: 40px; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.6px rgba(255, 255, 255, 0.9); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); pointer-events: none; }
.saga-ep .card-fallback { display: grid; place-items: center; height: 100%; padding: 8px; text-align: center; font-size: 12px; font-weight: 700; }
html.tv .saga-ep:focus { outline: none; background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 3px #fff; }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
  .saga-ep { grid-template-columns: 84px 1fr; gap: 14px; padding: 10px; }
  .saga-ep h3 { font-size: 16px; }
  .saga-ep .ep-text p { -webkit-line-clamp: 2; font-size: 13.5px; margin-top: 6px; }
  .saga-n { font-size: 28px; }
  .saga-facts { font-size: 12.5px; }
}

/* Franchise pages: its collections beside the title. */
.saga-inside { flex: none; width: 300px; align-self: flex-end; display: grid; gap: 10px; }
.saga-inside[hidden] { display: none; }
.saga-inside h4 { margin: 0 0 2px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #d4d4d8; text-shadow: 0 1px 8px #000; }
.si-list { display: grid; gap: 10px; }
.si-card { position: relative; display: block; height: 72px; border-radius: 12px; overflow: hidden; background: #15161a; border: 1px solid rgba(255, 255, 255, 0.12); transition: transform 0.2s var(--ease), border-color 0.2s; }
.si-card:hover { transform: translateX(-4px); border-color: rgba(255, 255, 255, 0.35); }
.si-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.si-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.35)); }
.si-logo { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); max-width: 55%; max-height: 46px; object-fit: contain; object-position: left center; }
.si-name { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); max-width: 60%; font-size: 15px; line-height: 1.15; }
.si-card small { position: absolute; right: 12px; bottom: 9px; color: #d4d4d8; font-size: 12px; font-weight: 600; }
.si-more { justify-self: start; margin-top: 2px; padding: 6px 12px; border-radius: 999px; color: #d4d4d8; font-size: 13px; font-weight: 600; background: rgba(20, 20, 24, 0.55); border: 1px solid rgba(255, 255, 255, 0.14); }
.si-more:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
html.tv .si-more:focus { outline: none; background: #fff; color: #09090b; }
html.tv .si-card:focus { outline: none; box-shadow: 0 0 0 3px #fff; }
@media (max-width: 999px) { .saga-inside { display: none !important; } }

/* Requests: people you can open, and the saga row (this movie marked). */
a.rq-person { transition: background 0.2s; }
a.rq-person:hover { background: rgba(255, 255, 255, 0.06); }
a.rq-person:hover .rq-face { outline-color: rgba(255, 255, 255, 0.5); }
.rq-people-row { margin-bottom: 26px; }
.rq-saga .rq-this .card-art { box-shadow: 0 0 0 3px #fff; }
.rq-saga .rq-this .card-meta::after { content: ' · This Movie'; color: #fff; }

/* Player menus: a close button on top; phones get a sheet that leaves the picture showing (tap it to close). */
.p-panel-x { position: sticky; top: -8px; float: right; z-index: 2; width: 34px; height: 34px; margin: -8px -8px -42px 10px; /* takes no room: the lists below keep their full width */ border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); color: #fff; }
.p-panel-x:hover { background: rgba(255, 255, 255, 0.2); }
.p-panel-x svg { width: 17px; height: 17px; }
html:not(.touch) .p-panel-x { display: none; }
html.tv .p-panel-x { display: none; }
@media (max-width: 800px) and (pointer: coarse) {
  .player .p-panel, .player .p-panel[data-kind] { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 62dvh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
}
@media (max-height: 500px) and (pointer: coarse) {
  .player .p-panel, .player .p-panel[data-kind] { top: 0; bottom: 0; right: 0; left: auto; width: min(520px, 60vw); max-height: none; overflow-y: auto; border-radius: 22px 0 0 22px; padding: 18px max(18px, env(safe-area-inset-right)) 18px 18px; }
  .player .p-cols.cc { grid-template-columns: 1fr; }
}

/* ---------- Settings (#/settings): sections on the left, the picked one on the right ---------- */
.settings { display: grid; grid-template-columns: 280px minmax(0, 820px); gap: 48px; padding-top: 118px; padding-bottom: 90px; }
.st-me { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.st-me b { display: block; font-size: 18px; }
.st-me small { color: var(--muted); font-size: 13px; }
.st-pic { width: 96px; height: 96px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 40px; font-weight: 900; background: linear-gradient(135deg, var(--accent), #7f1d1d); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12); }
.st-pic.sm { width: 56px; height: 56px; font-size: 24px; }
.st-pic img { width: 100%; height: 100%; object-fit: cover; }
.st-nav { display: grid; gap: 4px; }
.st-nav a { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 12px; font-weight: 650; color: #a1a1aa; transition: background 0.15s, color 0.15s; }
.st-nav a:hover { background: var(--glass); color: #fff; }
.st-nav a.on { background: #fff; color: #09090b; }
.st-nav a svg { width: 18px; height: 18px; opacity: 0.6; }
html.tv .st-nav a:focus { outline: none; box-shadow: 0 0 0 3px #fff; color: #fff; }
html.tv .st-nav a.on:focus { color: #09090b; }
.st-head { margin-bottom: 26px; }
.st-head h1 { margin: 0; font-size: 34px; letter-spacing: -0.02em; }
.st-sub { color: var(--muted); margin: 6px 0 0; }
.st-section { display: grid; gap: 30px; }
.st-h { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.st-card { background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); border-radius: 18px; }
.st-row { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid rgba(255, 255, 255, 0.06); min-height: 64px; }
.st-row:first-child { border-top: 0; }
.st-t { flex: 1; min-width: 0; }
.st-t b { display: block; font-weight: 650; }
.st-t small { color: #8b8b93; font-size: 13px; }
.st-seg { display: flex; flex-wrap: wrap; justify-content: flex-end; background: rgba(255, 255, 255, 0.06); border-radius: 999px; padding: 3px; }
.st-seg button { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 650; color: #a1a1aa; }
.st-seg button:hover { color: #fff; }
.st-seg button.on { background: #fff; color: #09090b; }
html.tv .st-seg button:focus { outline: none; box-shadow: 0 0 0 3px var(--accent); color: #fff; }
html.tv .st-seg button.on:focus { color: #09090b; }
.st-sw { flex: none; position: relative; width: 44px; height: 26px; border-radius: 26px; background: rgba(255, 255, 255, 0.2); transition: background 0.2s; }
.st-sw i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease); }
.st-sw.on { background: var(--accent); }
.st-sw.on i { transform: translateX(18px); }
html.tv .st-sw:focus { outline: none; box-shadow: 0 0 0 3px #fff; }
.st-select select { min-width: 160px; }
.st-chev { color: var(--dim); }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; flex: none; }
.st-dot.ok { background: #22c55e; }
.st-who { display: flex; align-items: center; gap: 24px; }
.st-who h2 { margin: 0; font-size: 30px; letter-spacing: -0.02em; }
.st-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.st-acts .btn { height: 42px; font-size: 14px; }
.st-bottom { margin-top: 4px; }
.st-msg { margin: 10px 0 0; color: #fda4af; font-size: 14px; }
.st-posters { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.st-poster { aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.st-poster img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; opacity: 1; }
.st-poster:hover { transform: scale(1.06); box-shadow: 0 0 0 3px #fff; }
html.tv .st-poster:focus { outline: none; box-shadow: 0 0 0 4px #fff; }
.st-removed { padding: 8px; display: grid; gap: 6px; }
.st-item { display: grid; grid-template-columns: 260px 1fr auto; align-items: center; gap: 18px; padding: 6px; }
.st-item .card { grid-column: span 2; display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 16px; }
.st-item .card .card-title, .st-item .card .card-meta { grid-column: 2; }
.st-item .card .card-art { grid-row: span 2; }
.st-empty { margin: 0; padding: 18px 20px; color: var(--muted); }
.st-empty a { color: #fff; text-decoration: underline; }
.st-reqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.st-news { display: grid; gap: 14px; }
.st-note { padding: 16px 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.st-note time { font-size: 13px; font-weight: 700; color: var(--muted); }
.st-note ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; color: #d4d4d8; }
.st-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 14px; color: var(--muted); font-weight: 600; }
.st-back svg { width: 18px; height: 18px; }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
  .settings { grid-template-columns: 1fr; gap: 0; padding-top: calc(86px + env(safe-area-inset-top)); }
  .settings.st-one .st-side { display: none; }
  .settings.st-list-only .st-main { display: none; }
  .st-nav a { padding: 16px; font-size: 16px; background: rgba(255, 255, 255, 0.035); }
  .st-row { flex-wrap: wrap; }
  .st-row .st-seg { width: 100%; justify-content: stretch; }
  .st-row .st-seg button { flex: 1; }
  .st-posters { grid-template-columns: repeat(4, 1fr); }
  .st-who { flex-direction: column; align-items: flex-start; }
  .st-item { grid-template-columns: 1fr; }
  .st-item .card { grid-template-columns: 120px 1fr; }
  .st-head h1 { font-size: 28px; }
}
.st-reqs .st-empty { grid-column: 1 / -1; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
/* Polish 2026-11-24: See All never wraps; phones mark this movie by its outline only (the words didn't fit). */
.see-all { white-space: nowrap; flex: none; }
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) { .rq-saga .rq-this .card-meta::after { content: none; } }
.list-page .browse-head { margin-bottom: 30px; } .list-page .browse-head p { margin-top: 10px; }

/* Phone player menus (2026-11-27): CC splits into tabs (Audio, Subtitles, Style) so each part fits without a long scroll;
   landscape menus are a narrower side sheet that leaves most of the picture showing. */
.cc-tabs { display: none; }
@media (max-width: 800px) and (pointer: coarse), (max-height: 500px) and (pointer: coarse) {
  .cc-tabs { display: flex; gap: 6px; margin: -4px 46px 16px 0; }
  .cc-tabs button { flex: 1; height: 36px; border-radius: 999px; background: var(--glass); color: #d4d4d8; font-size: 13.5px; font-weight: 700; }
  .cc-tabs button[aria-selected=true] { background: #fff; color: #09090b; }
  .player .p-cols.cc { grid-template-columns: 1fr; }
  .p-cols.cc > div { display: none; }
  .p-cols.cc[data-tab=a] > .cc-a, .p-cols.cc[data-tab=s] > .cc-s, .p-cols.cc[data-tab=st] > .cc-style { display: block; }
  .cc-a > h4:first-child, .cc-s > h4:first-child { display: none; } /* the tab already says it */
}
@media (max-width: 800px) and (pointer: coarse) {
  .player .p-panel, .player .p-panel[data-kind] { max-height: 58dvh; }
}
@media (max-height: 500px) and (pointer: coarse) {
  .player .p-panel, .player .p-panel[data-kind] { width: min(400px, 50vw); }
}
/* No pinch zoom on phones: Vault is an app, the page shouldn't scale (iPhones ignore user-scalable=no). */
html.touch { touch-action: pan-x pan-y; }
