/* Chiller on the web. Everything is laid out on a 1920-wide stage (app.js fits it to the window), so the same
   screen works on a laptop and a TV. Colours are all named here, once for night and once for day. */
:root {
  --bg: #0a090e; --bg-rgb: 10, 9, 14;
  --text: #f1efe8; --soft: #d3d1c7; --muted: #b4b2a9; --dim: #888780;
  --label: #b9acf0; --why: #c9bff4;
  --panel: rgba(29, 27, 38, .88); --chip: #1d1b26; --chip-at: #2c2840; --card: #1d1b26;
  --fill: rgba(255, 255, 255, .12); --line: rgba(255, 255, 255, .25);
  --hi: #f1efe8; --hi-text: #1b1630;                /* whatever you're on */
  --ok: #9fe1cb; --ok-line: #5dcaa5; --warn: #f0997b;
  --ring: #f1efe8; --glow: rgba(255, 255, 255, .28); --star-off: #444441;
  --lift: none; --halo: 0 1px 3px rgba(0, 0, 0, .6); --pic-fade: .35; --glass: 1; --pill: rgba(16, 14, 22, .62);
  color-scheme: dark;
}
:root[data-theme="day"] {
  --bg: #f5f2ea; --bg-rgb: 245, 242, 234;
  --text: #1b1630; --soft: #37324b; --muted: #5b5769; --dim: #8a8794;
  --label: #5b46c9; --why: #5b46c9;
  --panel: rgba(255, 255, 255, .86); --chip: #e8e3d6; --chip-at: #dcd6f5; --card: #e2ddd0;
  --fill: rgba(27, 22, 48, .08); --line: rgba(27, 22, 48, .22);
  --hi: #1b1630; --hi-text: #f5f2ea;
  --ok: #0c7556; --ok-line: #0c7556; --warn: #b34d26;
  --ring: #1b1630; --glow: rgba(27, 22, 48, .3); --star-off: #cbc6b8;
  --lift: 0 8px 22px rgba(27, 22, 48, .2); --halo: 0 1px 0 rgba(255, 255, 255, .5); --pic-fade: .3; --glass: .55; --pill: rgba(255, 255, 255, .78);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); overflow: hidden; overscroll-behavior: none;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; user-select: none; }
#screen { position: fixed; inset: 0; overflow: hidden; background: var(--bg); }
#stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
button, input { font: inherit; color: inherit; }
[data-go], .card, .pcard, .ep, .chips span, .seasons span, .shead[data-r], .bar [data-m] { cursor: pointer; }

/* ---- a poster: the show's cover under a pane of glass (the glass is a ready-made picture: cheap to draw) ---- */
.card { position: relative; border-radius: 7px; overflow: hidden; aspect-ratio: 2 / 3; background: var(--card) center / cover no-repeat;
  box-shadow: var(--lift); transition: transform .32s cubic-bezier(.25, .8, .25, 1), box-shadow .2s; }
.card::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background: var(--gimg) center / 100% 100% no-repeat; opacity: var(--glass); }
.card .name { position: absolute; inset: 0; z-index: 1; display: none; padding: 18px 16px; font-size: 20px; font-weight: 600; line-height: 1.25;
  color: var(--soft); overflow: hidden; }
.card.noart .name { display: block; }               /* no cover to show: its name instead of an empty card */
.card .bar-left { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 6px; z-index: 3; border-radius: 3px; background: rgba(0, 0, 0, .55); overflow: hidden; }
.card .bar-left i { display: block; height: 100%; border-radius: 3px; background: #b3a5ee; }
.card.focus { transform: scale(1.07); box-shadow: 0 0 0 3px var(--ring), 0 0 40px var(--glow); }
.card.wait { animation: wait 1.4s ease-in-out infinite; }
.card.wait::before { display: none; }
@keyframes wait { 50% { opacity: .45; } }

/* ---- the home screen: the one you're on, big, then rows ---- */
#browse { position: absolute; inset: 0; z-index: 1; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .3s; overflow: hidden; }
#browse.on { opacity: 1; pointer-events: auto; }
#browse .hero-pic { position: absolute; right: 0; top: 0; width: 1340px; height: 754px; }
/* two picture layers that cross-fade (opacity is cheap; swapping a background isn't) */
#browse .hero-pic .hp { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; will-change: opacity; }
#browse .hero-pic .hp img { width: 100%; height: 100%; object-fit: cover; display: block; }
#browse .hero-pic::after { content: ""; position: absolute; inset: -2px;   /* a hair wider than the picture, so no edge of it shows */
  background: linear-gradient(90deg, rgb(var(--bg-rgb)) 0%, rgba(var(--bg-rgb), .88) 24%, rgba(var(--bg-rgb), 0) 62%),
              linear-gradient(0deg, rgb(var(--bg-rgb)) 0%, rgba(var(--bg-rgb), .6) 25%, rgba(var(--bg-rgb), 0) 55%),
              linear-gradient(180deg, rgba(var(--bg-rgb), .55) 0, rgba(var(--bg-rgb), 0) 130px); }   /* from the left, from below, and a little behind the bar */
