:root {
  --bg: #141414;
  --bg-2: #181818;
  --card: #232323;
  --card-2: #2b2b2b;
  --line: #333;
  --text: #fff;
  --muted: #b3b3b3;
  --dim: #808080;
  --accent: #e50914;
  --accent-2: #f6121d;
  --ok: #46d369;
  --warn: #f5a524;
  --info: #3aa0ff;
  --bad: #ff5a5f;
  --radius: 6px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .6);
  --gutter: clamp(16px, 4vw, 60px);
  --plyr-color-main: var(--accent);
  --plyr-video-background: #000;
  --plyr-menu-background: rgba(24, 24, 24, .97);
  --plyr-menu-color: var(--text);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.45 "Netflix Sans", "Helvetica Neue", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  height: 68px; padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(0, 0, 0, .8) 10%, rgba(0, 0, 0, 0));
  transition: background .3s;
}
.topbar.solid { background: rgba(20, 20, 20, .97); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 26px; letter-spacing: -.04em; color: var(--accent); text-transform: uppercase; }
.brand-mark { display: none; }
a.brand { text-decoration: none; cursor: pointer; }
.nav { display: flex; gap: 20px; }
.nav a { color: #e5e5e5; font-size: 14px; transition: color .2s; display: flex; gap: 6px; align-items: center; }
.nav a:hover { color: var(--muted); }
.nav a.active { color: #fff; font-weight: 700; }
.nav-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; display: inline-grid; place-items: center; font-weight: 700; }
.topbar-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .55); width: min(260px, 30vw); border-radius: 4px; }
.search svg { width: 16px; height: 16px; fill: #ccc; flex: none; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; }
.tabbar { display: none; }

main { padding: 92px var(--gutter) 60px; outline: none; }
main.flush { padding-top: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 22px; border-radius: 4px; border: 0; background: rgba(109, 109, 110, .7); font-weight: 700; font-size: 16px; cursor: pointer; transition: background .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: rgba(109, 109, 110, .45); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: rgba(255, 255, 255, .78); }
.btn-red { background: var(--accent); color: #fff; }
.btn-red:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .3); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-danger { color: var(--bad); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); background: rgba(42, 42, 42, .7); display: inline-grid; place-items: center; cursor: pointer; color: #fff; padding: 0; }
.icon-btn:hover { border-color: #fff; }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }

h1 { font-size: clamp(30px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 12px; font-weight: 900; }
h2 { font-size: clamp(17px, 1.5vw, 22px); margin: 0; font-weight: 700; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sub { color: var(--muted); margin: 0; }

.hero { position: relative; margin: 0 calc(-1 * var(--gutter)); min-height: min(78vh, 720px); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 25%; transform: scale(1.04); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(77deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .35) 55%, transparent 85%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: 1; background: linear-gradient(180deg, transparent, var(--bg)); }
.hero-body { position: relative; z-index: 2; padding: 120px var(--gutter) 100px; max-width: 760px; }
.hero .desc { font-size: clamp(15px, 1.3vw, 19px); color: #e5e5e5; margin: 0 0 22px; text-shadow: 0 2px 6px rgba(0, 0, 0, .5); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero .meta, .detail .meta { display: flex; gap: 12px; align-items: center; color: #ddd; margin-bottom: 14px; font-weight: 600; flex-wrap: wrap; }
.hero .actions, .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.eyebrow { font-size: 13px; letter-spacing: .2em; font-weight: 800; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }
.match { color: var(--ok); font-weight: 800; }
.tag { border: 1px solid rgba(255, 255, 255, .4); padding: 0 6px; border-radius: 3px; font-size: 12px; line-height: 20px; }

.row-section { margin: 34px 0 6px; position: relative; z-index: 3; }
.hero + .row-section { margin-top: -90px; }
.row-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.row-head a { color: #54b9c5; font-size: 13px; font-weight: 700; opacity: .9; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 21vw, 320px); gap: 8px; overflow-x: auto; overflow-y: visible; padding: 4px 0 26px; scroll-snap-type: x proximity; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 8px; }

.card { position: relative; display: block; border-radius: var(--radius); transition: transform .25s ease, z-index 0s .25s; z-index: 1; }
.card:hover { transform: scale(1.06); z-index: 5; transition: transform .25s ease; }
.thumb { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #2a2a2a; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px; font-weight: 900; font-size: 22px; line-height: 1.05; letter-spacing: -.02em; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .75)); pointer-events: none; }
.thumb-title { position: absolute; left: 12px; right: 44px; bottom: 10px; z-index: 2; font-weight: 800; font-size: 15px; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-info { padding: 8px 2px 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; min-height: 26px; }
.card-info .dotsep::before { content: "•"; margin-right: 8px; color: var(--dim); }

.status { position: absolute; top: 8px; left: 8px; z-index: 2; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 3px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ready { color: var(--ok); }
.status.processing { color: var(--warn); }
.status.downloading, .status.metadata { color: var(--info); }
.status.queued, .status.paused { color: #bbb; }
.status.failed { color: var(--bad); }
.status.seeding { color: var(--ok); }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .25); z-index: 2; }
.bar > i { display: block; height: 100%; background: var(--accent); }
.bar.work > i { background: var(--warn); }
.bar.dl > i { background: var(--info); }
.play-ov { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.play-ov span { width: 50px; height: 50px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .45); display: grid; place-items: center; }
.play-ov span::after { content: ""; margin-left: 4px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.card:hover .play-ov, .ep:hover .play-ov { opacity: 1; }

.kebab { position: absolute; top: 6px; right: 6px; z-index: 4; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; }
.kebab svg { width: 20px; height: 20px; fill: currentColor; }
.card:hover .kebab, .kebab:focus-visible, .kebab.open { opacity: 1; }
.kebab:hover { background: rgba(0, 0, 0, .85); }
@media (hover: none) { .kebab { opacity: 1; } }
.menu { position: fixed; z-index: 90; min-width: 210px; padding: 6px; border-radius: 6px; background: rgba(24, 24, 24, .98); border: 1px solid var(--line); box-shadow: var(--shadow); }
.menu button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: transparent; border-radius: 4px; cursor: pointer; text-align: left; font-size: 14px; }
.menu button:hover, .menu button:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
.menu button.danger { color: var(--bad); }
.menu button.on::after { content: "✓"; margin-left: auto; color: var(--accent); font-weight: 800; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu svg { width: 18px; height: 18px; fill: currentColor; opacity: .85; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #ddd; font-weight: 700; cursor: pointer; font-size: 14px; }
.chip.on { background: #fff; color: #000; border-color: #fff; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 24px; }
select.select { height: 34px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .35); background: #000; padding: 0 12px; }

.detail { position: relative; margin: 0 calc(-1 * var(--gutter)); min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; }
.detail .hero-body { padding-bottom: 46px; }
.detail .desc { max-width: 680px; color: #e5e5e5; font-size: 16px; margin: 0 0 22px; white-space: pre-wrap; }
/* Not the page-wide .empty state: no centring, no 140px padding. */
.detail .desc.empty { color: var(--dim); font-style: italic; cursor: pointer; text-align: left; padding: 0; }
.detail .desc.empty:hover { color: var(--muted); }
.stats-line { display: flex; gap: 18px; color: var(--muted); font-size: 14px; margin: -10px 0 22px; flex-wrap: wrap; }
.stats-line b { color: #fff; }

.tabs { display: flex; gap: 8px; margin: 10px 0 18px; overflow-x: auto; }
.episodes { display: grid; gap: 2px; max-width: 1100px; }
.ep { display: grid; grid-template-columns: 34px 200px 1fr auto; gap: 18px; align-items: center; padding: 16px 14px; border-bottom: 1px solid #262626; border-radius: 4px; }
.ep:hover { background: #232323; }
.ep .num { font-size: 22px; color: #d2d2d2; text-align: center; }
.ep .thumb { cursor: pointer; }
.ep h3 { margin: 0 0 6px; font-size: 16px; display: flex; justify-content: space-between; gap: 12px; }
.ep h3 small { color: #d2d2d2; font-weight: 600; font-size: 14px; white-space: nowrap; }
.ep p { margin: 0; color: var(--muted); font-size: 14px; }
.ep .err { color: var(--bad); }
.ep .ops { display: flex; gap: 6px; }

.panel { background: var(--bg-2); border: 1px solid #262626; border-radius: 8px; padding: 20px; }
.list { display: grid; gap: 8px; }
.dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 16px; border-radius: 6px; background: var(--card); }
.dl-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-stats { color: var(--dim); font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.dl-stats .status { position: static; background: transparent; padding: 0; }
.dl-ops { display: flex; gap: 6px; grid-row: span 2; }
.progress { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--info); transition: width .6s; }
.progress.ok > i { background: var(--ok); }
.progress.warn > i { background: var(--warn); }
.section-title { margin: 34px 0 12px; }

.add { display: grid; gap: 12px; }
.add textarea { width: 100%; min-height: 84px; resize: vertical; border-radius: 4px; border: 1px solid #444; background: #000; padding: 12px 14px; outline: none; }
.add textarea:focus { border-color: #888; }
.add-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; border: 1px solid #444; border-radius: 4px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 0 16px; height: 40px; color: var(--muted); font-weight: 700; cursor: pointer; }
.seg button.on { background: #fff; color: #000; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.stat { background: var(--bg-2); border: 1px solid #262626; border-radius: 8px; padding: 18px; }
.stat b { display: block; font-size: 28px; letter-spacing: -.02em; }
.stat span { color: var(--dim); font-size: 13px; }
.meter { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; display: flex; margin: 14px 0 10px; }
.meter i { display: block; height: 100%; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--c); vertical-align: -1px; }

.empty { text-align: center; padding: 140px 20px 60px; color: var(--muted); }
.empty h2 { color: var(--text); margin-bottom: 8px; font-size: 26px; }
.empty .btn { margin-top: 20px; }
.skeleton { background: linear-gradient(90deg, #1c1c1c 0%, #262626 50%, #1c1c1c 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }

.watch { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; }
.stage { position: relative; flex: 1; min-width: 0; display: flex; transition: flex-basis .25s; }
.stage .plyr { flex: 1; height: 100%; }
.stage video { width: 100%; height: 100%; }
.watch-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: linear-gradient(rgba(0, 0, 0, .8), transparent); transition: opacity .3s; }
.watch-bar .titles { min-width: 0; }
.watch-bar .t { font-weight: 800; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-bar .s { color: #c8c8c8; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-bar .tools { margin-left: auto; display: flex; gap: 8px; }
.tool { height: 38px; padding: 0 14px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.tool:hover { background: rgba(255, 255, 255, .26); }
.tool.on { background: #fff; color: #000; }
.tool svg { width: 18px; height: 18px; fill: currentColor; }
.watch.idle .watch-bar { opacity: 0; pointer-events: none; }
.next-up { position: absolute; right: 28px; bottom: 96px; z-index: 5; }

.notes { width: 0; overflow: hidden; background: #181818; border-left: 1px solid #2a2a2a; display: flex; flex-direction: column; transition: width .25s; }
.watch.with-notes .notes { width: min(380px, 42vw); }
.notes-head { padding: 18px 18px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #2a2a2a; min-width: 300px; }
.notes-head h2 { font-size: 18px; }
.notes-head p { margin: 2px 0 0; color: var(--dim); font-size: 13px; }
.notes-list { flex: 1; overflow-y: auto; padding: 10px 12px; display: grid; align-content: start; gap: 8px; min-width: 300px; }
.note { background: #232323; border-radius: 6px; padding: 10px 12px; }
.note-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.stamp { border: 0; background: rgba(229, 9, 20, .18); color: #ff6b72; font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 3px; cursor: pointer; font-variant-numeric: tabular-nums; }
.stamp:hover { background: rgba(229, 9, 20, .35); }
.note-top .when { color: var(--dim); font-size: 12px; }
.note-top .x { margin-left: auto; display: flex; gap: 2px; }
.note-top .x button { border: 0; background: transparent; color: var(--dim); cursor: pointer; padding: 2px 6px; border-radius: 3px; font-size: 12px; }
.note-top .x button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.note-text { white-space: pre-wrap; word-break: break-word; font-size: 14px; color: #e5e5e5; }
.note textarea, .compose textarea { width: 100%; resize: vertical; min-height: 70px; border-radius: 4px; border: 1px solid #3a3a3a; background: #0f0f0f; padding: 10px; outline: none; font-size: 14px; }
.note textarea:focus, .compose textarea:focus { border-color: #777; }
.compose { padding: 12px; border-top: 1px solid #2a2a2a; display: grid; gap: 8px; min-width: 300px; }
.compose .hint { color: var(--dim); font-size: 12px; }
.notes-empty { color: var(--dim); text-align: center; padding: 40px 16px; font-size: 14px; }

.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: #fff; color: #000; padding: 11px 18px; border-radius: 4px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 2147483000; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.bad { background: var(--bad); color: #fff; }
.modal { border: 0; border-radius: 8px; background: #181818; color: var(--text); padding: 26px; width: min(500px, calc(100vw - 32px)); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(0, 0, 0, .75); }
.modal h2 { margin-bottom: 10px; font-size: 22px; }
.modal p { color: var(--muted); margin: 0 0 18px; }
.modal input, .modal textarea { width: 100%; border-radius: 4px; border: 1px solid #444; background: #000; padding: 10px 12px; margin-bottom: 18px; outline: none; }
.modal input { height: 44px; }
.modal textarea { min-height: 140px; resize: vertical; }
.modal input:focus, .modal textarea:focus { border-color: #888; }
.modal .actions { justify-content: flex-end; }

@media (max-width: 860px) {
  .nav, .topbar-actions .btn { display: none; }
  .topbar { gap: 12px; height: 60px; background: rgba(20, 20, 20, .97); }
  .brand { font-size: 22px; }
  .search { width: auto; flex: 1; }
  .topbar-actions { flex: 1; }
  main { padding-top: 76px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(18, 18, 18, .98); border-top: 1px solid #262626; }
  .tabbar a { display: grid; place-items: center; align-content: center; gap: 2px; color: var(--dim); font-size: 11px; font-weight: 700; }
  .tabbar svg { width: 22px; height: 22px; fill: currentColor; }
  .tabbar a.active { color: #fff; }
  .hero { min-height: 62vh; }
  .hero-body { padding: 90px var(--gutter) 70px; }
  .row { grid-auto-columns: 62vw; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px 8px; }
  .ep { grid-template-columns: 120px 1fr; }
  .ep .num { display: none; }
  .ep .ops { grid-column: 1 / -1; justify-content: flex-end; }
  .dl { grid-template-columns: minmax(0, 1fr); }
  .dl-ops { grid-row: auto; }
  .watch { flex-direction: column; }
  .watch.with-notes .notes { width: 100%; height: 48vh; }
  .notes { width: 100%; height: 0; border-left: 0; border-top: 1px solid #2a2a2a; transition: height .25s; }
  .notes-head, .notes-list, .compose { min-width: 0; }
  .watch-bar .tool span { display: none; }
}
@media (min-width: 861px) { body { padding-bottom: 0; } }

.avatar { width: 34px; height: 34px; border-radius: 6px; border: 0; background: linear-gradient(135deg, #e50914, #8c0a10); color: #fff; font-weight: 800; font-size: 13px; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.avatar.big { width: 52px; height: 52px; font-size: 18px; cursor: default; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who h2 { margin: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.link { border: 0; background: none; color: #54b9c5; font-weight: 700; cursor: pointer; padding: 0; }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; margin: -92px calc(-1 * var(--gutter)) -60px; background: radial-gradient(ellipse at top, rgba(229, 9, 20, .25), transparent 60%), linear-gradient(180deg, #000 0%, #141414 100%); }
.auth-card { width: min(420px, 100%); background: rgba(0, 0, 0, .75); border-radius: 8px; padding: 44px 40px; box-shadow: var(--shadow); }
.auth-brand { font-size: 34px; margin-bottom: 26px; }
.auth h1 { font-size: 30px; }
.auth .sub { margin-bottom: 20px; }
.auth .btn { width: 100%; height: 48px; }
.notice { background: #e87c03; color: #000; border-radius: 4px; padding: 10px 14px; font-weight: 600; margin: 0 0 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); margin: 18px 0; font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid #333; }
body.authing { padding-bottom: 0; }
/* Until /api/auth/state says who you are, show nothing: no menu, tabs or page. */
body.booting .topbar, body.booting .tabbar, body.booting #view { display: none !important; }
body.booting::before {
  content: "THEATRE"; position: fixed; inset: 0; display: grid; place-items: center;
  color: var(--accent); font-weight: 900; font-size: 34px; letter-spacing: -0.04em;
}

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { color: var(--muted); font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea, .rule input, .rule select { width: 100%; height: 44px; border-radius: 4px; border: 1px solid #444; background: #000; padding: 0 12px; outline: none; }
.field textarea { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .rule input:focus { border-color: #888; }
.field input[readonly] { color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { width: 18px; height: 18px; accent-color: var(--accent); }
.rule { display: grid; grid-template-columns: 1fr 140px auto; gap: 8px; margin-bottom: 8px; }
.modal .form p { margin: 0; }
.modal .field input, .modal .field textarea { margin-bottom: 0; }
code { background: rgba(255, 255, 255, .08); padding: 1px 6px; border-radius: 4px; font-size: 13px; }

.tabs-nav { display: flex; gap: 26px; border-bottom: 1px solid #2a2a2a; margin: 4px 0 18px; }
.tabs-nav a { padding: 12px 2px; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -1px; display: flex; gap: 8px; align-items: center; }
.tabs-nav a:hover { color: #fff; }
.tabs-nav a.on { color: #fff; border-color: var(--accent); }
.tabs-nav a span:not(:empty) { background: #333; color: #fff; border-radius: 9px; padding: 0 7px; font-size: 12px; line-height: 18px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-bottom: 1px solid #2a2a2a; }
.table td { padding: 12px 10px; border-bottom: 1px solid #222; vertical-align: middle; }
.table td a { color: #fff; font-weight: 600; }
.table .sub { font-size: 12px; }
.kebab.static { position: static; opacity: 1; background: rgba(255, 255, 255, .06); }

.tabbar { grid-auto-flow: column; grid-auto-columns: 1fr; }
@media (max-width: 860px) {
  .tabbar { grid-template-columns: none; }
  .grid2 { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 22px; }
  .rule { grid-template-columns: 1fr 110px auto; }
}

.menu { max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.plyr__menu__container { max-height: min(60vh, 420px); overflow-y: auto; overscroll-behavior: contain; }
.plyr__menu__container [role="menu"] { max-height: none; }

@media (max-width: 640px), (pointer: coarse) and (max-width: 900px) {
  .plyr__controls { flex-wrap: nowrap; gap: 4px; padding: 6px 8px calc(10px + env(safe-area-inset-bottom)) !important; }
  .plyr__controls .plyr__progress__container { flex: 1 1 auto; min-width: 0; margin: 0 6px 0 4px; }
  .plyr__controls .plyr__progress input[type="range"] { height: 26px; }
  .plyr__controls .plyr__time { font-size: 13px; flex: none; }
  .plyr__controls .plyr__control { flex: none; padding: 6px; }
  .next-up { bottom: 76px; right: 12px; }
  .watch-bar { padding: 10px 12px; }
  .watch-bar .tool { height: 34px; padding: 0 10px; }
  .center-toggle { width: 72px; height: 72px; }
}

.wish-quick { display: flex; gap: 8px; margin: 0 0 6px; }
.wish-quick input { flex: 1; height: 42px; border-radius: 4px; border: 1px solid #444; background: #000; padding: 0 12px; outline: none; }
.wish-quick input:focus { border-color: #888; }
.wishes { display: grid; gap: 2px; max-width: 1100px; }
.wish { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 6px; background: var(--bg-2); }
.wish:hover { background: var(--card); }
.wish-line { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 13px; }
.wish-line b { color: #fff; font-size: 15px; }
.wish-line span::before { content: "·"; margin: 0 8px; color: var(--dim); }
.wish-line .in-lib { color: var(--ok); font-weight: 700; font-size: 12px; margin-left: 12px; }
.wish.done .wish-line b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }
.check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #666; background: transparent; color: #000; font-weight: 900; cursor: pointer; display: grid; place-items: center; padding: 0; }
.check:hover { border-color: #fff; }
.wish.done .check { background: var(--ok); border-color: var(--ok); }

.history { display: grid; gap: 2px; max-width: 1100px; }
.hist-day { margin: 22px 0 8px; font-size: 14px; color: var(--muted); font-weight: 700; }
.hist-day:first-child { margin-top: 0; }
.hist-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 16px; align-items: center; padding: 10px; border-radius: 6px; background: var(--bg-2); }
.hist-row:hover { background: var(--card); }
.hist-row .thumb { cursor: pointer; }
.hist-row:hover .play-ov { opacity: 1; }
.hist-text { display: grid; gap: 3px; min-width: 0; }
.hist-text b { font-size: 15px; }
.hist-text .sub { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) { .hist-row { grid-template-columns: 110px 1fr auto; gap: 10px; } }

.center-toggle { position: absolute; left: 50%; top: 50%; z-index: 4; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .45); backdrop-filter: blur(4px); cursor: pointer; display: grid; place-items: center; transition: opacity .25s, transform .1s; }
.center-toggle:active { transform: scale(.94); }
.center-toggle::before { content: ""; width: 26px; height: 30px; background: linear-gradient(90deg, #fff 0 34%, transparent 34% 66%, #fff 66% 100%); }
.center-toggle.paused::before { width: 0; height: 0; margin-left: 8px; background: none; border-left: 28px solid #fff; border-top: 17px solid transparent; border-bottom: 17px solid transparent; }
.watch.idle .center-toggle:not(.paused) { opacity: 0; pointer-events: none; }

.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #333; border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 6px 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.file-tools { display: flex; gap: 16px; font-size: 13px; }
.file-list { max-height: 44vh; overflow-y: auto; border: 1px solid #2a2a2a; border-radius: 6px; }
.file-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-bottom: 1px solid #222; font-size: 13px; cursor: pointer; }
.file-row:last-child { border-bottom: 0; }
.file-row:hover { background: #1f1f1f; }
.file-row input { width: 16px; height: 16px; accent-color: var(--accent); }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.file-row.video .file-name { color: #fff; font-weight: 600; }
.file-size { color: var(--dim); font-variant-numeric: tabular-nums; }

.stats-line { margin: 0 0 20px; }
@media (max-width: 860px) {
  .detail .meta { row-gap: 6px; margin-bottom: 12px; }
  .ep { grid-template-columns: 112px 1fr auto; gap: 10px; padding: 12px 6px; }
  .ep .ops { grid-column: auto; flex-direction: column; gap: 6px; }
  .ep .ops .btn { width: 38px; height: 34px; padding: 0; }
  .ep h3 { font-size: 14px; flex-wrap: wrap; }
  .ep p { font-size: 12px; }
}

.dl > div, .hist-text, .wish-line, .ep > div, .file-row { min-width: 0; }
h1, h2, .dl-name, .card-title, .hist-text b { overflow-wrap: anywhere; }

.wish-thumb { width: 34px; height: 50px; border-radius: 3px; object-fit: cover; background: #2a2a2a; display: block; }
.wish-thumb.blank { background: linear-gradient(135deg, #2a2a2a, #1b1b1b); }
.wish-thumb.big { width: 92px; height: 136px; border-radius: 6px; flex: none; }
.wish-links { display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
.link-chip { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 3px; background: #2c2c2c; color: #ddd; white-space: nowrap; }
.link-chip:hover { background: #3a3a3a; color: #fff; }
.link-chip.rottentomatoes { background: #fa320a; color: #fff; }
.link-chip.imdb { background: #f5c518; color: #000; }
.link-chip.trailer { background: #c00; color: #fff; }
.thumb-pick { display: flex; gap: 14px; align-items: flex-start; }
.thumb-inputs { flex: 1; display: grid; gap: 8px; min-width: 0; }
.thumb-inputs input { width: 100%; height: 40px; border-radius: 4px; border: 1px solid #444; background: #000; padding: 0 12px; outline: none; }
.link-row { grid-template-columns: 150px minmax(0, 1fr) auto; }
.wish-form { max-height: 80vh; overflow-y: auto; }
@media (max-width: 860px) {
  .wish { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 10px; }
  .wish-links { grid-column: 3 / 4; grid-row: 2; }
  .link-row { grid-template-columns: 110px minmax(0, 1fr) auto; }
}

.taps { position: absolute; inset: 0; z-index: 2; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.seek-hint { position: absolute; top: 0; bottom: 0; width: 38%; display: grid; place-content: center; justify-items: center; gap: 10px; color: #fff; font-size: 14px; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); background: rgba(255, 255, 255, .13); opacity: 0; pointer-events: none; transition: opacity .3s; }
.seek-hint.left { left: 0; border-radius: 0 50% 50% 0 / 0 50% 50% 0; }
.seek-hint.right { right: 0; border-radius: 50% 0 0 50% / 50% 0 0 50%; }
.seek-hint.on { opacity: 1; transition-duration: .05s; }
.arrows { display: flex; gap: 3px; }
.arrows span { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid #fff; opacity: .25; animation: seek-arrow .9s infinite; }
.seek-hint.left .arrows { flex-direction: row-reverse; }
.seek-hint.left .arrows span { border-left: 0; border-right: 12px solid #fff; }
.arrows span:nth-child(2) { animation-delay: .15s; }
.arrows span:nth-child(3) { animation-delay: .3s; }
@keyframes seek-arrow { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }
.speed-pill { position: absolute; top: 76px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 18px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 14px; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity .2s; }
.speed-pill .arrows span { border-top-width: 6px; border-bottom-width: 6px; border-left-width: 9px; }
.speed-pill.on { opacity: 1; }

/* Library filter bar: one row of compact buttons that open menus. */
.fbar { display: flex; gap: 8px; overflow-x: auto; margin: -6px 0 22px; padding: 2px 0; scrollbar-width: none; }
.fbar::-webkit-scrollbar { display: none; }
.fpill { flex: none; height: 34px; padding: 0 12px 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #ddd; font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fpill::after { content: ""; border-top: 5px solid currentColor; border-left: 4px solid transparent; border-right: 4px solid transparent; opacity: .8; }
.fpill.on { background: #fff; color: #000; border-color: #fff; }

/* Ratings and category chips on the title page. */
.rating-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.stars { display: inline-flex; gap: 2px; }
.star { border: 0; background: none; padding: 0 2px; font-size: 26px; line-height: 1; color: rgba(255, 255, 255, .28); cursor: pointer; }
.star.on { color: #f5c518; }
.star:hover { color: #ffd84d; }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.cat-chip { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #eee; }
.cat-chip small { color: var(--muted); font-weight: 700; }
.cat-chip:hover { background: rgba(255, 255, 255, .22); }

/* Advance → Categories. */
.cat-group { border-top: 1px solid #2a2a2a; padding-top: 16px; margin-top: 16px; }
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cat-head .sub { font-size: 13px; }
.cat-value { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 6px; background: var(--card); margin-bottom: 6px; }
.cat-value .sub { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-add { margin-top: 8px; }
.order-ops { display: flex; gap: 10px; }
.order-ops .link { font-size: 16px; }
/* Holding the left half rewinds: the pill's arrows point back. */
.speed-pill.back { flex-direction: row-reverse; }
.speed-pill.back .arrows { flex-direction: row-reverse; }
.speed-pill.back .arrows span { border-left: 0; border-right: 9px solid #fff; }

/* Genre colours. */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; flex: none; }
.menu .dot { margin-right: 0; }
.cat-chip.colored { background: color-mix(in srgb, var(--c) 22%, transparent); color: color-mix(in srgb, var(--c) 55%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent); }
.cat-chip.uni { background: rgba(245, 197, 24, .16); color: #f5d469; box-shadow: inset 0 0 0 1px rgba(245, 197, 24, .45); }
.cat-chips.small { margin: 6px 0 0; gap: 6px; }
.cat-chips.small .cat-chip, .cat-chip.small { font-size: 11px; padding: 2px 8px; }
.status.universe { color: #f5c518; }
.swatch { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.cat-value:has(.swatch), .cat-value:has(.cat-thumb) { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.cat-thumb { width: 52px; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: linear-gradient(135deg, #2a2a2a, #1b1b1b); flex: none; }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.palette { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.swatch-btn { aspect-ratio: 1; border-radius: 50%; border: 3px solid transparent; cursor: pointer; padding: 0; }
.swatch-btn.on { border-color: #fff; box-shadow: 0 0 0 2px #000 inset; }

/* A cinematic universe: cover, thumbnail, description, release timeline. */
.uni-hero { min-height: 56vh; }
.uni-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 55%, var(--bg) 100%), linear-gradient(77deg, rgba(0, 0, 0, .75) 0%, transparent 70%); }
.uni-head { display: flex; gap: 18px; align-items: flex-end; margin-bottom: 14px; }
.uni-head h1 { margin-bottom: 8px; }
.uni-thumb { width: 104px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); flex: none; }
.uni-prev { width: 92px; height: 136px; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, #2a2a2a, #1b1b1b); flex: none; }
.uni-prev.cover { width: 160px; height: 90px; }
.uni-prev img { width: 100%; height: 100%; object-fit: cover; }
.timeline { list-style: none; margin: 0; padding: 0; max-width: 1100px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 97px; top: 8px; bottom: 8px; width: 2px; background: #333; }
.tl-item { display: grid; grid-template-columns: 76px 24px minmax(0, 1fr); gap: 0 10px; align-items: center; margin-bottom: 14px; position: relative; }
.tl-when { text-align: right; display: grid; gap: 2px; }
.tl-when b { font-size: 14px; }
.tl-when span { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #666; background: var(--bg); justify-self: center; z-index: 1; }
.tl-item.started .tl-dot { border-color: var(--accent); background: radial-gradient(var(--accent) 45%, var(--bg) 50%); }
.tl-item.done .tl-dot { border-color: var(--accent); background: var(--accent); }
.tl-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 8px; background: var(--bg-2); }
.tl-card:hover { background: var(--card); }
.tl-text { display: grid; gap: 3px; min-width: 0; }
.tl-text b { font-size: 15px; overflow-wrap: anywhere; }
.tl-text .sub { font-size: 13px; }
.tl-edit { grid-template-columns: auto minmax(0, 1fr) 96px auto; }
.tl-date-in { width: 96px; height: 30px; border-radius: 4px; border: 1px solid #444; background: #000; padding: 0 8px; font-size: 13px; }
@media (max-width: 860px) {
  .uni-thumb { width: 84px; }
  .timeline::before { left: 65px; }
  .tl-item { grid-template-columns: 52px 16px minmax(0, 1fr); gap: 0 6px; }
  .tl-when b { font-size: 12px; }
  .tl-card { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; padding: 8px; }
  .tl-text b { font-size: 14px; }
}

/* Universe timeline: where a date comes from, and the editor. */
.tl-when b.from-title { color: var(--dim); font-weight: 600; }
.tl-hint { font-size: 13px; margin: 0 0 16px; }
.tl-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 10px; }
.tl-toolbar-end { margin-left: auto; display: flex; gap: 8px; }
.tl-edit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 1100px; }
.tl-edit-row { display: grid; grid-template-columns: 24px 96px minmax(0, 1fr) 110px auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--bg-2); }
.tl-num { color: var(--dim); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.tl-edit-text { display: grid; gap: 2px; min-width: 0; }
.tl-edit-text b { font-size: 14px; overflow-wrap: anywhere; }
.tl-edit-text .sub { font-size: 12px; }
.tl-date-in.bad { border-color: var(--bad); }
.danger-link { color: var(--bad) !important; }
@media (max-width: 860px) {
  .tl-edit-row { grid-template-columns: 20px 72px minmax(0, 1fr); }
  .tl-edit-row .tl-date-in, .tl-edit-row .order-ops { grid-column: 3; }
  .tl-edit-row .tl-date-in { width: 100%; }
  .tl-toolbar-end { margin-left: 0; width: 100%; justify-content: flex-end; }
}

/* A title's pictures. */
.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; max-height: 50vh; overflow-y: auto; }
.frame { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #2a2a2a; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.frame-x:hover { background: var(--bad); }

/* Advance → Categories / Universes / Groups. */
.uni-section { margin-bottom: 14px; }
.uni-section .cat-head { margin-bottom: 12px; }
.uni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.uni-tile { border-radius: 8px; overflow: hidden; background: var(--card); }
.uni-tile .thumb { border-radius: 0; box-shadow: none; }
.uni-tile-body { padding: 10px 12px 12px; display: grid; gap: 4px; }
.uni-tile-body b { overflow-wrap: anywhere; }
.uni-tile-body .sub { font-size: 12px; }
.uni-tile-ops { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.cat-value.grp { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.kind-badge { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; background: rgba(255, 255, 255, .1); color: #ddd; }
.kind-badge.tl { background: rgba(245, 197, 24, .16); color: #f5d469; }

/* Tabs scroll sideways on a phone instead of widening the page. */
.tabs-nav { overflow-x: auto; scrollbar-width: none; }
.tabs-nav::-webkit-scrollbar { display: none; }
.tabs-nav a { flex: none; white-space: nowrap; }

/* Up next: the card after an episode ends, with the autoplay countdown. */
.up-next { position: absolute; right: 28px; bottom: 96px; z-index: 6; width: min(340px, calc(100% - 24px)); padding: 16px 18px; border-radius: 8px; background: rgba(24, 24, 24, .95); box-shadow: var(--shadow); display: grid; gap: 6px; }
.up-next-eyebrow { font-size: 12px; letter-spacing: .14em; font-weight: 800; color: var(--accent); text-transform: uppercase; }
.up-next b { font-size: 16px; overflow-wrap: anywhere; }
.up-next-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.up-next-bar { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.up-next-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1s linear; }
.up-next .actions { margin-top: 6px; }
@media (max-width: 640px), (pointer: coarse) and (max-width: 900px) { .up-next { right: 12px; bottom: 76px; } }

/* Pins on a title's frames. */
.frame.pinned { box-shadow: 0 0 0 2px var(--accent); }
.frame-pins { position: absolute; left: 4px; right: 4px; bottom: 4px; display: flex; gap: 4px; }
.frame-pin { flex: 1; border: 0; border-radius: 4px; padding: 4px 6px; font-size: 11px; font-weight: 800; background: rgba(0, 0, 0, .7); color: #ddd; cursor: pointer; white-space: nowrap; }
.frame-pin:hover { background: rgba(0, 0, 0, .9); color: #fff; }
.frame-pin.on { background: var(--accent); color: #fff; }
