﻿/* Reel — tvOS-inspired: monochrome, glass, motion. */
:root {
  --bg: #000;
  --glass: rgba(58, 58, 64, 0.42);
  --glass-hi: rgba(120, 120, 128, 0.36);
  --glass-strong: rgba(30, 30, 34, 0.72);
  --glass-border: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --text-2: rgba(235, 235, 245, 0.64);
  --text-3: rgba(235, 235, 245, 0.36);
  --line: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --gutter: 64px;
  --spring: cubic-bezier(.2, .9, .25, 1.1);
  --ease: cubic-bezier(.25, .8, .25, 1);
  --font: "SF Pro Display", -apple-system, "Inter", "Segoe UI Variable Display", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
body { overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
input, textarea, [contenteditable="true"] { user-select: text; -webkit-user-select: text; }
img { -webkit-user-drag: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--text); }
a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
a:hover { text-decoration-color: #fff; }
::selection { background: rgba(255, 255, 255, .25); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
.ic { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }

/* ---------- Glass primitive ---------- */
.glass, .pill, .nav-cluster, .btn, .sheet, .popover, .rate-pop, .seg, .panel, .tile {
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
}

/* ---------- Nav ---------- */
#drag { position: fixed; inset: 0 0 auto 0; height: 44px; -webkit-app-region: drag; z-index: 50; }
#nav {
  position: fixed; top: 0; left: 0; right: 0; height: 76px; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 12px 150px 0 var(--gutter); pointer-events: none;
  transition: background .4s var(--ease), box-shadow .4s;
}
#nav.scrolled { background: rgba(0,0,0,.5); backdrop-filter: blur(30px) saturate(180%); box-shadow: 0 1px 0 var(--line); }
#nav > * { pointer-events: auto; -webkit-app-region: no-drag; }
.pill {
  grid-column: 2; position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border); box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.pill .indicator { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: rgba(255,255,255,.94); transition: transform .45s var(--spring), width .45s var(--spring), opacity .3s; opacity: 0; }
.pill button { position: relative; z-index: 1; padding: 8px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--text-2); transition: color .3s; }
.pill button:hover { color: var(--text); }
.pill button.active { color: #000; }
.nav-cluster {
  grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 4px; padding: 5px 5px 5px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border); box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.nav-cluster .clock { font-size: 14.5px; font-weight: 600; color: var(--text); margin-right: 8px; font-variant-numeric: tabular-nums; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: background .25s, color .25s, transform .25s var(--spring); }
.icon-btn:hover { background: rgba(255,255,255,.14); transform: scale(1.08); }
.icon-btn.active { background: #fff; color: #000; }

/* ---------- Layout ---------- */
#view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; }
.page { padding: 104px var(--gutter) 90px; animation: enter .5s var(--ease); }
.page.flush { padding: 0 0 90px; }
/* Opacity only: a transform here would re-anchor position:fixed artwork mid-animation (the "resize flash"). */
@keyframes enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
h1.page-title { font-size: 44px; font-weight: 700; letter-spacing: -.035em; margin: 0 0 26px; }
h2.row-title { font-size: 20px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.92); }
h2.row-title small { font-size: 14px; color: var(--text-3); font-weight: 500; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.center-empty { text-align: center; padding: 90px 20px; color: var(--text-2); line-height: 1.5; }
.center-empty h3 { color: var(--text); font-size: 22px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.02em; }

/* ---------- Hero ---------- */
.hero { position: relative; height: min(84vh, 860px); min-height: 540px; overflow: hidden; margin-bottom: -110px; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 20%; transition: opacity 1.4s var(--ease); animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.09) translate(-1%, -1%); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.3) 38%, rgba(0,0,0,0) 62%),
    linear-gradient(0deg, #000 0%, rgba(0,0,0,.55) 20%, rgba(0,0,0,0) 48%);
}
.hero-content { position: absolute; z-index: 2; left: var(--gutter); bottom: 170px; max-width: 540px; animation: fade .8s var(--ease); }
.hero-logo { max-width: 460px; max-height: 160px; object-fit: contain; object-position: left bottom; display: block; margin-bottom: 20px; filter: drop-shadow(0 6px 26px rgba(0,0,0,.45)); }
.hero-title { font-size: 60px; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 0 0 16px; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.hero-meta { color: var(--text-2); font-size: 14.5px; font-weight: 500; margin-bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hero-meta .badge { border: 1px solid rgba(255,255,255,.3); border-radius: 5px; padding: 0 5px; font-size: 11.5px; font-weight: 600; color: var(--text-2); line-height: 17px; }
.hero-overview { font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.8); margin: 0 0 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-dots { position: absolute; z-index: 3; right: var(--gutter); bottom: 172px; display: flex; gap: 7px; }
.hero-dots span { width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.28); cursor: pointer; transition: all .5s var(--spring); }
.hero-dots span.on { background: rgba(255,255,255,.9); width: 22px; }

/* ---------- Buttons ---------- */
.btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn {
  height: 46px; padding: 0 24px; border-radius: 14px; font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--glass); border: 1px solid var(--glass-border);
  transition: transform .3s var(--spring), background .25s, color .25s, box-shadow .3s;
}
.btn:hover { transform: scale(1.04); background: var(--glass-hi); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.btn:active { transform: scale(.97); }
.btn.primary { background: rgba(255,255,255,.95); color: #000; border-color: transparent; }
.btn.primary:hover { background: #fff; }
.btn.small { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn.small .ic { width: 15px; height: 15px; }
.btn.round { width: 46px; padding: 0; border-radius: 50%; }
.btn.round .ic { width: 20px; height: 20px; }
.btn.small.round { width: 34px; }
.btn.on { background: rgba(255,255,255,.95); color: #000; }
.btn.accent { background: rgba(255,255,255,.95); color: #000; border-color: transparent; }
.btn.rated { width: auto; padding: 0 16px; border-radius: 999px; gap: 6px; font-variant-numeric: tabular-nums; }
.btn:disabled { opacity: .4; pointer-events: none; }

/* ---------- Rows & cards ---------- */
.row { position: relative; z-index: 3; margin: 0 calc(-1 * var(--gutter)) 30px; }
.row h2 { padding: 0 var(--gutter); }
.shelf { display: flex; gap: 22px; overflow-x: auto; padding: 10px var(--gutter) 30px; scroll-snap-type: x proximity; scroll-padding: var(--gutter); scroll-behavior: smooth; }
.shelf::-webkit-scrollbar { height: 0; }
.card { flex: 0 0 auto; cursor: pointer; scroll-snap-align: start; position: relative; animation: fade .6s var(--ease) both; }
.card .art {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #161618 center/cover no-repeat;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: transform .45s var(--spring), box-shadow .45s var(--ease);
}
.card .art::before { /* tvOS focus sheen */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 38%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.card .art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; }
.card:hover .art { transform: scale(1.07) translateY(-4px); box-shadow: 0 30px 60px rgba(0,0,0,.7); z-index: 2; }
.card:hover .art::before { opacity: 1; }
.card.land .art { width: 310px; aspect-ratio: 16 / 9; }
.card.land.big .art { width: 400px; }
.card.poster .art { width: 170px; aspect-ratio: 2 / 3; }
.card .cap { margin-top: 12px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.card.poster .cap { width: 170px; }
.card .sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.card.land .sub { margin-top: 12px; font-size: 13px; color: var(--text-3); font-weight: 500; width: 310px; transition: color .3s; }
.card.land.big .sub, .card.land.big .why { width: 400px; }
.card:hover .sub { color: var(--text-2); }
.card.poster .sub { width: 170px; }
.card .art .title-on { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font-weight: 700; font-size: 19px; letter-spacing: -.025em; text-shadow: 0 2px 14px rgba(0,0,0,.7); line-height: 1.1; }
.card .art .title-on img { max-width: 66%; max-height: 54px; object-fit: contain; object-position: left bottom; display: block; filter: drop-shadow(0 2px 10px rgba(0,0,0,.5)); }
.card.land .art .shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0) 55%); }
.card .progress { position: absolute; left: 16px; right: 16px; bottom: 12px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; z-index: 2; }
.card .progress i { display: block; height: 100%; background: #fff; border-radius: 4px; }
.card .art .progress ~ .title-on { bottom: 26px; }
.card .why { font-size: 12.5px; color: var(--text-3); margin-top: 3px; width: 310px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .seen-dot { position: absolute; top: 10px; right: 10px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.45); backdrop-filter: blur(12px); }
.card .seen-dot .ic { width: 13px; height: 13px; }
.card .tools { display: flex; gap: 6px; margin-top: 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 30px 22px; }
.grid .card.poster .art, .grid .card.poster .cap, .grid .card.poster .sub { width: 100%; }

/* ---------- Detail ---------- */
.detail-hero { position: relative; min-height: 90vh; display: flex; align-items: flex-end; }
.detail-hero .hero-bg { position: fixed; inset: 0; z-index: 0; animation-duration: 40s; }
.detail-hero .veil { position: fixed; inset: 0; z-index: 0; background:
  linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 40%, rgba(0,0,0,.05) 75%),
  linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,0) 70%); }
.detail-body { position: relative; z-index: 2; padding: 0 var(--gutter) 56px; width: 100%; }
.detail-main { max-width: 640px; animation: fade .7s var(--ease); }
.detail-tagline { color: var(--text-2); margin: -6px 0 12px; font-size: 15px; }
.your-line { color: var(--text-2); font-size: 14px; font-weight: 500; margin-top: 18px; display: flex; gap: 14px; align-items: center; min-height: 20px; }
.your-line .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.below { position: relative; z-index: 2; background: #000; padding: 36px var(--gutter) 70px; }
.below::before { content: ""; position: absolute; left: 0; right: 0; top: -140px; height: 140px; background: linear-gradient(0deg, #000, transparent); pointer-events: none; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; font-size: 14.5px; color: rgba(255,255,255,.85); }
.facts div b { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-3); margin-bottom: 4px; }
.person { flex: 0 0 auto; width: 112px; text-align: center; cursor: default; }
.person .face { width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 50%; background: #1c1c1e center/cover; box-shadow: 0 8px 20px rgba(0,0,0,.4); transition: transform .4s var(--spring); }
.person:hover .face { transform: scale(1.06); }
.person .n { font-size: 13px; font-weight: 600; }
.person .r { font-size: 12px; color: var(--text-3); margin-top: 1px; }

.seasons { display: inline-flex; gap: 2px; margin-bottom: 22px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border); flex-wrap: wrap; }
.seasons button { padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--text-2); transition: background .3s, color .3s; }
.seasons button.on { background: rgba(255,255,255,.94); color: #000; }
.episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px 24px; }
.ep { cursor: pointer; animation: fade .5s var(--ease) both; }
.ep .still { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); background: #161618 center/cover; overflow: hidden; transition: transform .45s var(--spring), box-shadow .45s; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.ep:hover .still { transform: scale(1.04) translateY(-3px); box-shadow: 0 24px 50px rgba(0,0,0,.6); }
.ep .still .play-ico { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .3s; background: rgba(0,0,0,.25); }
.ep .still .play-ico span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); backdrop-filter: blur(20px); }
.ep .still .play-ico .ic { width: 22px; height: 22px; }
.ep:hover .still .play-ico { opacity: 1; }
.ep .still .seen { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #000; }
.ep .still .seen .ic { width: 14px; height: 14px; }
.ep .still .progress { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; }
.ep .still .progress i { display: block; height: 100%; background: #fff; }
.ep .ep-head { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; }
.ep h4 { margin: 0 0 3px; font-size: 15px; font-weight: 600; flex: 1; }
.ep h4 span { color: var(--text-3); font-weight: 500; margin-right: 4px; }
.ep p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep .ep-actions { display: flex; gap: 4px; flex: 0 0 auto; opacity: .55; transition: opacity .3s; }
.ep:hover .ep-actions { opacity: 1; }
.mini { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); transition: background .2s, color .2s, transform .3s var(--spring); font-size: 12px; font-weight: 700; }
.mini:hover { background: rgba(255,255,255,.12); color: #fff; transform: scale(1.1); }
.mini.on { color: #fff; }
.mini .ic { width: 16px; height: 16px; }
.mini.wide { width: auto; padding: 0 9px; border-radius: 999px; gap: 4px; display: inline-flex; align-items: center; }

/* ---------- Stars (rating input) ---------- */
.stars { display: inline-flex; gap: 6px; user-select: none; }
.stars .s { position: relative; width: var(--sz, 30px); height: var(--sz, 30px); cursor: pointer; color: rgba(255,255,255,.16); font-size: var(--sz, 30px); line-height: 1; transition: transform .25s var(--spring); }
.stars .s:hover { transform: scale(1.15); }
.stars .s::before { content: "★"; position: absolute; inset: 0; }
.stars .s .fill { position: absolute; inset: 0; overflow: hidden; color: #fff; width: 0; transition: width .12s; }
.stars .s .fill::before { content: "★"; }
.rating-text { font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.rating-text .ic { width: 13px; height: 13px; vertical-align: -1px; margin-right: 3px; }
.like-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; color: rgba(255,255,255,.35); transition: color .25s, transform .35s var(--spring), background .25s; }
.like-toggle:hover { background: rgba(255,255,255,.1); transform: scale(1.1); }
.like-toggle.on { color: #fff; }
.like-toggle .ic { width: 22px; height: 22px; }

/* Rating popover (tvOS style) */
.rate-pop {
  position: fixed; z-index: 300; padding: 20px 22px 16px; border-radius: 24px; min-width: 280px;
  background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: pop .35s var(--spring); transform-origin: top left;
}
.rate-pop .rp-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 12px; }
.rate-pop .rp-value { font-size: 13px; color: var(--text-3); margin-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.rate-pop .rp-value b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Modal / sheets ---------- */
.modal-back { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.45); backdrop-filter: blur(18px) saturate(140%); display: grid; place-items: center; animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.sheet {
  width: min(680px, calc(100vw - 48px)); max-height: calc(100vh - 100px); overflow: auto;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  border-radius: 28px; padding: 30px; box-shadow: 0 40px 120px rgba(0,0,0,.65); animation: pop .4s var(--spring);
}
.sheet.wide { width: min(920px, calc(100vw - 48px)); }
@keyframes pop { from { transform: scale(.92) translateY(10px); opacity: 0; } }
.sheet h3 { margin: 0 0 2px; font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
.sheet .sheet-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.sheet .sheet-head img { width: 60px; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.sheet .close { margin-left: auto; align-self: flex-start; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--text-3); }

.stream-list { display: flex; flex-direction: column; gap: 6px; }
.stream {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 12px 16px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid transparent; cursor: pointer; transition: background .25s, transform .35s var(--spring), border-color .25s;
}
.stream:hover { background: rgba(255,255,255,.1); transform: scale(1.01); }
.stream.best { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.07); }
.stream .q { font-weight: 700; font-size: 17px; text-align: center; letter-spacing: -.02em; }
.stream .q small { display: block; font-size: 11px; color: var(--text-3); font-weight: 600; letter-spacing: 0; }
.stream .fn { font-size: 12.5px; color: var(--text-3); word-break: break-all; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.stream .tags { display: flex; gap: 5px; margin-bottom: 5px; flex-wrap: wrap; }
.tag { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.1); color: var(--text-2); }
.tag.cached { background: rgba(255,255,255,.9); color: #000; }
.tag.uncached { background: transparent; border: 1px solid rgba(255,255,255,.18); color: var(--text-3); }
.tag.dv { background: rgba(255,255,255,.1); }
.stream .meta { font-size: 12px; color: var(--text-3); text-align: right; white-space: nowrap; line-height: 1.6; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.field .hint { font-size: 12.5px; color: var(--text-3); margin-top: 7px; line-height: 1.5; }
.input, textarea.input, select.input {
  width: 100%; padding: 12px 15px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--glass-border); outline: none; transition: border-color .25s, background .25s;
}
.input:focus { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.09); }
.input::placeholder { color: var(--text-3); }
select.input option { background: #1c1c1e; }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }

/* iOS-style switch */
.check { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14.5px; margin: 12px 0; color: rgba(255,255,255,.88); }
.check input { -webkit-appearance: none; appearance: none; flex: 0 0 auto; width: 44px; height: 26px; border-radius: 13px; background: rgba(255,255,255,.16); position: relative; cursor: pointer; transition: background .3s var(--ease); margin: 0; }
.check input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .35s var(--spring); }
.check input:checked { background: #34c759; }
.check input:checked::after { transform: translateX(18px); }

.panel { background: rgba(255,255,255,.035); border: 1px solid var(--glass-border); border-radius: 24px; padding: 28px; margin-bottom: 20px; }
.panel h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; display: flex; align-items: center; gap: 8px; }
.panel > p { margin: 0 0 18px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.panel.hero-panel { background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); }
.settings-wrap { max-width: 760px; }
.ok-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 10px rgba(52,199,89,.6); }

/* ---------- Search ---------- */
.search-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 30px; }
.search-bar .input { font-size: 22px; padding: 16px 24px; border-radius: 18px; flex: 1; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border); }
.seg button { padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--text-2); white-space: nowrap; transition: background .3s, color .3s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: rgba(255,255,255,.94); color: #000; }
.vibe-chips, .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.vibe-chips { margin: -12px 0 30px; }
.chips { margin-bottom: 28px; }
.vibe-chips button, .chips button { padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--glass-border); font-size: 13.5px; font-weight: 500; color: var(--text-2); transition: all .3s var(--ease); }
.vibe-chips button:hover, .chips button:hover { color: var(--text); background: rgba(255,255,255,.12); }
.chips button.on { background: rgba(255,255,255,.94); color: #000; border-color: transparent; }
.reason { font-size: 12.5px; color: var(--text-3); margin-top: 4px; line-height: 1.4; }

/* ---------- Swipe ---------- */
.swipe-wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 56px; min-height: calc(100vh - 230px); }
.swipe-card { width: 360px; position: relative; perspective: 1200px; }
.swipe-card .poster { width: 360px; aspect-ratio: 2/3; border-radius: 26px; background: #161618 center/cover; box-shadow: 0 50px 100px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.06); transition: transform .5s var(--spring), opacity .4s var(--ease); animation: cardIn .55s var(--spring); }
@keyframes cardIn { from { transform: scale(.9) translateY(20px); opacity: 0; } }
.swipe-card.out-left .poster { transform: translateX(-120%) rotate(-14deg); opacity: 0; }
.swipe-card.out-right .poster { transform: translateX(120%) rotate(14deg); opacity: 0; }
.swipe-card.out-up .poster { transform: translateY(-110%) scale(.85); opacity: 0; }
.swipe-card.out-down .poster { transform: translateY(50%) scale(.85); opacity: 0; }
.swipe-info { animation: fade .5s var(--ease); }
.swipe-info h2 { font-size: 36px; font-weight: 700; letter-spacing: -.035em; margin: 4px 0 10px; line-height: 1.05; }
.swipe-info p { color: var(--text-2); line-height: 1.55; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.swipe-actions { display: flex; flex-direction: column; gap: 10px; }
.swipe-actions .btn { width: 250px; justify-content: flex-start; }
.swipe-actions .btn kbd { margin-left: auto; }
kbd { font: 600 11.5px var(--font); padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.1); color: var(--text-3); }
.btn.primary kbd { background: rgba(0,0,0,.08); color: rgba(0,0,0,.5); }
.swipe-rate { margin-top: 14px; padding: 18px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-border); animation: pop .35s var(--spring); }
.swipe-counter { font-size: 13px; color: var(--text-3); margin-top: 16px; font-variant-numeric: tabular-nums; }

/* ---------- Library ---------- */
.lib-tabs { margin-bottom: 32px; }
.diary-month { margin-bottom: 30px; }
.diary-month h3 { font-size: 13px; font-weight: 600; color: var(--text-3); margin: 0 0 6px 12px; }
.diary-row { display: grid; grid-template-columns: 44px 40px 1fr auto 34px; gap: 16px; align-items: center; padding: 10px 12px; border-radius: 16px; cursor: pointer; transition: background .25s; }
.diary-row:hover { background: rgba(255,255,255,.05); }
.diary-row .day { font-size: 20px; font-weight: 600; color: var(--text-2); text-align: center; font-variant-numeric: tabular-nums; }
.diary-row img { width: 40px; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; display: block; background: #1c1c1e; }
.diary-row .t { font-weight: 600; font-size: 15px; }
.diary-row .t .dim { font-weight: 500; }
.diary-row .rv { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.diary-row .marks { display: flex; gap: 12px; align-items: center; color: var(--text-2); font-size: 13.5px; }
.diary-row .marks .ic { width: 15px; height: 15px; }
.diary-row .del { opacity: 0; transition: opacity .2s; }
.diary-row:hover .del { opacity: 1; }
.list-card { padding: 22px; border-radius: 22px; background: rgba(255,255,255,.035); border: 1px solid var(--glass-border); cursor: pointer; transition: background .3s, transform .45s var(--spring); }
.list-card:hover { background: rgba(255,255,255,.07); transform: scale(1.02); }
.list-card .stack { display: flex; margin-bottom: 16px; height: 120px; }
.list-card .stack div { width: 80px; aspect-ratio: 2/3; border-radius: 9px; background: #1c1c1e center/cover; margin-right: -30px; box-shadow: 6px 0 16px rgba(0,0,0,.55); transition: transform .45s var(--spring); }
.list-card:hover .stack div { transform: translateX(calc(var(--i) * 6px)); }
.list-card h4 { margin: 0 0 3px; font-size: 16px; font-weight: 600; }
.lists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.review-item { display: grid; grid-template-columns: 84px 1fr; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.review-item img { width: 84px; border-radius: 10px; cursor: pointer; transition: transform .4s var(--spring); }
.review-item img:hover { transform: scale(1.05); }
.review-item h4 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.review-item p { line-height: 1.6; color: rgba(255,255,255,.82); white-space: pre-wrap; margin: 10px 0 0; }

/* ---------- Stats ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.tile { padding: 22px; border-radius: 22px; background: rgba(255,255,255,.035); border: 1px solid var(--glass-border); }
.tile .v { font-size: 36px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tile .l { font-size: 13px; color: var(--text-3); font-weight: 500; margin-top: 2px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 10px 0 0; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.bars .b i { display: block; width: 100%; max-width: 40px; background: rgba(255,255,255,.82); border-radius: 8px; min-height: 3px; transform-origin: bottom; animation: grow .9s var(--spring) both; }
.bars .b:nth-child(odd) i { animation-delay: .05s; }
@keyframes grow { from { transform: scaleY(0); } }
.bars .b span { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.hbar { display: grid; grid-template-columns: 140px 1fr 40px; gap: 14px; align-items: center; margin-bottom: 10px; font-size: 14px; color: rgba(255,255,255,.85); }
.hbar i { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.8); transform-origin: left; animation: growX .9s var(--spring) both; }
@keyframes growX { from { transform: scaleX(0); } }

/* ---------- Player (Apple TV layout) ---------- */
.player { position: fixed; inset: 0; z-index: 500; background: #000; cursor: default; font-family: var(--font); animation: fadeIn .4s var(--ease); }
.player.idle { cursor: none; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.p-art { position: absolute; inset: -40px; background: #000 center/cover no-repeat; filter: blur(30px) brightness(.4) saturate(1.2); transition: opacity 1s var(--ease); }
.player.started .p-art { opacity: 0; }

.player .loading { position: absolute; inset: 0; z-index: 4; display: none; place-items: center; pointer-events: none; }
.player:not(.started) .loading, .player.buffering .loading { display: grid; }
.player.started.buffering .load-logo, .player.started.buffering .load-sub, .player.started.buffering .msg:empty { display: none; }
.load-card { text-align: center; max-width: 520px; padding: 0 24px; animation: fade .6s var(--ease); }
.load-logo { margin-bottom: 14px; }
.load-logo img { max-width: 420px; max-height: 150px; object-fit: contain; filter: drop-shadow(0 6px 30px rgba(0,0,0,.6)); }
.load-title { font-size: 48px; font-weight: 700; letter-spacing: -.04em; }
.load-sub { color: var(--text-2); font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.load-card .spinner { margin: 28px auto 0; }
.player .loading .msg { margin-top: 14px; color: var(--text-2); font-size: 14px; }
.player .loading .load-card .btns { pointer-events: auto; justify-content: center; }

.player .subs { position: absolute; left: 10%; right: 10%; bottom: 7%; text-align: center; pointer-events: none; transition: bottom .45s var(--ease); z-index: 2; }
.player:not(.idle) .subs { bottom: 19%; }
.player .subs span { display: inline; font-size: clamp(22px, 2.3vw, 42px); font-weight: 600; line-height: 1.38; color: #fff; padding: 2px 12px; background: rgba(0,0,0,.4); border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; text-shadow: 0 1px 4px rgba(0,0,0,.9); white-space: pre-line; }

.flash { position: absolute; left: 50%; top: 50%; z-index: 3; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; display: grid; place-items: center; pointer-events: none; opacity: 0;
  background: rgba(40,40,44,.45); backdrop-filter: blur(30px) saturate(180%); }
.flash svg { width: 36px; height: 36px; fill: #fff; }
.flash b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.flash.on { animation: flash .7s var(--ease); }
@keyframes flash { 0% { opacity: 0; transform: scale(.8); } 18% { opacity: 1; transform: scale(1); } 60% { opacity: 1; } 100% { opacity: 0; transform: scale(1.1); } }
.player:not(.idle).started .flash { display: none; } /* center controls are visible instead */

.player .chrome { position: absolute; inset: 0; z-index: 3; opacity: 1; transition: opacity .5s var(--ease); pointer-events: none; }
.player .chrome > * { pointer-events: auto; }
.player.idle .chrome { opacity: 0; }
.player .chrome::before, .player .chrome::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; }
.player .chrome::before { top: 0; height: 160px; background: linear-gradient(rgba(0,0,0,.5), transparent); }
.player .chrome::after { bottom: 0; height: 280px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.p-glass { background: rgba(40,40,44,.5); backdrop-filter: blur(40px) saturate(180%); border: 1px solid rgba(255,255,255,.08); }
.player .p-top { position: absolute; z-index: 1; top: 28px; left: 40px; right: 40px; display: flex; align-items: center; gap: 12px; }
.player .p-vol { margin-left: auto; display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 16px; border-radius: 999px; }
.player .p-center { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 44px; }
.player:not(.started) .p-center, .player:not(.started) .p-bottom, .player:not(.started) .p-vol { opacity: 0; pointer-events: none; }
.player .p-bottom { position: absolute; z-index: 1; left: 48px; right: 48px; bottom: 36px; transition: opacity .4s; }
.p-info { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.p-info .st { font-size: 14px; font-weight: 500; color: var(--text-2); margin-bottom: 3px; }
.p-info .t { font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
.p-info .qbadges { display: flex; gap: 6px; margin-bottom: 4px; }
.qbadges span { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 7px; border-radius: 5px; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.8); }
.p-info .p-tools { margin-left: auto; display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.p-timeline { display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.p-timeline .el, .p-timeline .rem { min-width: 54px; }
.p-timeline .rem { text-align: right; }
.scrub { position: relative; flex: 1; height: 20px; cursor: pointer; display: flex; align-items: center; }
.scrub .track { position: relative; width: 100%; height: 5px; border-radius: 5px; background: rgba(255,255,255,.22); overflow: hidden; transition: height .25s var(--ease); }
.scrub:hover .track { height: 9px; }
.scrub .buf { position: absolute; inset: 0 auto 0 0; background: rgba(255,255,255,.28); }
.scrub .cur { position: absolute; inset: 0 auto 0 0; background: #fff; }
.scrub .knob { position: absolute; top: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.5); transform: scale(.85); transition: transform .3s var(--spring); pointer-events: none; }
.scrub:hover .knob { transform: scale(1.2); }
.scrub .hover-time { position: absolute; bottom: 28px; transform: translateX(-50%); font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 8px; background: rgba(40,40,44,.75); backdrop-filter: blur(20px); display: none; color: #fff; }
.scrub:hover .hover-time { display: block; }

.pbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background .25s, transform .35s var(--spring); flex: 0 0 auto; }
.pbtn:hover { background: rgba(255,255,255,.14); transform: scale(1.1); }
.pbtn:active { transform: scale(.92); }
.pbtn svg { width: 20px; height: 20px; fill: #fff; }
.pbtn.ring { width: 64px; height: 64px; background: rgba(40,40,44,.45); backdrop-filter: blur(30px) saturate(180%); }
.pbtn.ring svg { width: 30px; height: 30px; }
.pbtn.ring.big { width: 92px; height: 92px; }
.pbtn.ring.big svg { width: 40px; height: 40px; }
.pbtn.ring:hover { background: rgba(80,80,86,.55); }
.player .p-top .x { background: rgba(40,40,44,.5); backdrop-filter: blur(30px); }

input[type=range].volume { -webkit-appearance: none; appearance: none; width: 110px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.25); outline: none; margin: 0 4px; cursor: pointer; }
input[type=range].volume::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.5); }

.popover {
  position: absolute; right: 48px; bottom: 132px; width: 320px; max-height: 52vh; overflow: auto; z-index: 5;
  background: rgba(36,36,40,.72); border: 1px solid var(--glass-border); border-radius: 22px; padding: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.55); animation: pop .35s var(--spring); transform-origin: bottom right;
}
.popover h5 { margin: 10px 12px 6px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.popover button { display: flex; width: 100%; text-align: left; padding: 9px 12px; border-radius: 12px; font-size: 14px; gap: 6px; align-items: center; transition: background .2s; }
.popover button:hover { background: rgba(255,255,255,.1); }
.popover button.on::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.next-up { position: absolute; right: 48px; bottom: 150px; z-index: 6; padding: 16px; border-radius: 24px; width: 340px; background: rgba(36,36,40,.72); backdrop-filter: blur(44px) saturate(180%); border: 1px solid var(--glass-border); box-shadow: 0 30px 80px rgba(0,0,0,.55); animation: pop .4s var(--spring); }
.next-up .still { aspect-ratio: 16/9; border-radius: 14px; background: #222 center/cover; margin-bottom: 12px; }

.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(255,255,255,.14); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toast ---------- */
#toast { position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%) translateY(20px) scale(.96); z-index: 900; padding: 12px 22px; border-radius: 999px; background: rgba(44,44,48,.8); backdrop-filter: blur(30px) saturate(180%); border: 1px solid var(--glass-border); font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .45s var(--spring); max-width: 80vw; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.err { background: rgba(80,30,30,.85); }

.skeleton { background: linear-gradient(90deg, #121214 0%, #1c1c1f 50%, #121214 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* ...but loading spinners keep turning, or a slow load looks frozen */
@media (prefers-reduced-motion: reduce) { .spinner, .tw-ib.spin svg { animation: spin 1s linear infinite !important; } }

/* =================== Additions: setup, ambient, polish, new components =================== */

/* ---------- Ambient artwork behind plain pages ---------- */
#ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
#ambient.on { opacity: 1; }
#ambient .amb { position: absolute; inset: -80px; background: center/cover no-repeat; filter: blur(70px) saturate(1.5) brightness(.55); opacity: 0; transform: scale(1.1); transition: opacity 1.6s var(--ease); }
#ambient .amb.vis { opacity: .55; animation: drift 40s ease-in-out infinite alternate; }
#ambient::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, rgba(0,0,0,.15), rgba(0,0,0,.75) 70%, #000 100%); }
@keyframes drift { from { transform: scale(1.1) translate(0, 0); } to { transform: scale(1.18) translate(-2%, 1%); } }
#view { z-index: 1; }

/* ---------- Glass interaction: cursor-following highlight + press ripple ---------- */
.btn, .pbtn, .icon-btn, .chips button, .seg button, .pill button { position: relative; overflow: hidden; }
.btn::before, .tile::before, .panel::before, .list-card::before, .stream::before, .genre-tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.16), transparent 65%);
}
.btn:hover::before, .tile:hover::before, .panel:hover::before, .list-card:hover::before, .stream:hover::before, .genre-tile:hover::after { opacity: 1; }
.btn.primary::before { background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.9), transparent 70%); }
.tile, .panel, .list-card, .stream { position: relative; }
.panel::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.05), transparent 60%); }
.card .art::before { background: radial-gradient(320px circle at var(--mx, 25%) var(--my, 0%), rgba(255,255,255,.2), transparent 55%); }
.ripple { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: rgba(255,255,255,.35); pointer-events: none; animation: ripple .6s var(--ease) forwards; z-index: 0; }
.btn.primary .ripple, .pill button.active .ripple, .seg button.on .ripple { background: rgba(0,0,0,.18); }
@keyframes ripple { to { transform: scale(28); opacity: 0; } }
.btn > *, .pbtn > * { position: relative; z-index: 1; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: rgba(255,255,255,.08); color: var(--text); box-shadow: none; }
.input:focus { box-shadow: 0 0 0 4px rgba(255,255,255,.06), 0 0 30px rgba(255,255,255,.04); }
.card:hover .art { box-shadow: 0 30px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.12), 0 0 40px rgba(255,255,255,.04); }
.pill { transition: box-shadow .4s; }
.pill:hover, .nav-cluster:hover { box-shadow: 0 10px 40px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.06), 0 0 24px rgba(255,255,255,.05); }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; display: inline-block; vertical-align: -3px; }

/* ---------- Layout helpers ---------- */
.rows { padding: 0 var(--gutter); position: relative; z-index: 3; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .page-title { margin-bottom: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
.stats-2 { gap: 0 20px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .input { width: auto; padding: 9px 14px; font-size: 14px; }
.toolbar .q { width: 240px; }
.count { font-size: 13px; margin-bottom: 18px; }
.lib-sub { font-size: 15px; margin-bottom: 4px; }
.back-btn { margin-left: -10px; }
.hero-eyebrow { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); margin-bottom: 14px; letter-spacing: .01em; display: inline-flex; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.1); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.1); }
.invite { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }

/* Empty states: a quiet glass card instead of plain black */
.glass-empty { max-width: 520px; margin: 40px auto; padding: 46px 40px; border-radius: 28px; background: rgba(255,255,255,.04); border: 1px solid var(--glass-border); backdrop-filter: blur(30px); animation: fade .6s var(--ease); }
.empty-ico { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); box-shadow: 0 0 40px rgba(255,255,255,.08); }
.empty-ico .ic { width: 24px; height: 24px; }

/* ---------- Setup ---------- */
body.setup-mode #nav .pill, body.setup-mode #nav .nav-cluster { opacity: 0; pointer-events: none; }
.setup { min-height: 100vh; display: grid; place-items: center; padding: 80px 24px; }
.setup-card { width: min(560px, 100%); padding: 42px 44px 36px; border-radius: 32px; background: rgba(28,28,32,.55); border: 1px solid var(--glass-border); backdrop-filter: blur(50px) saturate(180%); box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.setup-card.in { animation: pop .55s var(--spring); }
.setup-card h1 { font-size: 34px; font-weight: 700; letter-spacing: -.035em; margin: 18px 0 8px; }
.setup-card .lead { color: var(--text-2); font-size: 15.5px; line-height: 1.55; margin: 0 0 26px; }
.setup-card .err { color: #ff8a80; font-size: 13.5px; min-height: 20px; margin: -4px 0 8px; }
.steps { display: flex; gap: 6px; }
.steps i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); transition: all .5s var(--spring); }
.steps i.on { width: 36px; background: #fff; }
.steps i.done { background: rgba(255,255,255,.55); }
.btns.end { justify-content: flex-end; margin-top: 6px; }
.done-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-top: 24px; background: rgba(52,199,89,.18); color: #34c759; box-shadow: 0 0 50px rgba(52,199,89,.25); animation: pop .6s var(--spring); }
.done-ico .ic { width: 30px; height: 30px; }
.stream-form .tio-toggle { margin: -6px 0 16px -10px; }
.import-block { margin-bottom: 24px; }
.import-block .status { font-size: 13.5px; margin-top: 12px; min-height: 18px; line-height: 1.5; }
.progress-line { height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 16px; }
.progress-line i { display: block; height: 100%; width: 0; background: #fff; border-radius: 2px; transition: width .3s var(--ease); box-shadow: 0 0 12px rgba(255,255,255,.6); }

/* Settings connections */
.conn { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.conn:last-of-type { border-bottom: 0; }
.conn > div { flex: 1; }
.conn b { font-weight: 600; font-size: 15px; }
.conn .dim { font-size: 13px; margin-top: 2px; }
.tmdb-edit, .stream-edit, .ai-edit { padding: 6px 0 16px; animation: fade .35s var(--ease); }
.stream-edit .err { color: #ff8a80; font-size: 13px; min-height: 18px; margin-bottom: 8px; }

/* ---------- Top 10 ---------- */
.card.ranked { display: flex; align-items: flex-end; padding-left: 4px; }
.card.ranked .rank-num { font-size: 150px; font-weight: 800; line-height: .8; letter-spacing: -.08em; margin-right: -18px; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.35); align-self: flex-end; transition: -webkit-text-stroke-color .4s; z-index: 0; user-select: none; }
.card.ranked:hover .rank-num { -webkit-text-stroke-color: rgba(255,255,255,.75); }
.card.ranked .art { z-index: 1; }
.card.ranked { flex-wrap: wrap; width: auto; }
.card.ranked .cap, .card.ranked .sub { display: none; }

/* ---------- Category tiles & genre chips ---------- */
.genre-tile { flex: 0 0 auto; width: 260px; height: 136px; border-radius: var(--radius); position: relative; overflow: hidden; cursor: pointer; background: #161618; box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: transform .45s var(--spring), box-shadow .45s; animation: fade .6s var(--ease) both; }
.genre-tile .gt-bg { position: absolute; inset: 0; background: center/cover; filter: saturate(1.1) brightness(.6); transform: scale(1.05); transition: transform .8s var(--ease), filter .5s; }
.genre-tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(0,0,0,.55), rgba(0,0,0,.05)); }
.genre-tile span { position: absolute; z-index: 2; left: 18px; bottom: 14px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.genre-tile:hover { transform: scale(1.05) translateY(-3px); box-shadow: 0 26px 50px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.12); }
.genre-tile:hover .gt-bg { transform: scale(1.12); filter: saturate(1.2) brightness(.75); }
.genre-chips { margin: 0 0 30px; position: relative; z-index: 3; }

/* ---------- Favorites ---------- */
.favs { margin-bottom: 30px; }
.fav-grid { display: flex; gap: 22px; }
.fav-empty .art { display: grid; place-items: center; background: rgba(255,255,255,.04) !important; border: 1.5px dashed rgba(255,255,255,.14); box-shadow: none; color: var(--text-3); }
.fav-empty .art .ic { width: 26px; height: 26px; }
.fav-empty:hover .art { color: #fff; border-color: rgba(255,255,255,.35); }
.fav-x { position: absolute; top: 8px; right: 8px; z-index: 3; background: rgba(0,0,0,.5); backdrop-filter: blur(12px); opacity: 0; color: #fff; }
.card:hover .fav-x { opacity: 1; }
.card.dragging { opacity: .4; }
.card.drop .art { box-shadow: 0 0 0 2px #fff, 0 20px 40px rgba(0,0,0,.6); }

/* ---------- Context menu ---------- */
.ctx-menu { position: fixed; z-index: 800; min-width: 240px; padding: 6px; border-radius: 18px; background: rgba(36,36,40,.75); backdrop-filter: blur(40px) saturate(180%); border: 1px solid var(--glass-border); box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: pop .3s var(--spring); transform-origin: top left; }
.ctx-menu .ctx-title { font-size: 12px; font-weight: 600; color: var(--text-3); padding: 8px 12px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.ctx-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 11px; font-size: 14px; text-align: left; transition: background .15s; }
.ctx-menu button:hover { background: rgba(255,255,255,.12); }
.ctx-menu button .ic { width: 16px; height: 16px; opacity: .8; }
.ctx-menu .sep { height: 1px; background: var(--line); margin: 5px 8px; }

/* ---------- Swipe extras ---------- */
.swipe-card .poster { cursor: grab; touch-action: none; position: relative; overflow: hidden; }
.swipe-card .poster:active { cursor: grabbing; }
.stamp { position: absolute; top: 28px; padding: 8px 16px; border-radius: 12px; font-size: 18px; font-weight: 800; letter-spacing: .02em; pointer-events: none; background: rgba(0,0,0,.45); backdrop-filter: blur(16px); border: 2px solid #fff; }
.s-right { left: 24px; opacity: var(--r, 0); transform: rotate(-8deg); }
.s-left { right: 24px; opacity: var(--l, 0); transform: rotate(8deg); }
.s-up { left: 50%; top: auto; bottom: 30px; transform: translateX(-50%); opacity: var(--u, 0); white-space: nowrap; }
.swipe-hint { text-align: center; font-size: 12.5px; color: var(--text-3); margin-top: 16px; }
.swipe-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.swipe-rate > .dim { width: 100%; }

/* ---------- Player additions ---------- */
.player.closing { animation: fadeOut .25s var(--ease) forwards; }
@keyframes fadeOut { to { opacity: 0; transform: scale(1.02); } }
.popover.closing, .p-panel.closing { animation: popOut .18s var(--ease) forwards; }
@keyframes popOut { to { opacity: 0; transform: scale(.96); } }
.popover .timing { display: flex; align-items: center; gap: 6px; padding: 10px 12px 6px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.popover .timing span { flex: 1; }
.popover .timing b { min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; }
.popover .timing .tm { width: 30px; height: 30px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 16px; font-weight: 600; }
.popover .timing .tm:hover { background: rgba(255,255,255,.18); }
.popover .timing .tm .ic { width: 14px; height: 14px; }
.p-panel { position: absolute; z-index: 6; top: 24px; right: 24px; bottom: 24px; width: min(560px, 46vw); display: flex; flex-direction: column; padding: 20px; border-radius: 28px; background: rgba(30,30,34,.72); backdrop-filter: blur(50px) saturate(180%); border: 1px solid var(--glass-border); box-shadow: 0 40px 120px rgba(0,0,0,.6); animation: slideIn .4s var(--spring); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
.p-panel .pp-head { display: flex; align-items: center; margin-bottom: 16px; }
.p-panel .pp-head > div { flex: 1; }
.p-panel .pp-head b { font-size: 19px; letter-spacing: -.02em; }
.p-panel .stream-list { overflow: auto; flex: 1; margin: 0 -6px; padding: 0 6px; }
.player:has(.p-panel) .chrome { opacity: 1 !important; }
.stream { animation: fade .45s var(--ease) both; }
.stream.current { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); }
.peers .ic { width: 12px; height: 12px; vertical-align: -1px; margin-right: 3px; }
input[type=range].volume { background: linear-gradient(90deg, #fff var(--v, 100%), rgba(255,255,255,.25) var(--v, 100%)); }
.modal-back { z-index: 700; }
.rate-pop { z-index: 750; }

/* Subtitle size and background preferences */
body[data-subsize="s"] .player .subs span { font-size: clamp(18px, 1.8vw, 32px); }
body[data-subsize="l"] .player .subs span { font-size: clamp(26px, 2.9vw, 52px); }
body[data-subsize="xl"] .player .subs span { font-size: clamp(30px, 3.5vw, 62px); }
body.subs-nobg .player .subs span { background: none; text-shadow: 0 0 6px #000, 0 2px 4px #000, 0 0 2px #000; }

/* Card size preferences */
body.compact .card.land .art { width: 250px; } body.compact .card.land .sub, body.compact .card .why { width: 250px; }
body.compact .card.poster .art, body.compact .card.poster .cap, body.compact .card.poster .sub { width: 140px; }
body.compact .grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
body.large-cards .card.land .art { width: 380px; } body.large-cards .card.land .sub, body.large-cards .card .why { width: 380px; }
body.large-cards .card.poster .art, body.large-cards .card.poster .cap, body.large-cards .card.poster .sub { width: 200px; }
body.large-cards .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid .card.poster .art, .grid .card.poster .cap, .grid .card.poster .sub { width: 100% !important; }

/* Reduce motion stops animations outright. (Shortening them instead made looping ones, like the banner's
   slow zoom, flash many times a second.) */
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation: none !important; transition: none !important; }

/* =================== Round 3: navigation, detail redesign, chips, discover =================== */

/* ---------- Back button + tooltips ---------- */
.nav-back {
  grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px 0 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(40px) saturate(180%); color: var(--text); font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 40px rgba(0,0,0,.3); opacity: 0; transform: translateX(-10px); pointer-events: none !important; transition: opacity .35s var(--ease), transform .45s var(--spring), background .25s;
}
.nav-back.show { opacity: 1; transform: none; pointer-events: auto !important; }
.nav-back:hover { background: var(--glass-hi); }
.nav-back:active { transform: scale(.95); }
#tip { position: fixed; z-index: 2000; pointer-events: none; padding: 6px 11px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: #fff; white-space: nowrap;
  background: rgba(44,44,48,.88); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(4px) scale(.96); transition: opacity .18s, transform .25s var(--spring); }
#tip.on { opacity: 1; transform: none; }

/* ---------- Chip rows: one glass strip, like the tab bar ---------- */
.chips {
  display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(40px) saturate(180%);
}
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: 0 0 auto; border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.chips button:hover { background: rgba(255,255,255,.08); color: var(--text); }
.chips button.on { background: rgba(255,255,255,.94); color: #000; }
.vibe-chips button { border-radius: 999px; }

/* Category tiles: a touch more refined */
.genre-tile { width: 240px; height: 132px; border-radius: 18px; }
.genre-tile span { font-size: 18px; left: 16px; bottom: 13px; }
.genre-tile::before { background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.7)); }

/* ---------- Detail page ---------- */
.detail-page { padding-bottom: 0 !important; }
.detail-hero.tv { min-height: 76vh; }
.detail-main { max-width: 760px; }
.action-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.action-cluster { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(40px) saturate(180%); }
.action-cluster .act { height: 38px; min-width: 38px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: var(--text-2); font-weight: 600; font-size: 14px; transition: background .25s, color .25s, transform .35s var(--spring); position: relative; overflow: hidden; }
.action-cluster .act:hover { background: rgba(255,255,255,.12); color: #fff; transform: scale(1.06); }
.action-cluster .act:active { transform: scale(.94); }
.action-cluster .act.on { color: #fff; }
.action-cluster .act .ic { width: 19px; height: 19px; }
.action-cluster .sep { width: 1px; height: 20px; background: rgba(255,255,255,.14); margin: 0 4px; }
.your-line span { display: inline-flex; align-items: center; gap: 5px; }
.scroll-hint { position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(30px); font-size: 13px; font-weight: 600; color: var(--text-2); animation: bob 2.4s ease-in-out infinite; }
.scroll-hint:hover { color: #fff; background: var(--glass-hi); }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 5px); } }

/* The sheet under the hero: dark tinted liquid glass over the artwork */
.below {
  background: rgba(8, 8, 10, .72); backdrop-filter: blur(48px) saturate(150%); -webkit-backdrop-filter: blur(48px) saturate(150%);
  border-top: 1px solid rgba(255,255,255,.07); border-radius: 34px 34px 0 0; box-shadow: 0 -30px 80px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
  padding: 40px var(--gutter) 80px; min-height: 70vh;
}
.below::before { display: none; }
.below .row { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
.about { margin-top: 10px; padding-top: 30px; border-top: 1px solid var(--line); }
.about .facts { margin-bottom: 0; }
.history { margin-bottom: 30px; }

/* Episodes */
.ep-section { margin-bottom: 30px; }
.ep-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; flex-wrap: wrap; }
.season-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border); font-weight: 600; font-size: 14px; transition: background .25s; }
.season-btn:hover { background: var(--glass-hi); }
.season-btn .ic { width: 16px; height: 16px; opacity: .7; }
.ep-progress { font-size: 13px; }
.season-menu { max-height: 60vh; overflow: auto; min-width: 220px; }
.season-menu button { justify-content: space-between; }
.season-menu button small { color: var(--text-3); font-size: 12px; }
.season-menu button.on { background: rgba(255,255,255,.14); }
.ep-shelf { margin: 0 calc(-1 * var(--gutter)); padding: 18px var(--gutter) 26px; gap: 22px; }
.ep-shelf .ep { flex: 0 0 auto; width: 340px; scroll-snap-align: start; position: relative; }
.ep .still { aspect-ratio: 16/9; }
.ep .still .soon { position: absolute; left: 12px; bottom: 10px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: rgba(0,0,0,.55); backdrop-filter: blur(10px); }
.ep.upcoming .still { filter: saturate(.4) brightness(.7); }
.ep .ep-num { font-size: 12.5px; font-weight: 600; color: var(--text-3); margin-top: 14px; }
.ep h4 { margin: 3px 0 5px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; padding-right: 70px; }
.ep p { -webkit-line-clamp: 3; }
.ep .ep-actions { position: absolute; right: 0; top: calc(340px * 9 / 16 + 10px); display: flex; gap: 2px; opacity: .5; }
.ep:hover .ep-actions { opacity: 1; }

/* ---------- Import picker ---------- */
.import-pick { margin-top: 14px; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--glass-border); animation: fade .4s var(--ease); }
.import-pick .check { margin: 8px 0; }
.import-pick .check small { color: var(--text-3); margin-left: auto; font-variant-numeric: tabular-nums; }
.import-done { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 18px; border-radius: 18px; background: rgba(52,199,89,.1); border: 1px solid rgba(52,199,89,.25); animation: pop .45s var(--spring); }
.import-done .ic { width: 22px; height: 22px; color: #34c759; }
.danger { color: #ff6b6b !important; }
.btn.danger { background: rgba(255,69,58,.14); border-color: rgba(255,69,58,.25); }
.btn.danger:hover { background: rgba(255,69,58,.24); }
.btn.danger-solid { background: #ff453a; color: #fff; border-color: transparent; }

/* ---------- Discover hub ---------- */
.discover-tabs { margin-bottom: 30px; }
.disc-hero { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 34px; }
.mode-card { position: relative; overflow: hidden; padding: 22px; border-radius: 22px; min-height: 150px; cursor: pointer; background: rgba(255,255,255,.04); border: 1px solid var(--glass-border); transition: transform .45s var(--spring), background .3s; }
.mode-card:hover { transform: scale(1.025); background: rgba(255,255,255,.08); }
.mode-card .ic { width: 26px; height: 26px; margin-bottom: 14px; }
.mode-card h4 { margin: 0 0 4px; font-size: 17px; }
.mode-card p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.tot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; max-width: 980px; margin: 10px auto 0; }
.tot .pick { cursor: pointer; text-align: center; }
.tot .pick .poster { width: 100%; max-width: 300px; aspect-ratio: 2/3; margin: 0 auto 14px; border-radius: 22px; background: #161618 center/cover; box-shadow: 0 30px 70px rgba(0,0,0,.6); transition: transform .45s var(--spring), box-shadow .4s; }
.tot .pick:hover .poster { transform: scale(1.04) translateY(-4px); box-shadow: 0 40px 90px rgba(0,0,0,.75), 0 0 0 2px rgba(255,255,255,.4); }
.tot .pick.chosen .poster { box-shadow: 0 0 0 3px #fff, 0 40px 90px rgba(0,0,0,.75); }
.tot .vs { font-size: 15px; font-weight: 700; color: var(--text-3); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-border); }
.tot .pick h3 { margin: 0; font-size: 18px; } .tot .pick .dim { font-size: 13px; }
.rank-list { counter-reset: r; }
.rank-list .rl { display: grid; grid-template-columns: 30px 36px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.rank-list .rl:hover { background: rgba(255,255,255,.06); }
.rank-list .rl b { color: var(--text-3); font-variant-numeric: tabular-nums; }
.rank-list .rl img { width: 36px; border-radius: 5px; }
.mood-grid { display: flex; flex-direction: column; gap: 18px; margin-bottom: 26px; }
.mood-grid label.lbl { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; display: block; }
.guess { max-width: 900px; margin: 0 auto; text-align: center; }
.guess .shot { aspect-ratio: 16/9; border-radius: 24px; background: #161618 center/cover; box-shadow: 0 40px 100px rgba(0,0,0,.7); margin-bottom: 24px; position: relative; overflow: hidden; transition: filter .6s; }
.guess .shot.blur { filter: blur(0); }
.guess .yr { font-size: 56px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.guess input[type=range] { width: 100%; max-width: 640px; accent-color: #fff; }
.guess .score { font-size: 14px; color: var(--text-2); margin-bottom: 18px; }
.guess .reveal { animation: pop .5s var(--spring); }
.taste-line { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; margin: 0 0 8px; max-width: 900px; }
.taste-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 30px; }
.taste-chips span { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--glass-border); font-size: 13.5px; font-weight: 600; }
.vs-row { display: grid; grid-template-columns: 50px 1fr 70px 70px; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; cursor: pointer; }
.vs-row:hover { background: rgba(255,255,255,.05); }
.vs-row img { width: 50px; border-radius: 6px; }
.vs-row .num { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }

/* Sort mode embedded in Discover */
.discover-body .page { padding: 0; animation: none; }
.discover-body .page-title { font-size: 26px; }


/* =================== Round 4: liquid glass, favorites, Discover app =================== */

/* ---------- Liquid glass: lit top edge, soft gradient, deeper shadow ---------- */
:root {
  --lg-fill: linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.05) 55%, rgba(255,255,255,.03) 100%);
  --lg-tint: rgba(38,38,44,.38);
  --lg-edge: rgba(255,255,255,.13);
  --lg-shadow: inset 0 1px 0 rgba(255,255,255,.24), inset 0 -1px 0 rgba(255,255,255,.04), inset 0 0 0 .5px rgba(255,255,255,.05), 0 12px 36px rgba(0,0,0,.32);
  --lg-blur: blur(40px) saturate(210%) brightness(1.04);
}
.pill, .nav-cluster, .nav-back, .chips, .seg, .segm, .action-cluster, .p-glass, .season-btn, .gsel, .seasons,
.btn:not(.primary):not(.ghost):not(.danger):not(.danger-solid):not(.on):not(.accent) {
  background: var(--lg-fill), var(--lg-tint);
  border: 1px solid var(--lg-edge);
  box-shadow: var(--lg-shadow);
  backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur);
}
.btn:not(.primary):not(.ghost):not(.danger):not(.danger-solid):not(.on):not(.accent):hover { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.08)), var(--lg-tint); }
.btn.primary { box-shadow: inset 0 1px 0 rgba(255,255,255,1), 0 10px 30px rgba(0,0,0,.35), 0 0 24px rgba(255,255,255,.08); }
.popover, .ctx-menu, .sheet, .rate-pop, .p-panel, .next-up, .setup-card {
  background: linear-gradient(180deg, rgba(64,64,70,.6), rgba(28,28,32,.74));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 30px 90px rgba(0,0,0,.55);
  backdrop-filter: blur(50px) saturate(200%); -webkit-backdrop-filter: blur(50px) saturate(200%);
}
.pill .indicator, .chips button.on, .seg button.on, .segm button.on { box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(0,0,0,.25); }
.panel, .tile, .list-card { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }

/* ---------- Favorites: films + shows side by side ---------- */
.fav-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 10px 40px; }
.fav-grid { gap: 16px; }
.fav-grid .card.poster .art, .fav-grid .card.poster .cap, .fav-grid .card.poster .sub { width: 132px; }

/* ---------- Shared small controls ---------- */
.segm { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; }
.segm button { padding: 7px 13px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-2); transition: background .25s, color .25s; position: relative; overflow: hidden; }
.segm button:hover { color: #fff; }
.segm button.on { background: rgba(255,255,255,.92); color: #000; }
.gsel { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px 0 14px; border-radius: 12px; font-size: 13.5px; transition: background .25s; }
.gsel .gl { color: var(--text-3); font-weight: 500; }
.gsel b { font-weight: 600; }
.gsel .ic { width: 15px; height: 15px; opacity: .6; }
.gsel-menu { max-height: 56vh; overflow: auto; }
.gsel-menu button.on { background: rgba(255,255,255,.14); }

/* ---------- Discover: sidebar app ---------- */
.disc { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 22px; height: 100vh; padding: 88px 28px 22px var(--gutter); animation: enter .4s var(--ease); }
.disc-side { align-self: start; display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-radius: 24px;
  background: var(--lg-fill), rgba(30,30,34,.4); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); }
.side-title { font-size: 22px; font-weight: 700; letter-spacing: -.03em; padding: 4px 12px 8px; }
.side-group { font-size: 11.5px; font-weight: 600; color: var(--text-3); padding: 14px 12px 6px; }
.side-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--text-2); text-align: left; transition: background .2s, color .2s; }
.side-item .ic { width: 18px; height: 18px; opacity: .85; }
.side-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-item.on { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.disc-main { overflow-y: auto; overflow-x: hidden; padding: 4px 6px 30px 4px; animation: fade .45s var(--ease); }
.disc-main .row { margin-left: 0; margin-right: 0; }
.disc-main .row h2, .disc-main .shelf { padding-left: 0; padding-right: 0; }
.d-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.d-head h1 { font-size: 34px; font-weight: 700; letter-spacing: -.035em; margin: 0 0 4px; }
.d-head p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.d-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* For You */
.tonight { position: relative; height: clamp(260px, 38vh, 380px); border-radius: 26px; overflow: hidden; margin-bottom: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); }
.tonight.swap .tn-body { animation: fade .5s var(--ease); }
.tn-bg { position: absolute; inset: 0; background: center/cover; transition: background-image .4s; animation: kenburns 30s ease-in-out infinite alternate; }
.tonight::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.35) 55%, rgba(0,0,0,0)); }
.tn-body { position: absolute; z-index: 1; left: 34px; bottom: 30px; max-width: 520px; }
.tn-logo img { max-width: 320px; max-height: 96px; object-fit: contain; object-position: left bottom; margin: 8px 0 10px; display: block; }
.tn-logo h2 { font-size: 36px; margin: 6px 0 8px; letter-spacing: -.03em; }
.tn-body p { color: rgba(255,255,255,.78); font-size: 14.5px; line-height: 1.5; margin: 10px 0 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.d-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 30px; }
.d-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: 18px; text-align: left; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .4s var(--spring), background .3s; animation: fade .5s var(--ease) both; }
.d-tile:hover { transform: translateY(-3px) scale(1.02); background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); }
.d-tile .ti, .game .ti { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.1); margin-bottom: 8px; }
.d-tile .ti .ic, .game .ti .ic { width: 18px; height: 18px; }
.d-tile b { font-size: 15px; } .d-tile small { color: var(--text-3); font-size: 12.5px; line-height: 1.35; }

/* Mood */
.mood { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 26px; align-items: start; }
.mood-opts { display: flex; flex-direction: column; gap: 18px; padding: 20px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--glass-border); position: sticky; top: 0; }
.mfield label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-3); margin-bottom: 8px; }
.mrow { display: flex; gap: 8px; flex-wrap: wrap; }
.vibes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vibe { position: relative; overflow: hidden; padding: 12px 8px; border-radius: 12px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.85);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 45%, transparent), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.08); transition: transform .3s var(--spring), box-shadow .3s; }
.vibe:hover { transform: scale(1.04); }
.vibe.on { box-shadow: 0 0 0 2px #fff, 0 8px 24px color-mix(in srgb, var(--c) 50%, transparent); color: #fff; }
.mood .segm { flex-wrap: wrap; }
.res-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.top3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.pick3 { position: relative; height: 230px; border-radius: 20px; overflow: hidden; cursor: pointer; box-shadow: 0 20px 50px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08); animation: fade .5s var(--ease) both; transition: transform .45s var(--spring); }
.pick3:hover { transform: scale(1.025); }
.p3-bg { position: absolute; inset: 0; background: center/cover; transition: transform .8s var(--ease); }
.pick3:hover .p3-bg { transform: scale(1.06); }
.pick3::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.88), rgba(0,0,0,.1) 70%); }
.p3-body { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; }
.p3-body h3 { margin: 4px 0 2px; font-size: 19px; letter-spacing: -.02em; }
.p3-body .btns { margin-top: 12px; }
.res-sub { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 12px; }
.mini-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important; gap: 20px 16px; }