#browse .hero { position: absolute; left: 96px; top: 112px; width: 900px; z-index: 1; text-shadow: var(--halo); }
#browse .label, #detail .label { font-size: 22px; font-weight: 600; letter-spacing: .04em; color: var(--label); text-transform: uppercase; }
#browse h1 { font-size: 72px; font-weight: 700; margin: 10px 0 14px; line-height: 1.05; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#browse .facts, #detail .facts { font-size: 24px; color: var(--muted); min-height: 30px; }
#browse .why { font-size: 26px; line-height: 1.35; color: var(--why); margin: 14px 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#browse .about { font-size: 22px; line-height: 1.4; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#browse .rows-frame { position: absolute; left: 0; right: 0; top: 612px; bottom: 0; overflow: hidden; z-index: 2; padding-top: 6px; }
#browse .brows { padding: 0 96px; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
#browse .brow { height: 344px; position: relative; }
#browse .brow h3 { font-size: 26px; font-weight: 600; margin: 0 0 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#browse .strip { display: flex; gap: 24px; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
#browse .strip .card { flex: 0 0 180px; }
/* the arrows a mouse gets at the ends of the row it's over */
.nudge { position: absolute; top: 40px; height: 270px; width: 64px; z-index: 4; display: none; align-items: center; justify-content: center;
  font-size: 44px; color: var(--text); cursor: pointer; }
.nudge.l { left: -80px; background: linear-gradient(90deg, rgb(var(--bg-rgb)), rgba(var(--bg-rgb), 0)); }
.nudge.r { right: -96px; width: 96px; background: linear-gradient(270deg, rgb(var(--bg-rgb)) 30%, rgba(var(--bg-rgb), 0)); }
body.mouse .brow:hover .nudge.can, body.mouse .srow:hover .nudge.can { display: flex; }
.nudge:hover { color: var(--label); }
/* nothing to show yet: grey cards breathe where the rows will be */
#browse.empty .hero { opacity: .0; }

/* ---- the bar at the top: For you, Search, and you ---- */
#browse .bar { position: absolute; left: 96px; right: 96px; top: 34px; height: 60px; z-index: 6; display: flex; align-items: center; gap: 10px; }
#browse .bar [data-m] { padding: 10px 24px; border-radius: 15px; font-size: 24px; font-weight: 600; color: var(--muted);
  transition: background .2s, color .2s; }
#browse .bar [data-m].at { color: var(--text); background: var(--pill); }
#browse .bar [data-m].focus { background: var(--hi); color: var(--hi-text); }
#browse .find { margin-left: auto; display: flex; align-items: center; gap: 12px; width: 440px; background: var(--pill); color: var(--text); }
#browse .find svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
#browse .find input { flex: 1; min-width: 0; font-size: 24px; background: transparent; border: 0; outline: 0; user-select: text; }
#browse .find input::placeholder { color: inherit; opacity: .65; }
#browse .bar .me { height: 76px; padding: 0; display: flex; align-items: center; gap: 16px; font-size: 26px; background: none !important; box-shadow: none !important; }
#browse .bar .me b { font-weight: 500; }
#browse .bar .me .av { width: 72px; height: 72px; transition: transform .2s, box-shadow .2s; }
#browse .bar .me:hover .av, #browse .bar .me.focus .av { transform: scale(1.06); box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--label); }
#browse[data-mode="search"] .hero, #browse[data-mode="search"] .rows-frame, #browse[data-mode="search"] .hero-pic { visibility: hidden; }

/* ---- Search: kinds (the one shown stays lit), then rows; a row's title opens it as a grid ---- */
#browse .search { position: absolute; inset: 0; z-index: 4; background: var(--bg); display: none; }
#browse .search.on { display: block; }
#browse .search .chips { position: absolute; left: 96px; right: 96px; top: 120px; height: 106px; overflow: hidden; }
#browse .search .chipin { display: flex; flex-wrap: wrap; gap: 12px; transition: transform .35s cubic-bezier(.25, .8, .25, 1); }
#browse .search .chips span { flex: 1 1 auto; text-align: center; padding: 10px 22px; border-radius: 13px; font-size: 22px; background: var(--chip); color: var(--soft);
  transition: background .2s, color .2s; }
