/* Layout: full-bleed cinematic hero under a floating glass nav, horizontal shelves below; detail, sources
   and player live on frosted glass sheets over ambient color pulled from the current artwork. */
@font-face { font-family: 'Syne'; src: url('fonts/Syne-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Syne'; src: url('fonts/Syne-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Bebas Neue'; src: url('fonts/BebasNeue-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Orbitron'; src: url('fonts/Orbitron-Variable.ttf') format('truetype'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope-Regular.ttf') format('truetype'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope-Bold.ttf') format('truetype'); font-weight: 600 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #06070c;
  --ink: #eef0f7;
  --muted: #a2a8bc;
  --faint: #636a80;
  --accent: #ff2e55;
  --violet: #8b6bff;
  --score: #46e08a;
  --glass: rgba(255,255,255,.07);
  --glass-strong: rgba(16,18,30,.72);
  --glass-hi: rgba(255,255,255,.14);
  --stroke: rgba(255,255,255,.13);
  --stroke-hi: rgba(255,255,255,.28);
  --amb1: hsl(255 60% 30%);
  --amb2: hsl(345 70% 35%);
  --display: 'Syne', 'Arial Black', system-ui, sans-serif;
  --body: 'Manrope', system-ui, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 3.4vw, 56px);
  --r: 14px;
  --titlebar: 44px;
}
* { box-sizing: border-box; }
/* only <html> is painted: an opaque body would hide the ambient light (z-index -1) wherever there is page, so it
   showed up only below short pages, as a hard-edged patch */
html, body { margin: 0; color: var(--ink); }
html { background: var(--bg); }
body { font-family: var(--body); font-size: 15px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
img { display: block; }
img.broken { visibility: hidden; }
svg { width: 1em; height: 1em; flex: none; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ambient light the glass refracts. The gradients fade out on their own: a blur filter on a layer this big gets
   cut into tiles by Chromium, which showed as a hard-edged patch of light in a corner. */
/* Like Guardian's backdrop: two big soft lights (violet top left, rose lower right) at full strength, each fading
   out over a long, eased curve (many stops) so there is no visible edge, band or ring anywhere. */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; transition: background 1.2s ease;
  background:
    radial-gradient(62% 72% at 6% 4%, var(--amb1), color-mix(in srgb, var(--amb1) 78%, transparent) 14%, color-mix(in srgb, var(--amb1) 52%, transparent) 30%,
      color-mix(in srgb, var(--amb1) 28%, transparent) 48%, color-mix(in srgb, var(--amb1) 11%, transparent) 68%, color-mix(in srgb, var(--amb1) 3%, transparent) 86%, transparent),
    radial-gradient(58% 70% at 90% 66%, var(--amb2), color-mix(in srgb, var(--amb2) 78%, transparent) 14%, color-mix(in srgb, var(--amb2) 52%, transparent) 30%,
      color-mix(in srgb, var(--amb2) 28%, transparent) 48%, color-mix(in srgb, var(--amb2) 11%, transparent) 68%, color-mix(in srgb, var(--amb2) 3%, transparent) 86%, transparent),
    radial-gradient(40% 36% at 58% 0%, color-mix(in srgb, var(--amb2) 55%, transparent), color-mix(in srgb, var(--amb2) 24%, transparent) 45%, transparent);
  opacity: .8; }

.glass { background: linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.035));
  border: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 40px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); }

/* nav (the window's title bar: drag it anywhere that isn't a control) */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding: 8px calc(var(--gutter) + 130px) 0 var(--gutter); -webkit-app-region: drag; }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 58px; padding: 0 10px 0 18px; border-radius: 18px; transition: background .3s, border-color .3s; }
.nav:not(.scrolled) .nav-inner { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav a, .nav button, .nav .avatar { -webkit-app-region: no-drag; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.links { display: flex; gap: 4px; margin-left: 8px; }
.links a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.links a:hover { color: var(--ink); }
.links a.on { color: var(--ink); background: var(--glass-hi); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; color: var(--ink); transition: background .2s; }
.icon-btn:hover { background: var(--glass-hi); }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: conic-gradient(from 200deg, var(--accent), var(--violet), #38d0ff, var(--accent)); border: 1px solid var(--stroke-hi); }

/* hero */
.hero { position: relative; height: min(76vh, 780px); min-height: 480px; overflow: hidden; }
/* The picture and its shading fade out to transparent at the bottom (a mask), so the ambient light behind the page
   carries on under the hero without a seam; fading to the page's solid color left a hard edge where the hero ended. */
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 20%; opacity: 0; transition: opacity 1s ease, transform 9s ease-out; transform: scale(1.06);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.hero-bg.show { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 38%, color-mix(in srgb, var(--bg) 0%, transparent) 70%),
  linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent) 0%, color-mix(in srgb, var(--bg) 0%, transparent) 18%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.hero-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(110px, 16vh, 170px); padding: 0 var(--gutter); max-width: calc(720px + 8vw); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.eyebrow b { color: var(--accent); }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6.4vw, 88px); line-height: .94; letter-spacing: -.035em; margin: 16px 0 14px; text-wrap: balance; text-shadow: 0 4px 40px rgba(0,0,0,.4); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); font-size: 14px; font-weight: 700; }
.meta .score { color: var(--score); }
.meta .pill { border: 1px solid var(--stroke-hi); border-radius: 6px; padding: 0 6px; font-size: 12px; color: var(--ink); }
.hero p { color: #d6d9e4; max-width: 58ch; margin: 14px 0 22px; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { font-family: var(--body); letter-spacing: 0; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 800; font-size: 15px; transition: transform .15s, background .2s, box-shadow .2s; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn svg { font-size: 20px; }
.btn-play { background: var(--ink); color: #0a0b10; }
.btn-play:hover { background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.12); }
.btn-glass:hover { background: var(--glass-hi); }
.btn-round { width: 48px; padding: 0; justify-content: center; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); }
.btn-small { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.dots { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(120px, 17vh, 180px); display: flex; gap: 8px; }
.dots button { width: 28px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; position: relative; }
.dots button.on::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; animation: fill 8s linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* shelves */
main { position: relative; z-index: 2; padding-bottom: 60px; min-height: 60vh; }
.hero:not([hidden]) + main { margin-top: -110px; }
.row { margin-bottom: 30px; }
.row-head { display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter); margin-bottom: 10px; }
.row-head h2 { font-family: var(--display); font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; letter-spacing: -.01em; margin: 0; }
.src { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--stroke); border-radius: 999px; padding: 3px 9px; }
.row-nav { margin-left: auto; display: flex; gap: 6px; }
.arrow { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; border: 1px solid var(--stroke); background: var(--glass); transition: background .2s; }
.arrow:hover { background: var(--glass-hi); }
.track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); padding: 10px var(--gutter) 18px; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.card { position: relative; flex: none; scroll-snap-align: start; border-radius: var(--r); overflow: hidden; text-align: left; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; background: #111320; border: 1px solid var(--stroke); }
/* stacking: fallback title (only seen if the image fails) < artwork < fade, badge, progress */
.card img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.card-foot, .badge, .bar { z-index: 2; }
.card:hover, .card:focus-visible { transform: translateY(-4px) scale(1.04); box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 0 1px var(--stroke-hi); z-index: 2; }
.card .fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--muted); }
.poster { width: clamp(140px, 12vw, 186px); aspect-ratio: 2/3; }
.card-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 11px; background: linear-gradient(0deg, rgba(4,5,10,.94), rgba(4,5,10,0)); }
.card-title { display: block; font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-meta { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--accent); color: #fff; }
.wide { width: clamp(250px, 23vw, 340px); aspect-ratio: 16/9; }
.wide .card-foot { padding-bottom: 18px; }
/* Continue watching: the card plus a small × in its corner that shows on hover (always on touch screens) */
.cw { position: relative; flex: none; scroll-snap-align: start; }
.cw-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: rgba(6,7,12,.72); border: 1px solid rgba(255,255,255,.18); opacity: 0; transform: scale(.85); transition: opacity .15s, transform .15s, background .15s; }
.cw-x svg { width: 14px; height: 14px; }
.cw:hover .cw-x, .cw:focus-within .cw-x { opacity: 1; transform: none; }
.cw-x:hover { background: var(--accent); border-color: transparent; }
@media (hover: none) { .cw-x { opacity: 1; transform: none; } }
.bar { position: absolute; left: 12px; right: 12px; bottom: 8px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.22); }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.top { display: flex; align-items: center; justify-content: flex-end; background: none; border: 0; overflow: visible; width: clamp(210px, 17vw, 250px); }
.top:hover, .top:focus-visible { box-shadow: none; }
/* The number fills the space left of the poster and sits in its middle, both ways. */
.top .num { flex: 1; min-width: 0; text-align: center; font-family: var(--display); font-weight: 800; font-size: clamp(64px, 5.2vw, 78px); line-height: 1; letter-spacing: -.06em; padding-right: 6px; color: var(--bg); -webkit-text-stroke: 2px rgba(255,255,255,.55); position: relative; z-index: 0; }
.top .num.two { font-size: clamp(44px, 3.6vw, 54px); letter-spacing: -.08em; }
.top .poster { position: relative; z-index: 1; width: 60%; flex: none; border-radius: 12px; overflow: hidden; border: 1px solid var(--stroke); }

/* pages without a hero */
.page { padding: calc(var(--titlebar) + 70px) var(--gutter) 0; }
.page h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.03em; line-height: 1; margin: 0 0 8px; }
.page .sub { color: var(--muted); margin: 0 0 26px; max-width: 64ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.grid .poster { width: auto; }
.empty { border-radius: 18px; padding: 36px 24px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-family: var(--display); font-size: 20px; margin-bottom: 6px; }
.empty a { color: var(--accent); }
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 60px 0; color: var(--muted); font-weight: 700; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.16); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.section-title { font-family: var(--display); font-size: 22px; font-weight: 700; margin: 34px 0 14px; }

/* search */
.search-box { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 20px; border-radius: 18px; margin-bottom: 24px; }
.search-box svg { font-size: 22px; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 18px; font-weight: 700; }
.search-box input::placeholder { color: var(--faint); }