/* Roulette */
.roulette { display: flex; flex-direction: column; gap: 22px; }
.reel { position: relative; height: clamp(220px, 34vh, 300px); border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--glass-border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.reel-track { position: absolute; top: 50%; left: 0; display: flex; gap: 16px; transform: translateX(0); margin-top: calc(clamp(220px, 34vh, 300px) * -.36); will-change: transform; }
.reel-item { flex: 0 0 auto; height: calc(clamp(220px, 34vh, 300px) * .72); aspect-ratio: 2/3; border-radius: 14px; background: #161618 center/cover; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .5s var(--spring), box-shadow .5s; }
.reel-item.winner { transform: scale(1.12); box-shadow: 0 0 0 3px #fff, 0 20px 60px rgba(255,255,255,.18); }
.reel-frame { position: absolute; left: 50%; top: 8%; bottom: 8%; width: 2px; transform: translateX(-1px); background: linear-gradient(180deg, transparent, rgba(255,255,255,.6), transparent); }
.rou-card { position: relative; height: clamp(200px, 28vh, 260px); border-radius: 26px; overflow: hidden; animation: pop .55s var(--spring); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.rc-bg { position: absolute; inset: 0; background: center/cover; }
.rou-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.2)); }
.rc-body { position: absolute; z-index: 1; left: 30px; bottom: 26px; }
.rc-body h2 { margin: 6px 0 4px; font-size: 32px; letter-spacing: -.03em; }
.rc-body .btns { margin-top: 16px; }

/* Challenges */
.ch { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.ch-list { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; }
.ch-item { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; text-align: left; transition: background .2s; }
.ch-item > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.ch-item b { font-size: 14px; font-weight: 600; }
.ch-item small { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ch-item:hover { background: rgba(255,255,255,.06); }
.ch-item.on { background: rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.ch-item .bar, .qr-goal .bar, .conf .bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.ch-item .bar i, .qr-goal .bar i, .conf .bar i { display: block; height: 100%; background: #fff; border-radius: 2px; transition: width .6s var(--ease); }
.ch-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.ch-head h2 { margin: 0 0 3px; font-size: 26px; letter-spacing: -.03em; }
.ch-score b { font-size: 40px; font-weight: 800; letter-spacing: -.04em; } .ch-score span { color: var(--text-3); font-size: 18px; font-weight: 600; }
.ch-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 16px; }
.ch-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,.7), #fff); box-shadow: 0 0 16px rgba(255,255,255,.5); transition: width .8s var(--ease); }
.ch-tools { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-size: 13px; }
.ch-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)) !important; gap: 22px 16px; }
.card.is-seen .art { opacity: .38; filter: saturate(.3); }
.card.is-seen:hover .art { opacity: .8; }
.ch-toggle { position: absolute; top: 6px; right: 6px; z-index: 3; background: rgba(0,0,0,.55); backdrop-filter: blur(12px); color: #fff; opacity: 0; }
.card:hover .ch-toggle, .card.is-seen .ch-toggle { opacity: 1; }
.card.is-seen .ch-toggle { background: #fff; color: #000; }

/* Quick Rate */
.qr-slot { height: calc(100vh - 230px); min-height: 440px; }
.qr { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(250px, 300px); align-items: center; gap: 40px; height: 100%; }
.qr-info { justify-self: end; max-width: 360px; text-align: right; animation: fade .45s var(--ease); }
.qr-info h2 { font-size: 32px; font-weight: 700; letter-spacing: -.035em; margin: 6px 0 4px; line-height: 1.05; }
.qr-info p { color: var(--text-2); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.qr-card { position: relative; }
.qr-card .poster { height: min(calc(100vh - 250px), 620px); aspect-ratio: 2/3; border-radius: 24px; background: #161618 center/cover; cursor: grab; touch-action: none; position: relative; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); transition: transform .5s var(--spring), opacity .4s var(--ease); animation: cardIn .55s var(--spring); }
.qr-card.out-left .poster { transform: translateX(-120%) rotate(-14deg); opacity: 0; }
.qr-card.out-right .poster { transform: translateX(120%) rotate(14deg); opacity: 0; }
.qr-card.out-up .poster { transform: translateY(-110%) scale(.85); opacity: 0; }
.qr-card.out-down .poster { transform: translateY(50%) scale(.85); opacity: 0; }
.qr-side { display: flex; flex-direction: column; gap: 16px; }
.qr-actions { display: flex; flex-direction: column; gap: 8px; }
.qr-actions .btn { justify-content: flex-start; width: 100%; }
.qr-actions .btn kbd, .undo kbd { margin-left: auto; }
.qr-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px; border-radius: 20px; background: var(--lg-fill), var(--lg-tint); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); animation: pop .35s var(--spring); }
.qr-rate > .dim { width: 100%; }
.qr-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.qr-stats div { padding: 10px 4px; border-radius: 12px; background: rgba(255,255,255,.04); text-align: center; }
.qr-stats b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.qr-stats span { font-size: 11px; color: var(--text-3); }
.qr-goal span { display: block; font-size: 12px; color: var(--text-3); margin-top: 6px; }
.undo { align-self: flex-start; }

/* Rank */
.rank { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; height: calc(100vh - 300px); min-height: 380px; }
.rank-stage { display: flex; flex-direction: column; justify-content: center; }
.rank .tot { display: flex; align-items: center; justify-content: center; gap: 34px; max-width: none; margin: 0; }
.rank .tot .pick { max-width: 320px; }
.rank .tot .pick .poster { height: min(calc(100vh - 480px), 500px); width: auto; max-width: none; aspect-ratio: 2/3; }
.rank .tot .vs { flex: 0 0 auto; }
.rank-foot { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 18px; font-size: 13px; }
.rank-side { display: flex; flex-direction: column; gap: 14px; overflow: auto; padding: 16px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--glass-border); }
.conf-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.conf-top span { font-variant-numeric: tabular-nums; color: var(--text-2); }
.rank-list .rl { grid-template-columns: 24px 34px 1fr auto; }
.rank-list .rl .t { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.rank-list .rl .t small { display: block; color: var(--text-3); font-weight: 500; }
.rank-list em { font-style: normal; font-size: 11px; font-weight: 700; }
.rank-list em.up { color: #34c759; } .rank-list em.dn { color: #ff6b6b; }

/* Trivia */
.trivia { max-width: 1000px; margin: 0 auto; }
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.game { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 22px; border-radius: 22px; text-align: left; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--glass-border); transition: transform .4s var(--spring), background .3s, box-shadow .3s; }
.game:hover { transform: translateY(-2px); background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); }
.game.on { box-shadow: 0 0 0 2px #fff, 0 20px 50px rgba(0,0,0,.4); }
.game b { font-size: 18px; } .game small { color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.t-opts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 22px 0; }
.t-start { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.big-btn { height: 54px; padding: 0 40px; font-size: 17px; border-radius: 16px; }
.hud { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hud .s { font-size: 18px; } .hud .r, .hud .k { color: var(--text-2); font-size: 14px; } .hud .k { display: inline-flex; align-items: center; gap: 4px; }
.hud .q { margin-left: auto; }
.t-frame { position: relative; border-radius: 22px; overflow: hidden; height: min(calc(100vh - 500px), 470px); min-height: 200px; box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); background: #111; }
.t-frame .shot { position: absolute; inset: -4%; background: center/cover; }
.timer { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.12); }
.timer i { display: block; height: 100%; width: 0; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.6); }
.t-panel { margin-top: 16px; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ans { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: 15px; font-weight: 600; text-align: left; background: var(--lg-fill), var(--lg-tint); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); transition: transform .3s var(--spring), background .2s; }
.ans:hover:not(:disabled) { transform: scale(1.02); background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.07)), var(--lg-tint); }
.ans.right { background: rgba(52,199,89,.28); border-color: rgba(52,199,89,.6); }
.ans.wrong { background: rgba(255,69,58,.25); border-color: rgba(255,69,58,.55); }
.ans:disabled { cursor: default; }
.year-pick { display: flex; align-items: center; gap: 20px; }
.year-pick .yr { font-size: 44px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; min-width: 120px; }
.year-pick input { flex: 1; accent-color: #fff; }
.t-reveal { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--glass-border); animation: pop .4s var(--spring); }
.t-reveal h3 { margin: 4px 0 0; font-size: 18px; }
.t-end { text-align: center; padding-top: 10px; }
.t-end h2 { font-size: 52px; letter-spacing: -.04em; margin: 6px 0 2px; }
.t-log { max-width: 560px; margin: 20px auto 0; text-align: left; }
.tl { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.tl:hover { background: rgba(255,255,255,.05); }
.tl img { width: 36px; border-radius: 5px; }
.tl small { display: block; color: var(--text-3); }
.tl .ok, .tl .no { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tl .ok { color: #34c759; } .tl .no { color: #ff6b6b; }
.tl .ic { width: 14px; height: 14px; }

/* Taste */
.tp-head { margin-bottom: 18px; }
.tp-grid { gap: 0 18px; }

/* Roulette pointer: small notches above and below the winning slot */
.reel-frame { top: 0; bottom: 0; width: 0; background: none; transform: none; }
.reel-frame::before, .reel-frame::after { content: ""; position: absolute; left: -9px; border-left: 9px solid transparent; border-right: 9px solid transparent; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.reel-frame::before { top: 6px; border-top: 11px solid #fff; }
.reel-frame::after { bottom: 6px; border-bottom: 11px solid #fff; }
/* Mood options sit on one line each */
.mood .segm { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
.mood .segm button { padding: 7px 4px; }
.mood .mrow .segm { width: auto; }
/* =================== Round 5: shelves, feedback, people, collections, search, year in review =================== */

/* Shelf arrows: appear on hover only when there's more to see */
.shelf-host { position: relative; }
.sh-arrow { position: absolute; z-index: 8; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--lg-fill), rgba(30,30,34,.55); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--spring); }
.sh-arrow .ic { width: 20px; height: 20px; }
.sh-arrow.prev { left: 14px; }
.sh-arrow.next { right: 14px; }
.sh-arrow.next .ic { transform: rotate(180deg); }
.shelf-host:hover .sh-arrow.show { opacity: 1; pointer-events: auto; }
.sh-arrow:hover { transform: scale(1.1); }
.sh-arrow:active { transform: scale(.94); }
.below .sh-arrow.prev, .disc-main .sh-arrow.prev { left: 4px; }
.below .sh-arrow.next, .disc-main .sh-arrow.next { right: 4px; }
.shelf { cursor: grab; }
.shelf.dragging-shelf { cursor: grabbing; scroll-behavior: auto; }
.shelf.dragging-shelf .card { pointer-events: none; }

/* Recommendation feedback */
.card .fb { position: absolute; z-index: 4; top: 10px; right: 10px; display: flex; gap: 4px; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .35s var(--spring); }
.card:hover .fb { opacity: 1; transform: none; }
.card .fb .mini { width: 32px; height: 32px; color: #fff; background: rgba(20,20,24,.6); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.12); }
.card .fb .mini.on { background: #fff; color: #000; }
.card .fb .ic { width: 15px; height: 15px; }
.card.dismissed { animation: dismiss .35s var(--ease) forwards; }
@keyframes dismiss { to { opacity: 0; transform: scale(.9); width: 0; margin: 0; } }

/* People */
.person[data-pid] { cursor: pointer; }
.person-page .ph { display: grid; grid-template-columns: 230px 1fr; gap: 36px; align-items: start; margin-bottom: 30px; }
.ph-face { width: 230px; aspect-ratio: 2/3; border-radius: 24px; background: #161618 center/cover; box-shadow: 0 30px 70px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08); }
.ph-body h1 { font-size: 46px; font-weight: 700; letter-spacing: -.04em; margin: 4px 0 6px; }
.bio { color: rgba(255,255,255,.78); line-height: 1.6; font-size: 15px; max-width: 760px; margin: 16px 0 4px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bio.open { -webkit-line-clamp: unset; display: block; }
.ph-stats { display: flex; gap: 12px; margin: 18px 0 14px; flex-wrap: wrap; }
.ph-stats div { padding: 12px 18px; border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); border: 1px solid var(--glass-border); }
.ph-stats b { display: block; font-size: 22px; letter-spacing: -.02em; }
.ph-stats span { font-size: 12.5px; color: var(--text-3); }
.ph-tools { margin-bottom: 22px; }
.seen-badge { position: absolute; top: 8px; right: 8px; z-index: 3; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #000; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.seen-badge .ic { width: 14px; height: 14px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 26px 16px; }
.people-grid .person { width: auto; }

/* Collections */
.collection .col-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.card.current-part .art { box-shadow: 0 0 0 2px #fff, 0 20px 40px rgba(0,0,0,.5); }

/* Search filters + recent */
.search-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: -14px 0 26px; }
.recent { margin-bottom: 26px; }
.recent .row-title .btn { margin-left: auto; }
.recent-list { display: flex; gap: 8px; flex-wrap: wrap; }
.recent-chip { display: inline-flex; align-items: center; border-radius: 999px; background: var(--lg-fill), var(--lg-tint); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); overflow: hidden; }
.recent-chip button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 6px 8px 14px; font-size: 13.5px; font-weight: 500; color: var(--text); }
.recent-chip .rm { padding: 8px 12px 8px 4px; color: var(--text-3); }
.recent-chip .rm:hover { color: #fff; }
.recent-chip .ic { width: 14px; height: 14px; opacity: .6; }

/* Year in Review */
.review-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; margin-bottom: 20px; border-radius: 24px; cursor: pointer;
  background: radial-gradient(120% 140% at 0% 0%, rgba(127,90,240,.35), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(233,64,87,.3), transparent 55%), rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); transition: transform .45s var(--spring); }
.review-banner:hover { transform: scale(1.01); }
.review-banner b { display: block; font-size: 22px; letter-spacing: -.02em; margin: 2px 0; }
.review-banner span { font-size: 13.5px; }
.wrapped { padding: 96px var(--gutter) 80px; max-width: 1100px; margin: 0 auto; animation: enter .5s var(--ease); }
.wr-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.wr-years { display: flex; gap: 6px; }
.wr-years button { padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--text-2); background: rgba(255,255,255,.05); border: 1px solid var(--glass-border); }
.wr-years button.on { background: #fff; color: #000; }
.wr-body { display: flex; flex-direction: column; gap: 18px; }
.wr-card { position: relative; overflow: hidden; padding: 40px 44px; border-radius: 32px; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); animation: fade .7s var(--ease) both; }
.wr-card:nth-child(2) { animation-delay: .1s; } .wr-card:nth-child(3) { animation-delay: .2s; } .wr-card:nth-child(4) { animation-delay: .3s; }
.wr-card h1 { font-size: 40px; margin: 0; } .wr-card h2 { font-size: 34px; letter-spacing: -.03em; margin: 6px 0 8px; }
.wr-card h2 em { font-style: normal; background: linear-gradient(90deg, #fff, #c9b8ff); -webkit-background-clip: text; color: transparent; }
.hero-card { min-height: 360px; display: flex; align-items: flex-end; }
.wr-bg { position: absolute; inset: 0; background: center/cover; opacity: .55; animation: kenburns 30s ease-in-out infinite alternate; }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,.25)); }
.wr-in { position: relative; z-index: 1; }
.wr-big { font-size: 110px !important; font-weight: 800; letter-spacing: -.06em; line-height: .9; margin: 6px 0 !important; }
.wr-lead { font-size: 18px; color: rgba(255,255,255,.8); margin: 4px 0 0; }
.wr-stats, .wr-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.wr-stats div, .wr-facts div { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.07); backdrop-filter: blur(20px); }
.wr-stats b, .wr-facts b { display: block; font-size: 30px; letter-spacing: -.03em; }
.wr-stats span, .wr-facts span { font-size: 13px; color: var(--text-2); }
.wr-top5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 22px; }
.wr-poster { position: relative; cursor: pointer; animation: fade .6s var(--ease) both; }
.wr-poster .art { aspect-ratio: 2/3; border-radius: 16px; background: #161618 center/cover; box-shadow: 0 20px 50px rgba(0,0,0,.5); transition: transform .45s var(--spring); }
.wr-poster:hover .art { transform: translateY(-4px) scale(1.03); }
.wr-poster .rank { position: absolute; z-index: 2; top: -12px; left: -8px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #000; font-weight: 800; }
.wr-poster b { display: block; font-size: 14px; margin-top: 10px; } .wr-poster small { color: var(--text-3); }
.wr-bars { margin-top: 20px; max-width: 640px; }
.wr-months { height: 170px; margin-top: 16px; }
.wr-person { display: flex; align-items: center; gap: 26px; cursor: pointer; }
.wr-person .face { width: 130px; height: 130px; border-radius: 50%; background: #222 center/cover; box-shadow: 0 20px 50px rgba(0,0,0,.5); flex: 0 0 auto; }

/* =================== Round 6: art fade-in, skeletons, player extras, why-popover, season ratings, accents =================== */

/* Artwork fades in over a shimmer (no pop-in, no jumps) */
.card .art .img { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transition: opacity .5s var(--ease); border-radius: inherit; }
.card .art .img.ready { opacity: 1; }
.card .art.loading { background: linear-gradient(90deg, #121214 0%, #1c1c1f 50%, #121214 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.sk-line { height: 11px; width: 60% !important; margin-top: 12px; border-radius: 6px; background: rgba(255,255,255,.06); }
.hero-skel { background: linear-gradient(110deg, #0c0c0e 30%, #17171a 50%, #0c0c0e 70%); background-size: 200% 100%; animation: shimmer 1.8s infinite; }
.hero-skel .hs-lines { position: absolute; left: var(--gutter); bottom: 190px; display: flex; flex-direction: column; gap: 14px; }
.hero-skel .hs-lines i { display: block; height: 18px; width: 420px; border-radius: 9px; background: rgba(255,255,255,.06); }
.hero-skel .hs-lines i:first-child { height: 56px; width: 340px; border-radius: 14px; }
.hero-skel .hs-lines i:last-child { width: 260px; }

/* Player extras */
.p-float { position: absolute; right: 0; bottom: calc(100% + 18px); display: flex; gap: 10px; }
.p-float .btn { height: 44px; border-radius: 14px; animation: pop .35s var(--spring); }
.pill-row { display: flex; gap: 4px; padding: 2px 8px 8px; flex-wrap: wrap; }
.pill-row button { width: auto !important; padding: 6px 11px !important; border-radius: 9px !important; font-size: 12.5px !important; background: rgba(255,255,255,.07); }
.pill-row button.on { background: #fff !important; color: #000; }
.pill-row button.on::after { display: none; }
.player.pip-hidden { opacity: 0; pointer-events: none; visibility: hidden; }
.pip-pill { position: fixed; z-index: 650; left: 50%; bottom: 26px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--lg-fill), rgba(30,30,34,.7); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); animation: pop .4s var(--spring); }
.pip-pill .ic { width: 16px; height: 16px; }

/* Why this pick */
.why-menu { width: 330px; }
.why-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; }
.why-row img { width: 36px; border-radius: 5px; }
.why-row b { display: block; font-size: 13.5px; } .why-row small { color: var(--text-3); font-size: 12px; }
.why-row.off { opacity: .45; }

/* Season rating */
.season-rate { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-2);
  background: var(--lg-fill), var(--lg-tint); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); transition: color .2s; }
.season-rate:hover, .season-rate.on { color: #fff; }
.season-rate .ic { width: 16px; height: 16px; }
.season-rate small { color: var(--text-3); font-weight: 500; margin-left: 4px; }

/* ---------- Accent tints (subtle color on highlights only) ---------- */
:root { --acc: #ffffff; --acc-on: #34c759; }
body[data-accent="ice"] { --acc: #7cc6ff; --acc-on: #4aa8ff; }
body[data-accent="mint"] { --acc: #6fe3b4; --acc-on: #2fc98a; }
body[data-accent="lavender"] { --acc: #b9a4ff; --acc-on: #8f72ff; }
body[data-accent="sunset"] { --acc: #ffad6b; --acc-on: #ff8a3d; }
body[data-accent="rose"] { --acc: #ff8fb1; --acc-on: #ff5c8d; }
body[data-accent="gold"] { --acc: #f4cf6a; --acc-on: #e0b23a; }
.stars .s .fill, .scrub .cur, .card .progress i, .ep .still .progress i, .ch-bar i, .ch-item .bar i, .qr-goal .bar i, .conf .bar i, .timer i, .progress-line i { background-color: var(--acc); color: var(--acc); }
.stars .s .fill { background: none; }
.scrub .knob, .seen-badge, .card.is-seen .ch-toggle { background: var(--acc); }
.check input:checked { background: var(--acc-on); }
.side-item.on { box-shadow: inset 3px 0 0 var(--acc), inset 0 1px 0 rgba(255,255,255,.1); }
.hero-dots span.on, .steps i.on { background: var(--acc); }
body:not([data-accent="mono"]) .hero-eyebrow { border-color: color-mix(in srgb, var(--acc) 45%, transparent); color: var(--acc); }
body:not([data-accent="mono"]) .rating-text .ic, body:not([data-accent="mono"]) .your-line .ic { color: var(--acc); }
.accent-preview { display: flex; align-items: center; gap: 14px; margin: 4px 0 6px; font-size: 13px; color: var(--text-2); }
.accent-preview .bar { width: 160px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.accent-preview .bar i { display: block; width: 62%; height: 100%; background: var(--acc); }
.accent-preview .stars-prev { color: var(--acc); letter-spacing: 2px; }
.accent-preview .tick .ic { color: var(--acc-on); width: 20px; height: 20px; }

/* =================== Diary calendar =================== */
.cal { padding: 22px; border-radius: 26px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-nav h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; min-width: 190px; text-align: center; }
.cal-nav .next .ic { transform: rotate(180deg); }
.cal-stats { display: flex; gap: 18px; color: var(--text-2); font-size: 13.5px; }
.cal-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-dow { font-size: 12px; font-weight: 600; color: var(--text-3); padding: 0 6px 4px; }
.cal-day { position: relative; height: clamp(86px, 11.5vh, 124px); border-radius: 16px; padding: 8px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.04); display: flex; flex-direction: column; cursor: pointer; transition: background .2s, transform .35s var(--spring), border-color .2s; overflow: hidden; }
.cal-day:hover { background: rgba(255,255,255,.07); transform: scale(1.03); }
.cal-day.blank { background: none; border: 0; cursor: default; }
.cal-day.blank:hover { transform: none; }
.cal-day.future { opacity: .35; cursor: default; }
.cal-day.future:hover { transform: none; background: rgba(255,255,255,.025); }
.cal-day.today { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc) inset; }
.cal-day .num { font-size: 13px; font-weight: 600; color: var(--text-3); }
.cal-day.has .num { color: var(--text); }
.cal-day .stack { position: relative; flex: 1; margin-top: 4px; }
.cal-day .cp { position: absolute; top: 0; left: calc(var(--i) * 22%); height: 100%; aspect-ratio: 2/3; border-radius: 7px; background: #1c1c1e center/cover; box-shadow: 4px 0 12px rgba(0,0,0,.55); z-index: calc(5 - var(--i)); transition: transform .35s var(--spring); }
.cal-day:hover .cp { transform: translateX(calc(var(--i) * 6px)); }
.cal-day .cp em { position: absolute; right: 3px; bottom: 3px; font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 5px; border-radius: 6px; background: rgba(0,0,0,.7); }
.cal-day .cal-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; min-height: 14px; font-size: 11.5px; }
.cal-day .cal-meta .r { color: var(--acc); font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-day .cal-meta .more { color: var(--text-3); font-weight: 600; }
.day-list { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow: auto; }
.day-row { display: grid; grid-template-columns: 40px 1fr auto 34px; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 14px; cursor: pointer; transition: background .2s; }
.day-row:hover { background: rgba(255,255,255,.06); }
.day-row img { width: 40px; border-radius: 6px; }
.day-row .marks { display: flex; gap: 10px; align-items: center; color: var(--text-2); }
.day-row .marks .ic { width: 15px; height: 15px; }
/* ---------- v1.3: log bar, ratings card, after-watch sheet, activity feed, hide watched ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); cursor: pointer; position: relative; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .35s var(--spring); }
.chip:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-1px); }
.chip:active { transform: scale(.95); }
.chip.on { color: #fff; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.18); }
body:not([data-accent="mono"]) .chip.on .ic { color: var(--acc); }
.chip .ic { width: 14px; height: 14px; }

.detail-panels { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 18px; margin: 0 0 38px; align-items: stretch; }
@media (max-width: 1100px) { .detail-panels { grid-template-columns: 1fr; } }
.log-bar, .ratings-card { border-radius: 26px; padding: 18px 22px; background: var(--lg-fill), rgba(30,30,34,.55); border: 1px solid var(--lg-edge);
  box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); animation: rise .5s var(--spring) both; }
.ratings-card { animation-delay: 60ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.log-bar { display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 10px 12px; min-height: 92px; }
.log-bar .lb-label { display: flex; flex-direction: column; gap: 3px; margin-right: 6px; min-width: 120px; }
.log-bar .lb-hint { font-size: 12.5px; color: var(--text-3); }
.log-bar .lb-date input { position: absolute; inset: 0; opacity: 0; pointer-events: none; width: 100%; }
.log-bar .lb-stars { display: flex; align-items: center; padding: 0 4px; }
.log-bar .like-toggle { width: 38px; height: 38px; }
.log-bar .like-toggle .ic { width: 20px; height: 20px; }
.log-bar .act { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); transition: background .25s, color .25s, transform .35s var(--spring); }
.log-bar .act:hover, .log-bar .act.on { background: rgba(255,255,255,.12); color: #fff; }
.log-bar .act .ic { width: 17px; height: 17px; }
.log-bar .lb-go { margin-left: auto; }
.log-bar .lb-review, .aw-review { flex: 1 0 100%; display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s var(--spring), opacity .25s, margin .3s; }
.log-bar .lb-review > *, .aw-review > * { min-height: 0; overflow: hidden; }
.log-bar .lb-review.collapsed, .aw-review.collapsed { grid-template-rows: 0fr; opacity: 0; margin: -10px 0 0; }
.log-bar .lb-review textarea, .aw-review textarea { min-height: 84px; resize: vertical; }
.log-bar.done { animation: none; }
.log-bar .lb-ok { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(52,199,89,.16); color: #34c759; animation: pop .45s var(--spring); }
body:not([data-accent="mono"]) .log-bar .lb-ok { background: color-mix(in srgb, var(--acc) 18%, transparent); color: var(--acc); }
.log-bar .lb-ok .ic { width: 24px; height: 24px; }
.log-bar .lb-msg { display: flex; flex-direction: column; gap: 3px; margin-right: auto; animation: rise .4s var(--spring) both; }
.log-bar .lb-msg span { font-size: 13px; color: var(--text-2); }

.ratings-card .rc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ratings-card .rc-verdict { font-size: 13px; color: var(--text-2); font-weight: 600; text-align: right; }
.rc-rows { display: grid; gap: 9px; }
.rc-row { display: grid; grid-template-columns: 92px 1fr 52px; grid-template-areas: "l t v" ". s s"; align-items: center; column-gap: 12px; }
.rc-label { grid-area: l; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-track { grid-area: t; height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.rc-track i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: rgba(255,255,255,.55); transform-origin: left; transition: width .6s var(--spring); }
.ratings-card.anim .rc-track i { animation: grow .9s var(--spring) both; }
@keyframes grow { from { transform: scaleX(0); } }
.rc-row.imdb .rc-track i { background: #f5c518; }
.rc-row.tmdb .rc-track i { background: #01b4e4; }
.rc-row.you .rc-track i { background: #fff; }
body:not([data-accent="mono"]) .rc-row.you .rc-track i { background: var(--acc); }
.rc-row.genre .rc-track i { background: rgba(255,255,255,.3); }
.rc-val { grid-area: v; font-weight: 700; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.rc-val .sk-line { display: inline-block; width: 34px !important; height: 10px; margin: 0; }
.rc-sub { grid-area: s; font-size: 11.5px; color: var(--text-3); margin-top: -4px; }
.rc-sub:empty { display: none; }
.rc-row.loading .rc-track { background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.12), rgba(255,255,255,.05)); background-size: 200% 100%; animation: shimmerX 1.2s linear infinite; }
@keyframes shimmerX { to { background-position: -200% 0; } }

/* After-watch sheet */
.sheet.aw-sheet { padding: 0; overflow: hidden; width: min(560px, 92vw); }
.aw { position: relative; }
.aw-art { position: absolute; inset: 0 0 auto 0; height: 190px; background-size: cover; background-position: center 30%; opacity: .55;
  -webkit-mask-image: linear-gradient(#000 20%, transparent); mask-image: linear-gradient(#000 20%, transparent); }
.aw-body { position: relative; display: flex; gap: 18px; align-items: flex-end; padding: 70px 26px 6px; }
.aw-poster { width: 92px; aspect-ratio: 2/3; border-radius: 12px; object-fit: cover; box-shadow: 0 18px 40px rgba(0,0,0,.6); animation: pop .5s var(--spring); }
.aw-info { flex: 1; min-width: 0; }
.aw-info h3 { font-size: 24px; margin: 4px 0 10px; }
.aw-done { display: flex; align-items: center; gap: 6px; color: #34c759; }
body:not([data-accent="mono"]) .aw-done { color: var(--acc); }
.aw-done .ic { width: 15px; height: 15px; }
.aw-chips { display: flex; gap: 8px; }
.aw-body .close { position: absolute; top: 16px; right: 16px; }
.aw-rate { display: flex; align-items: center; gap: 10px; padding: 18px 26px 14px; }
.aw-rate .rt { margin-left: auto; color: var(--text-2); }
.aw-review { padding: 0 26px; }
.aw-foot { display: flex; align-items: center; gap: 8px; padding: 16px 26px 22px; }

/* Activity feed */
.act-feed { display: grid; gap: 26px; margin-top: 8px; }
.act-day h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 0 0 10px 6px; }
.act-group { border-radius: 22px; overflow: hidden; background: var(--lg-fill), rgba(30,30,34,.5); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); }
.act-row { display: grid; grid-template-columns: 38px 30px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer;
  transition: background .2s, opacity .25s, transform .25s; animation: rise .45s var(--spring) both; }
.act-row + .act-row { border-top: 1px solid rgba(255,255,255,.05); }
.act-row:hover { background: rgba(255,255,255,.05); }
.act-row img { width: 38px; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; background: rgba(255,255,255,.06); }
.act-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--text-2); }
.act-ico .ic { width: 15px; height: 15px; }
.act-row.k-rate .act-ico, .act-row.k-log .act-ico { color: #ffd60a; }
.act-row.k-like .act-ico { color: #ff375f; }
.act-row.k-watchlist .act-ico { color: #64d2ff; }
.act-row.k-watched .act-ico { color: #34c759; }
.act-text { font-size: 14.5px; color: var(--text-2); min-width: 0; }
.act-text b { color: var(--text); font-weight: 600; }
.act-text small { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.act-text .rating-text { font-size: 13px; margin-left: 4px; }
.act-btns { display: flex; gap: 6px; opacity: .0; transition: opacity .2s; }
.act-row:hover .act-btns, .act-btns:has(.stars-btn) { opacity: 1; }
.act-row.undone { opacity: .45; }
.act-row.undone .act-text b { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.35); }
.act-row.undoing { opacity: 0; transform: translateX(-12px); }


/* ---------- v1.4: Complete your profile, Taste Profile lists ---------- */
.profile-nudge { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 999px; text-align: left; color: var(--text);
  background: var(--lg-fill), rgba(30,30,34,.55); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur);
  transition: transform .35s var(--spring), background .25s; animation: rise .5s var(--spring) both; }
.profile-nudge:hover { transform: translateY(-2px) scale(1.01); background: var(--lg-fill), rgba(50,50,56,.6); }
.profile-nudge:active { transform: scale(.98); }
.profile-nudge > .ic { width: 16px; height: 16px; opacity: .5; margin-left: 4px; }
.pn-ring { --p: 0; position: relative; width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.pn-ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.12) 0);
  -webkit-mask: radial-gradient(circle, transparent 18px, #000 19px); mask: radial-gradient(circle, transparent 18px, #000 19px); }
body:not([data-accent="mono"]) .pn-ring::before { background: conic-gradient(var(--acc) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); }
.profile-nudge { position: relative; }
.pn-txt { display: flex; flex-direction: column; gap: 2px; }
.pn-txt b { font-size: 14.5px; }
.pn-txt small { font-size: 12.5px; color: var(--text-2); }
.page-head .nudge-slot { margin-left: auto; align-self: center; }
.settings-nudge { margin: -8px 0 22px; }
.settings-nudge .profile-nudge { width: 100%; border-radius: 22px; }

.complete-page .cp-head { display: flex; align-items: center; gap: 30px; margin-bottom: 28px; }
.cp-ring { position: relative; width: 132px; height: 132px; flex: 0 0 auto; }
.cp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cp-ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.cp-ring .trk { stroke: rgba(255,255,255,.08); }
.cp-ring .val { stroke: #fff; transition: stroke-dashoffset 1.1s var(--spring); }
body:not([data-accent="mono"]) .cp-ring .val { stroke: var(--acc); }
.cp-pct { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.cp-pct b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.cp-pct span { font-size: 12px; color: var(--text-3); }
.cp-intro p { max-width: 560px; }
.cp-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.cp-tab { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--text-2);
  background: var(--lg-fill), rgba(30,30,34,.5); border: 1px solid var(--lg-edge); backdrop-filter: var(--lg-blur); transition: background .25s, color .25s, transform .35s var(--spring); }
.cp-tab:hover { color: #fff; transform: translateY(-1px); }
.cp-tab.on { background: #fff; color: #000; }
.cp-tab .ic { width: 15px; height: 15px; }
.cp-tab i { font-style: normal; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; font-size: 12.5px; background: rgba(255,255,255,.1); }
.cp-tab.on i { background: rgba(0,0,0,.1); }
.cp-tab.clear i { color: #34c759; }
.cp-tab.clear i .ic { width: 13px; height: 13px; }
.cp-desc { font-size: 13.5px; margin: 0 0 18px 4px; }
.cp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); gap: 10px; }
.cp-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 34px; align-items: center; gap: 14px; padding: 10px 10px 10px 12px; border-radius: 18px;
  background: var(--lg-fill), rgba(30,30,34,.45); border: 1px solid var(--lg-edge); animation: rise .45s var(--spring) both;
  transition: opacity .3s, transform .3s var(--spring), max-height .3s, padding .3s, margin .3s; max-height: 140px; }
.cp-row img { width: 48px; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; cursor: pointer; background: rgba(255,255,255,.06); }
.cp-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cp-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cp-info b:hover { text-decoration: underline; text-underline-offset: 3px; }
.cp-info span { font-size: 12.5px; color: var(--text-3); }
.cp-ctl { display: flex; align-items: center; gap: 6px; }
.cp-ctl .like-toggle { width: 36px; height: 36px; }
.cp-ctl .like-toggle .ic { width: 19px; height: 19px; }
.cp-skip { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); transition: background .2s, color .2s; }
.cp-skip:hover { background: rgba(255,255,255,.1); color: #fff; }
.cp-skip .ic { width: 15px; height: 15px; }
.cp-row.cp-done { opacity: 0; transform: scale(.96) translateX(14px); }
.cp-love.on { color: #ff375f; }
.cp-review, .cp-date { display: flex; align-items: center; gap: 8px; }
.cp-review textarea { width: 240px; min-height: 38px; height: 38px; padding: 9px 12px; resize: none; }
.cp-date input { width: 160px; padding: 8px 12px; }
.cp-more { display: flex; margin: 18px auto 0; }
@media (max-width: 1150px) { .cp-list { grid-template-columns: 1fr; } }

.vs-row { grid-template-columns: 44px minmax(0, 1fr) auto auto 50px; animation: rise .4s var(--spring) both; }
.vs-row .num { white-space: nowrap; }
.vs-row img { width: 44px; }
.vs-row .num.up { color: #34c759; }
.vs-row .num.down { color: #ff6b6b; }
.vs-more { display: flex; margin: 10px auto 0; }

/* ---------- v1.4.1 visual fixes ---------- */
/* Nav on scroll: a soft fading scrim instead of a hard dark strip cutting through titles. */
#nav.scrolled { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
#nav::before { content: ''; position: absolute; inset: 0 0 -46px 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease);
  background: linear-gradient(rgba(0,0,0,.78), rgba(0,0,0,.5) 55%, rgba(0,0,0,0));
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); }
#nav.scrolled::before { opacity: 1; }
/* Detail hero never starts under the nav, even in short windows. */
.detail-hero { padding-top: 118px; box-sizing: border-box; }
.hero-logo { max-height: clamp(84px, 16vh, 160px); }
/* Collection header lines up with every other row. */
.collection .col-head { padding: 0 var(--gutter); }
.collection .col-head h2 { padding: 0; }
.collection .ch-bar { margin: 12px var(--gutter) 0 !important; }

/* ---------- v1.4.1: reviews everywhere ---------- */
.your-line .yl-link { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-weight: 600; padding: 3px 10px 3px 8px; margin-left: 4px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); transition: background .2s, transform .3s var(--spring); }
.your-line .yl-link:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.your-line .yl-link .ic { width: 13px; height: 13px; margin-right: 2px; }
.your-review-slot { grid-column: 1 / -1; }
.your-review-slot:empty { display: none; }
.your-review { border-radius: 26px; padding: 20px 24px; cursor: pointer; background: var(--lg-fill), rgba(30,30,34,.55); border: 1px solid var(--lg-edge);
  box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); animation: rise .5s var(--spring) .1s both; transition: transform .35s var(--spring), background .25s; }
.your-review:hover { transform: translateY(-2px); background: var(--lg-fill), rgba(44,44,50,.6); }
.yr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.yr-meta { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; }
.yr-meta .ic { width: 14px; height: 14px; color: #ff375f; }
.your-review p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.9); margin: 0 0 12px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hist-item { cursor: pointer; border-radius: 16px; transition: background .2s; }
.hist-item:hover { background: rgba(255,255,255,.04); }

.sheet.rv-modal { padding: 0; overflow: hidden; width: min(720px, 94vw); max-height: 86vh; display: flex; flex-direction: column; }
.rv-sheet { position: relative; display: flex; flex-direction: column; min-height: 0; max-height: 86vh; }
.rv-art { position: absolute; inset: 0 0 auto 0; height: 220px; background-size: cover; background-position: center 30%; opacity: .5;
  -webkit-mask-image: linear-gradient(#000 15%, transparent); mask-image: linear-gradient(#000 15%, transparent); pointer-events: none; }
.rv-top { position: relative; display: flex; align-items: flex-end; gap: 18px; padding: 80px 28px 18px; }
.rv-poster { width: 96px; aspect-ratio: 2/3; object-fit: cover; border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.rv-info { flex: 1; min-width: 0; }
.rv-info h3 { font-size: 26px; margin: 4px 0 8px; }
.rv-info h3 .dim { font-weight: 500; font-size: 18px; }
.rv-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--text-2); }
.rv-meta span { display: inline-flex; align-items: center; gap: 5px; }
.rv-meta .ic { width: 14px; height: 14px; }
.rv-top .close { position: absolute; top: 18px; right: 18px; }
.rv-list { position: relative; overflow-y: auto; padding: 4px 28px 8px; display: grid; gap: 12px; min-height: 0; }
.rv-item { padding: 18px 20px; border-radius: 20px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); animation: rise .45s var(--spring) both; }
.rv-item.focus { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.rv-when { display: flex; align-items: center; gap: 12px; font-size: 13.5px; margin-bottom: 10px; }
.rv-when .act { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); transition: background .2s, color .2s; }
.rv-when .act:hover { background: rgba(255,255,255,.12); color: #fff; }
.rv-when .act .ic, .rv-tag .ic { width: 14px; height: 14px; }
.rv-heart .ic { width: 14px; height: 14px; color: #ff375f; vertical-align: -2px; }
.rv-tag { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 12.5px; }
.rv-item p { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.92); margin: 0; white-space: normal; }
.rv-foot { position: relative; display: flex; justify-content: flex-end; gap: 8px; padding: 14px 28px 22px; }

.diary-row .rv { cursor: pointer; }
.diary-row .rv-open, .review-item .rv-open { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--text); opacity: .55; transition: opacity .2s; }
.diary-row.has-review:hover .rv-open, .review-item:hover .rv-open { opacity: 1; }
.review-feed { display: grid; gap: 12px; }
.review-feed .review-item { cursor: pointer; border-radius: 20px; padding: 16px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); animation: rise .45s var(--spring) both; transition: background .2s, transform .3s var(--spring); }
.review-feed .review-item:hover { background: rgba(255,255,255,.07); transform: translateY(-1px); }
.rv-line { display: flex; align-items: center; gap: 12px; font-size: 13px; margin: 4px 0 8px; }
.act-rv { display: block; font-size: 13px; color: var(--text-2); font-style: italic; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub .cm { display: inline-flex; vertical-align: -2px; margin-left: 6px; }
.card .sub .cm .ic { width: 12px; height: 12px; }
.card .sub .cm:not(.rv-cm) .ic { color: #ff375f; }
.card .sub .rv-cm { cursor: pointer; opacity: .75; padding: 2px; margin: -2px -2px -2px 4px; border-radius: 6px; transition: opacity .2s, background .2s; }
.card .sub .rv-cm:hover { opacity: 1; background: rgba(255,255,255,.12); }

/* ---------- v1.4.3: scrolling works wherever the cursor is ---------- */
/* Pinned background art is decoration only: never let it catch the mouse wheel. */
.detail-hero .hero-bg, .detail-hero .veil, .hero .hero-bg, .hero .veil, .wr-bg, .rv-art, .aw-art { pointer-events: none; }
/* Sideways rows never swallow vertical wheel scrolling. */
.shelf, .ep-shelf { overflow-y: hidden; }

/* ---------- Seasonal (Halloween / Christmas) ---------- */
.season-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; vertical-align: -6px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }
.season-ico .ic { width: 16px; height: 16px; }
.season-christmas .season-ico { color: #e8f4ff; background: linear-gradient(135deg, rgba(200,40,50,.35), rgba(30,120,70,.35)); border-color: rgba(255,255,255,.18); }
.season-halloween .season-ico { color: #ffb15c; background: linear-gradient(135deg, rgba(255,120,20,.3), rgba(110,40,160,.3)); border-color: rgba(255,170,90,.25); }
.hero-eyebrow .season-ico { width: 20px; height: 20px; margin: -2px 8px -2px -4px; vertical-align: 0; }
.hero-eyebrow .season-ico .ic { width: 12px; height: 12px; }
.season-row .row-title small { color: var(--text-2); }

/* Holiday-week banner */
.season-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.season-fx i { position: absolute; inset: -320px 0 0 0; }
.season-fx.snow i { background-repeat: repeat; animation: snowfall linear infinite; opacity: .9; }
.season-fx.snow i:nth-child(1) { background-image: radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(2px 2px at 140px 90px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 240px 200px, #fff 50%, transparent 51%), radial-gradient(2px 2px at 80px 260px, #fff 50%, transparent 51%); background-size: 320px 320px; animation-duration: 22s; opacity: .55; }
.season-fx.snow i:nth-child(2) { background-image: radial-gradient(3px 3px at 60px 60px, #fff 50%, transparent 51%), radial-gradient(2.5px 2.5px at 300px 180px, #fff 50%, transparent 51%), radial-gradient(3px 3px at 180px 300px, #fff 50%, transparent 51%); background-size: 420px 420px; animation-duration: 16s; opacity: .45; filter: blur(.4px); }
.season-fx.snow i:nth-child(3) { background-image: radial-gradient(5px 5px at 100px 120px, #fff 50%, transparent 51%), radial-gradient(4px 4px at 420px 360px, #fff 50%, transparent 51%); background-size: 560px 560px; animation-duration: 11s; opacity: .3; filter: blur(1.5px); }
@keyframes snowfall { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-40px, 320px, 0); } }
.season-hero.season-christmas::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 70% at 0% 100%, rgba(170,30,40,.28), transparent 60%), radial-gradient(90% 60% at 100% 0%, rgba(30,110,70,.2), transparent 60%); }
.season-fx.embers i:nth-child(1) { background: radial-gradient(120% 60% at 50% 115%, rgba(255,110,20,.38), rgba(255,80,0,.08) 45%, transparent 70%); animation: emberGlow 5s ease-in-out infinite alternate; }
.season-fx.embers i:nth-child(2) { background-image: radial-gradient(2px 2px at 40px 300px, rgba(255,170,80,.9) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 200px 220px, rgba(255,140,60,.8) 50%, transparent 51%), radial-gradient(2px 2px at 330px 340px, rgba(255,190,100,.85) 50%, transparent 51%);
  background-size: 380px 380px; animation: embersRise 14s linear infinite; opacity: .7; inset: 0 0 -380px 0; }
@keyframes emberGlow { from { opacity: .65; } to { opacity: 1; } }
@keyframes embersRise { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(30px, -380px, 0); } }
.season-hero.season-halloween::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(100% 70% at 100% 0%, rgba(90,30,140,.3), transparent 60%), linear-gradient(0deg, rgba(40,10,0,.25), transparent 50%); }
.season-hero .hero-eyebrow { background: rgba(255,255,255,.14); }
body.reduce-motion .season-fx { display: none; }
/* Seasonal tint and particles fade out with the banner, no hard edge where the rows begin. */
.season-hero::before, .season-fx { -webkit-mask-image: linear-gradient(#000 45%, transparent 88%); mask-image: linear-gradient(#000 45%, transparent 88%); }

/* ---------- Stars: a drawn, perfectly symmetric star that fills its box, so a half star is exactly half ---------- */
.stars .s { font-size: 0; }
.stars .s::before, .stars .s .fill::before {
  content: ''; position: absolute; top: 0; left: 0; width: var(--sz, 30px); height: var(--sz, 30px); background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2 1.6 20 20'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2 1.6 20 20'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") center / contain no-repeat; }
.stars .s .fill { height: 100%; }

/* ---------- Undo toasts, remove-from-profile ---------- */
#toast.has-act { pointer-events: auto; display: inline-flex; align-items: center; gap: 14px; padding-right: 8px; }
#toast .toast-act { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.95); color: #000; font-weight: 700; font-size: 13px; transition: transform .25s var(--spring), background .2s; }
#toast .toast-act:hover { transform: scale(1.05); }
#toast .toast-act:active { transform: scale(.95); }
body:not([data-accent="mono"]) #toast .toast-act { background: var(--acc); color: var(--acc-on); }
.rate-pop .rp-clear { font-size: 12.5px; font-weight: 600; color: #ff6b6b; padding: 4px 10px; margin: -4px 0 -4px -10px; border-radius: 999px; transition: background .2s; }
.rate-pop .rp-clear:hover { background: rgba(255,80,80,.12); }
.rm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-chips span { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }
.your-line .yl-rm { color: var(--text-2); background: transparent; border-color: transparent; }
.your-line .yl-rm:hover { color: #ff6b6b; background: rgba(255,80,80,.1); }
.hist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hist-head .rm-all:hover { color: #ff6b6b; }
.rv-acts { margin-left: auto; display: inline-flex; gap: 4px; }
.rv-when .rv-acts .act { margin-left: 0; }
.rv-del:hover { color: #ff6b6b !important; background: rgba(255,80,80,.12) !important; }
.rv-item.rv-gone { opacity: 0; transform: translateX(14px); transition: opacity .25s, transform .25s var(--spring); }
.your-line { flex-wrap: wrap; row-gap: 8px; }
.your-line > span, .your-line .yl-link { white-space: nowrap; }

/* ---------- Pause screen ---------- */
.pause-info { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .7s var(--ease);
  background: linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.62) 38%, rgba(0,0,0,.15) 72%, rgba(0,0,0,0)), linear-gradient(0deg, rgba(0,0,0,.6), transparent 40%); }
.player.pinfo .pause-info { opacity: 1; }
.player.pinfo .chrome, .player.pinfo .subs { opacity: 0 !important; transition: opacity .5s var(--ease); }
.player.pinfo video { filter: brightness(.82) saturate(.9); transition: filter .8s var(--ease); }
.player video { transition: filter .5s var(--ease); }
.pi-body { position: absolute; left: clamp(40px, 6vw, 110px); bottom: clamp(60px, 12vh, 140px); max-width: min(620px, 46vw); transform: translateY(12px); transition: transform .8s var(--spring); }
.player.pinfo .pi-body { transform: none; }
.pi-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.pi-eyebrow svg { width: 13px; height: 13px; fill: currentColor; }
.pi-logo { display: block; max-width: min(420px, 100%); max-height: 130px; object-fit: contain; object-position: left bottom; margin-bottom: 16px; filter: drop-shadow(0 6px 30px rgba(0,0,0,.5)); }
.pi-title { font-size: clamp(36px, 4.4vw, 58px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; margin: 0 0 14px; }
.pi-ep { font-size: 17px; color: rgba(255,255,255,.85); margin-bottom: 10px; }
.pi-ep b { color: #fff; font-weight: 700; }
.pi-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.62); margin-bottom: 14px; }
.pi-overview { font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,.86); margin: 0 0 22px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pi-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13.5px; color: rgba(255,255,255,.72); font-variant-numeric: tabular-nums; }
.pi-progress b { color: #fff; }
.pi-progress .dot { opacity: .4; }
.pi-bar { flex: 0 0 100%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; margin-bottom: 4px; }
.pi-bar i { display: block; height: 100%; background: #fff; border-radius: inherit; }
body:not([data-accent="mono"]) .pi-bar i { background: var(--acc); }
.pi-hint { margin-top: 26px; font-size: 13px; color: rgba(255,255,255,.5); }
.pi-hint kbd { font: inherit; font-weight: 700; color: rgba(255,255,255,.85); padding: 3px 9px; border-radius: 7px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); margin-right: 4px; }

/* ---------- Launch animation ---------- */
#launch { position: fixed; inset: 0; z-index: 3000; background: #000; display: grid; place-items: center; transition: opacity .6s var(--ease), transform .7s var(--ease); }
#launch.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
#launch .ln-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), rgba(255,255,255,.04) 40%, transparent 70%); filter: blur(10px); animation: lnGlow 1.4s var(--ease) both; }
body:not([data-accent="mono"]) #launch .ln-glow { background: radial-gradient(circle, color-mix(in srgb, var(--acc) 30%, transparent), transparent 70%); }
#launch .ln-mark { position: relative; display: flex; align-items: center; gap: 18px; animation: lnIn .9s var(--spring) both; }
#launch img { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
#launch span { font-size: 54px; font-weight: 800; letter-spacing: -.045em; color: #fff; background: linear-gradient(110deg, #fff 30%, rgba(255,255,255,.55) 50%, #fff 70%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: lnShine 1.6s .35s var(--ease) both; }
@keyframes lnIn { from { opacity: 0; transform: translateY(14px) scale(.92); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes lnGlow { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes lnShine { from { background-position: 100% 0; } to { background-position: 0 0; } }
body.reduce-motion #launch { display: none; }

/* ---------- Connection pill + offline screen ---------- */
#net-pill { position: fixed; z-index: 950; top: 70px; left: 50%; transform: translate(-50%, -16px); opacity: 0; pointer-events: none; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(36,36,40,.78); backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border); box-shadow: 0 16px 40px rgba(0,0,0,.45); transition: opacity .4s var(--ease), transform .5s var(--spring); }
#net-pill.show { opacity: 1; transform: translate(-50%, 0); }
#net-pill i { width: 8px; height: 8px; border-radius: 50%; background: #ff9f0a; box-shadow: 0 0 10px #ff9f0a; animation: netPulse 1.6s ease-in-out infinite; }
#net-pill.good i { background: #34c759; box-shadow: 0 0 10px #34c759; animation: none; }
@keyframes netPulse { 50% { opacity: .35; } }
.offline-screen { min-height: 100vh; display: grid; place-items: center; }
.off-card { width: min(520px, 92vw); text-align: center; padding: 44px 40px 36px; border-radius: 32px; background: var(--lg-fill), rgba(30,30,34,.55); border: 1px solid var(--lg-edge);
  box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); animation: pop .55s var(--spring); }
.off-ico { width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.85); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.off-ico svg { width: 36px; height: 36px; }
.off-card h2 { font-size: 26px; margin: 0 0 10px; }
.off-card p { line-height: 1.6; margin: 0 auto 20px; max-width: 400px; }
.off-retry { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.05); }

/* ---------- Taste profile strength card ---------- */
.ps-card { display: flex; gap: 22px; align-items: center; padding: 20px 24px; margin: 0 0 26px; border-radius: 26px; background: var(--lg-fill), rgba(30,30,34,.55);
  border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); animation: rise .5s var(--spring) both; }
.ps-card.weak { background: linear-gradient(135deg, rgba(255,159,10,.14), rgba(255,159,10,.03) 60%), var(--lg-fill), rgba(30,30,34,.55); border-color: rgba(255,159,10,.28); }
.ps-ring { position: relative; width: 84px; height: 84px; flex: 0 0 auto; display: grid; place-items: center; }
.ps-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ps-ring circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.ps-ring .trk { stroke: rgba(255,255,255,.08); }
.ps-ring .val { stroke: #fff; transition: stroke-dashoffset 1.2s var(--spring); }
.ps-card.weak .ps-ring .val { stroke: #ff9f0a; }
body:not([data-accent="mono"]) .ps-card:not(.weak) .ps-ring .val { stroke: var(--acc); }
.ps-ring b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.ps-main { flex: 1; min-width: 0; }
.ps-head { display: flex; align-items: center; gap: 12px; }
.ps-level { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.1); }
.ps-card.weak .ps-level { background: rgba(255,159,10,.18); color: #ffc46b; }
.ps-level .ic { width: 13px; height: 13px; }
.ps-main p { margin: 8px 0 10px; color: rgba(255,255,255,.85); line-height: 1.5; }
.ps-chips { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-2); margin-bottom: 12px; }
.ps-chips b { color: #fff; }
.ps-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-mini { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.ps-top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 8px; }
.ps-top span { color: var(--text-2); font-weight: 600; }
.ps-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; margin-bottom: 8px; }
.ps-bar i { display: block; height: 100%; background: #fff; border-radius: inherit; transition: width .6s var(--spring); }
body:not([data-accent="mono"]) .ps-bar i { background: var(--acc); }
.ps-mini small { color: var(--text-3); font-size: 12px; }
.cp-strength:empty { display: none; }
.cp-strength { margin-bottom: 4px; }

/* ---------- This or That ---------- */
.tt { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; align-items: start; }
@media (max-width: 1200px) { .tt { grid-template-columns: 1fr; } }
.tt-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 14px; }
.tt-or { align-self: center; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: rgba(255,255,255,.8);
  background: var(--lg-fill), rgba(30,30,34,.7); border: 1px solid var(--lg-edge); backdrop-filter: var(--lg-blur); }
.tt-card { position: relative; min-height: 430px; border-radius: 26px; overflow: hidden; text-align: left; color: #fff; cursor: pointer; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 60px rgba(0,0,0,.45); animation: rise .5s var(--spring) both; transition: transform .45s var(--spring), box-shadow .3s, opacity .35s, filter .35s; }
.tt-card.r { animation-delay: 60ms; }
.tt-card:hover { transform: translateY(-4px) scale(1.012); box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.2); }
.tt-card.chosen { transform: scale(1.03); box-shadow: 0 0 0 2px #fff, 0 30px 80px rgba(0,0,0,.6); }
body:not([data-accent="mono"]) .tt-card.chosen { box-shadow: 0 0 0 2px var(--acc), 0 30px 80px rgba(0,0,0,.6); }
.tt-card.lost { opacity: .35; filter: grayscale(.7); transform: scale(.97); }
.tt-art { position: absolute; inset: 0; background-size: cover; background-position: center 25%; transition: transform 6s ease-out; }
.tt-card:hover .tt-art { transform: scale(1.06); }
.tt-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.92) 8%, rgba(0,0,0,.45) 52%, rgba(0,0,0,.05)); }
.tt-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 24px 20px; }
.tt-kicker { font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.7); margin-bottom: 10px; letter-spacing: .02em; }
.tt-logo h2 { font-size: 30px; line-height: 1.05; margin: 0 0 10px; letter-spacing: -.02em; }
.tt-logo img { max-width: 78%; max-height: 90px; object-fit: contain; object-position: left bottom; display: block; margin-bottom: 12px; filter: drop-shadow(0 4px 20px rgba(0,0,0,.5)); }
.tt-body p { font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.78); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tt-foot { display: flex; align-items: center; justify-content: space-between; }
.tt-key { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 7px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
.tt-wl { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); backdrop-filter: blur(16px); transition: background .2s, transform .3s var(--spring); }
.tt-wl:hover { background: rgba(255,255,255,.24); transform: scale(1.08); }
.tt-wl .ic { width: 16px; height: 16px; }
.tt-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.tt-actions kbd { font: inherit; font-size: 11px; opacity: .6; margin-left: 4px; }
.tt-note { text-align: center; margin-top: 12px; min-height: 20px; font-size: 13.5px; color: var(--text-2); }
.tt-side { display: grid; gap: 14px; position: sticky; top: 100px; }
.tt-lean { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.tt-lh { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.tt-g { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 7px; }
.tt-g i { height: 6px; border-radius: 6px; width: var(--w); background: #34c759; transition: width .5s var(--spring); }
.tt-g i.neg { background: #ff6b6b; }

/* ---------- Taste Profile extras ---------- */
.drv-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 4px; border-radius: 4px; background: rgba(0,0,0,.45); overflow: hidden; }
.drv-bar i { display: block; height: 100%; background: #fff; border-radius: inherit; }
body:not([data-accent="mono"]) .drv-bar i { background: var(--acc); }
.tp-note { font-size: 12.5px; margin: -12px 0 26px; }
.tp-lean { margin-bottom: 26px; }
.tp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-chips span { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tp-chips .pos { background: rgba(52,199,89,.14); color: #6fe08f; }
.tp-chips .neg { background: rgba(255,80,80,.12); color: #ff8a8a; }

/* ---------- Seen It wall ---------- */
.seen-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 13px; color: var(--text-2); margin: -6px 0 22px; }
.seen-legend span { display: inline-flex; align-items: center; gap: 8px; }
.seen-legend .lg { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.seen-legend .lg .ic { width: 12px; height: 12px; }
.lg.s, .st-tile[data-s="seen"] .st-badge { background: #fff; color: #000; }
.lg.l, .st-tile[data-s="loved"] .st-badge { background: #ff375f; color: #fff; }
.lg.m, .st-tile[data-s="meh"] .st-badge { background: #48484e; color: #fff; }
body:not([data-accent="mono"]) .lg.s, body:not([data-accent="mono"]) .st-tile[data-s="seen"] .st-badge { background: var(--acc); color: var(--acc-on); }
.seen-sec { margin-bottom: 34px; animation: rise .5s var(--spring) both; }
.ss-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.ss-head h2 { font-size: 21px; margin: 0; }
.ss-count { margin-left: auto; font-size: 13px; }
.seen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 16px 14px; }
.st-tile { position: relative; cursor: pointer; animation: rise .45s var(--spring) both; user-select: none; }
.st-art { position: relative; aspect-ratio: 2/3; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.05); box-shadow: 0 10px 26px rgba(0,0,0,.35);
  transition: transform .35s var(--spring), filter .3s, box-shadow .3s; }
.st-art .img { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transition: opacity .4s; }
.st-art .img.ready { opacity: 1; }
.st-tile:hover .st-art { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.5); }
.st-tile[data-s="seen"] .st-art, .st-tile[data-s="loved"] .st-art { box-shadow: 0 0 0 2px #fff, 0 14px 30px rgba(0,0,0,.45); }
.st-tile[data-s="loved"] .st-art { box-shadow: 0 0 0 2px #ff375f, 0 14px 30px rgba(255,55,95,.25); }
body:not([data-accent="mono"]) .st-tile[data-s="seen"] .st-art { box-shadow: 0 0 0 2px var(--acc), 0 14px 30px rgba(0,0,0,.45); }
.st-tile[data-s="meh"] .st-art { filter: grayscale(.85) brightness(.55); }
.st-badge { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; z-index: 2; transform: scale(0); transition: transform .35s var(--spring); box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.st-tile:not([data-s="none"]) .st-badge { transform: scale(1); }
.st-badge .ic { width: 15px; height: 15px; }
.st-tile.pop .st-art { animation: stPop .35s var(--spring); }
@keyframes stPop { 40% { transform: scale(.94); } }
.st-stars { position: absolute; left: 6px; right: 6px; top: calc((100% - 46px) - 34px); z-index: 2; display: flex; justify-content: center; padding: 6px 0; border-radius: 10px;
  background: rgba(10,10,12,.7); backdrop-filter: blur(14px); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .25s var(--spring); }
.st-tile:hover .st-stars { opacity: 1; transform: none; }
.st-stars .stars { gap: 3px; }
.st-cap { margin-top: 8px; }
.st-cap b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-cap span { font-size: 12px; color: var(--text-3); }
.seen-more { min-height: 120px; display: grid; place-items: center; }
.seen-bar { position: sticky; bottom: 18px; z-index: 20; display: flex; align-items: center; gap: 18px; margin-top: 10px; padding: 12px 14px 12px 22px; border-radius: 999px;
  background: var(--lg-fill), rgba(26,26,30,.78); border: 1px solid var(--lg-edge); box-shadow: 0 20px 50px rgba(0,0,0,.55); backdrop-filter: var(--lg-blur); }
.sb-counts { font-size: 14px; color: var(--text-2); }
.sb-counts b { color: #fff; font-size: 16px; }
.sb-counts .sep { opacity: .4; margin: 0 4px; }
.sb-strength { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 12.5px; color: var(--text-2); }
.sb-strength .ps-bar { width: 140px; margin: 0; }
.sb-strength b { color: #fff; min-width: 86px; }
.seen-cta { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 16px 18px; margin: 4px 0 18px; border-radius: 20px; color: var(--text);
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.16); transition: transform .35s var(--spring), background .25s; }
.seen-cta:hover { transform: translateY(-2px); background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.06)); }
.seen-cta .sc-ico { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; background: #fff; color: #000; }
.seen-cta .sc-ico .ic { width: 22px; height: 22px; }
.seen-cta b { display: block; font-size: 15.5px; }
.seen-cta small { display: block; color: var(--text-2); font-size: 13px; margin-top: 2px; line-height: 1.4; }
.seen-cta > .ic, .seen-cta > svg:last-child { width: 18px; height: 18px; margin-left: auto; opacity: .55; }

/* ---------- "⋯" quick-actions button, everywhere ---------- */
.more-btn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: 0 0 auto;
  background: rgba(20,20,24,.62); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition: opacity .2s, transform .3s var(--spring), background .2s; cursor: pointer; }
.more-btn .ic { width: 16px; height: 16px; }
.more-btn:hover { background: rgba(255,255,255,.22); transform: scale(1.08); }
.more-btn:active { transform: scale(.94); }
/* On artwork: tucked in the top-left corner, shown on hover (always visible while its menu is open). */
.card .art > .more-btn, .st-tile > .more-btn.st-more { position: absolute; top: 8px; left: 8px; z-index: 5; opacity: 0; transform: scale(.85); }
.card:hover .art > .more-btn, .st-tile:hover > .more-btn.st-more, .more-btn:focus-visible { opacity: 1; transform: none; }
.st-tile > .more-btn.st-more { top: 8px; left: 8px; }
/* In rows and button bars. */
.more-btn.inline { width: 36px; height: 36px; position: static; opacity: 1; }
.btns .more-btn.inline { width: 40px; height: 40px; }
.more-btn.row-more { position: static; opacity: .55; background: transparent; border-color: transparent; }
.diary-row:hover .more-btn.row-more, .review-item:hover .more-btn.row-more, .day-row:hover .more-btn.row-more { opacity: 1; background: rgba(255,255,255,.1); }
.review-feed .review-item { position: relative; }
.review-feed .review-item > .more-btn.row-more { position: absolute; top: 14px; right: 14px; }
.more-btn.cp-more { position: static; width: 30px; height: 30px; opacity: .55; background: transparent; border-color: transparent; }
.cp-row { grid-template-columns: 48px minmax(0, 1fr) auto 34px 30px; }
.cp-row:hover .more-btn.cp-more { opacity: 1; background: rgba(255,255,255,.1); }
.more-btn.in-cluster { width: 38px; height: 38px; background: transparent; border-color: transparent; color: var(--text-2); }
.more-btn.in-cluster:hover { background: rgba(255,255,255,.12); color: #fff; }
.tt-foot .more-btn.inline { margin-left: auto; margin-right: 8px; }
.tt-foot { gap: 0; }
.pick3 .btns .more-btn.inline { width: 34px; height: 34px; }

/* =====================================================================
   Design system v2 — one look for every control, everywhere.
   ===================================================================== */
:root { color-scheme: dark; --ctl-h: 36px; }

/* Segmented controls (Library tabs, Discover switches, year chips, search filters): one style. */
.seg, .segm, .chips { display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 3px; margin: 0; border-radius: 999px; overflow: visible;
  background: var(--lg-fill), rgba(40,40,46,.45); border: 1px solid var(--lg-edge); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: none; }
.seg button, .segm button, .chips button { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: background .25s, color .2s, box-shadow .25s; }
.seg button:hover, .segm button:hover, .chips button:hover { color: #fff; background: rgba(255,255,255,.06); }
.seg button.on, .segm button.on, .chips button.on { background: rgba(255,255,255,.94); color: #000; box-shadow: 0 2px 10px rgba(0,0,0,.28); }
body:not([data-accent="mono"]) .seg button.on, body:not([data-accent="mono"]) .segm button.on, body:not([data-accent="mono"]) .chips button.on { background: var(--acc); color: var(--acc-on); }
.lib-tabs button { height: 34px; padding: 0 17px; font-size: 14px; }

/* Glass pop-up buttons, and native dropdowns styled to match (dark menus via color-scheme). */
.gsel { height: var(--ctl-h); border-radius: 999px; padding: 0 12px 0 16px; background: var(--lg-fill), rgba(40,40,46,.45); border: 1px solid var(--lg-edge); }
.gsel:hover { background: var(--lg-fill), rgba(60,60,68,.55); }
select.input { -webkit-appearance: none; appearance: none; height: 40px; padding: 0 38px 0 16px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23aaa' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px, var(--lg-fill), rgba(40,40,46,.45);
  border: 1px solid var(--lg-edge); color: var(--text); }
select.input:hover { border-color: rgba(255,255,255,.22); }
.toolbar select.input { height: var(--ctl-h); border-radius: 999px; font-size: 13.5px; width: auto; }

/* Toolbars: one row, one height, pill search fields with a magnifier. */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.toolbar .count, .toolbar > .dim { font-size: 13px; color: var(--text-3); }
.toolbar input.input { height: var(--ctl-h); border-radius: 999px; padding: 0 16px 0 36px; font-size: 13.5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='6.5' fill='none' stroke='%23888' stroke-width='2'/%3E%3Cpath d='M20 20l-4-4' stroke='%23888' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 13px center / 15px, var(--lg-fill), rgba(40,40,46,.45); border: 1px solid var(--lg-edge); }
.toolbar input.input:focus { border-color: rgba(255,255,255,.3); }
.toolbar + .count, .lib-body > div > .count { margin: -6px 0 14px 4px; font-size: 13px; color: var(--text-3); }

/* Buttons: small ones are pills, header tools share the control height. */
.btn.small { height: 34px; border-radius: 999px; padding: 0 15px; }
.btn.small.round { width: 34px; padding: 0; }
.d-tools .btn { height: var(--ctl-h); border-radius: 999px; padding: 0 16px; font-size: 13.5px; }
.d-head { align-items: flex-end; margin-bottom: 24px; }
.d-head h1 { font-size: 32px; }

/* Keyboard focus that's visible but quiet (only when tabbing, never on click). */
:focus { outline: none; }
:focus-visible { outline: 2px solid rgba(100,170,255,.85); outline-offset: 2px; }
body:not([data-accent="mono"]) :focus-visible { outline-color: var(--acc); }

/* Context / ⋯ menus: macOS proportions, grouped, never off-screen, scroll if needed. */
.ctx-menu { min-width: 248px; max-width: 320px; max-height: calc(100vh - 24px); overflow-y: auto; padding: 5px; border-radius: 14px;
  background: rgba(34,34,38,.82); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 24px 70px rgba(0,0,0,.6), 0 0 0 .5px rgba(0,0,0,.6); }
.ctx-menu button { gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 500; }
.ctx-menu button:hover { background: rgba(255,255,255,.13); }
.ctx-menu button .ic { width: 15px; height: 15px; opacity: .75; }
.ctx-menu button.danger { color: #ff6b6b; }
.ctx-menu button.danger:hover { background: rgba(255,80,80,.16); }
.ctx-menu .sep { height: 1px; margin: 4px 10px; background: rgba(255,255,255,.1); }
.ctx-menu .ctx-title { padding: 6px 10px 6px; font-size: 12px; font-weight: 700; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Discover */
.d-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1250px) { .d-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tonight .btns .btn:not(.primary) { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.vibe { white-space: nowrap; font-size: 12px; padding: 12px 6px; }
.mfield .segm { display: flex; width: 100%; }
.mfield .segm button { flex: 1; padding: 0 6px; }
.p3-body .dim { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.p3-body .btns { flex-wrap: nowrap; gap: 8px; }
.p3-body .btn.small { height: 32px; }
.trivia { max-width: none; margin: 0; }
.rou-hint { text-align: center; color: var(--text-3); font-size: 14px; margin-top: 28px; }

/* Library: section switcher right under the title, sticky like a macOS toolbar. */
.lib-tabs { position: sticky; top: 86px; z-index: 30; margin: 4px 0 26px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.fav-slot:empty { display: none; }
.fav-slot { margin-bottom: 10px; }
.diary-row { grid-template-columns: 44px 40px minmax(0, 1fr) auto 34px 32px; }
.lib-sub { font-size: 14px; }

/* Settings: a centered column like macOS System Settings. */
.settings-wrap { margin: 0 auto; }
.settings-nudge { margin: 0 0 22px; }

/* Lists page toolbar */
.list-tools { display: flex; gap: 8px; align-items: center; }

/* Navigation polish */
.disc-main.swap { animation: paneIn .38s var(--ease) both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.nav-back span { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.confirm-sheet h3 { margin: 0 0 8px; font-size: 20px; }
.confirm-sheet p { margin: 0; line-height: 1.5; }
.page-head .eyebrow { margin-bottom: 2px; }
.tt-foot .tt-wl { margin-left: auto; }
.tt-foot .more-btn.inline { margin: 0 0 0 8px; }
.tt-foot { gap: 0; }
.toolbar select.input { padding: 0 34px 0 16px; background-position: right 13px center, 0 0, 0 0; }
.mrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mrow .segm { display: inline-flex; width: auto; }
.mrow .segm button { flex: none; padding: 0 13px; }

/* =====================================================================
   Seen It — packs shelf, calm pack grid, swipe deck
   ===================================================================== */
.pk-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; margin-bottom: 18px; border-radius: 22px;
  background: var(--lg-fill), rgba(30,30,34,.5); border: 1px solid var(--lg-edge); backdrop-filter: var(--lg-blur); }
.pk-sum-stats { display: flex; gap: 34px; }
.pk-sum-stats div { display: flex; flex-direction: column; }
.pk-sum-stats b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.pk-sum-stats span { font-size: 12.5px; color: var(--text-3); }
.pk-cats { position: sticky; top: 0; z-index: 10; padding: 6px 0 14px; margin-bottom: 6px; background: linear-gradient(rgba(0,0,0,.0), rgba(0,0,0,0)); }
.pk-cats .segm { flex-wrap: wrap; border-radius: 18px; }
.pk-sec { margin-bottom: 34px; }
.pk-sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.pk-sec-head h2 { font-size: 20px; margin: 0; }
.pk-sec-head .dim { font-size: 13px; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.pk-card { display: flex; flex-direction: column; text-align: left; padding: 14px; border-radius: 20px; color: var(--text); cursor: pointer;
  background: var(--lg-fill), rgba(30,30,34,.45); border: 1px solid var(--lg-edge); animation: rise .45s var(--spring) both; transition: transform .35s var(--spring), background .25s, border-color .25s; }
.pk-card:hover { transform: translateY(-3px); background: var(--lg-fill), rgba(48,48,54,.55); border-color: rgba(255,255,255,.18); }
.pk-cover { position: relative; height: 112px; margin-bottom: 12px; }
.pk-cover > div:not(.sk) { position: absolute; top: 0; bottom: 0; width: 74px; border-radius: 10px; background: center/cover no-repeat #1c1c1e; box-shadow: 0 10px 24px rgba(0,0,0,.45);
  left: calc(var(--i) * 42px); transform: rotate(calc((var(--i) - 1) * 4deg)) translateY(calc(var(--i) * 3px)); z-index: calc(3 - var(--i)); transition: transform .4s var(--spring); }
.pk-card:hover .pk-cover > div:not(.sk) { transform: rotate(calc((var(--i) - 1) * 6deg)) translateY(calc(var(--i) * 2px)) translateX(calc(var(--i) * 6px)); }
.pk-cover .sk { position: absolute; inset: 0 40% 0 0; border-radius: 10px; background: rgba(255,255,255,.05); }
.pk-body b { display: block; font-size: 15px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-meta { font-size: 12.5px; min-height: 18px; }
.pk-done { color: #34c759; display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.pk-done .ic { width: 13px; height: 13px; }
.pk-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.09); overflow: hidden; margin-top: 10px; }
.pk-bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; transition: width .5s var(--spring); }
body:not([data-accent="mono"]) .pk-bar i { background: var(--acc); }
.pk-card.done { opacity: .62; }
.pk-card.done .pk-bar i { background: #34c759; }

/* One pack */
.pk-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 18px; margin-bottom: 22px; }
.pk-head .pk-back { align-self: start; margin-top: 4px; }
.pk-title h1 { font-size: 32px; margin: 2px 0 10px; letter-spacing: -.03em; }
.pk-prog { display: flex; align-items: center; gap: 12px; }
.pk-bar.big { width: 220px; height: 6px; margin: 0; }
.pk-count { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.pk-count .ic { width: 14px; height: 14px; color: #34c759; }
.pk-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; }
.pk-tile { cursor: pointer; animation: rise .45s var(--spring) both; user-select: none; }
.pt-art { position: relative; aspect-ratio: 2/3; border-radius: 14px; overflow: hidden; background: #1c1c1e; box-shadow: 0 10px 26px rgba(0,0,0,.4); transition: transform .35s var(--spring), box-shadow .3s; }
.pt-art .img { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transition: opacity .4s, filter .35s; }
.pt-art .img.ready { opacity: 1; }
.pk-tile:hover .pt-art { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(0,0,0,.55); }
/* Sorted posters step back (dimmed, with a clear label); unsorted ones stay bright — so it's obvious what's left. */
.pk-tile:not([data-s="none"]) .pt-art .img { filter: brightness(.38) saturate(.6); }
.pt-state { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #fff; pointer-events: none; }
.pt-state .ic { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: #fff; color: #000; box-sizing: content-box; animation: pop .35s var(--spring); }
.pk-tile[data-s="loved"] .pt-state .ic { background: #ff375f; color: #fff; }
.pk-tile[data-s="meh"] .pt-state .ic { background: #48484e; color: #fff; }
.pk-tile[data-s="notseen"] .pt-state span { padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: var(--text-2); font-weight: 600; }
body:not([data-accent="mono"]) .pk-tile[data-s="seen"] .pt-state .ic { background: var(--acc); color: var(--acc-on); }
.pt-actions { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; display: flex; justify-content: center; gap: 8px; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s var(--spring); }
.pk-tile:hover .pt-actions { opacity: 1; transform: none; }
.pt-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(20,20,24,.72); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.16); transition: transform .25s var(--spring), background .2s; }
.pt-btn:hover { transform: scale(1.1); }
.pt-btn.love:hover, .pk-tile[data-s="loved"] .pt-btn.love { background: #ff375f; }
.pt-btn.meh:hover, .pk-tile[data-s="meh"] .pt-btn.meh { background: #636366; }
.pt-btn.want:hover, .pk-tile[data-s="want"] .pt-btn.want { background: #0a84ff; }
.pk-tile[data-s="want"] .pt-state .ic { background: #0a84ff; color: #fff; }
.sw-btn.want span { background: #0a84ff; color: #fff; }
.pt-btn .ic { width: 17px; height: 17px; }
.pk-tile > .more-btn.st-more, .pt-art > .more-btn.st-more { position: absolute; top: 8px; right: 8px; left: auto; z-index: 4; opacity: 0; }
.pk-tile:hover .more-btn.st-more { opacity: 1; }
.pt-cap { margin-top: 9px; }
.pt-cap b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-cap span { font-size: 12px; color: var(--text-3); }
.pk-tile.pop .pt-art { animation: stPop .35s var(--spring); }
.pk-hint { text-align: center; font-size: 13px; margin: 26px 0 40px; }

/* Swipe deck */
.sw { max-width: 880px; margin: 6px auto 0; }
.sw-card-slot { position: relative; min-height: 440px; display: grid; place-items: center; }
.sw-card { position: relative; width: 100%; display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: center; padding: 22px; border-radius: 28px;
  background: var(--lg-fill), rgba(30,30,34,.6); border: 1px solid var(--lg-edge); box-shadow: 0 30px 80px rgba(0,0,0,.5); backdrop-filter: var(--lg-blur);
  animation: swIn .35s var(--spring) both; transition: transform .26s cubic-bezier(.4,0,.6,1), opacity .26s; }
@keyframes swIn { from { opacity: 0; transform: scale(.96) translateY(10px); } }
.sw-card.fly.right { transform: translateX(120px) rotate(6deg); opacity: 0; }
.sw-card.fly.left { transform: translateX(-120px) rotate(-6deg); opacity: 0; }
.sw-card.fly.up { transform: translateY(-80px) scale(1.03); opacity: 0; }
.sw-card.fly.down { transform: translateY(60px) scale(.97); opacity: 0; }
.sw-poster { aspect-ratio: 2/3; border-radius: 18px; background: center/cover no-repeat #1c1c1e; box-shadow: 0 20px 50px rgba(0,0,0,.55); }
.sw-info h2 { font-size: 34px; letter-spacing: -.03em; line-height: 1.05; margin: 6px 0 8px; }
.sw-genres { font-size: 13.5px; margin-bottom: 14px; }
.sw-info p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.82); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.sw-stamp { position: absolute; top: 30px; right: 30px; padding: 8px 16px; border-radius: 12px; font-weight: 800; font-size: 18px; letter-spacing: .02em; background: #fff; color: #000; opacity: 0; transform: scale(.8); transition: opacity .15s, transform .2s var(--spring); }
.sw-card.fly .sw-stamp:not(:empty) { opacity: 1; transform: scale(1); }
.sw-actions { display: flex; justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.sw-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 104px; padding: 12px 8px 10px; border-radius: 18px; color: var(--text);
  background: var(--lg-fill), rgba(30,30,34,.5); border: 1px solid var(--lg-edge); transition: transform .3s var(--spring), background .2s, border-color .2s; }
.sw-btn:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.2); }
.sw-btn:active { transform: scale(.95); }
.sw-btn span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.sw-btn span .ic { width: 20px; height: 20px; }
.sw-btn b { font-size: 13px; }
.sw-btn kbd { font: inherit; font-size: 11px; color: var(--text-3); }
.sw-btn.yes span { background: #fff; color: #000; }
.sw-btn.love span { background: #ff375f; color: #fff; }
body:not([data-accent="mono"]) .sw-btn.yes span { background: var(--acc); color: var(--acc-on); }
.sw-foot { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 18px 0 40px; font-size: 12.5px; }
.sw-foot kbd { font: inherit; opacity: .6; margin-left: 4px; }
.sw-done { text-align: center; padding: 40px 20px; animation: pop .45s var(--spring); }
.sw-done-ico .ic { width: 54px; height: 54px; color: #34c759; }
.sw-done h2 { font-size: 26px; margin: 12px 0 6px; }
.sw-done .btns { margin-top: 20px; }
@media (max-width: 1100px) { .sw-card { grid-template-columns: 200px 1fr; } .pk-head { grid-template-columns: 1fr; } .pk-tools { justify-content: flex-start; } }
.sw-card { grid-template-columns: 230px 1fr; padding: 18px; gap: 26px; }
.sw-card-slot { min-height: 0; }
.sw-info h2 { font-size: 30px; }
.sw-actions { margin-top: 16px; }
.sw-foot { margin: 14px 0 30px; }

/* Seen It shelf: category menu + search + compact jump chips (one category at a time) */
.pk-cats { position: static; padding: 0; margin: 0 0 10px; background: none; }
.pk-cats .pk-search { flex: 1; max-width: 360px; }
.pk-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.pk-jump button { height: 30px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); transition: background .2s, color .2s; }
.pk-jump button:hover { color: #fff; background: rgba(255,255,255,.1); }
.pk-jump button.on { background: rgba(255,255,255,.94); color: #000; border-color: transparent; }
body:not([data-accent="mono"]) .pk-jump button.on { background: var(--acc); color: var(--acc-on); }
.d-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1250px) { .d-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ============ Twitch (personal tab) ============ */
#twitch[hidden] { display: none !important; }
body.tw-on #view, body.tw-on #ambient { visibility: hidden; }
.tw { --tw-side-w: 272px; --tw-chat-w: 360px; --tw-gap: 14px;
  position: fixed; inset: 0; z-index: 1; display: grid; grid-template-columns: calc(var(--tw-side-w) + var(--tw-gap)) minmax(0, 1fr) 0px;
  padding: 80px 18px 18px; background: radial-gradient(1400px 700px at 50% -20%, rgba(255,255,255,.055), transparent 60%), #000;
  transition: grid-template-columns .5s var(--ease); }
.tw.chat-on { grid-template-columns: calc(var(--tw-side-w) + var(--tw-gap)) minmax(0, 1fr) calc(var(--tw-chat-w) + var(--tw-gap)); }
.tw.side-off { grid-template-columns: 0px minmax(0, 1fr) 0px; }
.tw.side-off.chat-on { grid-template-columns: 0px minmax(0, 1fr) calc(var(--tw-chat-w) + var(--tw-gap)); }
.tw.resizing { transition: none; cursor: ew-resize; }
.tw.resizing webview, .tw.dragging webview { pointer-events: none; }
.tw-col { min-width: 0; min-height: 0; overflow: hidden; display: flex; }
.tw-col-side { padding-right: var(--tw-gap); }
.tw-col-chat { padding-left: var(--tw-gap); justify-content: flex-end; }
.tw svg.ic { flex: none; }

/* Shared bits */
.tw-ib { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); transition: background .2s, color .2s, transform .25s var(--spring); }
.tw-ib svg { width: 18px; height: 18px; }
.tw-ib.sm { width: 28px; height: 28px; border-radius: 8px; }
.tw-ib.sm svg { width: 16px; height: 16px; }
.tw-ib:hover { background: rgba(255,255,255,.09); color: #fff; }
.tw-ib:active { transform: scale(.92); }
.tw-ib.on { background: rgba(255,255,255,.14); color: #fff; }
.tw-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff453a; box-shadow: 0 0 0 3px rgba(255,69,58,.2); flex: none; }
.tw-av { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.tw-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.tw-av b { font-size: 13px; font-weight: 700; color: var(--text-2); }
.tw-av.live::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #ff453a; }
.tw-av.off img { filter: grayscale(1) brightness(.75); }
.tw-av.xs { width: 20px; height: 20px; } .tw-av.xs b { font-size: 10px; } .tw-av.xs::after { display: none; }
.tw-av.sm { width: 28px; height: 28px; } .tw-av.sm b { font-size: 12px; }
.tw-av.lg { width: 64px; height: 64px; } .tw-av.lg b { font-size: 24px; } .tw-av.lg.live::after { inset: -4px; border-width: 3px; }
.tw-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 4px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--text-2);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.07); transition: background .2s, color .2s, transform .25s var(--spring); }
.tw-chip:hover { background: rgba(255,255,255,.11); color: #fff; }
.tw-chip:active { transform: scale(.96); }
.tw-chip-ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.tw-chip-ic svg { width: 12px; height: 12px; }
.tw-hint { font-size: 12.5px; line-height: 1.45; color: var(--text-3); padding: 2px 8px 8px; }
.tw-sw { appearance: none; -webkit-appearance: none; flex: none; width: 38px; height: 22px; margin: 0; border-radius: 999px; background: rgba(120,120,128,.36); position: relative; cursor: pointer; transition: background .25s; }
.tw-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .3s var(--spring); }
.tw-sw:checked { background: #34c759; }
.tw-sw:checked::after { transform: translateX(16px); }

/* Sidebar */
.tw-side { width: var(--tw-side-w); flex: none; height: 100%; display: flex; flex-direction: column; padding: 18px 14px 14px; border-radius: 26px;
  background: var(--lg-fill), rgba(28,28,32,.55); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur);
  transition: opacity .3s, transform .5s var(--ease); }
.tw.side-off .tw-side { opacity: 0; transform: translateX(-24px); pointer-events: none; }
.tw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 0 2px 14px 6px; }
.tw-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.tw-sub { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12.5px; color: var(--text-3); }
.tw-sub span { opacity: .6; }
.tw-sub .tw-dot { width: 6px; height: 6px; box-shadow: none; }
.tw-field { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 12px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  transition: background .2s, border-color .2s, box-shadow .2s; }
.tw-field:focus-within { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.24); box-shadow: 0 0 0 4px rgba(255,255,255,.05); }
.tw-field-ic { display: grid; place-items: center; color: var(--text-3); }
.tw-field-ic svg { width: 16px; height: 16px; }
.tw-field input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 13.5px; }
.tw-field input::placeholder { color: var(--text-3); }
.tw-field kbd { font: inherit; font-size: 11px; color: var(--text-3); padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.07); opacity: 0; transition: opacity .2s; }
.tw-field:focus-within kbd { opacity: 1; }
.tw-recent { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 2px 0; }
.tw-recent[hidden] { display: none; }
.tw-recent-l { width: 100%; font-size: 11.5px; font-weight: 600; color: var(--text-3); padding: 0 4px 2px; }
.tw-scroll { flex: 1; min-height: 0; overflow-y: auto; margin: 4px -8px 0; padding: 0 8px 8px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8px, #000 calc(100% - 16px), transparent); }
.tw-scroll::-webkit-scrollbar { display: none; }
.tw-label { display: flex; align-items: center; justify-content: space-between; min-height: 28px; padding: 14px 4px 6px 8px; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.tw-label-n { font-variant-numeric: tabular-nums; padding-right: 6px; }
.tw-list, .tw-groups { display: flex; flex-direction: column; gap: 2px; }
.tw-row, .tw-grp { position: relative; display: flex; align-items: center; gap: 11px; height: 50px; padding: 0 8px; border-radius: 12px; cursor: default; transition: background .2s, opacity .2s; }
.tw-row:hover, .tw-grp:hover { background: rgba(255,255,255,.06); }
.tw-row.audible { background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.tw-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; transition: padding .15s; }
.tw-row-t b { font-size: 13.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-row.is-off .tw-row-t b { color: var(--text-2); font-weight: 500; }
.tw-row-s { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-row-r { display: flex; align-items: center; gap: 8px; flex: none; transition: opacity .15s; }
.tw-views { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tw-views i { width: 6px; height: 6px; border-radius: 50%; background: #ff453a; }
.tw-row-snd { display: grid; place-items: center; color: #fff; }
.tw-row-snd svg { width: 15px; height: 15px; }
body:not([data-accent="mono"]) .tw-row-snd { color: var(--acc); }
.tw-row-a { position: absolute; right: 6px; top: 50%; display: flex; gap: 2px; opacity: 0; pointer-events: none; transform: translate(4px, -50%); transition: opacity .15s, transform .25s var(--spring); }
.tw-row:hover .tw-row-a, .tw-grp:hover .tw-row-a { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.tw-row:hover .tw-row-r { opacity: 0; }
.tw-row:hover .tw-row-t { padding-right: 58px; }
.tw-grp:hover .tw-row-t { padding-right: 28px; }
.tw-row .tw-ib.on { color: #fff; background: rgba(255,255,255,.16); }
.tw-row.dragging { opacity: .35; }
.tw-row.drop-before::before, .tw-row.drop-after::after { content: ''; position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: #fff; }
.tw-row.drop-before::before { top: -2px; } .tw-row.drop-after::after { bottom: -2px; }
.tw-grp-ic { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); background: rgba(255,255,255,.07); transition: background .2s, color .2s; }
.tw-grp-ic svg { width: 16px; height: 16px; }
.tw-grp.on .tw-grp-ic { background: rgba(255,255,255,.92); color: #000; }
.tw-foot { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.tw-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.06); }
.tw-seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 9px; background: rgba(255,255,255,.94); box-shadow: 0 2px 10px rgba(0,0,0,.3); transition: transform .4s var(--spring); }
.tw-seg[data-v="spot"] .tw-seg-thumb { transform: translateX(100%); }
.tw-seg button { position: relative; z-index: 1; height: 32px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); transition: color .25s; }
.tw-seg button svg { width: 15px; height: 15px; }
.tw-seg button:hover { color: #fff; }
.tw-seg button.on { color: #000; }
.tw-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tw-tool { height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--text-2); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); transition: background .2s, color .2s, transform .25s var(--spring); }
.tw-tool svg { width: 17px; height: 17px; }
.tw-tool:hover { background: rgba(255,255,255,.1); color: #fff; }
.tw-tool:active { transform: scale(.94); }
.tw-tool.on { background: rgba(255,255,255,.92); color: #000; border-color: transparent; }
.tw-acct-in { width: 100%; height: 38px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; font-size: 13px; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); transition: background .2s; }
.tw-acct-in:hover { background: rgba(255,255,255,.11); }
.tw-acct-in svg { width: 16px; height: 16px; }
.tw-acct-row { display: flex; align-items: center; gap: 10px; padding: 2px 2px 0 6px; }
.tw-av.me { background: rgba(255,255,255,.16); }
.tw-av.me b { color: #fff; }

/* Stage + tiles */
.tw-stage { position: relative; min-width: 0; min-height: 0; }
.tw-tiles { position: absolute; inset: 0; }
.tw .show-side { position: fixed; top: 27px; left: 20px; z-index: 200; -webkit-app-region: no-drag; width: 36px; height: 36px; border-radius: 50%;
  background: var(--lg-fill), rgba(30,30,34,.55); border: 1px solid var(--lg-edge); backdrop-filter: var(--lg-blur); box-shadow: var(--lg-shadow);
  opacity: 0; pointer-events: none; transform: scale(.85); transition: opacity .25s, transform .35s var(--spring); }
.tw.side-off .show-side { opacity: 1; pointer-events: auto; transform: none; }
.tw-tile { position: absolute; left: 0; top: 0; border-radius: 16px; overflow: hidden; background: #0c0c0e; will-change: transform;
  box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 18px 50px rgba(0,0,0,.5);
  transition: transform .55s var(--spring), width .55s var(--spring), height .55s var(--spring), opacity .3s, box-shadow .3s; animation: twIn .5s var(--spring); }
@keyframes twIn { from { opacity: 0; } }
.tw-tile::after { content: ''; position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .3s; }
.tw-tile.audible::after { box-shadow: inset 0 0 0 2px rgba(255,255,255,.88); }
body:not([data-accent="mono"]) .tw-tile.audible::after { box-shadow: inset 0 0 0 2px var(--acc); }
.tw-tile.hidden, .tw-tile.leaving { opacity: 0; pointer-events: none; }
.tw-tile webview { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; opacity: 0; transition: opacity .5s; }
.tw-tile.loaded webview { opacity: 1; }
.tw-tile.is-off webview { visibility: hidden; }
.tw-skel { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.06), transparent 60%), #0c0c0e; transition: opacity .5s; }
.tw-tile.loaded .tw-skel { opacity: 0; pointer-events: none; }
.tw-skel-av { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(255,255,255,.08); animation: twPulse 1.6s ease-in-out infinite; }
.tw-skel-av img { width: 100%; height: 100%; object-fit: cover; }
.tw-skel-av b { font-size: 22px; color: var(--text-3); }
.tw-skel-l { font-size: 13px; font-weight: 600; color: var(--text-3); }
@keyframes twPulse { 50% { opacity: .5; } }
.tw-offcard { position: absolute; inset: 0; z-index: 2; display: none; overflow: hidden; background: #0c0c0e; }
.tw-tile.is-off .tw-offcard { display: block; }
.tw-off-bg { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(44px) saturate(1.4) brightness(.32); }
.tw-off-in { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.035), rgba(0,0,0,.4)); }
.tw-off-in > b { margin-top: 6px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.tw-off-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text-2); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); }
.tw-off-pill svg { width: 12px; height: 12px; }
.tw-off-next { font-size: 12.5px; color: var(--text-3); }
.tw-off-btns { display: flex; gap: 8px; margin-top: 8px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .3s var(--spring); }
.tw-tile:hover .tw-off-btns { opacity: 1; transform: none; }
.tw-tile.compact .tw-av.lg { width: 44px; height: 44px; }
.tw-tile.compact .tw-off-next, .tw-tile.tiny .tw-off-btns, .tw-tile.tiny .tw-off-pill { display: none; }
.tw-tile.compact .tw-off-in > b { font-size: 14px; }
.tw-rail { position: absolute; right: 10px; top: 50%; z-index: 5; display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 14px;
  background: rgba(18,18,22,.66); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 12px 30px rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transform: translate(8px, -50%); transition: opacity .2s, transform .4s var(--spring); }
.tw-tile:hover .tw-rail { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.tw-rb { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: rgba(255,255,255,.86); transition: background .2s, color .2s, transform .25s var(--spring); }
.tw-rb svg { width: 17px; height: 17px; }
.tw-rb:hover { background: rgba(255,255,255,.14); color: #fff; }
.tw-rb:active { transform: scale(.9); }
.tw-rb.on { background: rgba(255,255,255,.94); color: #000; }
.tw-tile.compact .tw-rail { right: 6px; padding: 3px; }
.tw-tile.compact .tw-rb { width: 28px; height: 28px; }
.tw-tile.compact .tw-rb svg { width: 15px; height: 15px; }
.tw-tile.tiny .tw-rb.spt, .tw-tile.tiny .tw-rb.fil { display: none; }
.tw-tile.is-filled { border-radius: 18px; }

/* Empty / all-offline */
.tw-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; }
.tw-empty[hidden] { display: none; }
.tw-empty-card { width: min(460px, 100%); text-align: center; padding: 40px 36px 34px; border-radius: 28px;
  background: var(--lg-fill), rgba(28,28,32,.5); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); animation: pop .5s var(--spring); }
.tw-empty-ic { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }
.tw-empty-ic svg { width: 28px; height: 28px; }
.tw-empty-card h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.tw-empty-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.tw-field.big { height: 46px; margin-top: 24px; padding-right: 5px; }
.tw-field.big input { font-size: 14px; }
.tw-field.big .btn { height: 36px; padding: 0 16px; border-radius: 10px; }
.tw-empty-more { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.tw-empty-more:not(:empty) { margin-top: 22px; }
.tw-empty-row > span { display: block; margin-bottom: 8px; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.tw-empty-row > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tw-empty-btns { margin-top: 22px; }

/* Chat */
.tw-chat { position: relative; width: var(--tw-chat-w); flex: none; display: flex; flex-direction: column; overflow: hidden; border-radius: 26px;
  background: var(--lg-fill), rgba(20,20,24,.7); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur);
  opacity: 0; transform: translateX(24px); transition: opacity .3s, transform .5s var(--ease); }
.tw.chat-on .tw-chat { opacity: 1; transform: none; }
.tw-grip { position: absolute; left: 0; top: 0; bottom: 0; z-index: 3; width: 10px; cursor: ew-resize; }
.tw-grip::after { content: ''; position: absolute; left: 3px; top: 50%; width: 4px; height: 40px; margin-top: -20px; border-radius: 2px; background: rgba(255,255,255,.3); opacity: 0; transition: opacity .2s; }
.tw-grip:hover::after, .tw.resizing .tw-grip::after { opacity: 1; }
.tw-chat-head { display: flex; align-items: center; gap: 6px; padding: 10px 10px 8px 12px; }
.tw-chat-tabs { flex: 1; min-width: 0; display: flex; gap: 2px; overflow-x: auto; padding: 4px; scrollbar-width: none; }
.tw-chat-tabs::-webkit-scrollbar { display: none; }
.tw-ctab { flex: none; padding: 3px; border-radius: 50%; opacity: .5; transition: opacity .2s, box-shadow .25s, transform .25s var(--spring); }
.tw-ctab:hover { opacity: .9; }
.tw-ctab:active { transform: scale(.92); }
.tw-ctab.on { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.tw-ctab .tw-av::after { display: none; }
.tw-chat-act { display: flex; gap: 2px; }
.tw-chat-title { display: flex; align-items: center; gap: 10px; padding: 2px 16px 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.tw-chat-title b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-chat-title span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.tw-chat-title .tw-dot { width: 6px; height: 6px; box-shadow: none; }
.tw-signin { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 10px 0; padding: 7px 7px 7px 12px; border-radius: 12px; font-size: 12.5px; color: var(--text-2);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.07); }
.tw-signin .btn { height: 28px; padding: 0 12px; font-size: 12.5px; }
.tw-chat-body { position: relative; flex: 1; min-height: 0; margin-top: 10px; background: #101012; }
.tw-chat-body webview { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; opacity: 0; transition: opacity .4s; }
.tw-chat-body.loaded webview { opacity: 1; }
.tw-chat-load { position: absolute; inset: 0; display: grid; place-items: center; }

/* Settings popover */
.tw-pop { position: fixed; z-index: 700; width: 304px; padding: 6px; border-radius: 18px; background: rgba(36,36,40,.8); backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border); box-shadow: 0 30px 80px rgba(0,0,0,.6); transform-origin: bottom left; animation: twPopIn .3s var(--spring); }
.tw-pop.out { opacity: 0; transform: scale(.97) translateY(4px); transition: opacity .15s, transform .15s; }
@keyframes twPopIn { from { opacity: 0; transform: scale(.94) translateY(8px); } }
.tw-pop-h { padding: 10px 12px 8px; font-size: 13px; font-weight: 700; }
.tw-pop-sec { padding: 4px 0; border-top: 1px solid rgba(255,255,255,.07); }
.tw-set { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 12px; border-radius: 11px; cursor: default; transition: background .15s; }
.tw-set:hover { background: rgba(255,255,255,.05); }
.tw-set b { display: block; font-size: 13px; font-weight: 500; }
.tw-set span:not(.q-slot) { display: block; margin-top: 2px; font-size: 11.5px; color: var(--text-3); }
.tw-set .gsel { height: 30px; padding: 0 10px 0 12px; font-size: 12.5px; }
.tw-set .gsel .gl:empty { display: none; }
.tw-pop-b { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; font-size: 13px; color: #fff; text-align: left; transition: background .15s; }
.tw-pop-b svg { width: 16px; height: 16px; color: var(--text-2); }
.tw-pop-b:hover { background: rgba(255,255,255,.07); }
.tw-pop-b.danger, .tw-pop-b.danger svg { color: #ff6961; }
.tw-pop-keys { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 12px 8px; border-top: 1px solid rgba(255,255,255,.07); font-size: 11.5px; color: var(--text-3); }
.tw-pop-keys kbd { font: inherit; font-size: 10.5px; padding: 1px 5px; margin: 0 1px; border-radius: 5px; background: rgba(255,255,255,.09); color: var(--text-2); }

/* Settings: version line + personal panel */
.settings-ver { text-align: center; font-size: 12px; margin: 18px 0 30px; user-select: none; cursor: default; }
.personal-panel[hidden] { display: none; }
/* ---- Twitch 2.4: following, browse, suggestions, theater ---- */
.tw-head-b { display: flex; gap: 2px; }
.tw-sugg { margin-top: 6px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); animation: twPopIn .22s var(--spring); }
.tw-sugg[hidden] { display: none; }
.tw-srow { width: 100%; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px; border-radius: 10px; text-align: left; transition: background .15s; }
.tw-srow:hover, .tw-srow.on { background: rgba(255,255,255,.09); }
.tw-srow .tw-av.live::after { inset: -2px; border-width: 1.5px; }
.tw-label em { font-style: normal; font-weight: 500; color: var(--text-3); margin-left: 4px; font-variant-numeric: tabular-nums; }
.tw-frow { height: 46px; }
.tw-frow .tw-av { width: 30px; height: 30px; }
.tw-frow.open .tw-row-t b { color: var(--text-2); }
.tw-open { display: grid; place-items: center; color: #34c759; }
.tw-open svg { width: 15px; height: 15px; }
.tw-frow:hover .tw-row-t { padding-right: 30px; }
.tw-more { align-self: flex-start; margin: 4px 0 0 6px; padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); transition: background .2s, color .2s; }
.tw-more:hover { background: rgba(255,255,255,.07); color: #fff; }
.tw-fol-in { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; text-align: left; background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.14); transition: background .2s, border-color .2s; }
.tw-fol-in:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); }
.tw-fol-in > svg { width: 20px; height: 20px; color: #ff375f; flex: none; }
.tw-fol-in b { display: block; font-size: 13px; }
.tw-fol-in span { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.4; color: var(--text-3); }
.tw-fskel { height: 46px; margin: 1px 0; border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 100%); background-size: 200% 100%; animation: twShim 1.4s linear infinite; }
@keyframes twShim { to { background-position: -200% 0; } }
.tw-acct-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 12px; text-align: left; transition: background .2s; }
.tw-acct-row:hover { background: rgba(255,255,255,.07); }
.tw-acct-more { display: grid; place-items: center; color: var(--text-3); }
.tw-acct-more svg { width: 16px; height: 16px; }
#tabs button.tw-new::after { content: ''; position: absolute; top: 7px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: #ff453a; box-shadow: 0 0 0 2px rgba(0,0,0,.6); animation: pop .4s var(--spring); }
.tw-ib.spin svg { animation: spin .9s linear infinite; }
.tw-scraper { position: fixed; left: -12000px; top: 0; width: 1280px; height: 1800px; pointer-events: none; }

/* Browse sheet: sits over the stage, streams keep playing underneath */
.tw-browse { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: rgba(12,12,14,.88); backdrop-filter: blur(30px) saturate(160%); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: twSheet .4s var(--spring); }
.tw-browse[hidden] { display: none; }
@keyframes twSheet { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.tw-bhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 12px 16px; }
.tw-bseg { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 250px; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.07); }
.tw-bseg > i { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 9px; background: rgba(255,255,255,.94); box-shadow: 0 2px 10px rgba(0,0,0,.3); transition: transform .4s var(--spring); }
.tw-bseg[data-v="popular"] > i { transform: translateX(100%); }
.tw-bseg button { position: relative; z-index: 1; height: 32px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); transition: color .25s; }
.tw-bseg button svg { width: 15px; height: 15px; }
.tw-bseg[data-v="following"] button[data-v="following"], .tw-bseg[data-v="popular"] button[data-v="popular"] { color: #000; }
.tw-bhead-r { display: flex; align-items: center; gap: 4px; }
.tw-bstat { font-size: 12px; color: var(--text-3); margin-right: 6px; }
.tw-bgrid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); align-content: start; gap: 22px 16px; padding: 6px 16px 22px; }
.tw-bgrid::-webkit-scrollbar { width: 8px; } .tw-bgrid::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
.tw-card { min-width: 0; cursor: pointer; animation: twIn .45s var(--spring) both; }
.tw-card-img { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #17171a; box-shadow: 0 0 0 1px rgba(255,255,255,.06); transition: transform .35s var(--spring), box-shadow .25s; }
.tw-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease), filter .3s; }
.tw-card:hover .tw-card-img { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 18px 40px rgba(0,0,0,.5); }
.tw-card:hover .tw-card-img img { transform: scale(1.04); filter: brightness(.55); }
.tw-live-b { position: absolute; top: 8px; left: 8px; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .03em; color: #fff; background: #eb0400; }
.tw-vw { position: absolute; bottom: 8px; left: 8px; padding: 3px 8px; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(0,0,0,.66); backdrop-filter: blur(8px); }
.tw-open-b { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 7px; font-size: 11.5px; font-weight: 700; color: #000; background: rgba(255,255,255,.94); }
.tw-open-b svg { width: 13px; height: 13px; }
.tw-card-hov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .3s var(--spring); }
.tw-card:hover .tw-card-hov { opacity: 1; transform: none; }
.tw-card-hov .btn svg { width: 14px; height: 14px; }
.tw-card-meta { display: flex; gap: 10px; margin-top: 10px; min-width: 0; }
.tw-card-meta .tw-av { width: 34px; height: 34px; }
.tw-card-meta > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tw-card-meta b { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tw-card-meta span { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-card-meta span:first-of-type { color: var(--text-2); }
.tw-card.open .tw-card-img { box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.tw-card.sk { cursor: default; animation: none; }
.tw-card.sk .tw-card-img, .tw-card.sk .tw-av, .tw-card.sk i { background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 100%); background-size: 200% 100%; animation: twShim 1.4s linear infinite; box-shadow: none; }
.tw-card.sk i { display: block; height: 11px; border-radius: 6px; width: 80%; margin-top: 4px; }
.tw-card.sk i + i { width: 50%; }
.tw-bempty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 70px 20px; color: var(--text-2); }
.tw-bempty > svg { width: 36px; height: 36px; color: var(--text-3); margin-bottom: 6px; }
.tw-bempty h3 { margin: 0; font-size: 19px; color: #fff; }
.tw-bempty p { margin: 0 0 10px; font-size: 13.5px; max-width: 360px; line-height: 1.5; }

/* Theater: Reel's nav + sidebar step away (nav peeks back at the top edge) */
body.tw-on #nav { transition: opacity .3s var(--ease), transform .45s var(--ease); }
body.tw-theater:not(.nav-peek) #nav { opacity: 0; transform: translateY(-14px); }
body.tw-theater:not(.nav-peek) #nav, body.tw-theater:not(.nav-peek) #nav * { pointer-events: none !important; }
body.tw-theater #drag { height: 12px; }
.tw.theater { padding-top: 14px; grid-template-columns: 0px minmax(0, 1fr) 0px; }
.tw.theater.chat-on { grid-template-columns: 0px minmax(0, 1fr) calc(var(--tw-chat-w) + var(--tw-gap)); }
.tw.theater .tw-side { opacity: 0; transform: translateX(-24px); pointer-events: none; }
.tw.theater .show-side { display: none; }
.tw.theater .tw-col-chat { padding-top: 34px; }
.tw-frow .tw-av.off img { filter: grayscale(1) brightness(.7); }
.tw-more + .tw-more { margin-left: 2px; }

/* ---- 2.4.1: hiding the sidebar = full-window mode (top bar hides too); a pull-tab brings both back ---- */
.tw.side-off { padding-top: 14px; }
.tw.side-off .tw-col-chat { padding-top: 34px; }
.tw .show-side { top: 50%; left: 0; width: 22px; height: 68px; margin-top: -34px; border-radius: 0 14px 14px 0; border-left: 0; display: grid; place-items: center; color: #fff;
  transform: translateX(-8px); }
.tw .show-side svg { width: 16px; height: 16px; }
.tw.side-off .show-side { opacity: .5; transform: none; }
.tw.side-off .show-side:hover { opacity: 1; width: 26px; }
.tw-ib.browse.on { background: rgba(255,255,255,.92); color: #000; }
.tw-row .tw-ib.rm:hover { background: rgba(255,69,58,.18); color: #ff6961; }
/* ---- 2.4.2: the "show sidebar" tab gets its own gutter and is always clearly visible ---- */
.tw.side-off { padding-left: 52px; }
.tw .show-side { left: 12px; width: 28px; height: 76px; margin-top: -38px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(44,44,50,.9); box-shadow: 0 8px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.12); }
.tw.side-off .show-side { opacity: 1; transform: none; }
.tw.side-off .show-side:hover { width: 28px; background: rgba(70,70,78,.95); transform: scale(1.06); }
.tw .show-side svg { width: 18px; height: 18px; }
/* ---- 2.4.3: small "show sidebar" button back in the top-left; player keeps full width ---- */
.tw.side-off { padding-left: 18px; }
.tw .show-side { top: 22px; left: 22px; width: 34px; height: 34px; margin-top: 0; border-radius: 11px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(30,30,34,.82); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 6px 18px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.12); }
.tw .show-side svg { width: 17px; height: 17px; }
.tw.side-off .show-side { opacity: .9; transform: none; }
.tw.side-off .show-side:hover { opacity: 1; width: 34px; background: rgba(60,60,68,.92); transform: scale(1.06); }
/* ============ Live TV (personal tab) ============ */
#livetv[hidden] { display: none !important; }
.tv svg.ic { flex: none; }
.tv-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.tv-nav .side-item { padding: 9px 12px; }
.tv-nav .side-item .ic { width: 18px; height: 18px; }
.tv-badge { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: #ff453a; padding: 1px 7px; border-radius: 999px; }
.tv-badge:empty { display: none; }
.tv-li { width: 100%; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 10px; text-align: left; font-size: 13.5px; color: var(--text-2); transition: background .15s, color .15s; }
.tv-li:hover { background: rgba(255,255,255,.06); color: #fff; }
.tv-li.on { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
.tv-li-ic { display: grid; place-items: center; color: var(--text-3); }
.tv-li.on .tv-li-ic { color: #fff; }
.tv-li-ic svg { width: 16px; height: 16px; }
.tv-li-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-li-t i { font-style: normal; color: var(--text-3); font-size: 11.5px; }
.tv-li em { font-style: normal; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tv-groups { display: flex; flex-direction: column; gap: 1px; }
.tv-lists { display: flex; flex-direction: column; gap: 1px; }
.tv-foot { flex-direction: row; align-items: center; gap: 8px; }
.tv-acct { flex: 1; min-width: 0; }
.tv-gear { width: 40px; flex: none; }
.tv-acct-in { display: flex; align-items: center; gap: 10px; padding: 2px 4px; }
.tv-acct-dot { width: 8px; height: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px rgba(52,199,89,.18); flex: none; }
.tv-acct-dot.warn { background: #ff9f0a; box-shadow: 0 0 0 3px rgba(255,159,10,.2); }
.tv-acct-add { width: 100%; height: 36px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.tv-acct-add svg { width: 16px; height: 16px; }

/* Stage + views */
.tv-view { position: absolute; inset: 0; }
.tv-view[hidden] { display: none; }
.tv-loading, .tv-empty { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--text-2); font-size: 14px; }
.tv-empty[hidden] { display: none; }
.tv-empty-card .btn svg { width: 16px; height: 16px; }

/* Watch: channel list + player */
.tv-watch { display: grid; grid-template-columns: 344px minmax(0, 1fr); gap: 14px; transition: grid-template-columns .5s var(--ease); }
.tw.side-off .tv-watch { grid-template-columns: 0px minmax(0, 1fr); gap: 0; }
.tw.side-off .tv-list { opacity: 0; pointer-events: none; }
.tw.side-off .tv-info { display: none; }
.tv-list { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  background: var(--lg-fill), rgba(26,26,30,.5); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); transition: opacity .3s; }
.tv-list-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 12px 10px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.tv-list-h b { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.tv-list-n { margin-left: 8px; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tv-list-act { display: flex; gap: 2px; }
.tv-vscroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 0; }
.tv-vscroll::-webkit-scrollbar { width: 8px; } .tv-vscroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; border: 2px solid transparent; background-clip: padding-box; }
.tv-vinner { position: relative; }
.tv-row { position: absolute; left: 6px; right: 6px; top: 4px; height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 10px 0 6px; border-radius: 12px; cursor: default; transition: background .15s; }
.tv-row:hover { background: rgba(255,255,255,.06); }
.tv-row.playing { background: rgba(255,255,255,.11); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.tv-row.playing::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: #fff; }
body:not([data-accent="mono"]) .tv-row.playing::before { background: var(--acc); }
.tv-num { width: 30px; flex: none; text-align: right; font-size: 12px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tv-logo { position: relative; width: 50px; height: 34px; flex: none; border-radius: 8px; display: grid; place-items: center; overflow: hidden; background: #1c1c20; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.tv-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.tv-logo b { font-size: 10.5px; font-weight: 800; letter-spacing: .02em; color: var(--text-3); }
.tv-logo img + b { display: none; }
.tv-logo.lg { width: 66px; height: 44px; border-radius: 10px; }
.tv-logo.sm { width: 32px; height: 22px; border-radius: 6px; }
.tv-logo.sm b { font-size: 8.5px; }
.tv-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tv-row-t b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-row-t span { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-row-t i { display: block; height: 2px; margin-top: 5px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,.7) var(--p), rgba(255,255,255,.1) var(--p)); }
.tv-row.playing .tv-row-t span { color: var(--text-2); }
.tv-row-r { display: flex; align-items: center; gap: 6px; flex: none; }
.tv-fav svg { width: 14px; height: 14px; color: #ffd60a; }
.tv-cu { display: grid; place-items: center; color: var(--text-3); }
.tv-cu svg { width: 14px; height: 14px; }
.tv-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.tv-eq i { width: 3px; border-radius: 1px; background: #fff; animation: tvEq .9s ease-in-out infinite; }
.tv-eq i:nth-child(2) { animation-delay: .2s; } .tv-eq i:nth-child(3) { animation-delay: .4s; }
@keyframes tvEq { 0%, 100% { height: 4px; } 50% { height: 12px; } }
.tv-list-empty { position: absolute; inset: 40px 20px auto; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--text-3); font-size: 13px; }
.tv-list-empty svg { width: 28px; height: 28px; margin-bottom: 4px; }
.tv-list-empty b { color: #fff; font-size: 14.5px; }

.tv-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.tv-player { position: relative; flex: 1; min-height: 0; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 20px 60px rgba(0,0,0,.55); }
.tw.side-off .tv-player { border-radius: 16px; }
.tv-player:not(.osd) { cursor: none; }
.tv-vid, .tv-vid video { position: absolute; inset: 0; width: 100%; height: 100%; }
.tv-vid video { object-fit: contain; background: #000; display: block; }
.tv-state { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.tv-state.error { pointer-events: auto; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); }
.tv-st-in { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--text-2); font-size: 13.5px; text-align: center; }
.tv-st-in.err { max-width: 400px; padding: 26px 28px; border-radius: 22px; background: rgba(30,30,34,.8); border: 1px solid rgba(255,255,255,.1); }
.tv-st-in.err b { color: #fff; font-size: 16px; }
.tv-st-ic svg { width: 30px; height: 30px; color: var(--text-3); }
.tv-st-btns { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }
.tv-numpad { position: absolute; top: 22px; right: 26px; z-index: 5; min-width: 72px; padding: 6px 18px; border-radius: 18px; font-size: 44px; font-weight: 800; letter-spacing: .04em; text-align: center; font-variant-numeric: tabular-nums;
  background: rgba(20,20,24,.75); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(20px); animation: pop .3s var(--spring); }
.tv-numpad[hidden] { display: none; }
.tv-osd { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease); }
.tv-player.osd .tv-osd { opacity: 1; }
.tv-player.osd .tv-osd > * { pointer-events: auto; }
.tv-osd-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 40px; background: linear-gradient(rgba(0,0,0,.72), transparent); }
.tv-osd-ch { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tv-osd-ch b { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.tv-osd-ch > div > span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-2); }
.tv-osd-num { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.14); font-variant-numeric: tabular-nums; }
.tv-cu-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #000; background: #ffd60a; }
.tv-cu-pill svg { width: 13px; height: 13px; }
.tv-osd-tr { display: flex; gap: 6px; }
.tv-ob, .tv-cb { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(30,30,34,.55); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(16px);
  transition: background .2s, transform .25s var(--spring); }
.tv-ob svg, .tv-cb svg { width: 18px; height: 18px; }
.tv-ob:hover, .tv-cb:hover { background: rgba(70,70,78,.7); transform: scale(1.06); }
.tv-ob.on svg { color: #ffd60a; }
.tv-cb.on { background: rgba(255,255,255,.92); color: #000; }
.tv-osd-bot { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.tv-now b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-now span { display: block; margin-top: 3px; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-prog { display: block; height: 3px; margin-top: 10px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; }
.tv-prog > i { display: block; height: 100%; border-radius: 3px; background: #fff; }
.tv-ctl { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.tv-ctl-sp { flex: 1; }
.tv-live-btn { height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .03em; color: #fff;
  background: rgba(30,30,34,.55); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(16px); transition: background .2s; }
.tv-live-btn i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.tv-live-btn.at { background: transparent; border-color: transparent; cursor: default; }
.tv-live-btn.at i { background: #ff453a; box-shadow: 0 0 0 3px rgba(255,69,58,.25); }
.tv-live-btn:not(.at):hover { background: rgba(70,70,78,.7); }
.tv-vol { display: flex; align-items: center; gap: 4px; }
.tv-volr { -webkit-appearance: none; appearance: none; width: 0; height: 4px; border-radius: 4px; opacity: 0; transition: width .3s var(--ease), opacity .2s;
  background: linear-gradient(90deg, #fff var(--v, 100%), rgba(255,255,255,.22) var(--v, 100%)); }
.tv-vol:hover .tv-volr, .tv-volr:focus { width: 92px; opacity: 1; }
.tv-volr::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.tv-q-slot .gsel { height: 34px; padding: 0 10px 0 12px; font-size: 12.5px; }
.tv-q-slot .gsel .gl:empty { display: none; }
.tv-info { flex: none; height: 172px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; padding: 16px 20px; border-radius: 20px; overflow: hidden;
  background: var(--lg-fill), rgba(26,26,30,.5); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); }
.tv-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.tv-eyebrow.sm { margin: 10px 0 4px; }
.tv-info-now { min-width: 0; overflow: hidden; }
.tv-info-now h3 { margin: 0 0 4px; font-size: 19px; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-info-meta { font-size: 12.5px; color: var(--text-2); }
.tv-info-desc { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tv-info-now .btn { margin-top: 10px; }
.tv-info-now .btn svg { width: 15px; height: 15px; }
.tv-info-next { min-width: 0; overflow: auto; scrollbar-width: none; }
.tv-later { display: flex; flex-direction: column; }
.tv-lrow { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 28px; padding: 0 4px; border-radius: 8px; text-align: left; }
.tv-lrow.cu:hover { background: rgba(255,255,255,.06); }
.tv-lt { width: 64px; flex: none; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tv-ln { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-lrow .bell { opacity: .55; } .tv-lrow:hover .bell, .tv-lrow .bell.on { opacity: 1; }
.tw-ib.bell.on { color: #ffd60a; }
.tv-info-empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; color: var(--text-2); }
.tv-info-empty > svg { width: 30px; height: 30px; color: var(--text-3); }
.tv-info-empty b { display: block; color: #fff; font-size: 16px; margin-bottom: 3px; }
.tv-info-empty span { font-size: 13px; }

/* Guide */
.tv-guide { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--lg-fill), rgba(22,22,26,.6); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); }
.tv-guide[hidden] { display: none; }
.tv-ghead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 12px 20px; }
.tv-ghead-l, .tv-ghead-r { display: flex; align-items: center; gap: 10px; }
.tv-ghead h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.tv-gday { font-size: 13px; font-weight: 600; color: var(--text-2); margin-right: 6px; }
.tv-gscroll { position: relative; flex: 1; min-height: 0; overflow: auto; border-top: 1px solid rgba(255,255,255,.06); }
.tv-gscroll::-webkit-scrollbar { width: 10px; height: 10px; } .tv-gscroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 5px; border: 2px solid transparent; background-clip: padding-box; }
.tv-ginner { position: relative; }
.tv-gtime { position: sticky; top: 0; z-index: 4; height: 44px; background: rgba(24,24,28,.97); border-bottom: 1px solid rgba(255,255,255,.07); }
.tv-gtime > span { position: absolute; top: 0; height: 44px; line-height: 44px; padding-left: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); border-left: 1px solid rgba(255,255,255,.08); }
.tv-gcorner { position: sticky; left: 0; z-index: 5; display: block; width: 236px; height: 44px; background: rgba(24,24,28,.99); border-right: 1px solid rgba(255,255,255,.07); }
.tv-grows { position: absolute; top: 0; left: 0; right: 0; }
.tv-grow { position: absolute; left: 0; right: 0; height: 64px; border-bottom: 1px solid rgba(255,255,255,.05); }
.tv-gch { position: sticky; left: 0; z-index: 2; width: 236px; height: 100%; display: flex; align-items: center; gap: 10px; padding: 0 12px; text-align: left; background: rgba(22,22,26,.98); border-right: 1px solid rgba(255,255,255,.07); transition: background .15s; }
.tv-gch:hover { background: rgba(40,40,46,.98); }
.tv-grow.playing .tv-gch { background: rgba(48,48,56,.98); box-shadow: inset 3px 0 0 #fff; }
.tv-gch > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tv-gch b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-gch em { display: flex; align-items: center; gap: 4px; font-style: normal; font-size: 11.5px; color: var(--text-3); }
.tv-gch em svg { width: 11px; height: 11px; }
.tv-gp { position: absolute; top: 6px; height: 52px; padding: 7px 10px; border-radius: 10px; text-align: left; overflow: hidden; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.06); transition: background .15s, border-color .15s; }
.tv-gp:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.16); }
.tv-gp b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-gp b svg { width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; }
.tv-gp span { display: block; margin-top: 3px; font-size: 11px; color: var(--text-3); }
.tv-gp.live { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.22); }
.tv-gp.past { opacity: .42; }
.tv-gp.past.cu { opacity: .78; }
.tv-gp.rem { border-color: rgba(255,214,10,.55); }
.tv-gp.rem b svg { color: #ffd60a; }
.tv-gp.none { border-style: dashed; background: transparent; cursor: default; }
.tv-gp.none span { margin: 10px 0 0; font-size: 12px; }
.tv-gnow { position: absolute; top: 0; bottom: 0; z-index: 3; width: 2px; margin-left: -1px; background: #ff453a; pointer-events: none; box-shadow: 0 0 10px rgba(255,69,58,.5); }
.tv-gnow::before { content: ''; position: sticky; top: 38px; display: block; width: 10px; height: 10px; margin-left: -4px; border-radius: 50%; background: #ff453a; }

/* Sports */
.tv-sports { overflow-y: auto; padding: 4px 6px 30px; }
.tv-sports::-webkit-scrollbar { width: 8px; } .tv-sports::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
.tv-sp-load { display: grid; place-items: center; height: 60%; }
.tv-sp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 6px 4px 0; }
.tv-sp-head h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.tv-sp-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--text-2); }
.tv-sp-tools { display: flex; align-items: center; gap: 8px; }
.tv-sp-tools .btn svg { width: 15px; height: 15px; }
.tv-sp-rep { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin-right: 6px; }
.tv-sp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 4px; padding: 0 4px; }
.tw-chip.on { background: rgba(255,255,255,.94); color: #000; border-color: transparent; }
.tw-chip em { font-style: normal; font-size: 11.5px; color: var(--text-3); margin-left: 2px; }
.tw-chip.on em { color: rgba(0,0,0,.5); }
.tv-sports .tw-chip { padding: 0 12px; }
.tv-sp-sec { margin-top: 26px; padding: 0 4px; }
.tv-sp-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.tv-sp-sec h3 svg { width: 16px; height: 16px; color: #ffd60a; }
.tv-sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 12px; }
.tv-ev { position: relative; padding: 14px 16px 14px; border-radius: 18px; cursor: pointer; background: var(--lg-fill), rgba(30,30,34,.5); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow);
  transition: transform .35s var(--spring), border-color .2s, background .2s; animation: twIn .4s var(--spring) both; }
.tv-ev:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.22); }
.tv-ev.live { border-color: rgba(255,69,58,.3); }
.tv-ev.mine { box-shadow: var(--lg-shadow), 0 0 0 1.5px rgba(255,214,10,.55); }
.tv-ev-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tv-ev-lg { font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.09); color: var(--text-2); }
.tv-ev-live { font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; background: #eb0400; color: #fff; }
.tv-ev-time { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.tv-ev-title { margin: 12px 0 2px; min-height: 42px; }
.tv-ev-title b { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-ev-title em { font-style: normal; font-weight: 600; color: var(--text-3); margin-right: 3px; }
.tv-ev .tv-prog { margin-top: 10px; height: 3px; }
.tv-ev .tv-prog > i { background: #ff453a; }
.tv-ev-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.tv-ev-chs { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tv-ev-chs .tv-logo + .tv-logo { margin-left: -12px; box-shadow: 0 0 0 2px rgba(30,30,34,1); }
.tv-ev-chs span { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 4px; }
.tv-ev-foot .btn svg { width: 13px; height: 13px; }
.tv-sp-later { display: flex; flex-direction: column; gap: 2px; border-radius: 16px; padding: 4px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05); }
.tv-sp-row { display: grid; grid-template-columns: 140px 130px minmax(0, 1fr) 170px 28px; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 10px; text-align: left; transition: background .15s; }
.tv-sp-row:hover { background: rgba(255,255,255,.06); }
.tv-sp-t { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tv-sp-lg { justify-self: start; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--text-2); white-space: nowrap; }
.tv-sp-row b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-sp-ch { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-sp-bell { display: grid; place-items: center; color: var(--text-3); }
.tv-sp-bell svg { width: 16px; height: 16px; }
.tv-sp-bell.on { color: #ffd60a; }

/* Multiview */
.tv-mgrid { position: absolute; inset: 0; }
.tv-mtile, .tv-madd { position: absolute; left: 0; top: 0; border-radius: 16px; overflow: hidden; transition: transform .5s var(--spring), width .5s var(--spring), height .5s var(--spring); }
.tv-mtile { background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 16px 44px rgba(0,0,0,.5); cursor: pointer; }
.tv-mtile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .3s; z-index: 4; }
.tv-mtile.audible::after { box-shadow: inset 0 0 0 2px rgba(255,255,255,.88); }
.tv-mstate { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-size: 13px; color: var(--text-2); }
.tv-mbar { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 8px; border-radius: 14px;
  background: rgba(18,18,22,.7); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(20px); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .3s var(--spring); }
.tv-mtile:hover .tv-mbar { opacity: 1; transform: none; }
.tv-mname { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tv-mname b { font-size: 13px; white-space: nowrap; }
.tv-mnow { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-mact { display: flex; gap: 2px; flex: none; }
.tv-madd { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-2); border: 1.5px dashed rgba(255,255,255,.16); background: rgba(255,255,255,.02); transition: background .2s, border-color .2s, transform .5s var(--spring), width .5s var(--spring), height .5s var(--spring); }
.tv-madd:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.3); color: #fff; }
.tv-madd > span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.tv-madd > span svg { width: 22px; height: 22px; }
.tv-madd b { font-size: 14px; } .tv-madd em { font-style: normal; font-size: 12px; color: var(--text-3); }

/* Sheets */
.tv-src-seg { grid-template-columns: repeat(3, 1fr); margin: 16px 0 4px; }
.tv-src-seg button:disabled { opacity: .35; cursor: default; }
.tv-src-f[hidden] { display: none; }
.tv-f { display: block; margin-top: 12px; }
.tv-f > span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.tv-f .input { width: 100%; box-sizing: border-box; }
.tv-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tv-file { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.tv-adv { margin-top: 16px; }
.tv-adv summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); }
.tv-src-err { margin-top: 12px; font-size: 13px; color: #ff6961; line-height: 1.4; }
.tv-src-err:empty { display: none; }
.tv-gp-tools { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; }
.tv-gp-tools .tw-field { flex: 1; }
.tv-gp-tools .btn svg { width: 14px; height: 14px; }
.tv-gp-count { font-size: 12.5px; margin: 0 2px 8px; }
.tv-gp-list { max-height: 46vh; overflow-y: auto; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); margin-bottom: 8px; }
.tv-gp-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.tv-gp-row:hover { background: rgba(255,255,255,.05); }
.tv-gp-n { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-gp-b { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: rgba(255,214,10,.14); color: #ffd60a; }
.tv-gp-b svg { width: 11px; height: 11px; }
.tv-gp-row em { font-style: normal; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tv-picker .tw-field { margin-top: 12px; }
.tv-pick-list { max-height: 52vh; overflow-y: auto; margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.tv-prow { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; text-align: left; transition: background .15s; }
.tv-prow:hover { background: rgba(255,255,255,.07); }
.tv-prow > span { min-width: 0; }
.tv-prow b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-prow em { display: block; font-style: normal; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-set-sec { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.tv-set-sec .btn svg { width: 14px; height: 14px; }
.tv-set .tw-set .gsel { height: 30px; padding: 0 10px 0 12px; font-size: 12.5px; }
.tv-set .tw-set .gsel .gl:empty { display: none; }
.tv-srow { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 10px; border-radius: 12px; margin-bottom: 6px; background: rgba(255,255,255,.04); }
.tv-team-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tv-team-chips .tw-chip { padding: 0 10px 0 12px; }
.tv-team-chips .tw-chip svg { width: 13px; height: 13px; }
/* ---- Live TV guide polish: opaque channel column above programmes; titles stay visible as you scroll ---- */
.tv-gch { z-index: 3; background: #17171b; }
.tv-gch:hover { background: #222228; }
.tv-grow.playing .tv-gch { background: #2a2a31; }
.tv-gp { z-index: 1; overflow: clip; }
.tv-gp b, .tv-gp span { display: inline-block; position: sticky; left: 246px; max-width: none; white-space: nowrap; }
.tv-gp span { display: block; width: max-content; }
.tw.side-off .tv-osd-top { padding-left: 70px; }

/* ============ Live TV 2.6: home, merged channels, tags, setup, decluttered watch ============ */
/* Watch: the channel list and the details panel are opt-in */
.tv-watch { grid-template-columns: 0px minmax(0, 1fr); gap: 0; }
.tv-list-on .tv-watch { grid-template-columns: 340px minmax(0, 1fr); gap: 14px; }
.tv .tv-list { opacity: 0; pointer-events: none; }
.tv-list-on .tv-list { opacity: 1; pointer-events: auto; }
.tw.side-off .tv-watch { grid-template-columns: 0px minmax(0, 1fr) !important; gap: 0 !important; }
.tw.side-off .tv-list { opacity: 0 !important; pointer-events: none !important; }
.tv-info { display: none; }
.tv-info-on .tv-info { display: grid; }
.tw.side-off .tv-info { display: none !important; }
.tv-num { display: none; }
.tv-nums .tv-num { display: block; }
.tv-list-h { padding: 10px 10px 8px 12px; }
.tv-list-h .gsel { max-width: 250px; height: 34px; font-size: 13.5px; font-weight: 600; }
.tv-list-h .gsel .gl:empty { display: none; }
.tv-list-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px 10px 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.tv-list-f .tw-chip { height: 28px; padding: 0 11px 0 9px; font-size: 12.5px; }
.tv-list-f .tw-chip .tw-dot { width: 6px; height: 6px; box-shadow: none; background: var(--text-3); }
.tv-list-f .tw-chip.on .tw-dot { background: #ff453a; }
.tv-list-f .tv-list-n { margin: 0; }
.tv-row { padding-left: 10px; }
.tv-qn { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 6px; padding: 0 4px; border-radius: 5px; font-style: normal; font-size: 10px; font-weight: 800; color: var(--text-2); background: rgba(255,255,255,.1); vertical-align: 1px; }
.tv-tag { display: inline-block; margin-right: 6px; padding: 1px 5px; border-radius: 4px; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; color: var(--text-2); background: rgba(255,255,255,.1); vertical-align: 1px; }
.tv-tag.live { color: #fff; background: #eb0400; }
.tv-tag.ev { color: #000; background: #ffd60a; }
.tv-now .tv-tag { font-size: 11px; padding: 2px 6px; vertical-align: 3px; }
.tv-logo.xl { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; }
.tv-logo.xl img { padding: 18% 22%; }
.tv-logo.xl b { font-size: 18px; }

/* Sidebar: My channels */
.tv-favs { display: flex; flex-direction: column; gap: 1px; }
.tv-frow { width: 100%; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px; border-radius: 11px; text-align: left; transition: background .15s; }
.tv-frow:hover { background: rgba(255,255,255,.06); }
.tv-frow.on { background: rgba(255,255,255,.12); }
.tv-frow .tw-row-t { flex: 1; min-width: 0; }
.tv-frow .tw-row-t b { font-size: 13px; }
.tv-dot-l { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #ff453a; vertical-align: 1px; }
.tv-fav-empty { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; text-align: left; background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.16); transition: background .2s, border-color .2s; }
.tv-fav-empty:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); }
.tv-fav-empty > svg { width: 20px; height: 20px; color: #ffd60a; flex: none; }
.tv-fav-empty b { display: block; font-size: 13px; }
.tv-fav-empty span { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.4; color: var(--text-3); }

/* Home */
.tv-home { overflow-y: auto; padding: 4px 8px 40px; }
.tv-home::-webkit-scrollbar { width: 8px; } .tv-home::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
.tv-hhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 6px 2px 0; }
.tv-hhead h1 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.035em; }
.tv-hhead p { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }
.tv-hhead-r { display: flex; gap: 8px; }
.tv-hhead-r .btn svg { width: 15px; height: 15px; }
.tv-hsec { margin-top: 30px; }
.tv-hsec-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 0 2px; }
.tv-hsec-h h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.tv-hsec-h h2 svg { width: 17px; height: 17px; }
.tv-hsec.fav .tv-hsec-h h2 svg { color: #ffd60a; }
.tv-more { font-size: 13px; font-weight: 600; color: var(--text-2); padding: 5px 10px; border-radius: 8px; transition: background .2s, color .2s; }
.tv-more:hover { background: rgba(255,255,255,.07); color: #fff; }
.tv-more:empty { display: none; }
.tv-hrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.tv-ctile { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 18px; text-align: left; background: var(--lg-fill), rgba(30,30,34,.45); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow);
  transition: transform .35s var(--spring), border-color .2s; animation: twIn .4s var(--spring) both; }
.tv-ctile:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.22); }
.tv-ctile-t { min-width: 0; padding: 0 4px 2px; }
.tv-ctile-t b { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-ctile-t span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-ctile-t i { display: block; height: 3px; margin-top: 9px; border-radius: 3px; background: linear-gradient(90deg, rgba(255,255,255,.75) var(--p), rgba(255,255,255,.12) var(--p)); }
.tv-hnone, .tv-hpick { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); text-align: left; }
.tv-hnone > svg { width: 26px; height: 26px; color: var(--text-3); flex: none; }
.tv-hnone > div, .tv-hpick > div { flex: 1; min-width: 0; }
.tv-hnone b, .tv-hpick b { display: block; font-size: 14.5px; }
.tv-hnone span, .tv-hpick em { display: block; margin-top: 3px; font-style: normal; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.tv-hpick { border-style: dashed; border-color: rgba(255,255,255,.18); transition: background .2s, border-color .2s; }
.tv-hpick:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); }
.tv-hpick > span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #000; flex: none; }
.tv-hpick > span svg { width: 22px; height: 22px; }
.tv-home .tv-hrow .tv-ev { animation-delay: 0s; }

/* Sports additions */
.tv-sp-note { margin: -6px 0 12px; font-size: 12.5px; color: var(--text-3); }
.tv-ev-rep { font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.12); color: var(--text-2); }
.tv-ev-evt { font-size: 11px; font-weight: 800; letter-spacing: .03em; padding: 3px 8px; border-radius: 6px; background: #ffd60a; color: #000; }
.tv-ev.rep { opacity: .75; }
.tv-sp-rep { cursor: pointer; }

/* Pickers + setup */
.tv-prow.on { background: rgba(255,214,10,.08); }
.tv-pstar { margin-left: auto; display: grid; place-items: center; color: var(--text-3); font-style: normal; }
.tv-pstar svg { width: 18px; height: 18px; }
.tv-prow.on .tv-pstar { color: #ffd60a; }
.tv-favpick .tv-pick-list { max-height: 50vh; }
.tv-wiz { text-align: left; }
.tv-wiz-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }
.tv-wiz-ic svg { width: 26px; height: 26px; color: #ffd60a; }
.tv-wiz h3 { font-size: 22px; margin: 0 0 6px; }
.tv-wiz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tv-wiz-chips .tw-chip { height: 36px; padding: 0 14px; font-size: 13.5px; }
.tv-wiz-sum { margin-top: 14px; font-size: 13px; }
.tv-ev-foot .btn { flex: none; }
.tv-ev-chs { flex: 1; }
.tv-osd-bot { background: linear-gradient(transparent, rgba(0,0,0,.6) 35%, rgba(0,0,0,.9)); }
.tv-osd-top { background: linear-gradient(rgba(0,0,0,.8), rgba(0,0,0,.35) 70%, transparent); }

/* ============ Live TV · Game Day ============ */
.gd { position: fixed; inset: 0; z-index: 1; background: #050609; overflow: hidden; --c1: #24314f; --c2: #3a2547; }
.gd-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.gd-bg i { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; filter: blur(110px); opacity: .34; transition: background 1.6s var(--ease); will-change: transform; }
.gd-bg .o1 { left: -18vmax; top: -24vmax; background: var(--c1); animation: gdDrift1 28s ease-in-out infinite alternate; }
.gd-bg .o2 { right: -20vmax; top: -18vmax; background: var(--c2); animation: gdDrift2 34s ease-in-out infinite alternate; }
.gd-bg .o3 { left: 20vmax; bottom: -42vmax; background: color-mix(in srgb, var(--c1) 50%, var(--c2)); opacity: .2; animation: gdDrift1 40s ease-in-out infinite alternate-reverse; }
.gd-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 20%, transparent 40%, rgba(0,0,0,.55)); }
@keyframes gdDrift1 { to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes gdDrift2 { to { transform: translate(-7vmax, 9vmax) scale(.94); } }
body.reduce-motion .gd-bg i { animation: none; }
.gd-scroll { position: absolute; inset: 0; overflow-y: auto; padding: 86px 40px 60px; }
.gd-scroll::-webkit-scrollbar { width: 8px; } .gd-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
.gd.watching .gd-scroll { visibility: hidden; }
.gd-wrap { max-width: 1340px; margin: 0 auto; }
.gd-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; }
.gd-title h1 { margin: 0; font-size: 36px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.gd-date { margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.gd-seg { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--lg-fill), rgba(30,30,36,.5); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); }
.gd-seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 2px 12px rgba(0,0,0,.35); transition: transform .45s var(--spring), width .45s var(--spring); }
.gd-seg button { position: relative; z-index: 1; height: 36px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 7px; transition: color .25s; }
.gd-seg button:hover { color: #fff; }
.gd-seg button.on { color: #000; }
.gd-seg em { font-style: normal; font-size: 10.5px; font-weight: 800; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; background: #ff453a; color: #fff; }
.gd-actions { justify-self: end; display: flex; gap: 8px; }
.gd-ib { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--lg-fill), rgba(30,30,36,.5); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); transition: transform .3s var(--spring), background .2s; }
.gd-ib:hover { transform: scale(1.06); background: var(--lg-fill), rgba(60,60,70,.6); }
.gd-ib svg { width: 18px; height: 18px; }
.gd-ib.sm { width: 32px; height: 32px; } .gd-ib.sm svg { width: 15px; height: 15px; }

/* Team logos — ESPN artwork, or a clean colored monogram */
.gd-logo { position: relative; width: 28px; height: 28px; flex: none; display: grid; place-items: center; }
.gd-logo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.gd-logo b { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--tc); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .02em; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18); }
.gd-logo img + b { display: none; }
.gd-logo.xs { width: 20px; height: 20px; } .gd-logo.xs b { font-size: 7.5px; }
.gd-logo.xl { width: 116px; height: 116px; } .gd-logo.xl b { font-size: 34px; }

/* Hero */
.gd-hero { position: relative; margin-top: 28px; padding: 22px 28px 24px; border-radius: 32px; overflow: hidden; cursor: default;
  background: var(--lg-fill), rgba(18,18,24,.42); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow), 0 40px 100px rgba(0,0,0,.45); backdrop-filter: var(--lg-blur); animation: gdHeroIn .7s var(--spring) both; }
@keyframes gdHeroIn { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.gd-hero-bg { position: absolute; inset: 0; pointer-events: none; opacity: .62;
  background: radial-gradient(55% 130% at 0% 55%, color-mix(in srgb, var(--c1) 60%, transparent), transparent 62%), radial-gradient(55% 130% at 100% 55%, color-mix(in srgb, var(--c2) 60%, transparent), transparent 62%); }
.gd-hero > *:not(.gd-hero-bg) { position: relative; }
.gd-hero-top, .gd-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gd-lg { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-st { display: inline-flex; align-items: center; gap: 7px; flex: none; font-size: 12.5px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.gd-st.live { color: #fff; }
.gd-st.live i { width: 7px; height: 7px; border-radius: 50%; background: #ff453a; box-shadow: 0 0 0 0 rgba(255,69,58,.6); animation: gdPulse 1.8s ease-out infinite; }
@keyframes gdPulse { 70% { box-shadow: 0 0 0 7px rgba(255,69,58,0); } 100% { box-shadow: 0 0 0 0 rgba(255,69,58,0); } }
.gd-st.fin { color: var(--text-3); }
.gd-hero .gd-st { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.1); }
.gd-hero-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin: 14px 0 18px; }
.gd-ht { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.gd-ht b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.gd-ht em { font-style: normal; font-size: 13px; color: var(--text-2); }
.gd-rk { font-style: normal; font-size: .6em; font-weight: 700; color: var(--text-2); margin-right: 6px; vertical-align: .25em; }
.gd-star { position: absolute; top: 0; right: calc(50% - 82px); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.1); opacity: 0; transition: opacity .2s, transform .3s var(--spring); }
.gd-star svg { width: 15px; height: 15px; }
.gd-hero:hover .gd-star, .gd-star.on { opacity: 1; }
.gd-star.on { color: #ffd60a; }
.gd-star:hover { transform: scale(1.1); }
.gd-hs { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 220px; }
.gd-hs-n { display: flex; align-items: center; gap: 26px; }
.gd-hs-n span { font-size: 76px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 6px 30px rgba(0,0,0,.4); }
.gd-hs-n span.lost { opacity: .45; }
.gd-hs-n i { width: 16px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); }
.gd-hs-t { font-size: 46px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.gd-hs-in { font-size: 14px; color: var(--text-2); }
.gd-hs-sit { margin-top: 4px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.1); }
.gd-hs-sit.rz { border-color: rgba(255,69,58,.5); }
.gd-hs-sit b { color: #ff453a; font-weight: 800; }
.gd-hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gd-net { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-hero-btns { display: flex; align-items: center; gap: 14px; flex: none; }
.gd-hero .btn.watch { height: 46px; padding: 0 24px; font-size: 15px; border-radius: 999px; }
.gd-hero .btn.watch svg { width: 16px; height: 16px; }
.gd-avail { font-size: 12.5px; font-weight: 600; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }
.gd-avail.ok { color: #30d158; }
.gd-avail.ok::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #30d158; }
.gd-avail:empty { display: none; }

/* Sections + game cards */
.gd-sec { margin-top: 36px; }
.gd-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 0 4px; }
.gd-sec-h h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.gd-sec-h h2 svg { width: 17px; height: 17px; color: #ffd60a; }
.gd-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff453a; animation: gdPulse 1.8s ease-out infinite; }
.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(296px, 1fr)); gap: 14px; }
.gd-card { position: relative; padding: 14px 16px 12px 18px; border-radius: 22px; overflow: hidden; cursor: pointer;
  background: var(--lg-fill), rgba(22,22,28,.48); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur);
  transition: transform .4s var(--spring), border-color .2s, box-shadow .3s; animation: gdCardIn .55s var(--spring) both; }
@keyframes gdCardIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.gd-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--c1), var(--c2)); }
.gd-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(110% 90% at 0% 0%, color-mix(in srgb, var(--c1) 26%, transparent), transparent 58%), radial-gradient(110% 90% at 100% 100%, color-mix(in srgb, var(--c2) 18%, transparent), transparent 58%); opacity: .9; }
.gd-card > * { position: relative; z-index: 1; }
.gd-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.24); box-shadow: var(--lg-shadow), 0 24px 50px rgba(0,0,0,.4); }
.gd-card:active { transform: translateY(-1px) scale(.99); }
.gd-card-top { margin-bottom: 10px; }
.gd-tm { display: flex; align-items: center; gap: 11px; height: 36px; }
.gd-tm b { flex: 1; min-width: 0; display: flex; align-items: center; font-size: 16px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-tm em { font-style: normal; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.gd-sc { min-width: 36px; text-align: right; font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gd-tm.lost b, .gd-tm.lost .gd-sc { opacity: .45; }
.gd-tm.mine b { color: #ffd60a; }
.gd-poss { width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: #ffd60a; box-shadow: 0 0 8px rgba(255,214,10,.6); flex: none; }
.gd-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.07); }
.gd-card .gd-net { font-size: 12px; color: var(--text-3); }
.gd-card .gd-avail { font-size: 11.5px; }
.gd-sit { margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.gd-sit.rz { color: #ff6961; }
.gd-card.post { opacity: .78; }
.gd-card.mine { box-shadow: var(--lg-shadow), 0 0 0 1.5px rgba(255,214,10,.5); }
.gd-rz { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; text-align: left; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, rgba(235,4,0,.45), rgba(120,0,0,.35)), rgba(22,22,28,.5); border: 1px solid rgba(255,90,80,.35); backdrop-filter: var(--lg-blur); transition: transform .4s var(--spring); animation: gdCardIn .55s var(--spring) both; }
.gd-rz:hover { transform: translateY(-4px); }
.gd-rz-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 18px; font-weight: 900; font-style: italic; background: #eb0400; box-shadow: 0 8px 20px rgba(235,4,0,.4); }
.gd-rz b { display: block; font-size: 16px; } .gd-rz em { display: block; font-style: normal; font-size: 12.5px; color: rgba(255,255,255,.75); margin-top: 2px; }
.gd-rz-go { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #000; }
.gd-rz-go svg { width: 15px; height: 15px; }
.gd-more { font-size: 13px; font-weight: 600; color: var(--text-2); padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); transition: background .2s, color .2s; }
.gd-more:hover { background: rgba(255,255,255,.1); color: #fff; }
.gd-foot { margin: 48px 0 0; text-align: center; font-size: 12px; color: var(--text-3); }
.gd-empty { max-width: 520px; margin: 70px auto 0; padding: 44px 40px; text-align: center; border-radius: 30px; background: var(--lg-fill), rgba(22,22,28,.5); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); animation: gdHeroIn .6s var(--spring) both; }
.gd-empty-ic { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }
.gd-empty-ic svg { width: 28px; height: 28px; }
.gd-empty h2 { margin: 0 0 8px; font-size: 22px; } .gd-empty p { margin: 0; color: var(--text-2); line-height: 1.5; }
.gd-empty-btns { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }

/* Watching */
.gd-watch { position: absolute; inset: 0; z-index: 20; background: #000; animation: fade .35s var(--ease); }
.gd-watch[hidden] { display: none; }
.gd-watch .tv-vid, .gd-watch .tv-vid video { position: absolute; inset: 0; width: 100%; height: 100%; }
.gd-watch .tv-vid video { object-fit: contain; background: #000; }
.gd-watch:not(.osd) { cursor: none; }
.gd-osd { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.gd-osd-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 16px 18px 50px; }
.gd-osd-top::before, .gd-osd-bot::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; }
.gd-osd-top::before { background: linear-gradient(rgba(0,0,0,.7), transparent); }
.gd-osd-bot::before { background: linear-gradient(transparent, rgba(0,0,0,.6) 40%, rgba(0,0,0,.88)); }
.gd-watch.osd .gd-osd-top::before, .gd-watch.osd .gd-osd-bot::before { opacity: 1; }
.gd-osd-top > :not(.gd-bug), .gd-osd-bot > * { opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .4s var(--spring); }
.gd-osd-bot > * { transform: translateY(6px); }
.gd-watch.osd .gd-osd-top > *, .gd-watch.osd .gd-osd-bot > * { opacity: 1; transform: none; pointer-events: auto; }
.gd-bug { pointer-events: auto; }
.gd-osd-sp { flex: 1; }
.gd-back { height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #fff;
  background: rgba(24,24,30,.62); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(20px) saturate(180%); transition: background .2s; }
.gd-back:hover { background: rgba(60,60,68,.75); }
.gd-back svg { width: 16px; height: 16px; }
.gd-bug { display: flex; align-items: stretch; height: 42px; border-radius: 14px; overflow: hidden; background: rgba(12,12,16,.74); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(22px) saturate(180%); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.gd-bug-t { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.gd-bug-t + .gd-bug-t { border-left: 1px solid rgba(255,255,255,.08); }
.gd-bug-t b { font-size: 13px; font-weight: 800; letter-spacing: .03em; }
.gd-bug-t span { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 22px; text-align: center; }
.gd-bug-s { display: flex; align-items: center; gap: 7px; padding: 0 14px; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.07); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gd-bug-s i { width: 7px; height: 7px; border-radius: 50%; background: #ff453a; animation: gdPulse 1.8s ease-out infinite; }
.gd-bug-s em { font-style: normal; font-weight: 600; color: var(--text-2); margin-left: 4px; }
.gd-bug-s em.rz { color: #ff6961; }
.gd-bug-ch { display: flex; align-items: center; padding: 0 16px; font-size: 14px; }
.gd-streams .gsel, .gd-q .gsel { height: 40px; background: rgba(24,24,30,.62); }
.gd-streams .gsel .gl:empty, .gd-q .gsel .gl:empty { display: none; }
.gd-osd-bot { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 22px 18px; }
.gd-now b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.gd-now span { display: block; margin-top: 3px; font-size: 13px; color: var(--text-2); }
.gd-drawer { position: absolute; top: 0; right: 0; bottom: 0; z-index: 6; width: 340px; display: flex; flex-direction: column; background: rgba(14,14,18,.82); border-left: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(30px) saturate(170%); transform: translateX(105%); transition: transform .5s var(--spring); }
.gd.drawer-on .gd-drawer { transform: none; }
.gd-drawer-h { display: flex; align-items: center; justify-content: space-between; padding: 20px 16px 10px 20px; }
.gd-drawer-h b { font-size: 18px; }
.gd-drawer-b { flex: 1; overflow-y: auto; padding: 0 10px 20px; }
.gd-dr-h { padding: 14px 10px 6px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.gd-dr { width: 100%; display: block; padding: 10px 12px; border-radius: 14px; text-align: left; transition: background .15s; }
.gd-dr:hover { background: rgba(255,255,255,.07); }
.gd-dr.on { background: rgba(255,255,255,.13); }
.gd-dr-t { display: flex; align-items: center; gap: 9px; height: 26px; }
.gd-dr-t b { flex: 1; font-size: 13.5px; font-weight: 700; }
.gd-dr-t span { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gd-dr em { display: block; margin-top: 4px; font-style: normal; font-size: 11.5px; color: var(--text-3); }
.gd-dr.rzb { background: linear-gradient(135deg, rgba(235,4,0,.4), rgba(120,0,0,.3)); margin: 8px 0 4px; }
.gd-dr.rzb b { display: block; font-size: 14px; } .gd-dr.rzb em { color: rgba(255,255,255,.75); }

/* All sports channels */
.gd-sheet { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); animation: fade .25s var(--ease); }
.gd-sheet[hidden] { display: none; }
.gd-sheet-in { width: min(660px, 92vw); height: min(78vh, 780px); display: flex; flex-direction: column; padding: 20px 20px 12px; border-radius: 28px;
  background: var(--lg-fill), rgba(22,22,28,.86); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow), 0 40px 100px rgba(0,0,0,.6); backdrop-filter: var(--lg-blur); animation: gdHeroIn .45s var(--spring) both; }
.gd-sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.gd-sheet-h h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.gd-ch-list { flex: 1; overflow-y: auto; margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.gd-ch { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; text-align: left; transition: background .15s; }
.gd-ch:hover { background: rgba(255,255,255,.07); }
.gd-ch > div { min-width: 0; }
.gd-ch b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-ch b i { font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--text-3); margin-left: 8px; }
.gd-ch span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-ch > svg { width: 16px; height: 16px; opacity: .45; flex: none; }
.gd-ch:hover > svg { opacity: 1; }
.gd-lgs, .gd-teams { display: flex; flex-direction: column; gap: 2px; }
.gd-teams { flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 4px 10px 8px; }
.gd-teams .tw-chip svg { width: 13px; height: 13px; }
.gd-scroll { -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 58px, #000 96px); mask-image: linear-gradient(to bottom, transparent 0, transparent 58px, #000 96px); }

/* Leave room for the window's minimize / maximize / close buttons (top-right) */
.gd-osd-top { padding-right: 156px; }
.gd-drawer-h { padding-top: 58px; }
.gd-streams .gsel { max-width: 300px; }
.gd-streams .gsel b, .gd-q .gsel b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ---- Game Day 2.7.2 ---- */
/* Line the page up with the app's top bar (which leaves room for the window buttons on the right) */
.gd-scroll { padding: 86px 150px 60px 64px; }
/* Player: everything (score bar included) fades out quickly, comes back on mouse move */
.gd-osd-top > *, .gd-osd-bot > * { opacity: 0; transition: opacity .2s ease, transform .3s var(--spring); }
.gd-osd-top > * { transform: translateY(-4px); }
.gd-watch.osd .gd-osd-top > *, .gd-watch.osd .gd-osd-bot > * { opacity: 1; transform: none; pointer-events: auto; }
.gd-watch:not(.osd) .gd-bug { pointer-events: none; }
.gd-osd-top::before, .gd-osd-bot::before { transition: opacity .2s ease; }
.gd-osd-top { padding-right: 18px; }
.tv-cb.cog.on { background: rgba(255,255,255,.94); color: #000; }
.gd-pop { position: absolute; right: 22px; bottom: 76px; width: 290px; max-height: 60vh; overflow-y: auto; padding: 6px; border-radius: 18px;
  background: rgba(28,28,34,.82); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(30px) saturate(180%); box-shadow: 0 24px 60px rgba(0,0,0,.55);
  transform-origin: bottom right; animation: twPopIn .28s var(--spring); }
.gd-pop[hidden] { display: none; }
.gd-pop-h { padding: 10px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.gd-pop-r { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 11px; text-align: left; transition: background .15s; }
.gd-pop-r:hover { background: rgba(255,255,255,.08); }
.gd-pop-r span { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-pop-r em { font-style: normal; font-size: 11px; font-weight: 700; color: #30d158; }
.gd-pop-r i { display: grid; place-items: center; opacity: 0; }
.gd-pop-r i svg { width: 15px; height: 15px; }
.gd-pop-r.on { background: rgba(255,255,255,.1); }
.gd-pop-r.on span { font-weight: 700; }
.gd-pop-r.on i { opacity: 1; }
.gd-pop-none { padding: 14px 12px; font-size: 13px; color: var(--text-2); }
/* Live-only page */
.gd-sec-n { font-size: 13px; color: var(--text-3); }
.gd-quiet { max-width: 620px; margin: 64px auto 0; padding: 42px 40px 30px; text-align: center; border-radius: 30px;
  background: var(--lg-fill), rgba(22,22,28,.5); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); animation: gdHeroIn .6s var(--spring) both; }
.gd-quiet-ic { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }
.gd-quiet-ic svg { width: 28px; height: 28px; color: var(--text-2); }
.gd-quiet h2 { margin: 0 0 8px; font-size: 23px; letter-spacing: -.02em; }
.gd-quiet p { margin: 0; font-size: 14px; color: var(--text-2); }
.gd-next { margin-top: 26px; text-align: left; border-top: 1px solid rgba(255,255,255,.07); padding-top: 14px; }
.gd-next-h { padding: 0 12px 8px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.gd-nrow { width: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-align: left; transition: background .15s; }
.gd-nrow:hover { background: rgba(255,255,255,.06); }
.gd-nrow-lg { font-size: 11px; font-weight: 800; letter-spacing: .05em; color: var(--text-3); }
.gd-nrow-m { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gd-nrow-m b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-nrow-m i { font-style: normal; font-size: 12px; color: var(--text-3); padding: 0 2px; }
.gd-nrow-t { font-size: 13px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
/* Sports picker */
.gd-sports { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 6px 8px; }
.gd-sport { height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-2);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: background .2s, color .2s, transform .25s var(--spring); }
.gd-sport:hover { background: rgba(255,255,255,.1); color: #fff; }
.gd-sport:active { transform: scale(.96); }
.gd-sport i { display: none; }
.gd-sport i svg { width: 14px; height: 14px; }
.gd-sport.on { background: rgba(255,255,255,.94); color: #000; border-color: transparent; }
.gd-sport.on i { display: grid; }
.gd-pick { text-align: left; }
.gd-pick-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }
.gd-pick-ic svg { width: 24px; height: 24px; color: #ffd60a; }
.gd-pick h3 { margin: 0 0 6px; font-size: 22px; }
.gd-pick-chips { margin-top: 18px; }
.gd-pick-chips .gd-sports { padding: 0; }
/* ---- Live TV search ---- */
.gd-search .tw-field.big { height: 48px; margin: 4px 0 6px; }
.gd-search .tw-field.big input { font-size: 15px; }
.gd-sr-h { padding: 14px 12px 6px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.gd-hit { width: 100%; display: grid; grid-template-columns: 92px minmax(0, 1fr) 28px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-align: left; transition: background .15s; }
.gd-hit:hover { background: rgba(255,255,255,.07); }
.gd-hit > div { min-width: 0; }
.gd-hit b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-hit span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-hit > i { display: grid; place-items: center; color: var(--text-3); }
.gd-hit > i svg { width: 16px; height: 16px; }
.gd-hit:hover > i { color: #fff; }
.gd-sr-live { justify-self: start; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; background: #eb0400; color: #fff; }
.gd-sr-when { font-style: normal; font-size: 11.5px; color: var(--text-3); line-height: 1.3; }
.gd-sr-when b { display: block; font-size: 13px; color: #fff; font-variant-numeric: tabular-nums; }
.gd-sr-none { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 50px 20px; text-align: center; color: var(--text-2); font-size: 13px; }
.gd-sr-none > svg { width: 26px; height: 26px; color: var(--text-3); margin-bottom: 4px; }
.gd-sr-none b { color: #fff; font-size: 15px; }
.tv-state.black { pointer-events: auto; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); }

/* ============ Taste Profile (v2) ============ */
.tp2 { display: flex; flex-direction: column; gap: 16px; padding-bottom: 40px; }
.tp2-hero, .tp2-card { border-radius: 24px; background: var(--lg-fill), rgba(24,24,30,.5); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); animation: gdHeroIn .55s var(--spring) both; }
.tp2-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 26px 28px; position: relative; overflow: hidden; }
.tp2-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 140% at 0% 0%, rgba(255,255,255,.07), transparent 60%); }
.tp2-eye { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.tp2-hero h2 { margin: 6px 0 10px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.tp2-hero p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.tp2-hero p b { color: #fff; font-weight: 700; }
.tp2-fill { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--text-2); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.tp2-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tp2-tile { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.tp2-tile b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tp2-tile span { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); }
.tp2-card { padding: 18px 20px 16px; }
.tp2-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tp2-card-h h3 { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.tp2-card-h span { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tp2-sub { margin: 4px 0 10px; font-size: 12.5px; color: var(--text-3); }
/* Ratings spread */
.tp2-histrow { display: flex; align-items: flex-end; gap: 14px; margin-top: 14px; }
.tp2-s1, .tp2-s5 { font-size: 15px; color: #30d158; letter-spacing: 1px; padding-bottom: 2px; flex: none; }
.tp2-bars { flex: 1; height: 130px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; align-items: end; border-bottom: 1px solid rgba(255,255,255,.1); }
.tp2-bar { height: 100%; display: flex; align-items: flex-end; padding: 0; cursor: pointer; }
.tp2-bar i { display: block; width: 100%; border-radius: 5px 5px 2px 2px; background: rgba(150,165,190,.42); transform-origin: bottom; animation: tpGrow .8s var(--spring) both; transition: background .2s; }
.tp2-bar:nth-child(2) i { animation-delay: .03s; } .tp2-bar:nth-child(3) i { animation-delay: .06s; } .tp2-bar:nth-child(4) i { animation-delay: .09s; } .tp2-bar:nth-child(5) i { animation-delay: .12s; }
.tp2-bar:nth-child(6) i { animation-delay: .15s; } .tp2-bar:nth-child(7) i { animation-delay: .18s; } .tp2-bar:nth-child(8) i { animation-delay: .21s; } .tp2-bar:nth-child(9) i { animation-delay: .24s; } .tp2-bar:nth-child(10) i { animation-delay: .27s; }
@keyframes tpGrow { from { transform: scaleY(0); } }
.tp2-bar.peak i { background: rgba(175,190,212,.62); }
.tp2-bar:hover i { background: rgba(215,225,240,.85); }
.tp2-bar.on i { background: #fff; }
body:not([data-accent="mono"]) .tp2-bar.on i { background: var(--acc); }
.tp2-binlist:not(:empty) { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.tp2-binh { font-size: 15px; font-weight: 700; color: #30d158; margin-bottom: 4px; }
.tp2-binh span { color: var(--text-3); font-weight: 500; font-size: 13px; margin-left: 6px; }
/* Two-up panels */
.tp2-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1150px) { .tp2-two, .tp2-hero { grid-template-columns: 1fr; } }
.tp2-vs, .tp2-people { display: flex; flex-direction: column; gap: 2px; }
.tp2-vrow { width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto 52px; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 12px; text-align: left; transition: background .15s; }
.tp2-vrow:hover { background: rgba(255,255,255,.06); }
.tp2-vrow img { width: 36px; height: 54px; border-radius: 6px; object-fit: cover; background: #222; }
.tp2-vrow div { min-width: 0; }
.tp2-vrow b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp2-vrow div span { display: block; font-size: 12px; color: var(--text-3); }
.tp2-vrow em { font-style: normal; font-variant-numeric: tabular-nums; }
.tp2-vrow em.you { font-size: 12px; color: #30d158; letter-spacing: 1px; }
.tp2-vrow em.crowd { font-size: 12px; color: var(--text-3); }
.tp2-vrow em.crowd::before { content: 'crowd '; opacity: .7; }
.tp2-vrow em.d { justify-self: end; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.tp2-vrow em.d.up { color: #30d158; background: rgba(48,209,88,.14); }
.tp2-vrow em.d.down { color: #ff6961; background: rgba(255,105,97,.14); }
.tp2-more { align-self: flex-start; margin-top: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: rgba(255,255,255,.06); transition: background .2s, color .2s; }
.tp2-more:hover { background: rgba(255,255,255,.1); color: #fff; }
.tp2-person { width: 100%; display: grid; grid-template-columns: 18px 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 12px; text-align: left; transition: background .15s; }
.tp2-person:hover { background: rgba(255,255,255,.06); }
.tp2-rank { font-size: 12px; font-weight: 800; color: var(--text-3); text-align: center; font-variant-numeric: tabular-nums; }
.tp2-face { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--text-2); background: center / cover no-repeat rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.tp2-person div { min-width: 0; }
.tp2-person b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp2-person div span { display: block; font-size: 12px; color: var(--text-3); }
.tp2-person em { font-style: normal; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tp2-person em i { font-style: normal; font-size: 13px; color: #ffd60a; margin-left: 2px; }
.tp2-none { padding: 14px 8px; font-size: 13px; color: var(--text-3); }
/* Taste Profile: per year + habits */
.tp2-years, .tp2-habits { display: flex; flex-direction: column; }
.tp2-ybars { flex: 1; min-height: 190px; display: flex; align-items: flex-end; gap: 10px; margin-top: 16px; padding-bottom: 2px; }
.tp2-ybar { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.tp2-ybar em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tp2-ybar i { width: 100%; max-width: 54px; border-radius: 7px 7px 3px 3px; background: rgba(150,165,190,.42); transform-origin: bottom; animation: tpGrow .8s var(--spring) both; }
.tp2-ybar span { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tp2-ybar.now i { background: #fff; }
body:not([data-accent="mono"]) .tp2-ybar.now i { background: var(--acc); }
.tp2-ybar.now span, .tp2-ybar.now em { color: #fff; }
.tp2-hgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.tp2-habit { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.tp2-hic { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.08); }
.tp2-hic svg { width: 16px; height: 16px; }
.tp2-habit div { min-width: 0; }
.tp2-habit span { display: block; font-size: 11.5px; color: var(--text-3); }
.tp2-habit b { display: block; margin-top: 2px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.tp2-habit em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: var(--text-2); }
.tp2 .row-title small { font-size: 14px; font-weight: 500; color: var(--text-3); margin-left: 6px; }
.tp2-habit .tp2-hic { display: grid; color: #fff; font-size: inherit; }
.tp2-habit div > span { display: block; font-size: 11.5px; color: var(--text-3); }

/* Taste Profile: Five-star club card — same height as Your habits, scrolls inside */
.tp2-two { align-items: stretch; }
.tp2-two.one { grid-template-columns: 1fr; }
.tp2-fivec { display: flex; flex-direction: column; min-height: 0; }
.tp2-five { flex: 1 1 0; height: 0; min-height: 220px; overflow-y: auto; margin: 14px -6px -6px 0; padding: 0 6px 6px 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; align-content: start; }
.tp2-fivec.solo .tp2-five { height: auto; max-height: 340px; }
.tp2-five::-webkit-scrollbar { width: 6px; } .tp2-five::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 3px; }
.tp2-fp { display: block; padding: 0; border-radius: 9px; overflow: hidden; aspect-ratio: 2 / 3; background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 16px rgba(0,0,0,.35); transition: transform .3s var(--spring), box-shadow .2s; animation: gdCardIn .45s var(--spring) both; }
.tp2-fp:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 12px 26px rgba(0,0,0,.5); }
.tp2-fp img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Taste Profile — fits the window: hero, ratings + habits, then three cards that scroll inside */
.tp2.fit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: max-content max-content minmax(280px, 1fr); gap: 14px; padding-bottom: 0; }
.tp2.fit > .tp2-hero { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 22px; padding: 18px 22px; }
.tp2.fit .tp2-hero h2 { margin: 4px 0 6px; font-size: 25px; }
.tp2.fit .tp2-hero p { font-size: 14px; line-height: 1.45; }
.tp2.fit .tp2-fill { margin-top: 10px; }
.tp2.fit .tp2-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tp2.fit .tp2-tile { padding: 11px 13px; border-radius: 14px; }
.tp2.fit .tp2-tile b { font-size: 21px; }
.tp2.fit .tp2-tile span { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp2.fit > .tp2-hist { grid-column: span 1; display: flex; flex-direction: column; min-height: 0; }
.tp2.fit > .tp2-hist.wide { grid-column: 1 / -1; }
.tp2.fit .tp2-histrow { flex: 1; min-height: 96px; margin-top: 10px; align-items: stretch; }
.tp2.fit .tp2-s1, .tp2.fit .tp2-s5 { align-self: flex-end; }
.tp2.fit .tp2-bars { height: auto; }
.tp2.fit > .tp2-habits { grid-column: span 2; }
.tp2.fit .tp2-hgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; gap: 6px; }
.tp2.fit .tp2-habit b, .tp2.fit .tp2-habit em, .tp2.fit .tp2-habit div > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp2.fit .tp2-habit { padding: 8px 12px; gap: 10px; align-items: center; }
.tp2.fit .tp2-hic { width: 28px; height: 28px; border-radius: 9px; }
.tp2.fit .tp2-habit b { font-size: 14px; margin-top: 1px; }
.tp2.fit .tp2-habit em { font-size: 11.5px; margin-top: 0; }
.tp2-col { display: flex; flex-direction: column; min-height: 0; overflow: hidden; container-type: inline-size; }
@container (max-width: 420px) { .tp2.fit .tp2-vrow em.crowd { display: none; } .tp2.fit .tp2-vrow { grid-template-columns: 30px minmax(0, 1fr) auto 46px; } }
@container (max-width: 290px) { .tp2.fit .tp2-vrow em.you { display: none; } .tp2.fit .tp2-vrow { grid-template-columns: 30px minmax(0, 1fr) 46px; } }
@media (min-width: 1150px) and (max-width: 1450px) { .tp2.fit .tp2-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tp2.fit .tp2-sub { margin: 3px 0 8px; }
.tp2-scroll { flex: 1 1 0; min-height: 0; overflow-y: auto; margin-right: -8px; padding-right: 6px; }
.tp2-scroll::-webkit-scrollbar { width: 6px; } .tp2-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 3px; }
.tp2.fit .tp2-vs { flex-wrap: nowrap; }
.tp2.fit .tp2-vrow { grid-template-columns: 30px minmax(0, 1fr) auto auto 46px; gap: 10px; padding: 5px 6px; }
.tp2.fit .tp2-vrow img { width: 30px; height: 45px; border-radius: 5px; }
.tp2.fit .tp2-five { height: 0; min-height: 0; grid-auto-rows: max-content; margin: 12px -8px 0 0; padding: 0 6px 6px 0; align-content: start; }
.tp2-card-h h3 .tp2-st { font-style: normal; color: #30d158; letter-spacing: 1px; font-size: 13px; margin-left: 4px; }
.tp2-x { margin-left: 8px; width: 20px; height: 20px; border-radius: 50%; font-size: 10px; color: var(--text-2); background: rgba(255,255,255,.08); vertical-align: 1px; transition: background .15s, color .15s; }
.tp2-x:hover { background: rgba(255,255,255,.16); color: #fff; }
@media (max-width: 1149px) {
  .tp2.fit { grid-template-columns: 1fr; grid-template-rows: none; padding-bottom: 40px; }
  .tp2.fit > * { grid-column: auto !important; }
  .tp2.fit > .tp2-hero { grid-template-columns: 1fr; }
  .tp2.fit .tp2-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp2.fit .tp2-histrow { min-height: 130px; }
  .tp2.fit .tp2-col .tp2-scroll { flex: none; max-height: 420px; }
  .tp2.fit .tp2-five { height: 420px; }
  .tp2.fit .tp2-hgrid { grid-template-columns: 1fr 1fr; }
}

/* Live TV first-run setup */
.gd-setup { max-width: 620px; margin: 48px auto 40px; padding: 38px 40px 30px; text-align: center; border-radius: 30px; background: var(--lg-fill), rgba(22,22,28,.5); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); animation: gdHeroIn .6s var(--spring) both; }
.gd-setup h2 { margin: 0 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.gd-setup-lead { margin: 0 auto; max-width: 470px; color: var(--text-2); line-height: 1.5; font-size: 14.5px; }
.gd-steps { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; text-align: left; }
.gd-step { display: flex; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.gd-step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #000; background: #fff; }
.gd-step b { display: block; font-size: 14.5px; }
.gd-step p { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.gd-step-l { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.gd-step-l li { font-size: 12.5px; color: var(--text-3); }
.gd-step-l li b { display: inline; font-size: 12.5px; color: #fff; margin-right: 6px; }
.gd-step-l code { font-size: 11.5px; padding: 1px 5px; border-radius: 5px; background: rgba(255,255,255,.08); color: var(--text-2); }
.gd-setup .gd-empty-btns { margin-top: 22px; }
.gd-setup-note { margin-top: 12px; font-size: 12px; color: var(--text-3); }

/* ================= Reel Cloud: account, friends, watch parties ================= */
.av { display: inline-block; flex: none; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.08); box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.av-txt { display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-weight: 800; color: #fff; background: linear-gradient(140deg, rgba(255,255,255,.22), rgba(255,255,255,.06)); box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.btn.discord-btn, .acct-step .btn.discord-btn { background: #5865f2 !important; color: #fff !important; border-color: transparent !important; font-weight: 700; box-shadow: 0 8px 24px rgba(88,101,242,.35); }
.btn.discord-btn:hover { background: #6d78f5 !important; }
.btn.discord-btn .ic { width: 18px; height: 18px; }
.link { padding: 0; background: none; border: 0; color: #fff; font: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; cursor: pointer; }
.link:hover { text-decoration-color: #fff; }
.icon-btn.fr-nav { position: relative; }
.icon-btn.has-dot::after { content: ''; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #ff453a; box-shadow: 0 0 0 2px rgba(0,0,0,.6); }

/* sign-in sheet */
.acct-sheet { text-align: center; padding: 6px 4px 0; max-width: 400px; margin: 0 auto; }
.acct-logo { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.acct-logo img { width: 100%; height: 100%; display: block; }
.acct-sheet h3 { margin: 0 0 6px; font-size: 22px; }
.acct-sheet > p { margin: 0 auto 20px; line-height: 1.5; font-size: 14px; }
.acct-step { display: flex; flex-direction: column; gap: 8px; }
.acct-step[hidden] { display: none !important; }
.acct-step .btn { justify-content: center; width: 100%; height: 44px; }
.acct-step.wait { align-items: center; gap: 10px; padding: 8px 0; }
.acct-step.wait span { font-size: 13.5px; line-height: 1.45; max-width: 330px; }
.acct-fine { margin-top: 18px; font-size: 12px; color: var(--text-3); line-height: 1.45; }
.acct-edit { min-width: 380px; }
.acct-edit h3 { margin: 0 0 14px; }
.acct-edit .field { display: block; margin-bottom: 12px; }
.acct-edit .lbl { display: block; font-size: 12.5px; color: var(--text-3); margin-bottom: 5px; }
.acct-edit .hint { display: block; font-size: 12px; color: var(--text-3); margin-top: 5px; }
.acct-edit textarea { resize: vertical; min-height: 70px; width: 100%; box-sizing: border-box; font: inherit; }
.acct-edit-av { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.at-field { display: flex; align-items: center; gap: 6px; }
.at-field span { color: var(--text-3); font-weight: 700; }
.at-field .input { flex: 1; }

/* settings → account */
.acct-panel.out .acct-hero { display: flex; gap: 16px; align-items: flex-start; }
.acct-glyph { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(88,101,242,.22); color: #c9cdff; }
.acct-glyph .ic { width: 24px; height: 24px; }
.acct-panel.out h3 { margin-top: 2px; }
.acct-panel.out .btns { margin-top: 14px; }
.acct-me { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.acct-names { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acct-names b { font-size: 18px; }
.acct-names span { color: var(--text-3); font-size: 13.5px; }
.acct-sync { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); font-size: 13.5px; }
.acct-sync .sync-txt { flex: 1; color: var(--text-2); }
.acct-sync .btn .ic { width: 15px; height: 15px; }
.sync-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.3); flex: none; }
.sync-dot.ok { background: #30d158; box-shadow: 0 0 10px rgba(48,209,88,.6); }
.sync-dot.syncing { background: #0a84ff; animation: syncPulse 1s ease-in-out infinite; }
.sync-dot.error { background: #ff453a; } .sync-dot.offline { background: #ff9f0a; }
@keyframes syncPulse { 50% { opacity: .35; } }
.acct-sub { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 14px 0 6px; }
.dev { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.dev + .dev { border-top: 1px solid rgba(255,255,255,.06); }
.dev-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.06); flex: none; }
.dev-ic .ic { width: 16px; height: 16px; }
.dev > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dev b { font-size: 14px; } .dev b em { font-style: normal; font-size: 11px; font-weight: 700; color: #30d158; margin-left: 6px; }
.dev span { font-size: 12.5px; color: var(--text-3); }
.acct-btns { margin-top: 14px; flex-wrap: wrap; }

/* friends page */
.friends-page { padding-bottom: 60px; }
.fr-empty { max-width: 460px; margin: 60px auto; text-align: center; }
.fr-empty p { color: var(--text-2); line-height: 1.5; margin: 6px 0 18px; }
.fr-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.fr-me { display: flex; align-items: center; gap: 16px; }
.fr-me .muted { margin-top: 4px; font-size: 14px; }
.fr-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.fr-add, .fr-join { display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 14px; border-radius: 999px; background: var(--lg-fill), rgba(24,24,30,.55); border: 1px solid var(--lg-edge); backdrop-filter: var(--lg-blur); }
.fr-add > span { color: var(--text-3); font-weight: 700; }
.fr-add input, .fr-join input { background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 14px; width: 200px; }
.fr-join input { width: 118px; text-transform: uppercase; letter-spacing: .06em; }
.fr-join input::placeholder { text-transform: none; letter-spacing: 0; }
.fr-add .btn .ic, .fr-join .btn .ic { width: 15px; height: 15px; }
.fr-body { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1100px) { .fr-body { grid-template-columns: 1fr; } }
.fr-sec { padding: 16px 16px 12px; border-radius: 22px; background: var(--lg-fill), rgba(24,24,30,.5); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); margin-bottom: 16px; animation: gdHeroIn .5s var(--spring) both; }
.fr-h { margin: 0 0 10px 4px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.fr-h span { color: var(--text-3); margin-left: 6px; }
.fr-list { display: flex; flex-direction: column; gap: 2px; }
.fr-card, .fr-req { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; text-align: left; transition: background .15s; }
.fr-card:hover { background: rgba(255,255,255,.06); }
.fr-names { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fr-names b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-names span { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #30d158; margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 8px rgba(48,209,88,.8); animation: syncPulse 1.6s ease-in-out infinite; }
.fr-hint { padding: 12px 8px; color: var(--text-3); font-size: 13.5px; line-height: 1.5; }
.fd-list { display: flex; flex-direction: column; }
.fd-list.narrow { max-width: 760px; }
.fd-item { display: flex; gap: 12px; padding: 12px 8px; align-items: flex-start; }
.fd-item + .fd-item { border-top: 1px solid rgba(255,255,255,.06); }
.fd-who { padding: 0; flex: none; }
.fd-body { flex: 1; min-width: 0; }
.fd-line { font-size: 14px; line-height: 1.45; color: var(--text-2); }
.fd-name, .fd-t { color: #fff; }
.fd-st { color: #30d158; font-weight: 700; letter-spacing: .5px; font-style: normal; }
.fd-rev { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fd-time { margin-top: 4px; font-size: 12px; color: var(--text-3); }
.fd-poster { width: 46px; height: 69px; flex: none; border-radius: 7px; background: center / cover no-repeat rgba(255,255,255,.06); box-shadow: 0 6px 16px rgba(0,0,0,.4); padding: 0; transition: transform .2s var(--spring); }
.fd-poster:hover { transform: scale(1.05); }

/* a friend's profile */
.fp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 24px 26px; border-radius: 28px; background: var(--lg-fill), rgba(24,24,30,.5); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); animation: gdHeroIn .55s var(--spring) both; position: relative; }
.fp-names h1 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.fp-bio { margin: 8px 0 0; color: var(--text-2); line-height: 1.5; max-width: 560px; }
.fp-now { margin-top: 10px; font-size: 13.5px; color: var(--text-2); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.fp-now .btn { margin-left: 8px; }
.fp-stats { display: flex; gap: 8px; }
.fp-stats > div { padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); min-width: 92px; }
.fp-stats b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fp-stats span { font-size: 12px; color: var(--text-3); }
.fp-stats .match b { color: #30d158; }
.fp-acts { align-self: start; }
.fp-head { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.friend-page .rows { padding: 0; }
@media (max-width: 1150px) { .fp-head { grid-template-columns: auto 1fr; } .fp-stats { grid-column: 1 / -1; } }
.friend-page .rows { margin-top: 18px; }
.fp-revs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.fp-rev { display: flex; gap: 12px; text-align: left; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); transition: background .15s; }
.fp-rev:hover { background: rgba(255,255,255,.08); }
.fp-rev-p { width: 54px; height: 81px; flex: none; border-radius: 8px; background: center / cover no-repeat rgba(255,255,255,.06); }
.fp-rev p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* friends on a title page */
.fr-strip { margin-top: 14px; padding: 14px 16px; border-radius: 20px; background: var(--lg-fill), rgba(24,24,30,.45); border: 1px solid var(--lg-edge); backdrop-filter: var(--lg-blur); }
.frs-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.frs-head .link { font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.frs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px; }
.frs-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 12px; text-align: left; transition: background .15s; }
.frs-item:hover { background: rgba(255,255,255,.06); }
.frs-item > div { min-width: 0; display: flex; flex-direction: column; }
.frs-item b { font-size: 13.5px; }
.frs-item span { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.frs-item span .ic { width: 13px; height: 13px; color: #ff375f; }
.frs-item p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .art .fr-badge { position: absolute; left: 7px; bottom: 7px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0,0,0,.65), 0 4px 10px rgba(0,0,0,.5); line-height: 0; z-index: 2; }

/* watch party: joining + invite */
.party-join { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 26px; text-align: center; }
.party-invite { text-align: center; max-width: 420px; }
.pi-ic { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: rgba(88,101,242,.22); color: #c9cdff; }
.pi-ic .ic { width: 28px; height: 28px; }
.party-invite h3 { margin: 0 0 6px; font-size: 22px; }
.party-invite p { line-height: 1.5; font-size: 14px; }
.pi-code { margin: 16px auto; font-size: 34px; font-weight: 800; letter-spacing: .22em; font-variant-numeric: tabular-nums; padding: 10px 20px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: inline-block; }
.btn .ic { flex: none; }

/* watch party: inside the player */
:root { --pc-w: 360px; }
/* Theater: chat docks on the right and the whole picture (video, controls, subtitles) shifts left to make room. */
.player.party-side.party-chat-open video { width: calc(100% - var(--pc-w)); }
.player.party-side.party-chat-open .chrome,
.player.party-side.party-chat-open .loading,
.player.party-side.party-chat-open .party-stage { right: var(--pc-w); width: auto; }
.player.party-side.party-chat-open .subs { right: calc(10% + var(--pc-w)); }
.player video, .player .chrome, .player .subs, .player .loading { transition: right .35s var(--spring), left .35s var(--spring); }
.party-stage { position: absolute; inset: 0; z-index: 6; pointer-events: none; transition: right .35s var(--spring); }
.party-stage > * { pointer-events: auto; }
.party-stage > .party-float, .party-stage > .party-react { pointer-events: none; }

/* top bar */
.party-bar { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 16px; border-radius: 999px;
  background: rgba(30,30,36,.62); backdrop-filter: blur(30px) saturate(170%); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 10px 30px rgba(0,0,0,.35);
  opacity: 0; transition: opacity .3s, transform .3s; white-space: nowrap; }
.player:not(.idle) .party-bar, .player.party-lobby-on .party-bar, .player.party-chat-open .party-bar { opacity: 1; }
.pb-live { font-size: 12.5px; font-weight: 700; color: #30d158; display: inline-flex; align-items: center; }
.pb-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 7px; animation: syncPulse 1.6s infinite; }
.pb-live.lobby { color: #ffd60a; }
.pb-code { font: inherit; font-weight: 800; letter-spacing: .14em; font-size: 12.5px; color: #fff; padding: 5px 10px; border-radius: 9px; background: rgba(255,255,255,.1); }
.pb-code:hover { background: rgba(255,255,255,.18); }
.pb-avs { display: flex; padding-left: 6px; }
.pb-avs .av, .pb-avs .av-txt { margin-left: -6px; box-shadow: 0 0 0 2px rgba(30,30,36,.9); }
.pb-avs em { font-style: normal; font-size: 11.5px; margin-left: 5px; color: var(--text-2); align-self: center; }
.pb-sep { width: 1px; height: 22px; background: rgba(255,255,255,.12); margin: 0 2px; }
.pb-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.85); position: relative; transition: background .15s, color .15s; }
.pb-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.pb-btn.on { background: #fff; color: #000; }
.pb-btn .ic { width: 18px; height: 18px; }
.pb-btn.dot::after { content: ''; position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: #ff453a; box-shadow: 0 0 0 2px rgba(30,30,36,.9); }

/* lobby / invite card — centered in the picture */
.party-lobby { position: absolute; inset: 0; display: none; place-items: center; padding: 90px 24px 40px; }
.player.party-lobby-on .party-lobby { display: grid; background: radial-gradient(80% 80% at 50% 50%, rgba(0,0,0,.35), rgba(0,0,0,.6)); animation: fadeIn .3s var(--ease); }
.player.party-lobby-on .chrome .p-center { opacity: 0; pointer-events: none; }
.pl-card { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 26px; width: min(640px, 100%); padding: 26px; border-radius: 28px;
  background: rgba(20,20,26,.9); backdrop-filter: blur(40px) saturate(170%); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 80px rgba(0,0,0,.55); animation: gdHeroIn .45s var(--spring) both; }
.pl-poster { width: 168px; aspect-ratio: 2 / 3; border-radius: 16px; background: center / cover no-repeat rgba(255,255,255,.06); box-shadow: 0 16px 40px rgba(0,0,0,.5); align-self: start; }
.pl-main { min-width: 0; display: flex; flex-direction: column; }
.pl-eyebrow { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #c9cdff; }
.pl-eyebrow .ic { width: 15px; height: 15px; }
.pl-main h2 { margin: 8px 0 2px; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pl-sub { color: var(--text-2); font-size: 14px; }
.pl-codewrap { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.pl-codelbl { font-size: 12px; color: var(--text-3); }
.pl-code { font: inherit; font-size: 24px; font-weight: 800; letter-spacing: .2em; color: #fff; padding: 6px 14px 6px 18px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); font-variant-numeric: tabular-nums; }
.pl-code:hover { background: rgba(255,255,255,.12); }
.pl-share { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pl-share .ic { width: 15px; height: 15px; }
.pl-wait { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: rgba(255,214,10,.08); border: 1px solid rgba(255,214,10,.2); color: #ffe27a; font-size: 14px; font-weight: 600; }
.pl-h { margin: 20px 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.pl-members { display: flex; flex-direction: column; gap: 2px; max-height: 168px; overflow-y: auto; }
.pm { display: flex; align-items: center; gap: 10px; padding: 5px 2px; font-size: 14px; }
.pm b { flex: 1; min-width: 0; font-weight: 600; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm b em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #c9cdff; background: rgba(88,101,242,.3); padding: 1px 7px; border-radius: 6px; }
.pm b .you { font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.pm .st { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.pm .st.ready, .pm .st.playing { color: #30d158; } .pm .st.buffering, .pm .st.loading { color: #ff9f0a; }
.pl-actions { display: flex; align-items: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.pl-actions .pl-start { flex: 1; justify-content: center; gap: 8px; height: 46px; font-size: 15px; white-space: nowrap; }
.pl-actions .pl-start svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
.pl-actions .pl-start span { font-weight: 500; opacity: .6; margin-left: 4px; font-size: 13px; }
.pl-actions .ic { width: 16px; height: 16px; }
.pl-actions .pl-leave { margin-left: auto; }
@media (max-width: 760px) { .pl-card { grid-template-columns: 1fr; } .pl-poster { display: none; } }

/* chat panel */
.party-chat { position: absolute; z-index: 7; display: none; flex-direction: column; pointer-events: auto; }
.player.party-chat-open .party-chat { display: flex; }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 16px 12px 18px; }
.pc-head b { display: block; font-size: 15px; }
.pc-n { display: block; font-size: 12px; color: var(--text-3); margin-top: 1px; }
.pc-modes { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.06); }
.pc-mode { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: rgba(255,255,255,.7); }
.pc-mode:hover { color: #fff; background: rgba(255,255,255,.08); }
.pc-mode.on { background: rgba(255,255,255,.9); color: #000; }
.pc-mode .ic { width: 16px; height: 16px; }
.pc-members { padding: 2px 14px 10px 16px; border-bottom: 1px solid rgba(255,255,255,.07); max-height: 140px; overflow-y: auto; }
.pc-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 8px 16px; display: flex; flex-direction: column; gap: 12px; }
.pc-empty { margin: auto; text-align: center; font-size: 13px; color: var(--text-3); max-width: 220px; line-height: 1.5; }
.pc-msg { display: flex; gap: 9px; align-items: flex-start; }
.pc-bub { min-width: 0; }
.pc-msg b { font-size: 12.5px; color: rgba(255,255,255,.65); font-weight: 600; }
.pc-msg p { margin: 2px 0 0; font-size: 14px; line-height: 1.42; color: #fff; word-break: break-word; }
.pc-msg.mine b { color: #c9cdff; }
.pc-sys { align-self: center; font-size: 11.5px; color: var(--text-3); padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.05); }
.pc-bottom { padding: 8px 12px 14px; }
.pc-reacts { display: flex; justify-content: space-between; padding: 2px 4px 8px; }
.pc-reacts button { font-size: 19px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; transition: transform .15s var(--spring), background .15s; }
.pc-reacts button:hover { transform: scale(1.2); background: rgba(255,255,255,.08); }
.pc-form { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.pc-form:focus-within { border-color: rgba(255,255,255,.28); }
.pc-form input { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: none; color: #fff; font: inherit; font-size: 14px; outline: 0; }
.pc-send { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #000; flex: none; }
.pc-send .ic { width: 16px; height: 16px; }

/* theater mode: docked, full height, solid */
.player.party-side .party-chat { top: 0; right: 0; bottom: 0; width: var(--pc-w); background: rgba(14,14,18,.96); border-left: 1px solid rgba(255,255,255,.08); animation: pcSlide .35s var(--spring) both; }
@keyframes pcSlide { from { transform: translateX(40px); opacity: 0; } }

/* transparent mode: only messages and a small input float over the picture */
.player.party-overlay .party-chat { right: 28px; bottom: 150px; width: 340px; max-height: 58vh; background: none; animation: gdHeroIn .3s var(--spring) both; }
.player.party-overlay .pc-head { padding: 0 2px 8px; justify-content: flex-end; opacity: 0; transition: opacity .2s; }
.player.party-overlay .party-chat:hover .pc-head, .player.party-overlay .party-chat:focus-within .pc-head { opacity: 1; }
.player.party-overlay .pc-head > div:first-child { display: none; }
.player.party-overlay .pc-modes { background: rgba(20,20,26,.7); backdrop-filter: blur(20px); }
.player.party-overlay .pc-members, .player.party-overlay .pc-empty, .player.party-overlay .pc-reacts { display: none; }
.player.party-overlay .pc-msgs { padding: 0; gap: 6px; justify-content: flex-end; -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%); }
.player.party-overlay .pc-msg { align-self: flex-end; max-width: 100%; }
.player.party-overlay .pc-bub { padding: 7px 12px 8px; border-radius: 16px; background: rgba(12,12,16,.62); backdrop-filter: blur(18px); }
.player.party-overlay .pc-msg .av, .player.party-overlay .pc-msg .av-txt { margin-top: 4px; }
.player.party-overlay .pc-sys { background: rgba(12,12,16,.55); }
.player.party-overlay .pc-bottom { padding: 8px 0 0; }
.player.party-overlay .pc-form { background: rgba(12,12,16,.62); backdrop-filter: blur(18px); }

/* toasts + reactions while chat is hidden */
.party-float { position: absolute; left: 28px; bottom: 140px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.party-toast { display: flex; align-items: center; gap: 8px; max-width: 420px; padding: 7px 14px 7px 7px; border-radius: 16px; background: rgba(16,16,20,.72); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.1); font-size: 13.5px; animation: gdHeroIn .3s var(--spring) both, ptFade .5s ease 5.5s forwards; }
.party-toast span { color: rgba(255,255,255,.88); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.party-toast.sys { padding: 6px 14px; color: var(--text-2); font-size: 12.5px; animation: gdHeroIn .3s var(--spring) both, ptFade .5s ease 3s forwards; }
@keyframes ptFade { to { opacity: 0; transform: translateY(6px); } }
.party-react { position: absolute; bottom: 130px; font-size: 42px; display: flex; flex-direction: column; align-items: center; animation: prFloat 3.2s cubic-bezier(.2,.7,.3,1) forwards; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); pointer-events: none; }
.party-react span { font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
@keyframes prFloat { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: 1; transform: translateY(-30px) scale(1.1); } 100% { transform: translateY(-340px) scale(1); opacity: 0; } }

/* Continue Watching: remove a title (only its progress — nothing else changes) */
.card .art .cw-x { position: absolute; top: 8px; right: 8px; left: auto; z-index: 6; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(20,20,24,.62); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.14); opacity: 0; transform: scale(.85); transition: opacity .18s, transform .18s var(--spring), background .15s; }
.card .art .cw-x .ic { width: 15px; height: 15px; }
.card:hover .art .cw-x, .card .art .cw-x:focus-visible { opacity: 1; transform: none; }
.card .art .cw-x:hover { background: rgba(255,69,58,.85); border-color: transparent; }
/* In a party lobby the lobby card is the only overlay (no "Paused · Space to resume" panel behind it). */
.player.party-lobby-on .pause-info { display: none !important; }
.player.party-lobby-on.pinfo .chrome { opacity: 1 !important; }

/* Party lobby: the title's artwork, blurred, instead of a black frame; the movie fades in on Start. */
.player.party-on video { transition: opacity .6s var(--ease), right .35s var(--spring), left .35s var(--spring), filter .5s var(--ease); }
.player.party-lobby-on video { opacity: 0; }
.player.party-lobby-on .p-art { opacity: 1 !important; filter: blur(46px) brightness(.5) saturate(1.35); transform: scale(1.08); }
.player.party-lobby-on .party-lobby { background: radial-gradient(70% 70% at 50% 45%, rgba(0,0,0,.1), rgba(0,0,0,.55)); }
.player.party-counting .pl-card { opacity: 0; transform: scale(.97); transition: opacity .35s, transform .35s; pointer-events: none; }
/* Countdown: small and quiet, under the party bar */
.party-count { position: absolute; top: 80px; left: 50%; transform: translateX(-50%); padding: 7px 16px; border-radius: 999px; font-size: 13.5px; color: rgba(255,255,255,.8);
  background: rgba(20,20,26,.6); backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,.1); white-space: nowrap; }
.party-count b { display: inline-block; min-width: 10px; text-align: center; color: #fff; font-weight: 800; margin-left: 4px; }
.party-count.pop b { animation: pcPop .5s var(--spring); }
@keyframes pcPop { from { transform: scale(1.6); opacity: 0; } }
/* Host controls */
.pl-opt { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); cursor: pointer; }
.pl-opt span { display: flex; flex-direction: column; }
.pl-opt b { font-size: 13.5px; font-weight: 600; }
.pl-opt em { font-style: normal; font-size: 12px; color: var(--text-3); }
.pl-note { margin-top: 14px; font-size: 12.5px; color: var(--text-3); }
.pm-host { font-size: 11.5px; font-weight: 600; color: var(--text-2); padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.07); opacity: 0; transition: opacity .15s, background .15s; }
.pm:hover .pm-host { opacity: 1; }
.pm-host:hover { background: rgba(255,255,255,.16); color: #fff; }
/* Home: rejoin a party that's still going */
.rejoin { display: flex; align-items: center; gap: 16px; margin: 0 0 26px; padding: 14px 16px; border-radius: 22px; background: var(--lg-fill), rgba(24,24,30,.55); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); backdrop-filter: var(--lg-blur); animation: gdHeroIn .5s var(--spring) both; }
.rj-p { width: 46px; height: 69px; flex: none; border-radius: 8px; background: center / cover no-repeat rgba(255,255,255,.06); }
.rj-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rj-t b { font-size: 17px; }
.rj-t > span { font-size: 13px; color: var(--text-3); }

/* Notifications bell */
.icon-btn.nt-nav { position: relative; }
.icon-btn.nt-nav.has-count::after { content: attr(data-count); position: absolute; top: 3px; right: 2px; min-width: 15px; height: 15px; padding: 0 4px; box-sizing: border-box; border-radius: 999px; background: #ff453a; color: #fff; font-size: 9.5px; font-weight: 800; line-height: 15px; text-align: center; box-shadow: 0 0 0 2px rgba(0,0,0,.6); }
.nt-pop { position: fixed; z-index: 650; width: 360px; max-height: min(520px, 70vh); display: flex; flex-direction: column; border-radius: 22px; background: rgba(22,22,28,.86); backdrop-filter: blur(40px) saturate(170%); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 24px 70px rgba(0,0,0,.55); animation: gdHeroIn .3s var(--spring) both; overflow: hidden; }
.nt-head { padding: 16px 18px 8px; font-size: 15px; }
.nt-list { overflow-y: auto; padding: 4px 8px 10px; }
.nt-empty { padding: 26px 12px 30px; text-align: center; color: var(--text-3); font-size: 13.5px; }
.nt-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; position: relative; }
.nt-item.click { cursor: pointer; } .nt-item.click:hover { background: rgba(255,255,255,.06); }
.nt-item.new::before { content: ''; position: absolute; left: 2px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #0a84ff; }
.nt-body { flex: 1; min-width: 0; }
.nt-line { font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
.nt-line b { color: #fff; font-weight: 600; }
.nt-time { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.nt-acts { display: flex; gap: 6px; flex: none; }
/* Favorite 4 */
.fav4 { display: grid; grid-template-columns: repeat(4, minmax(0, 150px)); gap: 14px; }
.fav4 .f4 { aspect-ratio: 2 / 3; border-radius: 12px; background: center / cover no-repeat rgba(255,255,255,.06); box-shadow: 0 12px 30px rgba(0,0,0,.45); padding: 0; transition: transform .2s var(--spring), box-shadow .2s; }
button.f4:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 18px 40px rgba(0,0,0,.55); }
.fav4.small { grid-template-columns: repeat(4, 54px); gap: 8px; margin-top: 4px; }
.fav4.small .f4 { border-radius: 7px; box-shadow: none; }
.fp-favs { margin-bottom: 10px; }
.fp-favs .fav4 { padding: 0 var(--gutter); }

/* Update ready: stays in the top bar until you restart */
.upd-btn { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; margin-right: 4px; border-radius: 999px; background: #30d158; color: #000; font: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap; animation: gdHeroIn .4s var(--spring) both; }
.upd-btn:hover { background: #4be06f; }
/* Party lobby: the player's own "Preparing stream…" card stays out of the way (members show Loading… instead) */
.player.party-lobby-on .loading { display: none !important; }

/* Sign-in sheet: Discord + username/password */
.acct-sheet { width: 380px; }
.acct-or { display: flex; align-items: center; gap: 12px; margin: 10px 0 2px; font-size: 12px; color: var(--text-3); }
.acct-or::before, .acct-or::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.1); }
.acct-seg { display: flex; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.06); }
.acct-seg button { flex: 1; height: 32px; border-radius: 9px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.acct-seg button.on { background: rgba(255,255,255,.92); color: #000; }
.acct-form { display: flex; flex-direction: column; gap: 10px; text-align: left; margin-top: 4px; }
.acct-f { display: flex; flex-direction: column; gap: 5px; }
.acct-f[hidden] { display: none; }
.acct-f > span { font-size: 12.5px; color: var(--text-3); }
.acct-f .input { width: 100%; box-sizing: border-box; height: 42px; }
.acct-form .at-field { display: flex; align-items: center; gap: 0; position: relative; }
.acct-form .at-field i { position: absolute; left: 13px; font-style: normal; color: var(--text-3); font-weight: 700; pointer-events: none; }
.acct-form .at-field .input { padding-left: 30px; }
.acct-err { min-height: 0; font-size: 13px; color: #ff6961; line-height: 1.4; }
.acct-err:empty { display: none; }
.acct-form .acct-go { height: 44px; justify-content: center; margin-top: 2px; }
.acct-hint { font-size: 12px; color: var(--text-3); line-height: 1.45; }
.acct-hint[hidden] { display: none; }
.acct-panel.out .btns { flex-wrap: wrap; }
.fr-tools .my-prof { gap: 8px; height: 44px; padding: 0 16px 0 10px; } .fr-tools .my-prof .av, .fr-tools .my-prof .av-txt { margin: 0; }
.friend-page .fp-favs { margin-bottom: 34px; }
/* Streaming source: Real-Debrid OR Torrentio, side by side */
.sf-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.sf-opt { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: var(--text-2); transition: background .15s, border-color .15s; }
.sf-opt b { color: #fff; font-size: 15px; }
.sf-opt span { font-size: 12.5px; line-height: 1.4; color: var(--text-3); }
.sf-opt:hover { background: rgba(255,255,255,.07); }
.sf-opt.on { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset; }
.sf-steps { margin: 0 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.sf-steps b { color: #fff; }
.sf-steps .btn .ic, .sf-steps .btn svg { width: 13px; height: 13px; }
.sf-found { color: #30d158 !important; display: flex; align-items: center; gap: 6px; }
.sf-found .ic { width: 14px; height: 14px; }

.tio-link { text-align: center; max-width: 420px; }
.tio-link h3 { margin: 0 0 6px; font-size: 21px; }
.tio-link p { line-height: 1.5; font-size: 14px; }
.tio-link .err { color: #ff6961; font-size: 13px; margin: 6px 0; }

/* Mac: leave room for the red/yellow/green buttons on the left; no Windows buttons on the right */
body.mac #nav { padding-left: calc(var(--gutter) + 64px); padding-right: var(--gutter); }
body.mac .nav-back { margin-left: 8px; }
body.mac .player .p-top { left: 96px; }
body.mac[data-winfs="1"] .player .p-top { left: 40px; }

.q-choice { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 14px; margin: 4px 0 6px; }
.q-choice > span { font-size: 13px; color: var(--text-2); font-weight: 600; }
.q-choice .acct-seg { max-width: 260px; }
.q-choice em { grid-column: 1 / -1; font-style: normal; font-size: 12px; color: var(--text-3); }

/* Update button: same height as the icons and evenly padded inside the top-right cluster */
/* Sits on its own just under the top-right cluster, so it never squeezes the tabs or the clock */
.nav-cluster .clock { white-space: nowrap; }
#nav > .upd-btn { position: absolute; top: 74px; right: 150px; height: 34px; padding: 0 15px; margin: 0; justify-content: center; line-height: 1; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
body.mac #nav > .upd-btn { right: var(--gutter); }
body.setup-mode #nav > .upd-btn { display: none; }
.upd-btn svg { flex: none; display: block; }
.upd-btn.loading { background: rgba(255,255,255,.12); color: var(--text); cursor: default; font-variant-numeric: tabular-nums; }
.upd-btn.loading:hover { background: rgba(255,255,255,.12); }
.upd-btn .spinner.sm { width: 13px; height: 13px; vertical-align: 0; }
.upd-screen { position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; background: rgba(0,0,0,.82); backdrop-filter: blur(30px); animation: gdHeroIn .3s var(--ease) both; }
.upd-screen b { font-size: 22px; letter-spacing: -.01em; }
.upd-screen span { color: var(--text-2); font-size: 14px; max-width: 360px; }

/* Streaming setup: "Recommended" badge and the debrid service picker */
.sf-opt { position: relative; }
.sf-rec { position: absolute; top: -9px; right: 12px; padding: 2px 9px; border-radius: 999px; background: #30d158; color: #000; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .01em; }
.sf-services { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sf-services button { padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .15s, color .15s; }
.sf-services button:hover { background: rgba(255,255,255,.09); color: var(--text); }
.sf-services button.on { background: #fff; color: #000; border-color: #fff; }

/* Watch party: "Waiting for … to catch up" */
.party-wait { position: absolute; top: 84px; left: 50%; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: rgba(20,20,22,.78); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.12); font-size: 13.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: gdHeroIn .3s var(--ease) both; pointer-events: none; }
.party-wait .spinner.sm { width: 14px; height: 14px; }

/* Top bar on smaller windows and laptops: tighten step by step instead of crowding.
   Back becomes a round arrow, the clock steps aside, then the tabs get snugger. With Live TV (6 tabs) it starts sooner. */
@media (max-width: 1640px) {
  #nav:has(#tabs button:nth-of-type(6)) .nav-back span { display: none; }
  #nav:has(#tabs button:nth-of-type(6)) .nav-back { width: 42px; padding: 0; justify-content: center; }
  #nav:has(#tabs button:nth-of-type(6)) .pill button { padding: 8px 15px; }
}
@media (max-width: 1520px) {
  .nav-back span { display: none; }
  .nav-back { width: 42px; padding: 0; justify-content: center; }
  .pill button { padding: 8px 15px; }
}
@media (max-width: 1440px) {
  #nav:has(#tabs button:nth-of-type(6)) .nav-cluster .clock { display: none; }
  #nav:has(#tabs button:nth-of-type(6)) .nav-cluster { padding-left: 5px; }
}
@media (max-width: 1380px) {
  .nav-cluster .clock { display: none; }
  .nav-cluster { padding-left: 5px; }
  #nav:has(#tabs button:nth-of-type(6)) .pill button { padding: 7px 11px; font-size: 13.5px; }
}
@media (max-width: 1200px) {
  #nav { padding-right: 140px; }
  .pill button { padding: 7px 11px; font-size: 13.5px; }
  .nav-cluster { gap: 0; }
  .nav-cluster .icon-btn { width: 32px; height: 32px; }
}
@media (max-width: 1040px) {
  #nav:has(#tabs button:nth-of-type(6)) .pill button { padding: 7px 8px; font-size: 13px; }
  .pill button { padding: 7px 9px; font-size: 13px; }
}

/* Streaming form: debrid dropdown + key */
.stream-form .sf-svc { max-width: 320px; }
.stream-form .sf-about { display: flex; align-items: flex-start; gap: 7px; margin-top: 4px; color: var(--text-3); }
.stream-form .sf-about svg { flex: none; width: 14px; height: 14px; margin-top: 1px; color: #30d158; }
.stream-form .sf-about { font-size: 12.5px; line-height: 1.45; margin-bottom: 14px; }

.setup-signin { margin: 10px 0 2px; font-size: 13px; color: var(--text-3); }
.setup-signin a { color: var(--text); font-weight: 600; }

/* Watch party: waiting card in the middle (replaces the play button + spinner while it shows) */
.party-wait { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 45; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 24px 28px 20px; max-width: min(420px, calc(100% - 32px)); border-radius: 22px; background: rgba(18,18,22,.8); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: gdHeroIn .3s var(--ease) both; white-space: normal; pointer-events: auto; font-size: 14px; top: 50%; }
.party-wait .spinner { width: 34px; height: 34px; margin-bottom: 4px; }
.party-wait b { font-size: 17px; }
.party-wait span { color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.party-wait .pw-go { margin-top: 6px; }
.player.party-waiting .p-center, .player.party-waiting .loading, .player.party-waiting .flash { display: none !important; }
/* Small party banners (joined, left, new host, paused…) */
.party-banners { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); z-index: 46; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.party-banner { padding: 7px 16px; border-radius: 999px; background: rgba(18,18,22,.78); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.12); font-size: 13px; font-weight: 600; color: rgba(255,255,255,.92); white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.35); animation: gdHeroIn .3s var(--spring) both; transition: opacity .4s, transform .4s; }
.party-banner.out { opacity: 0; transform: translateY(-6px); }

.import-block .lb-how { font-size: 12.5px; margin-top: 10px; line-height: 1.5; }
.import-block .lb-how a { color: var(--text); font-weight: 600; }
.history .hist-acts { display: flex; gap: 8px; }

/* Reviews: real paragraphs, comfortable spacing */
.rv-text p { margin: 0 0 .75em; line-height: 1.62; color: rgba(255,255,255,.84); white-space: normal; overflow-wrap: anywhere; }
.rv-text p:last-child { margin-bottom: 0; }
.rv-text i, .rv-text em { color: rgba(255,255,255,.92); }
.review-item .rv-text { margin-top: 10px; }
.rv-text.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rv-item .rv-text { margin-top: 8px; font-size: 15px; }
/* Profile review cards */
.fp-revs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)) !important; gap: 14px !important; align-items: start; }
.fp-rev { display: flex !important; gap: 16px !important; align-items: flex-start; padding: 16px 18px !important; border-radius: 18px !important; cursor: default; text-align: left; }
.fp-rev-p { width: 64px !important; height: 96px !important; border-radius: 10px !important; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.fp-rev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fp-rev-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.fp-rev-head b { font-size: 15.5px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-rev-head b:hover { text-decoration: underline; }
.fp-rev-head span { color: var(--text-3); font-size: 13px; flex: none; }
.fp-rev-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-3); }
.fp-rev-meta .rating-text { font-size: 13px; }
.fp-rev-meta .rv-heart svg { width: 13px; height: 13px; color: #ff6b81; }
.fp-rev .rv-text { font-size: 13.5px; margin-top: 2px; }
.fp-rev .rv-text p { margin-bottom: .55em; }
.fp-rev-more { align-self: flex-start; margin-top: 2px; padding: 0; font-size: 12.5px; font-weight: 600; color: var(--text); opacity: .8; }
.fp-rev-more:hover { opacity: 1; text-decoration: underline; }
.fp-rev-full { width: min(640px, 92vw); }
.fp-rev-full .sheet-head img { width: 64px; border-radius: 10px; }
.fp-rev-full .rv-text { margin-top: 18px; max-height: 60vh; overflow: auto; font-size: 15px; padding-right: 6px; }

/* Settings sections */
.set-tabs { display: inline-flex; gap: 2px; padding: 4px; margin: 4px 0 22px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(30px); }
.set-tabs button { padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: background .2s, color .2s; }
.set-tabs button:hover { color: var(--text); }
.set-tabs button.on { background: rgba(255,255,255,.94); color: #000; }
.settings-wrap .tab-off { display: none !important; }

/* ---- Sizing that suits every window: the banner leaves room for the rows below it ---- */
.hero { height: clamp(440px, 66vh, 760px); min-height: 0; }
.hero-content { bottom: clamp(130px, 17vh, 170px); }
.hero-dots { bottom: clamp(132px, 17vh, 172px); }
.hero-logo { max-height: clamp(70px, 13vh, 150px); max-width: min(460px, 34vw); }
.hero-overview { -webkit-line-clamp: 2; }
@media (min-height: 900px) { .hero-overview { -webkit-line-clamp: 3; } }
.card.land .art, .card.land .sub, .card.land .why { width: clamp(236px, 19vw, 310px); }
.card.land.big .art, .card.land.big .sub, .card.land.big .why { width: clamp(290px, 24vw, 400px); }
.card.poster .art, .card.poster .cap, .card.poster .sub { width: clamp(138px, 11vw, 170px); }
.grid .card.poster .art, .grid .card.poster .cap, .grid .card.poster .sub { width: 100%; }
.card.ranked .rank-num { font-size: clamp(110px, 10vw, 150px); }
.row { margin-bottom: 22px; }
.shelf { padding-bottom: 22px; }
@media (max-height: 820px) { .hero { height: clamp(400px, 62vh, 560px); } .row h2 { margin-bottom: 6px; } }

/* First run: account choice */
.setup-card .acct-choices { display: flex; gap: 10px; margin-top: 8px; }
.setup-card .acct-choices .btn { flex: 1; justify-content: center; height: 46px; font-size: 15px; }
.setup-card .acct-why { font-size: 13px; margin-top: 14px; }

/* Mac full screen: Reel's own window buttons, top-left like the real ones */
.mac-lights { display: none; position: fixed; top: 14px; left: 16px; z-index: 100001; gap: 8px; }
body.mac[data-winfs="1"] .mac-lights { display: flex; }
.mac-lights button { width: 12px; height: 12px; border-radius: 50%; padding: 0; border: .5px solid rgba(0,0,0,.25); }
.mac-lights .ml-close { background: #ff5f57; } .mac-lights .ml-min { background: #febc2e; } .mac-lights .ml-full { background: #28c840; }
.mac-lights:hover button { filter: brightness(1.08); }
body.mac[data-winfs="1"] #nav { padding-left: calc(var(--gutter) + 64px); }
/* Library favorites: four slots that shrink to fit, so films and shows never overlap on narrower windows */
.fav-cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.fav-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 132px)); gap: 14px; }
.fav-grid > * { min-width: 0; }
.fav-grid .card.poster, .fav-grid .card.poster .art, .fav-grid .card.poster .cap, .fav-grid .card.poster .sub { width: 100% !important; }

/* ===== 1.2.4: everything fits, at every window size, on Mac and Windows ===== */

/* Mac full screen: Reel's own window buttons must be clickable (not part of the drag strip), and line up with the top bar */
.mac-lights { top: 28px; left: 20px; -webkit-app-region: no-drag; }
.mac-lights button { -webkit-app-region: no-drag; cursor: default; }
body[data-winfs="1"] #drag { display: none; }   /* nothing to drag in full screen; it only got in the way of clicks */

/* The banner: its text never climbs into the top bar. Shorter windows get a smaller logo, then lose the extras. */
.hero-content { max-width: min(540px, 58vw); }
.hero-logo { max-height: clamp(56px, 12vh, 150px); }
@media (max-height: 860px) { .hero-overview { -webkit-line-clamp: 2; } .hero-eyebrow { margin-bottom: 10px; } .hero-logo { margin-bottom: 14px; } }
@media (max-height: 760px) { .hero-eyebrow { display: none; } .hero-overview { margin-bottom: 18px; } }
@media (max-height: 680px) { .hero-overview { display: none; } .hero-meta { margin-bottom: 16px; } }
@media (max-width: 900px) { .hero-overview { display: none; } .hero-logo { max-width: min(320px, 60vw); } }

/* The top bar: tabs and buttons always fit, centred, never off the edge */
#nav { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 12px; }
.nav-cluster { min-width: 0; }
@media (max-width: 940px) {
  .nav-cluster .clock { display: none; }
  .nav-cluster { padding-left: 4px; gap: 0; }
  .nav-cluster .icon-btn { width: 30px; height: 30px; }
  .pill { padding: 4px; }
  .pill button { padding: 6px 9px; font-size: 12.5px; }
  .nav-back { width: 38px; height: 38px; }
  #nav { padding-right: 140px; }
  body.mac #nav { padding-right: 20px; padding-left: 96px; }
}
@media (max-width: 800px) {
  #nav { grid-template-columns: auto minmax(0, 1fr) auto; }
  .pill { justify-self: center; }
  .pill button { padding: 6px 7px; font-size: 12px; }
}

/* Mac full-screen window buttons: only on menu pages. Never in the player (loading or playing) or while
   Live TV is playing full-window: those have their own back/close buttons, like a TV app. */
body.mac[data-winfs="1"]:has(.player) .mac-lights,
body.mac[data-winfs="1"].tw-theater .mac-lights { display: none; }
body.mac .tw .show-side { left: 96px; }

/* ===== For You: every section fits at every window size ===== */
.disc-main { container-type: inline-size; container-name: disc; }

/* Tonight: the card grows to fit its label, logo, text and buttons (it never cuts off its own top) */
.tonight { height: auto; min-height: clamp(260px, 38vh, 380px); display: flex; align-items: flex-end; }
.tn-body { position: relative; left: auto; bottom: auto; padding: 64px 34px 28px; max-width: min(560px, 100%); }
.tn-logo img { max-width: min(320px, 70%); max-height: clamp(52px, 9vh, 96px); }
.tonight .btns { flex-wrap: wrap; row-gap: 10px; }
@container disc (max-width: 720px) { .tn-body { padding: 56px 24px 22px; } .tn-body p { -webkit-line-clamp: 2; font-size: 13.5px; } }

/* Mood Match: options beside the results when there's room, above them when there isn't */
@container disc (max-width: 860px) {
  .mood { grid-template-columns: minmax(0, 1fr); }
  .mood-opts { position: static; }
  .mood .vibes { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
.mood-res { min-width: 0; }
.res-head { flex-wrap: wrap; gap: 6px 14px; }
.res-head > div { min-width: 0; }
.res-head .btn { flex: none; white-space: nowrap; }
/* The three picks: side by side when they fit, otherwise two then one, or stacked */
.top3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pick3 { height: auto; min-height: 230px; display: flex; align-items: flex-end; }
.p3-body { position: relative; left: auto; right: auto; bottom: auto; padding: 60px 18px 16px; width: 100%; min-width: 0; }
.p3-body .eyebrow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p3-body h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* This or That: the cards leave room for Both / Neither / Skip underneath */
.tt-card { min-height: clamp(300px, calc(100vh - 340px), 520px); }

/* Smaller windows: the For You sidebar becomes a row of tabs above the content */
@media (max-width: 1120px) {
  .disc { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 16px; padding-right: var(--gutter); }
  .disc-side { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; justify-self: start; max-width: 100%; padding: 5px; border-radius: 999px; gap: 2px; scrollbar-width: none; }
  .disc-side::-webkit-scrollbar { display: none; }
  .disc-side .side-title, .disc-side .side-group { display: none; }
  .side-item { white-space: nowrap; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; }
  .side-item.on { box-shadow: none; }
}
@container disc (max-width: 860px) {
  .mood .mfield .segm { max-width: 520px; }
  .mood .vibes { max-width: 860px; }
}
/* Mood Match picks: three across when there's room; otherwise the best match on top and the other two beside each other */
.mood-res { container-type: inline-size; container-name: moodres; }
@container moodres (max-width: 780px) {
  .top3 { grid-template-columns: 1fr 1fr; }
  .top3 > .pick3:first-child { grid-column: 1 / -1; min-height: 250px; }
}
@container moodres (max-width: 480px) { .top3 { grid-template-columns: 1fr; } }
.pick3::after { background: linear-gradient(0deg, rgba(0,0,0,.94), rgba(0,0,0,.55) 45%, rgba(0,0,0,.08) 80%); }
.p3-body .eyebrow { color: rgba(255,255,255,.82); }

/* Profile: favorite films and shows side by side; reviews line up with everything else (no edge-to-edge cards) */
.fp-fav-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px 44px; padding: 0 var(--gutter); }
.fp-fav-col .row-title { padding: 0 !important; margin: 0 0 12px; }
.fp-fav-col .fav4 { padding: 0 !important; grid-template-columns: repeat(4, minmax(0, 132px)); }
.friend-page .fp-revs { padding: 0 var(--gutter); margin-top: 4px; }
.fp-rev { min-height: 0; }
.fp-rev-body { padding-top: 2px; }

/* Live TV: Stream info panel (press I) */
.tv-info { position: absolute; top: 18px; right: 18px; z-index: 30; width: 280px; padding: 14px 16px; border-radius: 16px; background: rgba(12,12,14,.78); border: 1px solid rgba(255,255,255,.12); font-size: 12.5px; pointer-events: none; }
.tv-info b { display: block; font-size: 13.5px; margin-bottom: 8px; }
.tv-info div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--text-2); }
.tv-info em { font-style: normal; color: #fff; font-variant-numeric: tabular-nums; text-align: right; }
.tv-info p { margin: 9px 0 0; line-height: 1.45; color: rgba(255,255,255,.88); }

/* Link a device */
/* Link a device: one centered column — icon, title, the code box, then two equal buttons */
.tvl-sheet { width: min(400px, 86vw); margin: 0 auto; padding: 6px 4px 2px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.tvl-sheet .tvl-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); margin-bottom: 14px; }
.tvl-sheet .tvl-ico svg { width: 26px; height: 26px; }
.tvl-sheet h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.02em; }
.tvl-sheet p { margin: 0 0 18px; line-height: 1.5; max-width: 330px; }
.tvl-sheet .tvl-code { width: 100%; box-sizing: border-box; height: 60px; font-size: 28px; font-weight: 700; letter-spacing: .3em; text-indent: .3em; text-align: center; text-transform: uppercase; margin: 0; }
.tvl-sheet .acct-err { min-height: 18px; margin: 10px 0 0 !important; font-size: 13px; }
.tvl-sheet .tvl-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 14px; }
.tvl-sheet .tvl-btns .btn { justify-content: center; height: 42px; }

/* Watch party: "You're 6s behind · Catch up · ✕" — small, under the party bar, never in the way */
.party-drift { position: absolute; top: 78px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 14px; border-radius: 999px; background: rgba(28,28,32,.82); backdrop-filter: blur(24px) saturate(160%); border: 1px solid rgba(255,255,255,.1); font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.88); pointer-events: auto; animation: fade .3s var(--ease); white-space: nowrap; }
.party-drift .pd-go { height: 24px; padding: 0 11px; border-radius: 999px; background: #fff; color: #000; font-size: 12px; font-weight: 700; }
.party-drift .pd-x { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.6); }
.party-drift .pd-x:hover { background: rgba(255,255,255,.12); color: #fff; }
.party-drift .pd-x svg { width: 12px; height: 12px; }

/* ===================== One Pace (One Piece's page → "One Pace version") ===================== */
.op-btn .ic { width: 17px; height: 17px; }
.op-sheet { width: min(760px, 100%); }
.op-sheet .sheet-head h3 { margin: 2px 0 4px; }
.op-sheet .op-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 16px 0 14px; }
.op-sheet .op-ver { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border); }
.op-sheet .op-ver button { padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.op-sheet .op-ver button.on { background: rgba(255,255,255,.94); color: #000; }
.op-sheet .op-note { font-size: 13px; }
.op-body { max-height: min(62vh, 640px); overflow: auto; margin: 0 -6px; padding: 0 6px 6px; }
.op-continue { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 16px; margin-bottom: 12px; border-radius: 16px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); transition: background .25s; }
.op-continue:hover, .op-continue:focus-visible { background: rgba(255,255,255,.14); }
.op-continue .op-play { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #000; flex: none; }
.op-continue .op-play .ic { width: 16px; height: 16px; }
.op-continue b { display: block; font-size: 15px; }
.op-continue small { display: block; color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.op-arcs { display: flex; flex-direction: column; gap: 6px; }
.op-arc { border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid transparent; }
.op-arc.open { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.op-arc-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; text-align: left; border-radius: 16px; }
.op-arc-head:hover, .op-arc-head:focus-visible { background: rgba(255,255,255,.06); }
.op-n { width: 30px; text-align: center; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; flex: none; }
.op-t { flex: 1; min-width: 0; }
.op-t b { display: block; font-size: 15px; }
.op-t small { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.op-seen { font-size: 12px; font-weight: 700; color: var(--text-2); padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.08); }
.op-seen.all { color: #000; background: #fff; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; }
.op-seen .ic { width: 15px; height: 15px; }
.op-chev { color: var(--text-3); transition: transform .3s var(--spring); }
.op-chev .ic { width: 20px; height: 20px; }
.op-arc.open .op-chev { transform: rotate(180deg); }
.op-eps { display: none; padding: 0 10px 10px; }
.op-arc.open .op-eps { display: flex; flex-direction: column; gap: 4px; }
.op-desc { margin: 0 6px 10px; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.op-ep { display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left; padding: 8px; border-radius: 12px; }
.op-ep:hover, .op-ep:focus-visible { background: rgba(255,255,255,.07); }
.op-num { position: relative; width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
  background: rgba(255,255,255,.07); font-weight: 700; font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.op-num i { position: absolute; left: 0; bottom: 0; height: 3px; background: #fff; }
.op-ep.done .op-num { color: var(--text-3); }
.op-et { flex: 1; min-width: 0; }
.op-et b { display: block; font-size: 14px; }
.op-et small { display: block; font-size: 12px; color: var(--text-3); margin: 2px 0 4px; }
.op-et em { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-style: normal; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.op-ep.done .op-et b { color: var(--text-2); }
.op-tick { color: #fff; flex: none; padding-top: 2px; }
.op-tick .ic { width: 18px; height: 18px; }