#browse .search .chips span.hot { color: var(--why); }
#browse .search .chips span.at { background: var(--chip-at); color: var(--label); }
#browse .search .chips span.focus { background: var(--hi); color: var(--hi-text); }
#browse .search .srows { position: absolute; left: 0; right: 0; top: 250px; bottom: 0; overflow: hidden; }
#browse .search.expanded .srows, #browse .search.expanded .chips { visibility: hidden; }
#browse .search .srow { height: 410px; padding-left: 96px; position: relative; }
#browse .search .srow .nudge { top: 56px; }
#browse .search .srow .nudge.l { left: 16px; }
#browse .search .srow .nudge.r { right: 0; }
#browse .search .shead { display: inline-block; font-size: 28px; font-weight: 600; padding: 6px 16px; margin: 0 0 10px -16px; border-radius: 6px; }
#browse .search .shead span { color: var(--dim); margin-left: 6px; }
#browse .search .shead .say { font-style: normal; font-size: 20px; font-weight: 400; color: var(--why); margin-left: 24px; }
#browse .search .shead.focus { background: var(--hi); color: var(--hi-text); }
#browse .search .shead.focus span, #browse .search .shead.focus .say { color: var(--hi-text); }
#browse .search .strip { display: flex; gap: 22px; transition: transform .42s cubic-bezier(.2, .8, .2, 1); }
.pcard { flex: 0 0 170px; width: 170px; min-width: 0; }
.pcard .card { transition: transform .3s cubic-bezier(.25, .8, .25, 1), box-shadow .2s; }
.pcard.focus .card { transform: scale(1.1); box-shadow: 0 0 0 5px var(--ring), 0 0 50px var(--glow); }
.pcard b { display: block; font-size: 18px; font-weight: 600; margin-top: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard.focus b { color: var(--text); }
.pcard small { font-size: 15px; color: var(--dim); }
#browse .search .sgrid { position: absolute; left: 96px; right: 96px; top: 120px; bottom: 0; display: none; }
#browse .search.expanded .sgrid { display: block; }       /* (when it's empty it mustn't sit over the rows and take their clicks) */
#browse .search .sgrid .gframe { position: absolute; left: -12px; right: 0; top: 64px; bottom: 0; overflow: hidden; padding: 12px; }
#browse .search .ggrid { display: grid; grid-template-columns: repeat(9, 170px); gap: 0 22px; transition: transform .42s cubic-bezier(.2, .8, .2, 1); }
#browse .search .ggrid .pcard { height: 352px; }

/* ---- a show's own page: what it is, Play, Watch next, seasons and episodes, "good pick?" stars ---- */
#detail { position: absolute; inset: 0; z-index: 8; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .25s; }
#detail.on { opacity: 1; pointer-events: auto; }
#detail .pic { position: absolute; inset: 0; background: center / cover no-repeat; opacity: var(--pic-fade); }
#detail .pic::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(var(--bg-rgb)) 0%, rgba(var(--bg-rgb), .92) 40%, rgba(var(--bg-rgb), .55) 100%), linear-gradient(0deg, rgb(var(--bg-rgb)), rgba(var(--bg-rgb), 0) 50%); }
.back { position: absolute; left: 84px; top: 36px; z-index: 3; padding: 10px 20px 10px 12px; border-radius: 13px; font-size: 22px; font-weight: 600; color: var(--muted); display: none; }
body.web .back { display: block; }                       /* in a browser; a TV remote has its own Back */
.back:hover { background: var(--fill); color: var(--text); }
#detail .left { position: absolute; left: 96px; top: 110px; width: 780px; z-index: 1; }
#detail h1 { font-size: 68px; font-weight: 700; margin: 10px 0 14px; line-height: 1.05; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#detail .why { font-size: 26px; line-height: 1.35; color: var(--why); margin: 16px 0 12px; }
#detail .about { font-size: 22px; line-height: 1.4; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
#detail .play { display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; padding: 18px 34px; border-radius: 8px;
  font-size: 28px; font-weight: 600; background: var(--fill); box-shadow: inset 0 0 0 2px var(--line); transition: transform .15s, background .15s; }
#detail .play svg { width: 26px; height: 26px; fill: currentColor; }
#detail .play.focus { background: var(--hi); color: var(--hi-text); transform: scale(1.05); box-shadow: none; }
#detail .save { display: inline-flex; align-items: center; gap: 12px; margin: 34px 0 0 18px; padding: 18px 30px; border-radius: 8px;
  font-size: 26px; font-weight: 600; color: var(--soft); background: var(--panel); transition: transform .15s, background .15s; }
#detail .save svg { width: 26px; height: 26px; fill: currentColor; }
#detail .save.on { color: var(--ok); box-shadow: inset 0 0 0 2px var(--ok-line); }
#detail .save.focus { background: var(--hi); color: var(--hi-text); box-shadow: none; transform: scale(1.05); }
#detail .stars { margin-top: 30px; padding: 20px 26px; border-radius: 9px; background: var(--panel); width: 470px;
  box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s; }
#detail .stars.focus { box-shadow: inset 0 0 0 3px var(--ring); }
#detail .stars .q { font-size: 22px; color: var(--muted); }
#detail .stars .row { font-size: 48px; letter-spacing: 8px; color: var(--star-off); margin: 4px 0; }
#detail .stars .row i { font-style: normal; cursor: pointer; }
#detail .stars .row i.on { color: #b3a5ee; }
#detail .stars .hint { font-size: 18px; color: var(--dim); }
#detail .down { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 24px; border-radius: 13px;
  font-size: 21px; color: var(--muted); background: var(--panel); transition: background .15s, color .15s; }
#detail .down svg { width: 22px; height: 22px; fill: currentColor; }
#detail .down.on { color: var(--warn); box-shadow: inset 0 0 0 2px var(--warn); }
#detail .down.focus { background: var(--hi); color: var(--hi-text); box-shadow: none; }
#detail .right { position: absolute; left: 960px; right: 96px; top: 110px; bottom: 0; z-index: 1; }
/* a movie has no episodes: its cover stands there instead */
#detail .cover { position: absolute; right: 60px; top: 0; height: min(720px, 78%); aspect-ratio: 2 / 3; border-radius: 11px; display: none;
  background: var(--card) center / cover no-repeat; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px var(--line); }
#detail.film .cover { display: block; }
#detail .seasons { overflow: hidden; margin-bottom: 22px; }
#detail .seasons .sin { display: flex; gap: 10px; flex-wrap: nowrap; transition: transform .35s cubic-bezier(.25, .8, .25, 1); }
#detail .seasons.more-right { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
#detail .seasons.more-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); }
#detail .seasons.more-left.more-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
#detail .seasons span { flex: none; padding: 10px 20px; border-radius: 6px; font-size: 22px; color: var(--muted); }
#detail .seasons span.at { background: var(--fill); color: var(--text); }
#detail .seasons span.focus { background: var(--hi); color: var(--hi-text); }
#detail .eps-frame { position: absolute; left: 0; right: 0; top: 70px; bottom: 0; overflow: hidden; }
#detail .eps { transition: transform .42s cubic-bezier(.2, .8, .2, 1); }
#detail .ep { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: center; padding: 12px;
  border-radius: 8px; height: 159px; margin-bottom: 8px; box-shadow: inset 0 0 0 3px transparent; }