/* forms, cards, addons, settings */
.panel { border-radius: 20px; padding: 24px; }
.panel h2 { font-family: var(--display); font-size: 24px; margin: 0 0 6px; letter-spacing: -.01em; }
.panel p { color: var(--muted); margin: 0 0 16px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.field { display: flex; gap: 10px; flex-wrap: wrap; }
.field input, .select { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--stroke); background: rgba(0,0,0,.3); outline: 0; }
.field input:focus, .select:focus { border-color: var(--stroke-hi); }
.hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.hint.err { color: #ff8a9e; }
.addon-list { display: grid; gap: 12px; }
.addon { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 18px; }
.addon-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 20px; color: #fff; }
.addon h3 { margin: 0; font-size: 16px; font-weight: 800; }
.addon .ver { color: var(--faint); font-size: 12px; font-weight: 700; margin-left: 6px; }
.addon p { margin: 2px 0 8px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--glass-hi); }
.link-btn { font-size: 12px; font-weight: 800; color: var(--faint); margin-left: 4px; }
.link-btn:hover { color: var(--accent); }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid var(--stroke); transition: background .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.switch input:checked + span { background: var(--accent); border-color: transparent; }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.code-box { display: grid; gap: 6px; margin: 18px 0; padding: 20px; border-radius: 16px; background: rgba(0,0,0,.28); border: 1px solid var(--stroke); }
.code-box small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.code-box .code { font-family: var(--display); font-weight: 800; font-size: 46px; letter-spacing: .12em; color: var(--accent); }
.code-box .url { font-family: var(--display); font-weight: 700; font-size: 22px; }
.status-line { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.dot.ok { background: var(--score); box-shadow: 0 0 0 4px rgba(70,224,138,.18); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--stroke); }
.setting-row:first-of-type { border-top: 0; }
.setting-row b { display: block; }
.setting-row span { color: var(--muted); font-size: 13px; }