#detail .ep.focus { box-shadow: inset 0 0 0 3px var(--ring); background: var(--fill); }
#detail .ep .th { aspect-ratio: 16 / 9; border-radius: 8px; background: var(--card) center / cover no-repeat; position: relative; overflow: hidden; }
#detail .ep .th i { position: absolute; left: 0; bottom: 0; height: 5px; background: #b3a5ee; }
#detail .ep b { display: block; font-size: 24px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#detail .ep small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 19px; color: var(--muted); margin-top: 6px; line-height: 1.35; }
#detail .ep .here { color: var(--why); font-size: 18px; font-weight: 600; margin-left: 10px; }

/* ---- the little note at the bottom ("Finding the best stream…") ---- */
#toast { position: absolute; left: 50%; bottom: 72px; transform: translate(-50%, 20px); z-index: 30; opacity: 0; pointer-events: none;
  padding: 18px 34px; border-radius: 20px; background: rgba(20, 18, 26, .94); box-shadow: 0 0 0 2px rgba(255, 255, 255, .18);
  font-size: 28px; color: #f1efe8; white-space: nowrap; max-width: 1500px; overflow: hidden; text-overflow: ellipsis; transition: opacity .25s, transform .25s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast small { color: #b4b2a9; font-size: 22px; margin-left: 12px; }

/* ---- you: fresh picks, day or night, favourites, sign out ---- */
#menu { position: absolute; inset: 0; z-index: 12; display: none; }
#menu.on { display: block; }
#menu .sheet { position: absolute; right: 96px; top: 104px; width: 520px; padding: 14px; border-radius: 11px; background: var(--panel);
  box-shadow: 0 0 0 2px var(--line), 0 24px 60px rgba(0, 0, 0, .35); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
#menu .who { padding: 12px 18px 16px; }
#menu .who b { display: block; font-size: 26px; }
#menu .who small { font-size: 19px; color: var(--muted); }
#menu .item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 7px; font-size: 24px; cursor: pointer; }
#menu .item small { font-size: 19px; color: var(--muted); text-align: right; }
#menu .item.focus { background: var(--hi); color: var(--hi-text); }
#menu .item.focus small { color: var(--hi-text); opacity: .75; }
#menu .item.off { opacity: .5; }
#menu .seg { display: flex; gap: 6px; }
#menu .seg i { font-style: normal; padding: 6px 14px; border-radius: 6px; font-size: 20px; background: var(--fill); color: var(--muted); }
#menu .seg i.at { background: var(--label); color: var(--bg); font-weight: 600; }
#menu .item.focus .seg i { background: rgba(127, 127, 127, .25); color: var(--hi-text); }
#menu .item.focus .seg i.at { background: var(--hi-text); color: var(--hi); }

/* ---- sign in with your Stremio account ---- */
#signin, #taste { position: absolute; inset: 0; z-index: 20; background: var(--bg); display: none; }
/* ---- signing in: Levi & Layla over famous posters drifting by (a lean toward fantasy). Always night. ---- */
#signin { background: #0c0d10; color: #f1ece2; overflow: hidden; font-family: "Inter", -apple-system, sans-serif; }
#signin.on { display: grid; place-items: center; }
#signin .wall { position: absolute; inset: -14%; display: flex; flex-direction: column; gap: 26px; transform: rotate(-8deg); }
#signin .lane { display: flex; gap: 26px; width: max-content; animation: drift 140s linear infinite; will-change: transform; }
#signin .lane:nth-child(even) { animation-direction: reverse; animation-duration: 170s; }
#signin .lane img { width: 210px; height: 315px; object-fit: cover; border-radius: 7px; display: block; background: #1a1a1d; }
@keyframes drift { to { transform: translateX(-50%); } }
#signin .veil { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(8,8,10,.7) 0%, rgba(8,8,10,.86) 45%, rgba(8,8,10,.96) 100%); }
#signin .box { position: relative; width: 640px; padding: 60px 60px 50px; border-radius: 15px; background: rgba(16,15,18,.55);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 0 0 1.5px rgba(241,236,226,.16), 0 40px 110px rgba(0,0,0,.5); }
#signin.coding .box { width: 1100px; }
#signin .brand { display: flex; align-items: center; gap: 22px; margin-bottom: 44px; }
#signin .husky { width: 112px; height: 112px; flex: none; }
.word { font-family: "Bebas Neue", Impact, sans-serif; font-size: 72px; line-height: 1; letter-spacing: .04em; white-space: nowrap; }
.word em { font: inherit; font-style: normal; color: #b3a5ee; }
#signin label { display: block; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; color: #a39d92; margin: 0 0 10px 3px; }
#signin input { display: block; width: 100%; margin-bottom: 26px; padding: 0 22px; height: 70px; font-size: 24px; border-radius: 8px; border: 0; outline: 0;
  background: rgba(255,255,255,.06); color: #f1ece2; box-shadow: inset 0 0 0 1.5px rgba(241,236,226,.16); user-select: text; }
#signin input:focus, #signin input.focus { box-shadow: inset 0 0 0 2px #b3a5ee; }
#signin .go { display: flex; align-items: center; justify-content: center; width: 100%; height: 72px; margin-top: 10px; border-radius: 8px; background: #b3a5ee; color: #15121f; font-size: 24px; font-weight: 600; box-shadow: none; }
#signin .go.focus { box-shadow: 0 0 0 4px rgba(179,165,238,.4); transform: none; }
#signin .form .alt { display: none; }                       /* on a laptop, just the sign-in (the TV app uses the code) */
#signin .alt { font-size: 20px; color: #b3a5ee; cursor: pointer; padding: 10px 14px; border-radius: 6px; }
#signin .alt.focus { background: rgba(255,255,255,.08); }
#signin .oops { min-height: 30px; margin-top: 18px; font-size: 19px; color: #f0997b; text-align: center; }
#signin .code { display: none; gap: 48px; align-items: center; }
#signin.coding .form { display: none; }
#signin.coding .code { display: flex; }
#signin .code img { width: 340px; height: 340px; border-radius: 12px; background: #fff; padding: 16px; flex: none; }
#signin .code p { font-size: 24px; line-height: 1.45; color: #a39d92; margin: 0 0 20px; }
#signin .code .link { color: #b3a5ee; white-space: nowrap; }

/* ---- the start: pick a few you love ---- */
#taste.on { display: block; }
#taste .top { position: absolute; left: 96px; right: 96px; top: 56px; display: flex; align-items: flex-end; gap: 30px; }
#taste h2 { font-size: 56px; font-weight: 700; margin: 0 0 6px; }
#taste p { font-size: 24px; color: var(--muted); margin: 0; }
#taste .find { margin-left: auto; display: flex; align-items: center; gap: 12px; width: 460px; padding: 14px 20px; border-radius: 15px; background: var(--fill); box-shadow: inset 0 0 0 2px transparent; }
#taste .find.focus { box-shadow: inset 0 0 0 3px var(--ring); }
#taste .find svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
#taste .find input { flex: 1; min-width: 0; font-size: 24px; background: transparent; border: 0; outline: 0; user-select: text; }
#taste .frame { position: absolute; left: 84px; right: 84px; top: 190px; bottom: 150px; overflow: hidden; padding: 12px; }
#taste .grid { display: grid; grid-template-columns: repeat(9, 170px); gap: 0 22px; justify-content: space-between; transition: transform .42s cubic-bezier(.2, .8, .2, 1); }
#taste .pcard { height: 330px; position: relative; }
#taste .pcard.on .card { box-shadow: 0 0 0 5px var(--ok-line); }
#taste .pcard.on.focus .card { box-shadow: 0 0 0 5px var(--ok-line), 0 0 0 9px var(--ring); }
#taste .pcard .tick { position: absolute; right: 8px; top: 8px; z-index: 4; width: 38px; height: 38px; border-radius: 50%; display: none; place-items: center;
  background: var(--ok-line); color: #06281e; font-size: 24px; font-weight: 700; }
#taste .pcard.on .tick { display: grid; }
#taste .foot { position: absolute; left: 96px; right: 96px; bottom: 50px; display: flex; align-items: center; gap: 26px; }
#taste .count { font-size: 24px; color: var(--muted); }
#taste .foot .btn { margin-left: auto; }
#taste .foot .btn.off { opacity: .4; }
#taste .making { position: absolute; inset: 0; display: none; place-items: center; text-align: center; background: var(--bg); z-index: 5; }
#taste.making .making { display: grid; }
#taste .making h2 { margin-bottom: 14px; }
.dots { display: inline-flex; gap: 12px; margin-top: 34px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--label); animation: dot 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* ---- the player (always dark, whatever the mode) ---- */
#player { position: absolute; inset: 0; z-index: 25; background: #000; display: none; color: #f1efe8; }
#player.on { display: block; }
#player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
#player video::cue { font-size: 44px; line-height: 1.3; color: #fff; background: rgba(0, 0, 0, .001);   /* words with a dark edge, no box */
  text-shadow: 0 0 6px #000, 0 2px 4px #000, 2px 2px 3px #000, -2px -2px 3px #000; }
#player .ui { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; pointer-events: none; }
#player.show .ui { opacity: 1; pointer-events: auto; }
#player.hidecursor { cursor: none; }
#player .ui::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 220px; background: linear-gradient(rgba(0, 0, 0, .75), transparent); }
#player .ui::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 300px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
#player .head { position: absolute; left: 60px; right: 60px; top: 40px; z-index: 2; display: flex; align-items: center; gap: 22px; }
#player .head .x { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; background: rgba(255, 255, 255, .14); cursor: pointer; }
#player .head .x:hover { background: rgba(255, 255, 255, .28); }
#player .head b { font-size: 32px; font-weight: 600; }
#player .head small { font-size: 20px; color: #b4b2a9; margin-left: 6px; }
#player .foot { position: absolute; left: 60px; right: 60px; bottom: 44px; z-index: 2; }
#player .track { position: relative; height: 26px; cursor: pointer; }
#player .track::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .28); }
#player .track .got { position: absolute; left: 0; top: 10px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45); }
#player .track .done { position: absolute; left: 0; top: 10px; height: 6px; border-radius: 3px; background: #b3a5ee; }
#player .track .knob { position: absolute; top: 3px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #b3a5ee; }
#player .ctl { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: 24px; }
#player .ctl .time { font-variant-numeric: tabular-nums; color: #d3d1c7; margin: 0 10px; }
#player .ctl .gap { flex: 1; }
#player .b { min-width: 60px; height: 60px; padding: 0 18px; border-radius: 15px; display: inline-grid; place-items: center; font-size: 24px; font-weight: 600;
  background: rgba(255, 255, 255, .12); cursor: pointer; white-space: nowrap; }