/* detail sheet */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(3,4,8,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow-y: auto; padding: calc(var(--titlebar) + 16px) var(--gutter) 40px; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; max-width: 1040px; margin: 0 auto; border-radius: 24px; overflow: hidden; background: var(--glass-strong); animation: rise .35s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { transform: translateY(24px) scale(.98); opacity: 0; } }
.sheet-hero { position: relative; aspect-ratio: 16/8; background-size: cover; background-position: center 20%; background-color: #10121e; }
.sheet-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,16,26,1) 0%, rgba(14,16,26,0) 62%); }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; }
.sheet-head { position: relative; z-index: 2; margin-top: -130px; padding: 0 clamp(18px, 4vw, 44px); }
.sheet-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.6vw, 58px); line-height: .95; letter-spacing: -.03em; margin: 0 0 16px; text-wrap: balance; }
.sheet-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; padding: 22px clamp(18px, 4vw, 44px) 10px; }
.sheet-body p { margin: 0; color: #d4d7e2; font-size: 15.5px; }
.facts { font-size: 13.5px; color: var(--muted); display: grid; gap: 8px; align-content: start; }
.facts b { color: var(--faint); font-weight: 800; }
.tabs { display: flex; gap: 4px; padding: 0 clamp(18px, 4vw, 44px); margin-top: 20px; border-bottom: 1px solid var(--stroke); }
.tab { padding: 12px 14px; font-weight: 800; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--ink); border-color: var(--accent); }
.tab-panel { padding: 20px clamp(18px, 4vw, 44px) 34px; min-height: 160px; }
.season-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.season-bar .select { flex: none; width: auto; height: 40px; padding: 0 12px; font-weight: 800; }
.ep { display: grid; grid-template-columns: auto 180px minmax(0, 1fr); gap: 16px; align-items: center; width: 100%; text-align: left; padding: 12px; border-radius: 14px; transition: background .2s; }
.ep:hover, .ep:focus-visible { background: var(--glass-hi); }
.ep-n { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--faint); width: 32px; text-align: center; }
.ep-thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; border: 1px solid var(--stroke); background: #151826; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep h4 { margin: 0 0 4px; font-size: 15px; display: flex; justify-content: space-between; gap: 10px; }
.ep h4 span { color: var(--muted); font-weight: 700; font-size: 13px; white-space: nowrap; }
.ep p { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep .prog { grid-column: 2; height: 3px; border-radius: 3px; background: rgba(255,255,255,.15); margin-top: -10px; }
.ep .prog i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.sources-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sources-head b { font-family: var(--display); font-size: 18px; }
.streams { display: grid; gap: 8px; }
.stream { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--stroke); background: rgba(255,255,255,.03); transition: background .2s, border-color .2s; }
.stream:hover, .stream:focus-visible { background: var(--glass-hi); border-color: var(--stroke-hi); }
.q { min-width: 62px; text-align: center; font-size: 12px; font-weight: 800; padding: 6px 8px; border-radius: 8px; background: var(--glass-hi); }
.q.uhd { background: linear-gradient(135deg, #f7c75a, #ff8a3d); color: #1a1004; }
.q.fhd { background: linear-gradient(135deg, #7aa8ff, var(--violet)); color: #fff; }
.stream-name { display: block; font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stream-sub { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.aud { display: inline-block; vertical-align: 1px; margin-left: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 5px; }
.aud.ok { background: rgba(70,224,138,.16); color: var(--score); }
.aud.warn { background: rgba(247,199,90,.16); color: #f7c75a; }
.hint .aud { margin: 0 6px 0 0; }
.stream-tag { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.resolving { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.resolving .card-box { display: grid; justify-items: center; gap: 14px; padding: 28px 34px; border-radius: 20px; max-width: 460px; text-align: center; font-weight: 700; }
.resolving small { color: var(--muted); font-weight: 600; }

/* player */
.player { position: fixed; inset: 0; z-index: 80; background: #000; overflow: hidden; animation: fade .3s ease; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.player-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 14px; padding: calc(var(--titlebar) + 6px) var(--gutter) 60px; background: linear-gradient(180deg, rgba(0,0,0,.75), transparent); transition: opacity .3s; }
.player-top h3 { margin: 0; font-family: var(--display); font-size: 22px; }
.player-top small { display: block; color: var(--muted); font-family: var(--body); font-size: 13px; font-weight: 700; }
.player-center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.big-play { pointer-events: auto; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; opacity: 0; transform: scale(.9); transition: opacity .2s, transform .2s; }
.player.paused .big-play { opacity: 1; transform: scale(1); }
/* denser than other glass: it sits on moving, often bright video */
.player-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 12px; padding: 24px 30px; border-radius: 18px; font-weight: 700; text-align: center; max-width: 560px;
  background: rgba(10,12,20,.82) !important; -webkit-backdrop-filter: blur(28px) saturate(140%) !important; backdrop-filter: blur(28px) saturate(140%) !important; text-shadow: none; }
.player-msg strong { font-size: 17px; color: var(--ink); }
.controls { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; border-radius: 20px; padding: 14px 18px; display: grid; gap: 10px; transition: opacity .3s, transform .3s; }
.player.idle:not(.paused) .controls, .player.idle:not(.paused) .player-top { opacity: 0; transform: translateY(8px); pointer-events: none; }
.player.idle:not(.paused) { cursor: none; }
.scrub { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; }
.scrub-track { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); }
.scrub-buf { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: rgba(255,255,255,.25); }
.scrub-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--accent); }
/* intro, recap and ending: brighter bands with a small gap at each side, over the played part */
.scrub-mark { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: rgba(255,255,255,.55); box-shadow: inset 2px 0 0 rgba(0,0,0,.6), inset -2px 0 0 rgba(0,0,0,.6); pointer-events: none; }
.scrub-mark.m-intro { background: color-mix(in srgb, #ffd166 75%, transparent); }
.scrub-mark.m-recap { background: color-mix(in srgb, #7ad7ff 70%, transparent); }
.scrub-mark.m-ending { background: color-mix(in srgb, #b9a6ff 70%, transparent); }
.scrub-knob { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 40%, transparent); }
.ctrl-row { display: flex; align-items: center; gap: 6px; }
.ctrl-row .time { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); margin-left: 6px; }
.ctrl-row .spacer { flex: 1; }
.ctrl-row .src-label { font-size: 12px; color: var(--muted); font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34vw; }
.volume { width: 90px; accent-color: var(--accent); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14px; transition: all .3s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* player menu: audio languages, subtitles, clips */
.pmenu { position: absolute; right: var(--gutter); bottom: 132px; z-index: 6; display: flex; gap: 6px; max-height: calc(100vh - 220px); padding: 14px; border-radius: 20px;
  background: rgba(12,14,22,.86) !important; -webkit-backdrop-filter: blur(28px) saturate(150%) !important; backdrop-filter: blur(28px) saturate(150%) !important; animation: rise .2s ease; }
.pmenu.clip { width: 340px; }
.pm-col { width: 300px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; padding-right: 4px; }
.pm-col h4 { margin: 2px 10px 8px; font-family: var(--display); font-size: 15px; letter-spacing: .02em; }
.pm-item { display: grid; gap: 1px; text-align: left; padding: 9px 12px 9px 30px; border-radius: 12px; position: relative; transition: background .15s; }
.pm-item:hover:not([disabled]) { background: var(--glass-hi); }
.pm-item b { font-size: 14px; font-weight: 800; }
.pm-item span { font-size: 12px; color: var(--muted); font-weight: 600; }
.pm-item.on::before { content: ""; position: absolute; left: 12px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.pm-item[disabled] { opacity: .45; cursor: not-allowed; }
.pm-note { margin: 4px 12px 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pm-tools { display: grid; gap: 8px; margin: 10px 8px 4px; padding-top: 10px; border-top: 1px solid var(--stroke); }
/* a labeled setting row in the player menu: name on the left, its control on the right */
.pm-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 4px; }
.pm-opt > span:first-child { min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--muted); }
.pm-opt > :last-child { flex: none; }
.pm-delay { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.06); }
.pm-delay b { min-width: 52px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.pm-delay .icon-btn { width: 30px; height: 30px; font-size: 17px; font-weight: 800; border-radius: 50%; background: rgba(255,255,255,.08); }
.pm-look { margin: 10px 8px 2px; padding-top: 10px; border-top: 1px solid var(--stroke); display: grid; gap: 4px; }
.pm-look h5 { margin: 0 4px 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pm-look .pm-note { margin: 6px 4px 2px; font-size: 11.5px; }
/* segmented control: one pill with the chosen option raised */
.pm-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(255,255,255,.06); }
.pm-seg button { min-width: 34px; height: 30px; padding: 0 10px; white-space: nowrap; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--muted); display: grid; place-items: center; transition: background .15s, color .15s; }
.pm-seg button:hover { color: var(--ink); }
.pm-seg button.on { background: rgba(255,255,255,.92); color: #0a0b10; }
.pm-seg button span { line-height: 1; font-weight: 800; }
.pm-swatches { display: flex; gap: 8px; padding: 3px 0; }
.pm-swatches button { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); transition: transform .15s, box-shadow .15s; }
.pm-swatches button.on { box-shadow: 0 0 0 2px #0c0e16, 0 0 0 4px var(--c); }
.pm-swatches button:active { transform: scale(.9); }
.pm-sizes { display: flex; gap: 6px; margin: 10px 8px 2px; }
.pm-sizes .chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--glass); font-size: 12px; font-weight: 800; color: var(--muted); }
.pm-sizes .chip.on { background: var(--ink); color: #0a0b10; border-color: var(--ink); }
.pm-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

/* subtitles: drawn by Lumen so they stay in sync with the sound fix and can be resized */
.psubs { position: absolute; left: 6%; right: 6%; bottom: 8%; z-index: 3; text-align: center; pointer-events: none; transition: bottom .3s ease; }
.player:not(.idle) .psubs, .player.paused .psubs { bottom: 170px; }
.psubs span { display: inline-block; padding: 4px 14px 6px; border-radius: 10px; background: rgba(0,0,0,.62); color: #fff; font-family: var(--body); font-weight: 600; line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0,0,0,.9); white-space: pre-line; }
.psubs.size-s span { font-size: clamp(16px, 1.7vw, 24px); }
.psubs.size-m span { font-size: clamp(20px, 2.3vw, 32px); }
.psubs.size-l span { font-size: clamp(26px, 3vw, 42px); }
.clip-chip { position: absolute; top: calc(var(--titlebar) + 70px); right: var(--gutter); z-index: 6; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; font-weight: 800; font-size: 13px;
  background: rgba(12,14,22,.86) !important; }
.clip-chip .spinner { width: 16px; height: 16px; border-width: 2px; }
.timing-chip { top: calc(var(--titlebar) + 70px); right: 50%; transform: translateX(50%); font-variant-numeric: tabular-nums; }

/* skip intro, next episode */
.skip-btn { position: absolute; right: var(--gutter); bottom: 150px; z-index: 5; background: rgba(12,14,22,.8) !important; animation: rise .25s ease; }
.skip-btn svg { width: 18px; height: 18px; }
.player.idle:not(.paused) .skip-btn { bottom: 40px; }
.next-card { position: absolute; right: var(--gutter); bottom: 150px; z-index: 5; display: flex; gap: 16px; align-items: center; width: min(520px, calc(100% - 2 * var(--gutter))); padding: 14px; border-radius: 20px;
  background: rgba(12,14,22,.88) !important; -webkit-backdrop-filter: blur(28px) saturate(150%) !important; backdrop-filter: blur(28px) saturate(150%) !important; animation: rise .3s ease; }
.player.idle:not(.paused) .next-card { bottom: 40px; }
.next-thumb { flex: none; width: 168px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--glass-hi); }
.next-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.next-body { display: grid; gap: 4px; min-width: 0; }
.next-body small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.next-body b { font-family: var(--display); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-body .actions { margin-top: 8px; gap: 8px; }
.next-body .btn-play { font-variant-numeric: tabular-nums; min-width: 128px; }

/* play on TV */
.pmenu.tv { width: 340px; }
.pm-ip { display: flex; gap: 6px; margin: 8px 8px 4px; }
.pm-ip .input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--stroke); background: rgba(0,0,0,.3); outline: 0; font-size: 13px; font-weight: 700; }
.pm-ip .input:focus { border-color: var(--stroke-hi); }

/* the source used last time for this title */
.stream.mine { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.aud.mine-tag { margin: 0 6px 0 0; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); }
.toast.has-action { display: flex; align-items: center; gap: 14px; pointer-events: auto; }

/* profiles */
.profiles-screen { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; overflow-y: auto; padding: calc(var(--titlebar) + 20px) var(--gutter) 40px; background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(30px) saturate(150%); backdrop-filter: blur(30px) saturate(150%); -webkit-app-region: drag; animation: fade .3s ease; }
.profiles-screen button, .profiles-screen input, .profiles-screen label, .profiles-screen form { -webkit-app-region: no-drag; }
.profiles-inner { display: grid; justify-items: center; gap: 34px; width: min(100%, 980px); }
.profiles-inner h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.03em; text-align: center; }
.ptiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.ptile { display: grid; justify-items: center; gap: 12px; width: 150px; }
.pav { position: relative; display: block; width: 132px; height: 132px; border-radius: 30px; border: 2px solid transparent; box-shadow: 0 16px 40px rgba(0,0,0,.45); transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s; background: var(--glass); }
.pav img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* the picture and the edit pencil are rounded themselves, so the KIDS tag and the PIN lock can hang over the edge */
.pav .pedit { border-radius: inherit; }
.ptile:hover .pav, .ptile:focus-visible .pav { transform: translateY(-4px) scale(1.04); border-color: var(--ink); }
.pname { font-weight: 800; font-size: 15px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptile:hover .pname { color: var(--ink); }
.padd { display: grid; place-items: center; font-size: 46px; color: var(--muted); border: 2px dashed var(--stroke-hi); box-shadow: none; background: rgba(255,255,255,.03); }
.pedit { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; background: color-mix(in srgb, var(--bg) 50%, transparent); }
.pedit-form { width: min(100%, 640px); }
.pedit-top { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 22px; }
.pav.big { width: 112px; height: 112px; border-radius: 26px; flex: none; }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 10px; }
.av-pick { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: transform .15s, border-color .15s; }
.av-pick img { width: 100%; height: 100%; object-fit: cover; }
.av-pick:hover { transform: scale(1.06); }
.av-pick.on { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); }
.av-upload { display: grid; place-items: center; align-content: center; gap: 2px; font-size: 22px; color: var(--muted); border: 2px dashed var(--stroke-hi); background: rgba(255,255,255,.03); }
.av-upload span { font-size: 11px; font-weight: 800; }
.avatar-btn { width: 36px; height: 36px; border-radius: 11px; overflow: hidden; border: 1px solid var(--stroke-hi); padding: 0; transition: transform .15s; }
.avatar-btn:hover { transform: scale(1.06); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.row-actions { display: flex; gap: 8px; flex: none; }
/* a profile locked with a PIN */
.plock { position: absolute; right: -6px; top: -6px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #0b0c16; color: var(--ink); box-shadow: 0 0 0 2px var(--stroke-hi); }
.plock svg { width: 15px; height: 15px; }
/* Sign in with your phone (TVs): the QR code and the one-time code */
.sheet.dialog.dialog-wide { width: min(900px, 92vw); max-width: none; }
.phone-link-row { display: flex; gap: 32px; align-items: center; text-align: left; }
.phone-link-row > div:last-child { min-width: 0; flex: 1; }
.phone-qr { flex: none; width: 260px; height: 260px; padding: 10px; border-radius: 16px; background: #fff; box-sizing: border-box; }
.phone-qr svg { width: 100%; height: 100%; display: block; }
.phone-code { font: 800 40px/1.1 var(--display); letter-spacing: .06em; color: var(--ink); margin: 6px 0 12px; white-space: nowrap; }
.pdrop { position: absolute; top: 70px; right: calc(var(--gutter) + 140px); z-index: 50; width: 240px; padding: 8px; border-radius: 18px; display: grid; gap: 2px; -webkit-app-region: no-drag;
  background: rgba(12,14,22,.88) !important; animation: rise .2s ease; }
.pdrop-me { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; border-bottom: 1px solid var(--stroke); margin-bottom: 4px; }
.pdrop-me img, .pdrop-item img, .mini-av { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; }
.pdrop-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; font-weight: 700; font-size: 14px; text-align: left; }
.pdrop-item:hover { background: var(--glass-hi); }
.pdrop-item svg { font-size: 18px; margin: 0 6px; }

/* clips in Library */
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.clip-card { border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.clip-thumb { grid-column: 1 / -1; position: relative; aspect-ratio: 16/9; background: #111320; overflow: hidden; }
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.clip-thumb:hover img { transform: scale(1.04); }
.clip-kind { position: absolute; left: 10px; bottom: 10px; display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 10px; font-size: 12px; font-weight: 800; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.clip-info { display: grid; gap: 2px; padding: 12px 14px; min-width: 0; }
.clip-info b { font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.clip-info span { font-size: 12px; color: var(--muted); font-weight: 600; }
.clip-actions { display: flex; align-items: center; gap: 2px; padding-right: 8px; }
.icon-btn.danger { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }

@media (max-width: 1100px) {
  .links a { padding: 8px 9px; }
  .two-col, .sheet-body { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* account: sign-in panel and small dialogs */
.google-btn { width: 100%; justify-content: center; margin-top: 16px; gap: 10px; }
.google-btn svg { width: 18px; height: 18px; }
.or-line { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--faint); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--stroke); }
.acct-form { display: grid; gap: 10px; }
.acct-form .actions { margin-top: 6px; align-items: center; }
.sheet.dialog { max-width: 500px; margin-top: 14vh; }
.dialog-body { padding: 28px 30px 26px; }
.dialog-body h2 { margin: 0 0 8px; }
.dialog-body p { color: var(--muted); line-height: 1.5; }
.dialog-body .actions { margin-top: 18px; }
/* spoken-language tags on sources, and the filter above the list */
.aud.lang { margin-left: 4px; background: rgba(120,160,255,.16); color: #a9c1ff; letter-spacing: .02em; }
.aud.lang.multi { background: rgba(190,140,255,.18); color: #d2b5ff; }
.lang-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.lang-filter .chip { height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--stroke); background: rgba(255,255,255,.05); font-weight: 800; font-size: 13px; color: var(--muted); transition: background .15s, color .15s, border-color .15s; }
.lang-filter .chip:hover { color: var(--ink); border-color: var(--stroke-hi); }
.lang-filter .chip.on { background: var(--ink); color: #0b0c12; border-color: transparent; }
.lang-filter .chip small { font-size: 11px; opacity: .6; margin-left: 3px; }
/* picture subtitles (PGS) are drawn on this layer, over the video and under the controls */
.ppgs { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; transition: transform .3s ease; }
.player:not(.idle) .ppgs, .player.paused .ppgs { transform: translateY(-130px); } /* clear the control bar, like text subtitles */
/* episodes menu inside the player */
.pmenu.episodes { width: 420px; }
.ep-col { width: 100%; }
.ep-seasons { flex-wrap: wrap; margin: 0 8px 10px; }
.ep-list { display: grid; gap: 4px; overflow-y: auto; max-height: calc(100vh - 330px); padding-right: 4px; }
.ep-pick { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px; border-radius: 12px; text-align: left; transition: background .15s; }
.ep-pick:hover:not([disabled]) { background: var(--glass-hi); }
.ep-pick.on { background: color-mix(in srgb, var(--accent) 16%, transparent); outline: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.ep-pick[disabled]:not(.on) { opacity: .45; cursor: not-allowed; }
.ep-pick-thumb { position: relative; aspect-ratio: 16/9; border-radius: 9px; overflow: hidden; background: #12141f; }
.ep-pick-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-pick-thumb i { position: absolute; left: 6px; bottom: 5px; font-style: normal; font-family: var(--display); font-weight: 800; font-size: 13px; padding: 1px 7px; border-radius: 6px; background: rgba(0,0,0,.62); }
.ep-pick-thumb em { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); }
.ep-pick-text { display: grid; gap: 2px; min-width: 0; }
.ep-pick-text b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-pick-text span { font-size: 12px; color: var(--muted); font-weight: 600; }
.ep-pick.on .ep-pick-text span { color: var(--accent); }
/* Anime tab */
.anime-page h1 { margin-bottom: 18px; }
.anime-filters { display: grid; gap: 12px; padding: 16px; border-radius: 20px; margin-bottom: 26px; position: relative; z-index: 4; }
.anime-search { margin: 0; }
.anime-selects { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.anime-selects .select { flex: 0 1 auto; width: auto; min-width: 140px; height: 42px; font-weight: 700; font-size: 14px; }
.studio-pick { position: relative; }
.studio-pick .select { min-width: 170px; }
.studio-pick .chip { height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--stroke); font-weight: 800; font-size: 14px; }
.studio-pick .chip.on { background: var(--ink); color: #0b0c12; border-color: transparent; }
.studio-sugg { position: absolute; left: 0; top: 48px; width: 260px; padding: 8px; border-radius: 14px; display: grid; gap: 2px; z-index: 20; background: var(--glass-strong); }
.studio-sugg .pm-item { padding-left: 12px; }
/* Plugins tab */
.plugin-repo { display: grid; gap: 12px; }
.plugin-repo-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.plugin-repo-head h2 { margin: 0 0 2px; font-family: var(--display); font-size: 20px; }
.plugin-repo-head .src { font-size: 12px; color: var(--muted); font-weight: 700; }
.addon-ico img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.tag.ok-tag { background: rgba(70,224,138,.14); color: var(--score); }
.tag.warn-tag { background: rgba(247,199,90,.14); color: #f7c75a; }
/* kids profiles */
.overlay.dialog-open { z-index: 120; }
.kids-badge { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 2px 9px; border-radius: 999px; background: linear-gradient(135deg, #ffcf4a, #ff7a59); color: #1b1206; font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: .08em; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.pav { position: relative; }
.kids-row { margin-top: 18px; }
.kid-ages { margin: 4px 0 6px; }
.kid-ages .pm-sizes { margin: 0; flex-wrap: wrap; }
.kid-ages .chip { height: 34px; padding: 0 14px; font-size: 13px; }.anime-selects .adult-chip { height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--stroke); background: rgba(0,0,0,.3); font-weight: 800; font-size: 14px; color: var(--muted); }
.anime-selects .adult-chip.on { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--ink); }

/* Settings › Usenet */
.usenet-block { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--stroke); }
.usenet-block:first-of-type { margin-top: 10px; }
.usenet-block > b { font-size: 15px; }
.usenet-block > span { font-size: 13px; color: var(--muted); }
.usenet-block .actions { margin-top: 4px; }
/* sources Real-Debrid refused: dimmed, listed last */
.stream.dead { opacity: .42; }
.stream.dead .stream-tag { color: var(--muted); }
/* genres on Movies and Series */
.genre-page { padding-bottom: 0; }
/* quiet outlined chips; the chosen genre is tinted with the theme color instead of a bright white pill */
.genre-bar { display: grid; gap: 0; margin-bottom: 10px; }
.genre-bar .lang-filter { margin: 0 0 6px; gap: 6px; }
.genre-bar .chip { height: 34px; padding: 0 15px; background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.08); font-weight: 700; }
.genre-bar .chip:hover { background: rgba(255,255,255,.07); }
.genre-bar .chip.on { background: color-mix(in srgb, var(--accent) 24%, transparent); border-color: color-mix(in srgb, var(--accent) 65%, transparent); color: var(--ink); }
.genre-label { margin: 10px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.genre-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0 16px; }
.genre-head h2 { margin: 0; font-family: var(--display); font-size: 26px; }
.genre-head .select { width: auto; flex: none; height: 40px; }
/* themes (Settings › Appearance): accent, its partner color and the background tint */
:root[data-theme="ocean"] { --accent: #2fa8ff; --violet: #3a5bff; --bg: #050a12; }
:root[data-theme="sunset"] { --accent: #ff6a3d; --violet: #ff2e88; --bg: #0c0607; }
:root[data-theme="forest"] { --accent: #2fd27a; --violet: #1a9e8f; --bg: #050b08; }
:root[data-theme="amethyst"] { --accent: #a259ff; --violet: #5b4bff; --bg: #08061a; }
:root[data-theme="rose"] { --accent: #ff4fa3; --violet: #ff9a8b; --bg: #0c0609; }
:root[data-theme="crimson"] { --accent: #e0283a; --violet: #8c1d5c; --bg: #0b0507; }
:root[data-theme="gold"] { --accent: #f0a020; --violet: #ff6a2a; --bg: #0b0803; }
:root[data-theme="aqua"] { --accent: #14c8d8; --violet: #2b7bff; --bg: #04090c; }
:root[data-theme="cyber"] { --accent: #ff2bd6; --violet: #00bfe8; --bg: #07040f; }
:root[data-theme="midnight"] { --accent: #5c7cff; --violet: #2a3a9a; --bg: #03040a; }
:root[data-theme="mocha"] { --accent: #c8895a; --violet: #8a5a44; --bg: #0b0705; }
:root[data-theme="slate"] { --accent: #7b86a8; --violet: #4d5679; --bg: #07080c; }
:root[data-theme="ember"] { --accent: #ff8c1a; --violet: #e0382a; --bg: #0c0603; }
:root[data-theme="lilac"] { --accent: #c9a2ff; --violet: #ff9ad6; --bg: #0b0813; }
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.theme-pick { display: grid; gap: 8px; justify-items: center; padding: 12px 8px 10px; border-radius: 14px; border: 1px solid var(--stroke); font-weight: 700; font-size: 13px; color: var(--muted); transition: border-color .2s, background .2s, color .2s; }
.theme-pick:hover { background: var(--glass-hi); color: var(--ink); }
.theme-pick.on { border-color: var(--accent); color: var(--ink); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.theme-swatch { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 6px 18px rgba(0,0,0,.35); }

/* age rating next to the year */
.meta .pill.age { font-weight: 800; }
.meta .pill.age-kids { border-color: color-mix(in srgb, var(--score) 60%, transparent); color: var(--score); }
.meta .pill.age-teen { border-color: rgba(247,199,90,.6); color: #f7c75a; }
.meta .pill.age-adult { border-color: color-mix(in srgb, var(--accent) 65%, transparent); color: var(--accent); }

/* notifications */
.bell-btn { position: relative; }
.bell-dot { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.ndrop { position: absolute; top: 70px; right: calc(var(--gutter) + 140px); z-index: 50; width: 360px; max-height: min(70vh, 560px); display: flex; flex-direction: column; padding: 8px; border-radius: 18px; -webkit-app-region: no-drag;
  background: rgba(12,14,22,.92) !important; animation: rise .2s ease; }
.ndrop-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 10px; border-bottom: 1px solid var(--stroke); margin-bottom: 4px; }
.ndrop-head b { font-family: var(--display); font-size: 16px; }
.ndrop-list { overflow-y: auto; display: grid; gap: 2px; }
.ndrop-item { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; text-align: left; position: relative; }
.ndrop-item:hover { background: var(--glass-hi); }
.ndrop-item.unread { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ndrop-item.unread::after { content: ""; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent); }
.ndrop-item img, .ndrop-ph { width: 42px; height: 60px; border-radius: 8px; object-fit: cover; flex: none; background: var(--glass-hi); }
.ndrop-text { display: grid; gap: 1px; min-width: 0; padding-right: 14px; }
.ndrop-text b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ndrop-text span { font-size: 13px; color: var(--muted); font-weight: 600; }
.ndrop-text em { font-style: normal; font-size: 12px; color: var(--faint); font-weight: 600; }
.ndrop-empty { margin: 8px 10px 12px; color: var(--muted); font-size: 13.5px; }
/* Top 10 numbers: Bebas Neue (all ten the same size) with a glow in the theme's accent. "Neon effects: Off" leaves a plain outline. */
:root { --neon: 1; }
:root[data-neon="off"] { --neon: 0; }
:root[data-neon="strong"] { --neon: 1.9; }
.top .num { font-family: 'Bebas Neue', var(--display); font-weight: 400; letter-spacing: .01em; font-size: clamp(76px, 6.2vw, 96px); padding-right: 8px;
  color: color-mix(in srgb, var(--accent) 28%, #fff); -webkit-text-stroke: 1.2px color-mix(in srgb, var(--accent) 85%, #fff);
  text-shadow: 0 0 calc(var(--neon) * 4px) color-mix(in srgb, var(--accent) 95%, transparent), 0 0 calc(var(--neon) * 14px) var(--accent),
    0 0 calc(var(--neon) * 30px) color-mix(in srgb, var(--accent) 65%, transparent), 0 0 calc(var(--neon) * 56px) color-mix(in srgb, var(--accent) 40%, transparent); }
.top .num.two { font-size: clamp(76px, 6.2vw, 96px); letter-spacing: -.01em; padding-right: 8px; }
:root[data-neon="off"] .top .num { color: var(--bg); -webkit-text-stroke: 2px color-mix(in srgb, var(--accent) 60%, #fff); text-shadow: none; }
.top:hover .num { filter: brightness(1.15); }

/* neon effects elsewhere: active nav link, accent buttons, hovered cards, the logo, progress bars */
.links a.on { box-shadow: 0 0 calc(var(--neon) * 16px) color-mix(in srgb, var(--accent) 35%, transparent), inset 0 0 0 calc(min(var(--neon), 1) * 1px) color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-accent { box-shadow: 0 0 calc(var(--neon) * 18px) color-mix(in srgb, var(--accent) 50%, transparent); }
.card:hover, .card:focus-visible { box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 0 1px color-mix(in srgb, var(--accent) calc(var(--neon) * 40%), var(--stroke-hi)), 0 0 calc(var(--neon) * 26px) color-mix(in srgb, var(--accent) 35%, transparent); }
.logo svg { filter: drop-shadow(0 0 calc(var(--neon) * 6px) color-mix(in srgb, var(--accent) 60%, transparent)); }
.bar i, .scrub-fill, .ep .prog i { box-shadow: 0 0 calc(var(--neon) * 10px) var(--accent); }
.eyebrow b { text-shadow: 0 0 calc(var(--neon) * 10px) var(--accent); }
.tab.on { box-shadow: 0 calc(var(--neon) * 8px) calc(var(--neon) * 16px) calc(var(--neon) * -10px) var(--accent); }

/* ambient light, glass and corners (Settings › Appearance) */
:root[data-ambient="calm"] .ambient { opacity: .4; }
:root[data-ambient="vivid"] .ambient { opacity: 1; }
:root[data-glass="solid"] .glass { background: color-mix(in srgb, var(--bg) 82%, #1c2030); -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-corners="square"] { --r: 5px; }
:root[data-corners="square"] .glass, :root[data-corners="square"] .btn, :root[data-corners="square"] .panel, :root[data-corners="square"] .sheet,
:root[data-corners="square"] .chip, :root[data-corners="square"] .pill, :root[data-corners="square"] .theme-pick, :root[data-corners="square"] .ndrop-item { border-radius: 6px; }
.look-rows { margin-top: 18px; }
.seg { display: flex; gap: 6px; flex: none; }
.seg .chip.on { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--ink); }

/* hover previews */
.preview { position: fixed; z-index: 60; border-radius: 16px; overflow: hidden; pointer-events: none; opacity: 0; transform: scale(.94); transition: opacity .25s ease, transform .3s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 calc(var(--neon) * 24px) color-mix(in srgb, var(--accent) 30%, transparent); }
.preview.show { opacity: 1; transform: none; }
.preview-frame { position: relative; overflow: hidden; background: #000 center / cover no-repeat; }
/* the player is taller than the box, which crops YouTube's title bar and logo */
.preview-frame iframe { position: absolute; left: 0; top: -60px; width: 100%; height: calc(100% + 120px); border: 0; opacity: .01; transition: opacity .5s ease; }
.preview.playing iframe { opacity: 1; }
.preview-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 14px 12px; background: rgba(12,14,22,.92); }
.preview-cap b { font-family: var(--display); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-cap span { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
/* subtitle look (Settings › Playback; color and background also in the player menu) */
.psubs.size-xl span { font-size: clamp(32px, 3.8vw, 54px); }
.psubs[data-color="yellow"] span { color: #ffe14d; }
.psubs[data-color="cyan"] span { color: #5ee7ff; }
.psubs[data-color="green"] span { color: #6dff9c; }
.psubs[data-color="pink"] span { color: #ff8fd0; }
.psubs[data-bg="solid"] span { background: #000; }
.psubs[data-bg="none"] span { background: none; }
.psubs[data-font="classic"] span { font-family: 'Segoe UI', Arial, Helvetica, sans-serif; }
.psubs[data-font="serif"] span { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; }
.psubs[data-font="mono"] span { font-family: Consolas, 'Courier New', monospace; font-weight: 500; }
.psubs[data-edge="outline"] span { text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0 2px 0 #000, 0 -2px 0 #000, 2px 0 0 #000, -2px 0 0 #000; }
.psubs[data-edge="none"] span { text-shadow: none; }
.player.idle:not(.paused) .psubs[data-pos="low"] { bottom: 4%; }
.player.idle:not(.paused) .psubs[data-pos="high"] { bottom: 18%; }
.sub-sample { margin: 6px 0 14px; padding: 34px 16px; border-radius: 14px; text-align: center; overflow: hidden;
  background: linear-gradient(135deg, #3b5d7a, #c9a46b 55%, #f2e6c9); }
.sub-sample .psubs { position: static; }

/* progress bar: solid and outlined so it reads on bright scenes; the controls panel is denser too */
.controls { background: rgba(8,10,16,.8) !important; -webkit-backdrop-filter: blur(26px) saturate(140%) !important; backdrop-filter: blur(26px) saturate(140%) !important; }
.scrub { height: 22px; }
.scrub-track { height: 6px; border-radius: 6px; background: #3a3e4c; box-shadow: 0 0 0 1px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.08); }
.scrub-buf { border-radius: 6px; background: #6b7186; }
.scrub-fill { border-radius: 6px; }
.scrub:hover .scrub-track { height: 8px; }
.scrub-knob { width: 16px; height: 16px; margin: -8px 0 0 -8px; box-shadow: 0 0 0 2px rgba(0,0,0,.55), 0 0 0 5px color-mix(in srgb, var(--accent) 40%, transparent); }

/* the icon that flashes when a click on the picture pauses or plays */
.tap-flash { position: absolute; left: 50%; top: 50%; z-index: 4; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #fff;
  background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; }
.tap-flash.show { animation: tapflash .6s ease-out; }
@keyframes tapflash { 0% { opacity: .95; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.35); } }
/* option chips in Settings (look and subtitle style) */
.seg { flex-wrap: wrap; justify-content: flex-end; max-width: 60%; }
.seg .chip { height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--glass); font-size: 12.5px; font-weight: 800; color: var(--muted); transition: background .15s, color .15s, border-color .15s; }
.seg .chip:hover { color: var(--ink); background: var(--glass-hi); }.seg .chip.on, .seg .chip.on:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--ink); }

/* ASS signs: typeset translations placed where the file puts them on the picture */
.psigns { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.psign { position: absolute; white-space: nowrap; line-height: 1.15; font-family: var(--body); }
/* opening animation: the orb lights up, a ring of light spreads, "Welcome to lumen" rises, then it all fades */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; align-content: center; gap: 26px; background: var(--bg); cursor: pointer; animation: introOut .55s ease 2.05s forwards; }
.intro-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; animation: introGlow 1.6s ease .15s forwards;
  background: radial-gradient(38% 38% at 50% 44%, color-mix(in srgb, var(--violet) 32%, transparent), transparent 70%), radial-gradient(30% 30% at 56% 50%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%); }
.intro-mark { position: relative; width: 112px; height: 112px; display: grid; place-items: center; }
.intro-mark svg { width: 112px; height: 112px; opacity: 0; transform: scale(.55); filter: drop-shadow(0 0 0 transparent);
  animation: introOrb .9s cubic-bezier(.2,1.25,.35,1) .1s forwards, introOrbGlow 1.4s ease .55s forwards; }
.intro-core { transform-origin: 16px 16px; animation: introCore 1.2s ease .5s both; }
.intro-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--violet) 70%, #fff); opacity: 0; animation: introRing 1.3s ease-out .55s forwards; }
.intro-text { margin: 0; display: grid; justify-items: center; gap: 2px; text-align: center; }
.intro-text span { font-size: 14px; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); opacity: 0; transform: translateY(10px); animation: introUp .6s ease .75s forwards; }
.intro-text b { font-family: var(--display); font-weight: 800; font-size: 54px; letter-spacing: -.02em; color: var(--ink); opacity: 0; transform: translateY(12px); animation: introUp .7s ease .95s forwards; }
@keyframes introOrb { to { opacity: 1; transform: scale(1); } }
@keyframes introOrbGlow { to { filter: drop-shadow(0 0 26px color-mix(in srgb, var(--violet) 70%, transparent)); } }
@keyframes introCore { 0% { transform: scale(.4); opacity: .3; } 60% { transform: scale(1.25); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes introRing { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes introGlow { to { opacity: 1; } }
@keyframes introUp { to { opacity: 1; transform: none; } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
.intro.skip { animation: introOut .25s ease forwards; }
/* the top subtitle box: a second speaker, or lines the file puts at the top */
.psubs.psubs-top { top: 6%; bottom: auto !important; }
.player:not(.idle) .psubs.psubs-top, .player.paused .psubs.psubs-top { top: 118px; }
/* addon catalog (Addons › Get addons) */
.addon-catalog { margin-bottom: 30px; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.catalog-card { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.catalog-card p { white-space: normal; }
.catalog-card h3 { display: flex; align-items: center; gap: 8px; }
.catalog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.check-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.check-row input { accent-color: var(--accent); width: 16px; height: 16px; }
/* Light mode (Settings › Appearance › Performance): for PCs drawing on the processor. Blur and wide glows are the
   expensive parts there, so glass turns solid, glows go, the background stops moving and off-screen rows aren't drawn. */
:root[data-perf="lite"] .glass { background: color-mix(in srgb, var(--bg) 80%, #1c2030); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-perf="lite"] .overlay { background: rgba(3,4,8,.86); -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-perf="lite"] .profiles-screen { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-perf="lite"] .player-msg, :root[data-perf="lite"] .pmenu, :root[data-perf="lite"] .next-card, :root[data-perf="lite"] .controls {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
:root[data-perf="lite"] .controls { background: rgba(8,10,16,.94) !important; }
:root[data-perf="lite"] .ambient { filter: none !important; transition: none; opacity: .3; }
:root[data-perf="lite"] .hero-bg { transform: none; transition: opacity .3s ease; }
:root[data-perf="lite"] .hero h1 { text-shadow: none; }
:root[data-perf="lite"] .card { transition: none; }
:root[data-perf="lite"] .card:hover, :root[data-perf="lite"] .card:focus-visible { transform: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 70%, #fff); }
:root[data-perf="lite"] .top .num { text-shadow: none; }
:root[data-perf="lite"] .top:hover .num { filter: none; }
:root[data-perf="lite"] .links a.on, :root[data-perf="lite"] .btn-accent, :root[data-perf="lite"] .btn-accent:hover, :root[data-perf="lite"] .btn-play:hover { box-shadow: none; }
:root[data-perf="lite"] .eyebrow b { text-shadow: none; }
:root[data-perf="lite"] .intro-glow, :root[data-perf="lite"] .intro-ring { display: none; }
:root[data-perf="lite"] .row { content-visibility: auto; contain-intrinsic-size: auto 340px; }
:root[data-perf="lite"] .preview { display: none; }
/* the show's artwork standing in for an episode picture that doesn't exist yet */
.ep-alt { filter: brightness(.6) saturate(.8); }

/* Library › Anime: MyAnimeList / AniList sync, import and export */
.anime-sync { padding: 20px 22px; margin-bottom: 22px; display: grid; gap: 12px; }
.anime-sync h2 { margin: 0; }
.anime-sync .setting-row { margin: 0; }
.sync-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sync-form .select { width: auto; flex: none; }
.sync-form #syncUser { flex: 1; min-width: 180px; max-width: 320px; }
.sync-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.anime-sync .hint { margin: 0; max-width: 90ch; }
.anime-sync .hint.err { color: #ff8a8a; }
.track-filter { margin: 4px 0 0; }
/* Anime › Browse / Calendar switch, and the weekly calendar */
.anime-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.anime-head h1 { margin-right: auto; }
.anime-views .chip { display: inline-flex; align-items: center; gap: 6px; }
.anime-views svg { width: 16px; height: 16px; }
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 12px 16px; border-radius: var(--r); margin: 6px 0 16px; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-nav b { font-family: var(--display); font-size: 16px; min-width: 150px; text-align: center; }
.cal-tz { margin-left: auto; color: var(--faint); font-size: 12px; font-weight: 700; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.cal-day { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 10px; border-radius: var(--r); border: 1px solid var(--stroke); background: rgba(255,255,255,.025); }
.cal-day.today { border-color: color-mix(in srgb, var(--accent) 65%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.cal-day header { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 6px; padding: 2px 4px 6px; border-bottom: 1px solid var(--stroke); white-space: nowrap; min-width: 0; }
.cal-day header b { grid-column: 1 / -1; font-family: var(--display); font-size: 15px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cal-day header span { color: var(--muted); font-size: 12px; font-weight: 700; }
.cal-day header small { color: var(--faint); font-size: 11px; font-weight: 800; }
.cal-day.today header b { color: var(--accent); }
.cal-ep { display: grid; grid-template-columns: 56px 1fr; gap: 9px; align-items: start; text-align: left; padding: 6px; border-radius: 10px; transition: background .15s; }
.cal-ep:hover, .cal-ep:focus-visible { background: var(--glass-hi); }
.cal-ep.out { opacity: .72; }
.cal-ep.mine { box-shadow: inset 2px 0 0 var(--accent); }
.cal-poster { width: 56px; aspect-ratio: 2/3; border-radius: 6px; overflow: hidden; background: #151826; }
.cal-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cal-info { display: grid; gap: 1px; min-width: 0; }
.cal-info b { font-size: 13px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal-time { font-size: 12px; font-weight: 800; color: var(--ink); }
.cal-time i { font-style: normal; color: var(--accent); }
.cal-meta, .cal-when { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.cal-when { color: color-mix(in srgb, var(--accent) 70%, #fff); }
.cal-none { margin: 4px; color: var(--faint); font-size: 12.5px; font-weight: 700; }
/* Library: search and sort */
.lib-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 6px 0 14px; }
.lib-search { flex: 1; min-width: 240px; max-width: 520px; height: 46px; padding: 0 16px; border-radius: 14px; margin: 0; }
.lib-search svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.lib-search input { font-size: 15px; }
.lib-tools .select { width: auto; flex: none; height: 46px; border-radius: 14px; padding-right: 36px; }
.lib-tools + .track-filter { margin: 0 0 18px; }
.track-filter + #libGrid, .lib-tools + #libGrid { margin-top: 4px; }

/* watched episodes */
.ep-thumb .ep-check, .ep-pick-thumb .ep-check { position: absolute; top: 6px; right: 6px; z-index: 3; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.ep-check svg { width: 14px; height: 14px; }

/* Settings: categories on the left */
.set-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.set-nav { position: sticky; top: calc(var(--titlebar) + 12px); display: grid; gap: 4px; padding: 10px; border-radius: var(--r); }
.set-cat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 14px; text-align: left; transition: background .15s, color .15s; }
.set-cat svg { width: 18px; height: 18px; flex: none; }
.set-cat:hover { background: var(--glass-hi); color: var(--ink); }
.set-cat.on { background: var(--accent); color: #fff; }
.set-body { display: grid; gap: 18px; min-width: 0; }
@media (max-width: 900px) { .set-layout { grid-template-columns: 1fr; } .set-nav { position: static; grid-auto-flow: column; overflow-x: auto; } }
.ok-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--score); border: 1px solid color-mix(in srgb, var(--score) 40%, transparent); }
.ok-pill svg { width: 13px; height: 13px; }
.rdkey-list { margin-top: 8px; }
#rdKeyNote.err { color: #ff8a8a; }

/* Watch together */
.party-col { min-width: 300px; max-width: 360px; display: grid; gap: 10px; align-content: start; }
.party-join { display: flex; gap: 8px; }
.party-join .select { flex: 1; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.party-code { display: flex; align-items: center; gap: 12px; }
.party-code b { font-family: var(--display); font-size: 30px; letter-spacing: .14em; color: var(--ink); }
.pm-note.err { color: #ff8a8a; }
.party-live { border-color: color-mix(in srgb, var(--accent) 70%, transparent) !important; color: #fff; }
.party-box { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 340px; padding: 18px; border-radius: 18px; display: grid; gap: 10px; }
.party-box h4 { margin: 0; font-family: var(--display); font-size: 17px; }
.party-box .pm-note { margin: 0; }
.party-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; }.sync-form .link-btn { color: color-mix(in srgb, var(--accent) 70%, #fff); font-weight: 700; }

/* an anime's status on its page */
.sheet-head .actions .anime-status { flex: none; width: auto; min-width: 150px; height: 48px; border-radius: 14px; padding-right: 38px; }

/* title pages: trailers and cast */
.sheet-extra { padding: 4px clamp(18px, 4vw, 44px) 6px; }
.sheet-extra:empty { display: none; }
.extra-title { font-family: var(--display); font-size: 18px; margin: 18px 0 10px; }
.extra-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.trailer-card { flex: none; width: 220px; display: grid; gap: 4px; text-align: left; }
.trailer-thumb { position: relative; display: block; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #151826; border: 1px solid var(--stroke); }
.trailer-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.trailer-thumb i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; background: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.05)); }
.trailer-thumb i svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; }
.trailer-card:hover .trailer-thumb img { transform: scale(1.05); }
.trailer-card b { font-size: 13.5px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.trailer-card small, .cast-card small { color: var(--muted); font-size: 12px; font-weight: 700; }
.cast-card { flex: none; width: 110px; display: grid; gap: 2px; justify-items: center; text-align: center; }
.cast-photo { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: #151826; border: 1px solid var(--stroke); display: grid; place-items: center; margin-bottom: 6px; }
.cast-photo img { width: 100%; height: 100%; object-fit: cover; }
.cast-photo em { font-style: normal; font-family: var(--display); font-size: 26px; color: var(--muted); }
.cast-card b { font-size: 13px; line-height: 1.2; }
.cast-card small { line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tmodal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(3,4,8,.82); padding: 30px; animation: fade .2s ease; }
.tmodal-box { position: relative; width: min(1100px, 100%); border-radius: 20px; padding: 10px; }
.tmodal-box iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; display: block; background: #000; }
.tmodal-box .sheet-close { top: -16px; right: -16px; }
/* the banner clip: fades in over the artwork once it plays, under the banner's bottom fade */
.hero-clip { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hero-clip.playing { opacity: 1; }
.hero-clip iframe { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 0; }
/* Library: airing anime (watched/total, episodes out, next episode, progress) */
.air-chip { position: absolute; top: 8px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 8px; background: rgba(8,9,16,.78); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.air-count { left: 8px; }
.air-count b { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 6px; background: #ff3b4e; font-size: 11.5px; }
.air-next { right: 8px; }
.air-bar { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 3; height: 5px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; }
.air-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.air-out { background: #ff3b4e; }
.air-seen { background: #38b6ff; }
.card .air-bar ~ .card-foot, .card:has(.air-bar) .card-foot { padding-bottom: 20px; }
/* calendars: Day view with big posters */
.browse-head { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.cal-daychip { display: grid; gap: 1px; justify-items: center; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--stroke); background: rgba(255,255,255,.03); color: var(--muted); transition: background .15s, color .15s; }
.cal-daychip b { font-family: var(--display); font-size: 15px; color: var(--ink); text-transform: capitalize; }
.cal-daychip span { font-size: 12px; font-weight: 700; }
.cal-daychip small { font-size: 11px; font-weight: 800; color: var(--faint); }
.cal-daychip:hover { background: var(--glass-hi); }
.cal-daychip.today b { color: var(--accent); }
.cal-daychip.on { background: var(--accent); border-color: transparent; color: #fff; }
.cal-daychip.on b, .cal-daychip.on small { color: #fff; }
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 16px; }
.cal-card { display: grid; gap: 3px; align-content: start; text-align: left; }
.cal-cover { position: relative; display: block; aspect-ratio: 2/3; border-radius: var(--r); overflow: hidden; background: #151826; border: 1px solid var(--stroke); margin-bottom: 6px; transition: transform .2s, box-shadow .2s; }
.cal-cover img { width: 100%; height: 100%; object-fit: cover; }
.cal-cover em { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; font-style: normal; font-family: var(--display); color: var(--muted); }
.cal-card:hover .cal-cover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.5); }
.cal-card.out .cal-cover img { opacity: .78; }
.cal-card.mine .cal-cover { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent); }
.cal-clock, .cal-tag { position: absolute; z-index: 2; height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 8px; font-size: 12px; font-weight: 800; color: #fff; }
.cal-clock { left: 8px; top: 8px; background: rgba(8,9,16,.8); }
.cal-tag { right: 8px; top: 8px; background: var(--accent); }
.cal-card b { font-size: 14px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal-card b i { font-style: normal; color: var(--accent); }
@media (max-width: 760px) { .cal-days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* rows far off screen aren't laid out or painted until you scroll near them (all modes; Light mode had this first) */
.row { content-visibility: auto; contain-intrinsic-size: auto 360px; }

/* ---------- Home: spotlight hero, up-next rail, quick-start tiles, livelier shelves ---------- */
/* a slow drift of the artwork's own colors over the picture */
.hero.home::before { content: ""; position: absolute; inset: -10%; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: .34;
  background:
    radial-gradient(38% 46% at 18% 78%, var(--amb2), transparent 70%),
    radial-gradient(34% 40% at 82% 22%, var(--amb1), transparent 70%),
    radial-gradient(28% 34% at 55% 60%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 72%);
  animation: aurora 22s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
@keyframes aurora { 0% { transform: translate3d(-3%, 2%, 0) scale(1); } 50% { transform: translate3d(3%, -2%, 0) scale(1.08); } 100% { transform: translate3d(-1%, -3%, 0) scale(1.03); } }
/* the picture leans toward the pointer; the text rises and fades as the page scrolls away */
.hero.home .hero-bg { translate: calc(var(--px, 0) * -18px) calc(var(--py, 0) * -12px); }
.hero.home .hero-copy { opacity: calc(1 - var(--sy, 0) * 1.15); translate: 0 calc(var(--sy, 0) * -46px); }
.hero.home .rail { opacity: calc(1 - var(--sy, 0) * 1.5); }
/* the featured title rises into place each time it changes */
.hero.home .hero-copy > * { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.hero.home .hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero.home .hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero.home .hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero.home .hero-copy > :nth-child(5) { animation-delay: .24s; }
.hero.home .hero-copy > :nth-child(6) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero.home h1 { font-size: clamp(44px, 7.2vw, 104px); text-shadow: none; filter: drop-shadow(0 6px 34px rgba(0,0,0,.5));
  background: linear-gradient(180deg, #fff 35%, color-mix(in srgb, #fff 62%, var(--accent)) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .hello { display: flex; align-items: center; gap: 0; margin: 0 0 14px; max-width: none; overflow: visible; font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: .01em; }
.hero .hello::before { content: ""; width: 26px; height: 2px; border-radius: 2px; margin-right: 12px; background: linear-gradient(90deg, var(--accent), var(--violet)); }
.hero .hello b { color: var(--ink); }

/* the up-next rail: the featured titles, the current one filling like a timer */
.rail { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(120px, 17vh, 180px); display: flex; flex-direction: column; gap: 8px; width: clamp(230px, 20vw, 310px); }
.rail-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 12px 7px 7px; border-radius: 14px; text-align: left; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.03)), rgba(10,11,20,.5); border: 1px solid var(--stroke); opacity: .72;
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); transition: opacity .25s, transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, background .25s; }
.rail-item:hover { opacity: 1; transform: translateX(-4px); }
.rail-item.on { opacity: 1; border-color: var(--stroke-hi); transform: translateX(-10px); background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.05)), rgba(10,11,20,.55); box-shadow: 0 12px 34px rgba(0,0,0,.4); }
.rail-thumb { flex: none; width: 70px; height: 42px; border-radius: 9px; background-size: cover; background-position: center; background-color: #151826; }
.rail-t { min-width: 0; display: flex; flex-direction: column; }
.rail-t b { font-family: var(--display); font-weight: 700; font-size: 14px; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-t i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.rail-item.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--violet)); transform-origin: left; animation: fill 8s linear forwards; }
@media (max-width: 1180px), (max-height: 700px) {
  .rail { flex-direction: row; width: auto; gap: 8px; }
  .rail-item, .rail-item.on { width: 28px; height: 4px; padding: 0; border-radius: 4px; border: 0; background: rgba(255,255,255,.25); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; transform: none; opacity: 1; }
  .rail-thumb, .rail-t { display: none; }
  .rail-item.on::after { height: 100%; background: var(--ink); }
}

/* quick-start tiles under the hero */
.quick { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; padding: 0 var(--gutter); margin-bottom: 30px; }
.qtile { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px 16px 12px 12px; border-radius: 18px; text-align: left; text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.035)), rgba(12,13,24,.5); border: 1px solid var(--stroke); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 30px rgba(0,0,0,.3);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s; }
.qtile:hover, .qtile:focus-visible { transform: translateY(-3px); border-color: var(--stroke-hi); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 16px 40px rgba(0,0,0,.45), 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.qi { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--violet)); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.qi svg { width: 22px; height: 22px; }
.qt { min-width: 0; display: flex; flex-direction: column; }
.qt b { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.qt i { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } .qtile { padding: 10px; gap: 10px; } .qi { width: 38px; height: 38px; } }

/* shelves: a mark by each title, rising into view, tilting posters with a glint of light, a play button on Continue watching */
.row-head h2 { display: flex; align-items: center; gap: 10px; }
.row-head h2::before { content: ""; width: 4px; height: 20px; border-radius: 4px; background: linear-gradient(180deg, var(--accent), var(--violet)); }
.row.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.row.reveal.in { opacity: 1; transform: none; }
:root:not([data-perf="lite"]) .track > .card.poster:hover, :root:not([data-perf="lite"]) .top:hover .poster {
  transform: perspective(720px) translateY(-6px) scale(1.05) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .14s ease-out, box-shadow .25s; }
.track > .card.poster::after, .top .poster::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.3), transparent 55%); }
.track > .card.poster:hover::after, .top:hover .poster::after { opacity: 1; }
.cw-play { position: absolute; z-index: 3; left: 50%; top: 46%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: #fff;
  background: rgba(10,11,20,.55); border: 1px solid rgba(255,255,255,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transform: scale(.7); transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.wide:hover .cw-play, .wide:focus-visible .cw-play { opacity: 1; transform: none; }
.wide .bar { height: 4px; }
.wide .bar i { background: linear-gradient(90deg, var(--accent), var(--violet)); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent); }
:root[data-perf="lite"] .hero.home::before { display: none; }
:root[data-perf="lite"] .hero.home .hero-copy > * { animation: none; }
:root[data-perf="lite"] .hero.home .hero-bg, :root[data-perf="lite"] .hero.home .hero-copy { translate: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero.home::before { animation: none; }
  .hero.home .hero-copy > * { animation: none; }
  .hero.home .hero-bg, .hero.home .hero-copy { translate: none; }
}

/* Movies, Series and Anime: the quick tiles sit right under the hero, so the page block after them needs no top gap */
.quick + .page { padding-top: 0; }
.quick + .page.genre-page { padding-top: 0; }

/* a long one-word title mustn't run past its box (the gradient only paints inside it): the text column takes the room left of the rail */
.hero.home .hero-copy { max-width: calc(100% - clamp(250px, 22vw, 340px)); }
.hero.home h1 { overflow-wrap: anywhere; }
@media (max-width: 1180px), (max-height: 700px) { .hero.home .hero-copy { max-width: calc(720px + 8vw); } }
/* long titles get a smaller headline so they stay inside the hero */
.hero.home h1.lg { font-size: clamp(38px, 5.4vw, 82px); }
.hero.home h1.xl { font-size: clamp(32px, 3.8vw, 56px); }
.hero.home h1.xxl { font-size: clamp(28px, 2.9vw, 44px); }

/* ---------- Live TV: a TV set with a channel guide beside it ---------- */
.tv-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.tv-top h1 { margin: 0; }
.live-search { width: min(380px, 100%); margin: 0; }
.tv-cats { margin: 0 0 22px; }
.tv-up { margin-left: auto; }
.tv-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 30px; align-items: start; }
.tv-set, .tv-guide { position: sticky; top: 84px; }
/* the set: a bezel, a glass screen with scanlines and a vignette, a stand */
.tv-bezel { padding: 15px; border-radius: 28px; background: linear-gradient(150deg, #34374a, #0d0e16 55%, #1b1d2b);
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 90px color-mix(in srgb, var(--violet) 22%, transparent), inset 0 0 0 1px rgba(255,255,255,.14), inset 0 2px 0 rgba(255,255,255,.12); }
.tv-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #04050a; isolation: isolate; box-shadow: inset 0 0 40px rgba(0,0,0,.8); }
.tv-art { position: absolute; inset: 0; background: center / cover no-repeat, radial-gradient(70% 90% at 30% 20%, color-mix(in srgb, var(--violet) 55%, #000), #05060a); transform: scale(1.02); }
.tv-scan { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.tv-vig { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(120% 120% at 50% 45%, transparent 55%, rgba(0,0,0,.65)), linear-gradient(180deg, rgba(0,0,0,.35), transparent 22%, transparent 45%, rgba(0,0,0,.85)); }
.tv-static { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"); }
.tv-screen.zap .tv-static { animation: tvstatic .32s steps(4) 1; }
.tv-screen.zap .tv-art { animation: tvjump .32s ease-out 1; }
.tv-screen.on { animation: tvon .7s cubic-bezier(.2,.8,.2,1) 1; }
@keyframes tvstatic { 0% { opacity: .85; } 60% { opacity: .35; } 100% { opacity: 0; } }
@keyframes tvjump { 0% { transform: scale(1.08) translateX(6px); filter: brightness(1.8) saturate(.4); } 100% { transform: scale(1.02); filter: none; } }
@keyframes tvon { 0% { transform: scale(.7, .004); filter: brightness(4); } 55% { transform: scale(1, .012); filter: brightness(3); } 100% { transform: none; filter: none; } }
.tv-osd { position: absolute; z-index: 4; top: 16px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-weight: 800; letter-spacing: .08em; text-shadow: 0 2px 8px #000; }
.tv-ch { font-size: clamp(18px, 2.2vw, 30px); color: #7dffb0; letter-spacing: .12em; text-shadow: 0 0 12px rgba(125,255,176,.55), 0 2px 8px #000; }
.tv-bug { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.25); }
.tv-bug i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: tvblink 1.4s ease-in-out infinite; }
.tv-bug.soon { color: #ffd37a; }
@keyframes tvblink { 50% { opacity: .25; } }
.tv-info { position: absolute; z-index: 4; left: 22px; right: 22px; bottom: 20px; }
.tv-info h2 { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3.1vw, 46px); line-height: 1; letter-spacing: -.02em; margin: 0 0 8px; text-shadow: 0 4px 24px #000; text-wrap: balance; }
.tv-info p { margin: 0 0 14px; color: #d6d9e4; font-weight: 700; font-size: 14px; text-shadow: 0 2px 8px #000; }
.tv-stand { height: 22px; display: grid; place-items: start center; }
.tv-stand i { display: block; width: 36%; height: 100%; border-radius: 0 0 22px 22px; background: linear-gradient(180deg, #232536, #0b0c13); box-shadow: 0 14px 30px rgba(0,0,0,.5); }
.tv-hint { text-align: center; color: var(--muted); font-size: 12.5px; font-weight: 700; margin: 18px 0 0; }
/* the guide: numbered channels, like a cable box listing */
.tv-guide { max-height: calc(100vh - 110px); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, rgba(14,15,28,.82), rgba(8,9,16,.9)); border: 1px solid var(--stroke); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.tv-guide-head { display: flex; justify-content: space-between; align-items: baseline; padding: 15px 18px 12px; font-family: var(--display); font-weight: 800; font-size: 16px; border-bottom: 1px solid var(--stroke); }
.tv-guide-head small { color: var(--muted); font-family: var(--body); font-weight: 700; font-size: 12px; }
.tv-list { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.tv-row { display: grid; grid-template-columns: 38px 46px minmax(0, 1fr) 12px; align-items: center; gap: 12px; padding: 9px 12px 9px 8px; border-radius: 12px; text-align: left; color: var(--ink); border: 1px solid transparent; transition: background .15s, border-color .15s; }
.tv-row:hover, .tv-row:focus-visible, .tv-row.on { background: rgba(255,255,255,.09); border-color: var(--stroke-hi); }
.tv-row.on { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 24%, transparent), rgba(255,255,255,.05)); }
.tv-num { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .06em; color: #7dffb0; opacity: .8; text-align: right; }
.tv-rlogo { height: 34px; border-radius: 8px; background: rgba(255,255,255,.07); display: grid; place-items: center; overflow: hidden; }
.tv-rlogo img { max-width: 100%; max-height: 100%; object-fit: cover; width: 100%; height: 100%; }
.tv-rlogo em { font-style: normal; font-family: var(--display); font-weight: 800; font-size: 13px; opacity: .6; text-transform: uppercase; }
.tv-rname { min-width: 0; display: flex; flex-direction: column; }
.tv-rname b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-rname small { color: var(--muted); font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-dot { width: 9px; height: 9px; border-radius: 50%; }
.tv-dot.live { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.tv-dot.soon { background: #ffd37a; opacity: .7; }
@media (max-width: 1100px) { .tv-wrap { grid-template-columns: 1fr; } .tv-set, .tv-guide { position: static; } .tv-guide { max-height: 520px; } }
:root[data-perf="lite"] .tv-screen.zap .tv-static, :root[data-perf="lite"] .tv-screen.zap .tv-art, :root[data-perf="lite"] .tv-screen.on, :root[data-perf="lite"] .tv-bug i { animation: none; }
@media (prefers-reduced-motion: reduce) { .tv-screen.on, .tv-bug i { animation: none; } }
/* a live channel has no timeline to scrub or skip along */
.player.live .scrub, .player.live [data-seek] { display: none; }

.tv-mode { margin: 0 0 12px; }
.tv-mode .chip { height: 38px; padding: 0 18px; font-size: 14px; }

/* ---------- Sources: a toolbar instead of walls of chips, and cleaner rows ---------- */
.sources-head { align-items: flex-end; }
.sh-title { display: grid; gap: 3px; }
.sh-sub { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.src-sel { height: 38px; padding: 0 12px; flex: none; width: auto; font-size: 13px; }
.src-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--stroke); }
.src-seg { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(0,0,0,.3); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.src-seg::-webkit-scrollbar { display: none; }
.src-seg button { height: 32px; padding: 0 13px; border-radius: 9px; font-weight: 800; font-size: 13px; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.src-seg button:hover { color: var(--ink); }
.src-seg button.on { background: var(--ink); color: #0b0c12; }
.src-seg small { font-size: 11px; opacity: .6; margin-left: 3px; }
.src-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.src-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 11px; background: rgba(0,0,0,.3); border: 1px solid var(--stroke); color: var(--muted); min-width: 250px; }
.src-search:focus-within { border-color: var(--stroke-hi); color: var(--ink); }
.src-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.src-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -2px 0 12px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.src-x { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--ink);
  background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.src-x:hover { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.stream { grid-template-columns: auto minmax(0, 1fr) auto; padding: 13px 16px; }
.s-main { min-width: 0; display: grid; gap: 5px; }
.s-title { font-weight: 800; font-size: 14.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.s-pill { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--muted); }
.s-pill.addon { background: rgba(255,255,255,.12); color: var(--ink); }
.s-pill.feat { background: rgba(247,199,90,.14); color: #f7c75a; }
.s-pill.ok { background: rgba(70,224,138,.16); color: var(--score); }
.s-pill.warn { background: rgba(247,199,90,.16); color: #f7c75a; }
.s-pill.lang { background: rgba(120,160,255,.16); color: #a9c1ff; letter-spacing: .02em; }
.s-pill.lang.multi { background: rgba(190,140,255,.18); color: #d2b5ff; }
.s-pill.mine { background: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--ink); }
.hint .s-pill { margin-right: 6px; }
.s-side { display: grid; gap: 3px; justify-items: end; text-align: right; }
.s-size { font-size: 14px; font-variant-numeric: tabular-nums; }
.s-type { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.stream.dead .s-type { color: var(--muted); }
@media (max-width: 760px) { .src-tools { margin-left: 0; width: 100%; } .src-search { flex: 1; min-width: 0; } }

/* ---------- the genre dock (Movies, Series, Anime) ---------- */
.gdock { position: relative; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 20px; max-width: 100%; z-index: 6; margin: 0 0 14px; width: max-content; }
.gd-scroll { position: relative; display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.gd-scroll::-webkit-scrollbar { display: none; }
.gd-thumb { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 15px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.07)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 6px 22px rgba(0,0,0,.35);
  transition: transform .38s cubic-bezier(.2,.9,.2,1), width .38s cubic-bezier(.2,.9,.2,1), opacity .2s; }
.gd-thumb.init { transition: none; }
.gd-thumb::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent), var(--violet), transparent); filter: drop-shadow(0 0 6px var(--accent)); }
.gd-b { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 15px; color: var(--muted); font-weight: 800; font-size: 14px; white-space: nowrap; transition: color .2s; }
.gd-b .gd-i { font-size: 17px; transition: transform .25s, color .2s; }
.gd-b:hover { color: var(--ink); } .gd-b:hover .gd-i { transform: translateY(-1px) scale(1.12); }
.gd-b.on { color: #fff; } .gd-b.on .gd-i { color: var(--accent); }
.gd-i { width: 1em; height: 1em; flex: none; }
.gd-sep { width: 1px; height: 24px; background: var(--stroke); margin: 0 6px; flex: none; }
.gd-more { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 15px; font-weight: 800; font-size: 14px; color: var(--ink); flex: none; }
.gd-more:hover { background: rgba(255,255,255,.08); } .gd-more .gd-i { font-size: 13px; transition: transform .2s; } .gd-more.open .gd-i { transform: rotate(180deg); }
.gd-pop { position: absolute; top: calc(100% + 10px); left: 0; width: min(660px, 92vw); padding: 14px; border-radius: 22px; z-index: 30;
  background: color-mix(in srgb, var(--bg) 97%, transparent); border: 1px solid var(--stroke-hi); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 30px 80px rgba(0,0,0,.6); }
.gd-pop:not([hidden]) { animation: gdpop .22s cubic-bezier(.2,.8,.2,1); }
@keyframes gdpop { from { opacity: 0; transform: translateY(-8px) scale(.985); } }
.gd-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(0,0,0,.35); width: max-content; margin-bottom: 12px; }
.gd-tabs button { height: 32px; padding: 0 14px; border-radius: 9px; font-weight: 800; font-size: 13px; color: var(--muted); }
.gd-tabs button.on { background: var(--ink); color: #0b0c12; }
.gd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.gd-grid[hidden] { display: none; }
.gd-grid button { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; font-weight: 800; font-size: 14px; text-align: left; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.gd-grid button .gd-i { font-size: 18px; color: var(--muted); }
.gd-grid button:hover { background: rgba(255,255,255,.07); border-color: var(--stroke); }
.gd-grid button.on { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); } .gd-grid button.on .gd-i { color: var(--accent); }
.anime-dock { width: 100%; flex: 0 0 100%; } .anime-dock .gdock { margin-bottom: 4px; box-shadow: none; background: rgba(0,0,0,.2); }
.genre-page .gdock { margin-top: 2px; }
@media (max-width: 760px) { .gd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gdock { width: 100%; } }
:root[data-perf="lite"] .gd-thumb { transition: none; }

/* ---------- the taller anime dock: genres, then format and popular themes, then everything under More ---------- */
.anime-dock { width: 100%; flex: 0 0 100%; }
.gdock.gd-tall { flex-direction: column; align-items: stretch; width: 100%; gap: 6px; padding: 6px; margin-bottom: 6px; }
.gd-row { display: flex; align-items: center; gap: 2px; min-width: 0; }
.gd-row .gd-scroll { flex: 0 1 auto; }
.gd-row2 { gap: 10px; padding: 2px 6px 4px; border-top: 1px solid var(--stroke); padding-top: 8px; }
.gd-mini { display: flex; gap: 6px; flex: none; }
.gd-tags { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.gd-tags::-webkit-scrollbar { display: none; }
.gd-c { flex: none; height: 30px; padding: 0 13px; border-radius: 999px; font-weight: 800; font-size: 12.5px; color: var(--muted); white-space: nowrap; border: 1px solid var(--stroke); background: rgba(255,255,255,.04); transition: background .15s, color .15s, border-color .15s; }
.gd-c:hover { color: var(--ink); border-color: var(--stroke-hi); }
.gd-c.on { color: #fff; background: color-mix(in srgb, var(--violet) 32%, transparent); border-color: var(--violet); }
.gd-pop-wide { width: min(820px, 94vw); left: 0; }
.gd-pop-wide .gd-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gd-search { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 12px; background: rgba(0,0,0,.32); border: 1px solid var(--stroke); color: var(--muted); margin-bottom: 8px; }
.gd-search:focus-within { border-color: var(--stroke-hi); color: var(--ink); }
.gd-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: 700 14px var(--body); }
.gd-tagbox { max-height: 330px; overflow-y: auto; padding-right: 6px; }
.gd-tg[hidden] { display: none; }
.gd-tg h4, .gd-h { margin: 14px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.gd-tagrow { display: flex; flex-wrap: wrap; gap: 6px; }
.anime-filters .src-active { margin: 2px 0 10px; width: 100%; }
@media (max-width: 760px) { .gd-pop-wide .gd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gd-row2 { flex-wrap: wrap; } }
/* nothing in the docks may be wider than the window: the rows scroll sideways inside the glass instead */
.anime-filters { grid-template-columns: minmax(0, 1fr); }
.anime-filters > * { min-width: 0; }
.anime-dock, .gdock, .gd-row { min-width: 0; max-width: 100%; }
.gd-scroll { flex: 0 1 auto; min-width: 0; }
.genre-page { min-width: 0; }

/* infinite scroll: a quiet marker under the posters instead of a "Load more" button */
.more-sentinel { height: 0; overflow: hidden; display: grid; place-items: center; transition: height .2s; }
.more-sentinel.on { height: 90px; }
.more-sentinel .spinner { opacity: .55; }

/* Lumen isn't the window in front (or is minimized): the animations pause until it is. Not while a video is open. */
html.idle body:not(.locked) *, html.idle body:not(.locked) *::before, html.idle body:not(.locked) *::after { animation-play-state: paused !important; }
/* each poster is laid out on its own, so a change inside one doesn't make the browser re-measure the whole page */
.card, .qtile, .rail-item { contain: layout style; }
.more-sentinel.cap { height: auto; padding: 24px 0 40px; overflow: visible; }

/* ---------- Smooth: the same look, less work (PCs that draw on the processor, power-saving laptops, slow ones) ---------- */
/* the background glow drifts once and then holds still; the hero picture no longer zooms slowly */
:root[data-perf="smooth"] .hero.home::before { animation: aurora 22s ease-in-out 1 forwards; }
:root[data-perf="smooth"] .hero-bg, :root[data-perf="smooth"] .hero-bg.show { transform: none; transition: opacity 1s ease; }
/* while a page is scrolling, the glass isn't blurred again every frame (it is the costliest thing on a processor-drawn screen) */
:root[data-perf="smooth"].scrolling .glass, :root[data-perf="smooth"].scrolling .nav-inner { -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-perf="smooth"].scrolling .nav.scrolled .nav-inner { background: color-mix(in srgb, var(--bg) 76%, #1c2030); }
:root[data-perf="smooth"] .tv-screen.on, :root[data-perf="smooth"] .tv-bug i { animation: none; }
/* the opening animation and the spinners finish even when Lumen starts behind another window */
html.idle body .intro, html.idle body .intro *, html.idle body .spinner, html.idle body .spinner::before, html.idle body .spinner::after { animation-play-state: running !important; }