#player .b svg { width: 28px; height: 28px; fill: currentColor; }
#player .b:hover, #player .b.focus { background: #f1efe8; color: #1b1630; }
#player .b.on { box-shadow: inset 0 0 0 2px #b3a5ee; color: #b3a5ee; }
#player .b.on:hover, #player .b.on.focus { color: #1b1630; }
#player .b[hidden] { display: none; }
#player .mid { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
#player .mid .msg { display: none; font-size: 30px; color: #d3d1c7; max-width: 1100px; line-height: 1.4; }
#player .mid .msg small { display: block; font-size: 22px; color: #888780; margin-top: 10px; }
#player.busy .mid .msg { display: block; }
#player .stuck { position: absolute; inset: 0; z-index: 3; display: none; place-items: center; text-align: center; background: rgba(0, 0, 0, .82); }
#player.failed .stuck { display: grid; }
#player .stuck h2 { font-size: 44px; margin: 0 0 12px; }
#player .stuck p { font-size: 26px; color: #b4b2a9; margin: 0 0 34px; max-width: 1000px; line-height: 1.4; }
#player .stuck .btns { display: flex; gap: 18px; justify-content: center; }
#player .stuck .btn { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); color: #f1efe8; }
#player .stuck .btn.main { background: #f1efe8; color: #1b1630; box-shadow: none; }
#player .stuck .btn.focus { box-shadow: 0 0 0 4px #afa9ec; }
#player .upnext { position: absolute; right: 60px; bottom: 190px; z-index: 3; display: none; padding: 20px 28px; border-radius: 10px; cursor: pointer;
  background: rgba(20, 18, 26, .92); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); max-width: 620px; }
#player .upnext.on { display: block; }
#player .upnext small { display: block; font-size: 20px; color: #b9acf0; }
#player .upnext b { display: block; font-size: 28px; margin: 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#player .upnext em { font-style: normal; font-size: 18px; color: #888780; }
#player .skip { position: absolute; right: 60px; bottom: 190px; z-index: 3; display: none; }
#player .skip.on { display: inline-grid; }

@media (prefers-reduced-motion: reduce) { * { transition-duration: .01s !important; animation-duration: .01s !important; } }

/* ---- Levi & Layla type: Bebas Neue for titles, Inter for everything else ---- */
#browse h1, #detail h1, #taste h2, #taste .making h2, #player .stuck h2 { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; letter-spacing: .025em; line-height: .95; }
#browse h1 { font-size: 96px; } #detail h1 { font-size: 92px; } #taste h2 { font-size: 72px; }
#browse .brow h3, #browse .search .shead, #detail .seasons span, #menu .who b { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; letter-spacing: .05em; }
#browse .brow h3 { font-size: 32px; } #browse .search .shead { font-size: 34px; } #detail .seasons span { font-size: 26px; } #menu .who b { font-size: 32px; }
#browse .label, #detail .label { letter-spacing: .12em; font-size: 19px; }

/* ---- profiles: who's watching, and making one ---- */
.av { display: block; border-radius: 6px; overflow: hidden; flex: none; background: var(--fill); }
.av svg, .av img { width: 100%; height: 100%; display: block; object-fit: cover; }
#profiles { position: absolute; inset: 0; z-index: 19; display: none; background: var(--bg); }
#profiles.on { display: block; }
#profiles .pwrap { position: absolute; inset: 0; padding: 56px 120px; display: flex; flex-direction: column; align-items: center; }
#profiles .brand { display: flex; align-items: center; gap: 18px; }
#profiles .husky { width: 84px; height: 84px; }
#profiles .word { font-size: 54px; }
#profiles h1 { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 110px; letter-spacing: .02em; line-height: 1; text-align: center; margin: 110px 0 70px; }
#profiles .people { display: flex; justify-content: center; gap: 56px; }
#profiles .person { width: 220px; text-align: center; cursor: pointer; }
#profiles .person .av { width: 220px; height: 220px; margin-bottom: 20px; transition: transform .2s, box-shadow .2s; }
#profiles .person.add .av { display: grid; place-items: center; font-size: 90px; color: var(--muted); background: var(--fill); box-shadow: inset 0 0 0 2px var(--line); }
#profiles .person b { font-size: 28px; font-weight: 500; color: var(--muted); }
#profiles .person.focus .av, #profiles .person:hover .av { transform: scale(1.05); box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px var(--label); }
#profiles .person.focus b, #profiles .person:hover b { color: var(--text); }
/* making one: 1 two photos (the kind), 2 the photos fill the screen under a light that follows the mouse, 3 the name */
#profiles .make-view { display: none; position: absolute; inset: 0; }
#profiles.making .who-view { display: none; }
#profiles.making .make-view { display: block; }
#profiles.making .pwrap > .brand { position: absolute; left: 56px; top: 40px; z-index: 6; pointer-events: none; }
#profiles .mk-pick, #profiles .mk-name { display: none; position: absolute; inset: 0; }
#profiles[data-step="pick"] .mk-pick { display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 30px 0 70px; }
/* the one you are pointing at, big, centred above the rows */
#profiles .big-pre { align-self: center; width: 270px; height: 270px; border-radius: 10px; flex: none; box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 0 0 2px var(--line); }
#profiles .big-pre img { animation: pfade .25s ease; }
#profiles[data-step="name"] .mk-name { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; animation: pfade .4s ease; }
@keyframes pfade { from { opacity: 0; } }
#profiles .mk-pick h1 { margin: 0 0 6px; font-size: 84px; text-align: center; }
#profiles .prow .lbl { margin: 0 0 8px 120px; font: 400 32px "Bebas Neue", Impact, sans-serif; letter-spacing: .05em; color: var(--text); text-transform: none; }
#profiles .prow .strip { display: grid; grid-template-rows: repeat(2, 136px); grid-auto-flow: column; grid-auto-columns: 136px; gap: 12px; padding: 10px 120px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
#profiles .prow .strip::-webkit-scrollbar { display: none; }
#profiles .prow .av { width: 136px; height: 136px; border-radius: 8px; cursor: pointer; transition: transform .2s, box-shadow .2s; }
#profiles .prow .av:hover, #profiles .prow .av.focus { transform: scale(1.05); box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px var(--label); }
#profiles .chosen { width: 380px; height: 380px; border-radius: 10px; cursor: pointer; box-shadow: 0 40px 90px rgba(0,0,0,.5); }
#profiles .pname { width: 520px; height: 76px; padding: 0 22px; font-size: 32px; border-radius: 8px; border: 0; outline: 0; text-align: center;
  background: var(--fill); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); user-select: text; }
#profiles .pname:focus { box-shadow: inset 0 0 0 2px var(--label); }
#profiles .pdone { min-width: 240px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s; }
#profiles.has-name .pdone { opacity: 1; transform: none; pointer-events: auto; }
#profiles .pback { position: absolute; right: 56px; top: 44px; z-index: 6; padding: 10px 22px; border-radius: 6px; font-size: 22px; color: var(--text); background: var(--pill); cursor: pointer; }
#profiles .pback:hover { background: var(--label); color: #15121f; }
/* the top of the home screen: the husky and the name (home), day or night, search, you */
#browse .bar .home { display: flex; align-items: center; gap: 14px; padding: 4px 10px 4px 0; background: none !important; color: var(--text); }
#browse .bar .home .husky { width: 76px; height: 76px; flex: none; }
#browse .bar .home .word { font-size: 40px; line-height: 1; white-space: nowrap; }
#browse .bar .home.focus .word { color: var(--label); }
#browse .bar .dn { position: relative; width: 104px; height: 52px; padding: 0 !important; margin-left: 14px; border-radius: 26px !important; display: flex; align-items: center; justify-content: space-between;
  background: var(--pill) !important; box-shadow: inset 0 0 0 1.5px var(--line); }
#browse .bar .dn i { position: relative; z-index: 1; width: 52px; height: 52px; display: grid; place-items: center; color: var(--muted); transition: color .25s; }
#browse .bar .dn svg { width: 24px; height: 24px; fill: currentColor; }
#browse .bar .dn .knob { position: absolute; top: 4px; left: 4px; width: 44px; height: 44px; border-radius: 50%; background: var(--label); transition: transform .3s cubic-bezier(.3,.8,.3,1); }
:root[data-theme="night"] #browse .bar .dn .knob { transform: translateX(52px); }
:root[data-theme="day"] #browse .bar .dn .sun, :root[data-theme="night"] #browse .bar .dn .moon { color: #15121f; }
#browse .bar .dn:hover, #browse .bar .dn.focus { box-shadow: inset 0 0 0 1.5px var(--line), 0 0 0 4px rgba(179,165,238,.45); }
#browse .bar .me .av { border-radius: 6px; }
/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 68px; padding: 0 34px; border-radius: 8px; font-size: 24px; font-weight: 600;
  background: var(--fill); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: transform .15s, background .15s; }
.btn.main { background: var(--label); color: #15121f; box-shadow: none; }
.btn.focus, .btn:hover { transform: scale(1.03); box-shadow: 0 0 0 4px rgba(179,165,238,.45); }
.btn.busy { opacity: .6; pointer-events: none; }
.btn.off { opacity: .4; }

/* ---- the click-through bar (test copy only) ---- */
#demobar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1000; display: flex; align-items: center; gap: 6px;
  padding: 6px; border-radius: 10px; background: rgba(20,18,26,.92); box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 10px 30px rgba(0,0,0,.4);
  font: 500 15px "Inter", sans-serif; color: #f1ece2; }
#demobar button { width: 40px; height: 36px; border: 0; border-radius: 7px; background: rgba(255,255,255,.1); color: #f1ece2; font-size: 22px; line-height: 1; cursor: pointer; }
#demobar button:hover { background: #b3a5ee; color: #15121f; }
#demobar .name { min-width: 230px; text-align: center; padding: 0 8px; white-space: nowrap; }
/* the end of the home rows: Find more */
#browse .brow.more { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 14px; padding-top: 40px; }
#browse .brow.more small { font-size: 20px; color: var(--muted); }
/* the bottom of the home rows: Find more, and AI find more (a short quiz) */
#browse .brow.more { align-items: center; padding-top: 50px; }
#browse .brow.more .mbtns { display: flex; gap: 24px; justify-content: center; width: 100%; padding-right: 96px; }
#browse .brow.more .btn { height: 92px; min-width: 340px; padding: 0 48px; font-size: 32px; border-radius: 10px; }
#quiz { position: absolute; inset: 0; z-index: 30; display: none; place-items: center; background: rgba(5,4,8,.72); backdrop-filter: blur(10px); }
#quiz.on { display: grid; }
#quiz .qsheet { position: relative; width: 1240px; min-height: 660px; padding: 48px 64px 44px; text-align: center; border-radius: 14px; background: var(--bg); display: flex; flex-direction: column;
  box-shadow: 0 0 0 1.5px var(--line), 0 40px 120px rgba(0,0,0,.5); }
#quiz .qx { position: absolute; right: 30px; top: 22px; font-size: 30px; color: var(--muted); cursor: pointer; padding: 6px 12px; }
#quiz .qtop { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 34px; }
#quiz .qtitle { font-size: 20px; letter-spacing: .14em; text-transform: uppercase; color: var(--label); font-weight: 600; }
#quiz .qdots { display: flex; gap: 8px; }
#quiz .qdots i { width: 28px; height: 5px; border-radius: 3px; background: var(--line); transition: background .3s; }
#quiz .qdots i.done, #quiz .qdots i.now { background: var(--label); }
#quiz .qcard { flex: 1; display: flex; flex-direction: column; align-items: center; }
#quiz .qcard.in { animation: qin .35s cubic-bezier(.2,.8,.2,1); }
@keyframes qin { from { opacity: 0; transform: translateX(40px); } }
#quiz .qcard h2 { margin: 0 0 40px; font: 400 76px "Bebas Neue", Impact, sans-serif; letter-spacing: .03em; line-height: 1; }
#quiz .opts { display: flex; justify-content: center; gap: 20px; }
#quiz .opts span { width: 196px; height: 188px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 0 12px; border-radius: 12px; font-size: 25px; background: var(--fill); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: transform .15s, background .15s; }
#quiz .opts span:hover, #quiz .opts span.focus { transform: scale(1.04); box-shadow: inset 0 0 0 2px var(--label); }
#quiz .opts span.on { background: var(--label); color: #15121f; box-shadow: none; }
#quiz .opts svg { width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#quiz .opts span:not(.on) svg { color: var(--label); }
#quiz .opts b { font-weight: 600; line-height: 1.15; }
#quiz .qposters { display: flex; justify-content: center; gap: 22px; }
#quiz .qp { position: relative; width: 180px; height: 268px; border-radius: 8px; background: var(--fill) center/cover; cursor: pointer; transition: transform .15s, box-shadow .15s; }
#quiz .qp span { position: absolute; left: 0; right: 0; bottom: -38px; font-size: 20px; text-align: center; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#quiz .qp:hover, #quiz .qp.focus { transform: scale(1.05); box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--label); }
#quiz .qp.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 7px var(--label); }
#quiz .qmore { display: none; width: 860px; height: 150px; margin: -10px auto 0; padding: 26px 30px; font: 30px/1.4 Inter, sans-serif; text-align: center; resize: none;
  border-radius: 12px; border: 0; outline: 0; background: var(--fill); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); user-select: text; }
#quiz.last .qmore { display: block; }
#quiz.last .qcard { flex: 0; }
#quiz.last .qfoot { margin-top: auto; }
#quiz .qmore:focus { box-shadow: inset 0 0 0 2px var(--label); }
#quiz .qfoot { display: flex; align-items: center; gap: 30px; margin-top: 40px; font-size: 24px; color: var(--muted); }
#quiz .qfoot span { cursor: pointer; padding: 8px 4px; }
#quiz .qfoot span:hover, #quiz .qfoot span.focus { color: var(--text); }
#quiz .qskip { margin-left: auto; }
#quiz .qgo { display: none; margin-left: auto; min-width: 260px; height: 76px; font-size: 28px; }
#quiz.last .qskip { display: none; }
#quiz.last .qgo { display: inline-flex; }
#quiz .qmaking { display: none; position: absolute; inset: 0; border-radius: 14px; background: var(--bg); flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
#quiz.making .qmaking { display: flex; }
#quiz .qmaking b { font: 400 56px "Bebas Neue", Impact, sans-serif; letter-spacing: .03em; }
#quiz .qmaking small { font-size: 22px; color: var(--muted); }
/* while Claude makes picks: a banner at the top of the screen */
#making { position: absolute; left: 50%; top: 26px; z-index: 40; display: flex; align-items: center; gap: 16px; padding: 16px 30px; border-radius: 12px;
  background: var(--label); color: #15121f; box-shadow: 0 20px 60px rgba(0,0,0,.45); transform: translate(-50%, -160%); transition: transform .4s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
body.picks-making #making { transform: translate(-50%, 0); }
#making b { font-size: 26px; font-weight: 700; }
#making small { font-size: 20px; opacity: .75; }
#making .spin { width: 26px; height: 26px; border-radius: 50%; border: 3.5px solid rgba(21,18,31,.25); border-top-color: #15121f; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* AI picks, next to Search (only when Claude picks are on) */
#browse .bar .aib { display: none; margin-left: auto; padding: 12px 26px; border-radius: 12px; font-size: 24px; font-weight: 700; background: var(--label) !important; color: #15121f !important; }
#browse.ai-on .bar .aib { display: block; }
#browse.ai-on .bar .find { margin-left: 0; }
#browse .bar .aib:hover, #browse .bar .aib.focus { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--label); }
