/*
 * Lumora — 10-foot UI stylesheet (1920×1080 design canvas, scaled to the screen).
 * Compatibility: Tizen 4+ (Chromium 56). No CSS grid, no flex `gap`, no `inset`, no clamp().
 * Only transform / opacity are animated on hot paths; backdrop-filter has a solid fallback.
 */

:root {
  --bg: #08090C;
  --bg-2: #0E1016;
  --bg-3: #151821;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #F4F5F8;
  --text-2: rgba(244, 245, 248, 0.68);
  --text-3: rgba(244, 245, 248, 0.42);
  --ink: #0B0C10;
  --accent: #8B6CFF;
  --accent-2: #3DD8F0;
  --accent-3: #FFB36B;
  --mint: #7CF3E1;
  --live: #FF3B5C;
  --gold: #F5C518;
  --grad: linear-gradient(135deg, #8B6CFF 0%, #5B8CFF 55%, #3DD8F0 100%);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --focus-scale: 1.04;
  --ring: 0 0 0 4px #FFFFFF, 0 0 0 10px rgba(139, 108, 255, 0.35), 0 26px 60px rgba(0, 0, 0, 0.6);
  --font: "SamsungOne", "Samsung Sans", Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: transparent; height: 100%; }
body {
  width: 100%; height: 100%; overflow: hidden; background: #000; color: var(--text);
  font-family: var(--font); font-size: 24px; line-height: 1.3;
  -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; cursor: default;
}
body.kbd { cursor: none; }
img { display: block; }
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.hidden, .is-hidden { display: none !important; }

#stage { position: fixed; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; background: #000; }
#app { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; background: var(--bg); }

/* AVPlay renders below the web layer: make every layer above the video plane transparent */
body.is-avplay.video-mini, body.is-avplay.video-full,
body.is-avplay.video-mini #stage, body.is-avplay.video-full #stage,
body.is-avplay.video-mini #app, body.is-avplay.video-full #app { background: transparent; }
body.is-avplay.video-mini #bg, body.video-full #bg { display: none; }

/* ------------------------------------------------------------------ */
/* Background + ambient light                                          */
/* ------------------------------------------------------------------ */
#bg { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; z-index: 0; overflow: hidden; }
#bg canvas { position: absolute; left: -5%; top: -5%; width: 110%; height: 110%; opacity: 0; transition: opacity .9s ease; will-change: opacity; }
#bg canvas.on { opacity: .55; }
#bg-grad { position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background: radial-gradient(ellipse at 18% 0%, rgba(139, 108, 255, .16) 0%, transparent 55%),
              radial-gradient(ellipse at 100% 100%, rgba(61, 216, 240, .08) 0%, transparent 50%),
              linear-gradient(180deg, rgba(8, 9, 12, .35) 0%, rgba(8, 9, 12, .82) 65%, rgba(8, 9, 12, .95) 100%); }

/* ------------------------------------------------------------------ */
/* Video layer                                                          */
/* ------------------------------------------------------------------ */
#video-layer { position: absolute; z-index: 1; left: 0; top: 0; width: 0; height: 0; overflow: hidden; background: #000; }
body.is-avplay #video-layer { background: transparent; }
body.video-mini #video-layer { border-radius: 20px; }
.h5-video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.h5-video.ar-fill { object-fit: cover; }
.h5-video.ar-169 { object-fit: fill; }
.h5-video.ar-43 { left: 12.5%; width: 75%; object-fit: fill; }
.av-object { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }

/* ------------------------------------------------------------------ */
/* Screens, top bar, hints                                              */
/* ------------------------------------------------------------------ */
#screens { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; z-index: 2; }
body.video-full #screens { visibility: hidden; }
#views { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
.view { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; display: none; }
.view.active { display: block; }

#topbar { position: absolute; left: 0; top: 0; width: 1920px; height: 112px; z-index: 5; display: flex; align-items: center; padding: 0 64px;
  background: linear-gradient(180deg, rgba(8, 9, 12, .94) 0%, rgba(8, 9, 12, .7) 60%, rgba(8, 9, 12, 0) 100%);
  transition: transform .3s var(--ease), opacity .3s; }
body.no-chrome #topbar { opacity: 0; transform: translateY(-30px); pointer-events: none; }
.brand { display: flex; align-items: center; margin-right: 56px; cursor: pointer; }
.brand img { width: 50px; height: 50px; filter: drop-shadow(0 6px 18px rgba(139, 108, 255, .45)); }
.wordmark { margin-left: 14px; font-size: 38px; font-weight: 800; letter-spacing: -1.2px;
  background: linear-gradient(100deg, #FFFFFF 0%, #E4DCFF 45%, #9FEFFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
#topnav { display: flex; align-items: center; flex: 1; }
.tn-item { display: flex; align-items: center; height: 56px; padding: 0 24px; margin-right: 8px; border-radius: 28px; font-size: 23px; font-weight: 600; color: var(--text-2);
  transition: transform .16s var(--ease), background-color .16s, color .16s; position: relative; cursor: pointer; }
.tn-item .ic { font-size: 26px; margin-right: 10px; }
.tn-item.is-active { color: var(--text); }
.tn-item.is-active::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 6px; height: 6px; margin-left: -3px; border-radius: 3px; background: var(--accent-2); }
.tn-item.is-focused { background: #FFFFFF; color: var(--ink); transform: scale(var(--focus-scale)); box-shadow: 0 10px 34px rgba(139, 108, 255, .4); }
.tn-item.is-focused::after { display: none; }
.tb-right { display: flex; align-items: center; }
#clock { text-align: right; }
#clock b { display: block; font-size: 34px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
#clock span { display: block; font-size: 17px; color: var(--text-3); font-weight: 600; margin-top: -2px; }

#hints { position: absolute; left: 0; bottom: 0; width: 1920px; height: 62px; z-index: 5; display: flex; align-items: center; justify-content: flex-end; padding: 0 64px;
  background: linear-gradient(0deg, rgba(8, 9, 12, .92) 0%, rgba(8, 9, 12, 0) 100%); }
.hint { display: flex; align-items: center; margin-left: 30px; font-size: 18px; color: var(--text-2); font-weight: 600; cursor: pointer; }
.hint em { font-style: normal; font-size: 13px; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; margin-left: 8px; }
.key { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; margin-right: 10px;
  font-style: normal; font-size: 12px; font-weight: 800; color: var(--ink); background: rgba(255, 255, 255, .85); }
.key-red { background: #FF4D5E; min-width: 18px; height: 18px; padding: 0; }
.key-green { background: #2ED47A; min-width: 18px; height: 18px; padding: 0; }
.key-yellow { background: #FFD43B; min-width: 18px; height: 18px; padding: 0; }
.key-blue { background: #4C8DFF; min-width: 18px; height: 18px; padding: 0; }

/* ------------------------------------------------------------------ */
/* Glass, buttons, chips, skeletons                                     */
/* ------------------------------------------------------------------ */
.glass { background: rgba(22, 24, 32, .55); border: 1px solid var(--line); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2); }
.glass-strong { background: rgba(14, 16, 22, .86); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass { background: rgba(22, 24, 32, .92); }
  .glass-strong { background: rgba(14, 16, 22, .97); }
}

.btn { display: inline-flex; align-items: center; height: 66px; padding: 0 32px; margin-right: 16px; border-radius: 33px; font-size: 24px; font-weight: 700; white-space: nowrap;
  color: var(--text); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); cursor: pointer;
  transition: transform .16s var(--ease), background-color .16s, color .16s, box-shadow .16s; will-change: transform; }
.btn .ic { font-size: 28px; margin-right: 12px; }
.btn-primary { background: linear-gradient(135deg, #8B6CFF, #6A4DFF); border-color: transparent; box-shadow: 0 10px 30px rgba(107, 77, 255, .35); }
.btn.is-focused { background: #FFFFFF; color: var(--ink); transform: scale(1.06); box-shadow: 0 14px 44px rgba(139, 108, 255, .5), 0 0 0 4px rgba(255, 255, 255, .22); }

.chip { display: inline-block; padding: 5px 14px; margin-right: 8px; border-radius: 18px; font-size: 18px; font-weight: 600; color: var(--text-2); background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 3px; background: var(--text-3); margin: 0 14px; vertical-align: middle; }
.rating { color: var(--gold); font-weight: 700; }
.rating .ic { margin-right: 6px; margin-top: -4px; }
.q { padding: 2px 10px; border-radius: 7px; font-size: 17px; font-weight: 800; letter-spacing: .5px; border: 1.5px solid rgba(255, 255, 255, .5); }
.genres { margin-left: 18px; }

.badge-live { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 8px; background: var(--live); color: #fff; font-size: 16px; font-weight: 800; letter-spacing: 1.2px; }
.badge-live::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: #fff; margin-right: 8px; animation: pulse 1.4s ease-in-out infinite; }
.badge-shift { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 8px; background: rgba(255, 179, 107, .18); border: 1.5px solid var(--accent-3); color: var(--accent-3); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.badge-archive { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 8px; background: rgba(139, 108, 255, .2); border: 1.5px solid var(--accent); color: #CFC3FF; font-size: 16px; font-weight: 800; letter-spacing: 1px; }
.badge-archive .ic { margin-right: 6px; }
.tbadge { display: inline-block; padding: 5px 12px; border-radius: 9px; font-size: 17px; font-weight: 800; letter-spacing: .4px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .2); margin-left: 10px; }
.tbadge.arch { border-color: var(--accent); color: #CFC3FF; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.skel { position: relative; overflow: hidden; background-color: #151821; }
.skel::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 60%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .07) 50%, rgba(255, 255, 255, 0) 100%);
  animation: shimmer 1.3s linear infinite; will-change: transform; }
@keyframes shimmer { from { transform: translateX(0); } to { transform: translateX(270%); } }
.skel img, .pc-art img, .lc-art img, .ec-art img, .cast-ph img, .cr-logo img, .cc-logo img, .hero-img img, .dt-bg img, .ps-ph img, .nw-logo img, .pl-logo img, .un-art img, .mv-logo img, .pi-logo img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
img.loaded { opacity: 1 !important; }

.spinner { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 5px solid rgba(255, 255, 255, .15); border-top-color: #fff;
  animation: spin .8s linear infinite; display: none; will-change: transform; }
.buffering > .spinner, .buffering .pl-center .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ */
/* Virtual collections                                                  */
/* ------------------------------------------------------------------ */
.vc { position: relative; overflow: hidden; }
.vc-track { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transition: transform .24s var(--ease); will-change: transform; }
.vc-track.no-anim { transition: none !important; }
.vc-item { position: absolute; left: 0; top: 0; }

/* Cards (shared) */
.card { position: relative; border-radius: 16px; overflow: hidden; background: var(--bg-3); transform: translateZ(0);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); will-change: transform; }
.card::after { content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.vc-item.is-focused { z-index: 3; }
.vc-item.is-focused .card { transform: scale(var(--focus-scale)); box-shadow: var(--ring); }

/* Poster card */
.pcard { width: 210px; height: 315px; }
.pc-art { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.pc-badges { position: absolute; left: 10px; top: 10px; display: flex; }
.pc-badges span { display: inline-flex; align-items: center; padding: 3px 8px; margin-right: 6px; border-radius: 7px; font-size: 15px; font-weight: 800; background: rgba(0, 0, 0, .62); }
.pc-badges .b-rate { color: var(--gold); }
.pc-badges .b-rate .ic { margin-right: 4px; font-size: 14px; }
.pc-fav { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 16px; background: rgba(0, 0, 0, .6); color: #FF6B8B; display: none; align-items: center; justify-content: center; font-size: 18px; }
.fav .pc-fav { display: flex; }
.pc-lock { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: none; align-items: center; justify-content: center; font-size: 54px; color: #fff; background: rgba(8, 9, 12, .78); }
.locked .pc-lock { display: flex; }
.pc-prog, .lc-prog, .ec-prog { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; display: none; }
.pc-prog.on, .lc-prog.on, .ec-prog.on { display: block; }
.pc-prog i, .lc-prog i, .ec-prog i { display: block; height: 100%; background: var(--grad); }
.pc-title { margin-top: 14px; font-size: 21px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); transition: color .2s; }
.pc-sub { font-size: 17px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.is-focused .pc-title { color: var(--text); }

/* Landscape card */
.lcard { width: 400px; height: 225px; }
.lc-art { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.lc-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent); }
.lc-play { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 33px; background: rgba(255, 255, 255, .92); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 28px; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s var(--ease); }
.is-focused .lc-play { opacity: 1; transform: scale(1); }
.lc-label { position: absolute; left: 14px; bottom: 26px; font-size: 18px; font-weight: 800; letter-spacing: .5px; }
.lc-title { margin-top: 14px; font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-sub { font-size: 18px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

/* Channel card */
.chcard { width: 360px; height: 210px; padding: 22px; background: rgba(22, 24, 32, .72); }
.cc-head { display: flex; align-items: center; }
.cc-logo { width: 60px; height: 60px; border-radius: 14px; flex-shrink: 0; }
.cc-name { flex: 1; margin-left: 14px; font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-live { font-size: 12px; font-weight: 800; letter-spacing: 1px; padding: 3px 8px; border-radius: 6px; background: var(--live); margin-left: 8px; }
.cc-prog { margin-top: 18px; font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-time { margin-top: 4px; font-size: 16px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-bar { position: absolute; left: 22px; right: 22px; bottom: 20px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.cc-bar i { display: block; height: 100%; background: var(--grad); }

/* Cast card */
.castcard { width: 150px; height: 150px; border-radius: 75px; margin: 0 13px; }
.cast-ph { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 75px; }
.cast-name { margin-top: 14px; text-align: center; font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cast-role { text-align: center; font-size: 16px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-item.is-focused .castcard { transform: scale(1.07); }

/* Rails */
.rail { position: relative; margin-bottom: 8px; }
.rail-title { font-size: 30px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 2px; display: flex; align-items: center; }
.rail-title small { font-size: 17px; color: var(--text-3); font-weight: 700; margin-left: 12px; padding: 2px 10px; border-radius: 12px; background: var(--surface-2); }
.rail-vp { position: relative; }

/* ------------------------------------------------------------------ */
/* Hero carousel                                                        */
/* ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; }
.hero-bg, .hero-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.hero-img { opacity: 0; transition: opacity .9s ease; }
.hero-img.on { opacity: 1; }
.hero-img.blurred img { filter: blur(28px) saturate(1.3); transform: scale(1.2); }
.hero-shade { position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(8, 9, 12, .96) 0%, rgba(8, 9, 12, .82) 28%, rgba(8, 9, 12, .25) 62%, rgba(8, 9, 12, .05) 100%),
              linear-gradient(0deg, rgba(8, 9, 12, 1) 0%, rgba(8, 9, 12, 0) 42%); }
.hero-poster { position: absolute; right: 180px; top: 150px; width: 300px; height: 450px; border-radius: 22px; display: none; box-shadow: 0 40px 90px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12); }
.poster-mode .hero-poster { display: block; }
.hero-body { position: absolute; left: 96px; bottom: 240px; width: 960px; }
.hero-body.swap { animation: heroIn .6s var(--ease); }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-kicker { font-size: 19px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-2); }
.hero-title { margin-top: 10px; font-size: 80px; line-height: 1.02; font-weight: 800; letter-spacing: -2px; text-shadow: 0 8px 40px rgba(0, 0, 0, .5); }
.hero-meta { margin-top: 20px; display: flex; align-items: center; font-size: 22px; color: var(--text-2); font-weight: 600; flex-wrap: wrap; }
.hero-plot { margin-top: 18px; font-size: 24px; color: var(--text-2); line-height: 1.45; max-width: 860px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { margin-top: 32px; display: flex; }
.hero-dots { position: absolute; left: 96px; bottom: 196px; display: flex; }
.hero-dots i { width: 10px; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .28); margin-right: 10px; transition: width .3s var(--ease), background-color .3s; }
.hero-dots i.on { width: 36px; background: #fff; }
.hero.is-empty { display: none; }

/* ------------------------------------------------------------------ */
/* Home                                                                 */
/* ------------------------------------------------------------------ */
.home-scroll { position: absolute; left: 0; top: 0; width: 1920px; transition: transform .45s var(--ease); will-change: transform; }
.home-hero { position: relative; height: 840px; }
.home-hero .hero { position: absolute; left: 0; top: 0; width: 1920px; height: 840px; }
.home-rows { position: relative; margin-top: -136px; z-index: 2; padding-bottom: 200px; }
.home .rail-title, .view-home .rail-title { padding-left: 96px; }
.view-home .rail { margin-bottom: 18px; }

/* ------------------------------------------------------------------ */
/* Category rows (Live + Library)                                       */
/* ------------------------------------------------------------------ */
.catrow { display: flex; align-items: center; padding: 0 18px; border-radius: 16px; color: var(--text-2); transition: background-color .15s, color .15s, transform .15s var(--ease); cursor: pointer; }
.ct-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.ct-ic b { font-size: 15px; font-weight: 800; letter-spacing: .3px; }
.ct-name { flex: 1; margin-left: 16px; font-size: 22px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-count { font-size: 17px; color: var(--text-3); font-weight: 700; margin-left: 10px; }
.ct-lock { display: none; font-size: 20px; margin-left: 10px; color: var(--accent-3); }
.catrow.locked .ct-lock { display: block; }
.catrow.is-selected { color: var(--text); background: rgba(139, 108, 255, .14); }
.catrow.is-selected .ct-ic { background: var(--grad); color: #fff; }
.catrow.is-focused { background: #fff; color: var(--ink); transform: scale(1.02); box-shadow: 0 10px 30px rgba(139, 108, 255, .35); }
.catrow.is-focused .ct-count, .catrow.is-focused .ct-lock { color: rgba(11, 12, 16, .55); }
.catrow.is-focused .ct-ic { background: rgba(11, 12, 16, .08); color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Live TV                                                              */
/* ------------------------------------------------------------------ */
.lv { position: absolute; left: 0; top: 118px; width: 1920px; height: 900px; }
.lv-cats { position: absolute; z-index: 4; left: 40px; top: 0; width: 112px; height: 900px; border-radius: 24px; overflow: hidden; transition: width .22s var(--ease), background-color .22s, box-shadow .22s; }
.lv-cats.open { width: 430px; background: rgba(16, 18, 25, .97); box-shadow: 30px 0 80px rgba(0, 0, 0, .65), 0 0 0 1px var(--line-2); }
.lv-cats-head { height: 56px; display: flex; align-items: center; padding: 0 0 0 38px; font-size: 26px; color: var(--text-3); font-weight: 700; white-space: nowrap; }
.lv-cats-head span { margin-left: 16px; opacity: 0; transition: opacity .2s; font-size: 20px; letter-spacing: 2px; text-transform: uppercase; }
.lv-cats.open .lv-cats-head span { opacity: 1; }
.lv-cats-vp { position: absolute; left: 0; top: 60px; right: 0; bottom: 0; }
.lv-cats:not(.open) .catrow { padding: 0 35px; }
.lv-cats:not(.open) .ct-name, .lv-cats:not(.open) .ct-count, .lv-cats:not(.open) .ct-lock { opacity: 0; }
.lv-cats:not(.open) .catrow.is-selected { background: transparent; }

.lv-list { position: absolute; z-index: 2; left: 172px; top: 0; width: 624px; height: 900px; }
.lv-list-head { height: 56px; display: flex; align-items: baseline; padding: 0 12px; }
.lv-cat-name { font-size: 30px; font-weight: 800; letter-spacing: -.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.lv-count { margin-left: 16px; font-size: 19px; color: var(--text-3); font-weight: 600; }
.lv-ch-vp { position: absolute; left: 0; top: 60px; width: 624px; bottom: 0; }
.lv-empty { position: absolute; left: 0; top: 60px; right: 0; bottom: 0; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--text-3); font-size: 22px; }
.lv-empty .ic { font-size: 64px; margin-bottom: 18px; color: var(--text-3); }
.lv-ch-vp.vc-empty + .lv-empty { display: flex; }

.chrow { display: flex; align-items: center; padding: 0 16px 0 6px; border-radius: 18px; transition: background-color .14s, color .14s, transform .14s var(--ease); cursor: pointer; }
.cr-num { width: 64px; text-align: right; font-size: 21px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.cr-logo { width: 62px; height: 62px; border-radius: 14px; margin: 0 18px; flex-shrink: 0; }
.cr-main { flex: 1; min-width: 0; }
.cr-name { font-size: 23px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-prog { font-size: 18px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.cr-bar { margin-top: 8px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.cr-bar i { display: block; height: 100%; background: var(--grad); }
.noepg .cr-bar { visibility: hidden; }
.cr-icons { display: flex; align-items: center; margin-left: 12px; font-size: 20px; color: var(--text-3); }
.cr-icons > span { margin-left: 8px; display: none; }
.cr-q { font-size: 13px; font-weight: 800; padding: 2px 6px; border-radius: 5px; border: 1.5px solid currentColor; }
.cr-q:not(:empty) { display: inline-block !important; }
.arch .cr-arch, .fav .cr-fav, .locked .cr-lock { display: inline-flex !important; }
.fav .cr-fav { color: #FF6B8B; }
.locked .cr-lock { color: var(--accent-3); }
.cr-eq { align-items: flex-end; height: 20px; }
.cr-eq i { width: 4px; margin-left: 3px; border-radius: 2px; background: var(--accent-2); height: 8px; animation: eq 1s ease-in-out infinite; }
.cr-eq i:nth-child(2) { animation-delay: .25s; }
.cr-eq i:nth-child(3) { animation-delay: .5s; }
@keyframes eq { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(2.2); } }
.playing .cr-eq { display: inline-flex !important; }
.chrow.playing::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 2px; background: var(--grad); }
.chrow.playing .cr-name { color: var(--accent-2); }
.chrow.is-focused { background: #fff; color: var(--ink); transform: scale(1.015); box-shadow: 0 12px 36px rgba(139, 108, 255, .35); }
.chrow.is-focused .cr-num, .chrow.is-focused .cr-icons { color: rgba(11, 12, 16, .5); }
.chrow.is-focused .cr-prog { color: rgba(11, 12, 16, .7); }
.chrow.is-focused .cr-name { color: var(--ink); }
.chrow.is-focused .cr-bar { background: rgba(11, 12, 16, .12); }

.lv-right { position: absolute; left: 822px; top: 0; width: 1058px; height: 900px; }
.lv-mini { position: absolute; z-index: 0; left: 0; top: 0; width: 640px; height: 360px; border-radius: 20px; background: rgba(0, 0, 0, .45); box-shadow: 0 0 0 1px var(--line-2), 0 30px 70px rgba(0, 0, 0, .45); cursor: pointer; }
.lv-mini.has-video { background: transparent; }
.lv-mini-idle { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-3); font-size: 20px; }
.lv-mini-idle .ic { font-size: 70px; margin-bottom: 12px; }
.has-video .lv-mini-idle { display: none; }
.lv-mini-badges { position: absolute; left: 14px; top: 14px; }
.lv-mini-badges .tbadge { margin-left: 0; }
.lv-mini-live { position: absolute; right: 14px; top: 14px; }
.lv-mini-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%) translateY(10px); padding: 8px 16px; border-radius: 20px; background: rgba(0, 0, 0, .65); font-size: 17px; font-weight: 700; opacity: 0; transition: opacity .2s, transform .2s; white-space: nowrap; }
.lv-mini-hint .ic { margin-right: 8px; font-size: 16px; }
.lv-mini.show-hint .lv-mini-hint { opacity: 1; transform: translateX(-50%); }
.lv-mini-sub { position: absolute; left: 20px; right: 20px; bottom: 54px; text-align: center; font-size: 20px; font-weight: 600; text-shadow: 0 2px 6px #000; }

.lv-now { position: absolute; z-index: 1; left: 660px; top: 0; width: 398px; height: 360px; border-radius: 20px; padding: 22px 24px; }
.nw-head { display: flex; align-items: center; }
.nw-logo { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; }
.nw-hmain { margin-left: 14px; min-width: 0; }
.nw-ch { font-size: 21px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-cat { font-size: 16px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-k { margin-top: 16px; font-size: 14px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--live); }
.nw-title { margin-top: 4px; font-size: 26px; font-weight: 800; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-time { margin-top: 6px; font-size: 17px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.nw-bar { margin-top: 10px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.nw-bar i { display: block; height: 100%; background: var(--grad); }
.nw-desc { margin-top: 10px; font-size: 17px; line-height: 1.4; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-next { margin-top: 10px; font-size: 16px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-next span { font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; font-size: 13px; margin-right: 8px; }
.nw-next b { color: var(--text-2); font-weight: 700; }
.nw-next em { font-style: normal; margin-left: 8px; }
.nw-badges { position: absolute; left: 24px; bottom: 18px; right: 18px; display: flex; flex-wrap: nowrap; overflow: hidden; }
.nw-badges .b { display: inline-flex; align-items: center; margin-right: 8px; padding: 4px 10px; border-radius: 8px; font-size: 14px; font-weight: 800; background: var(--surface-2); white-space: nowrap; }
.nw-badges .b .ic { margin-right: 6px; }
.nw-badges .arch { color: #CFC3FF; }
.nw-badges .fav { color: #FF8BA4; }

.lv-epg { position: absolute; z-index: 1; left: 0; top: 380px; width: 1058px; height: 520px; border-radius: 22px; overflow: hidden; }
.lv-epg-head { height: 76px; display: flex; align-items: center; padding: 0 22px; border-bottom: 1px solid var(--line); }
.lv-epg-title { display: flex; align-items: center; font-size: 20px; font-weight: 800; color: var(--text-2); white-space: nowrap; margin-right: 18px; }
.lv-epg-title .ic { font-size: 22px; margin-right: 10px; color: var(--accent-2); }
.lv-epg-title b { margin-left: 12px; color: var(--text); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.lv-days { display: flex; flex: 1; justify-content: flex-end; overflow: hidden; }
.day-pill { height: 42px; padding: 0 16px; margin-left: 8px; border-radius: 21px; display: flex; align-items: center; font-size: 17px; font-weight: 700; color: var(--text-2); background: var(--surface); white-space: nowrap; transition: transform .15s var(--ease), background-color .15s, color .15s; cursor: pointer; }
.day-pill.on { color: var(--text); background: rgba(139, 108, 255, .22); box-shadow: inset 0 0 0 1.5px var(--accent); }
.day-pill.is-focused { background: #fff; color: var(--ink); transform: scale(1.06); box-shadow: 0 8px 26px rgba(139, 108, 255, .4); }
.lv-epg-vp { position: absolute; left: 10px; right: 10px; top: 82px; bottom: 6px; transition: opacity .2s; }
.lv-epg-vp.loading { opacity: .4; }
.lv-epg-empty { position: absolute; left: 0; right: 0; top: 260px; text-align: center; color: var(--text-3); display: none; }
.lv-epg-vp.empty + .lv-epg-empty { display: block; }
.eprow { display: flex; align-items: center; padding: 0 18px; border-radius: 14px; overflow: hidden; transition: background-color .14s, color .14s, transform .14s var(--ease); cursor: pointer; }
.ep-time { width: 170px; font-size: 18px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.ep-main { flex: 1; min-width: 0; }
.ep-title { font-size: 21px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-desc { font-size: 16px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ep-state { margin-left: 14px; flex-shrink: 0; }
.ep-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.ep-bar i { display: block; height: 100%; background: var(--grad); }
.eprow.is-past .ep-title { color: var(--text-2); }
.eprow.is-past:not(.is-catch) { opacity: .55; }
.eprow.is-now { background: rgba(255, 59, 92, .08); }
.chip-catch { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 14px; font-size: 15px; font-weight: 800; color: #CFC3FF; background: rgba(139, 108, 255, .18); }
.chip-catch .ic { margin-right: 6px; font-size: 14px; }
.chip-soon { font-size: 15px; color: var(--text-3); font-weight: 700; }
.eprow.is-focused { background: #fff; color: var(--ink); transform: scale(1.01); opacity: 1 !important; }
.eprow.is-focused .ep-time, .eprow.is-focused .ep-desc, .eprow.is-focused .chip-soon { color: rgba(11, 12, 16, .6); }
.eprow.is-focused .ep-title { color: var(--ink); }
.eprow.is-focused .chip-catch { background: var(--accent); color: #fff; }

/* ------------------------------------------------------------------ */
/* Library (Movies / Series)                                            */
/* ------------------------------------------------------------------ */
.lib { position: absolute; left: 0; top: 108px; width: 1920px; height: 910px; }
.lib-cats { position: absolute; left: 40px; top: 0; width: 352px; height: 910px; }
.lib-cats-head { height: 54px; display: flex; align-items: center; padding: 0 18px; font-size: 28px; font-weight: 800; letter-spacing: -.4px; }
.lib-cats-head .ic { font-size: 30px; margin-right: 12px; color: var(--accent-2); }
.lib-cats-vp { position: absolute; left: 0; top: 60px; right: 0; bottom: 0; }
.lib-main { position: absolute; left: 418px; top: 0; width: 1478px; height: 910px; overflow: hidden; }
.lib-grid-vp { position: absolute; left: 0; top: 0; width: 1478px; height: 910px; }
.lib-hero-wrap { position: absolute; z-index: 2; left: 12px; top: 0; width: 1440px; height: 540px; will-change: transform, opacity; transition: transform .24s var(--ease), opacity .24s; }
.grid-scrolled .lib-hero-wrap { pointer-events: none; }
.lib-hero { position: absolute; left: 0; top: 0; width: 1440px; height: 470px; border-radius: 28px; box-shadow: 0 0 0 1px var(--line); }
.lib-hero .hero-body { left: 56px; bottom: 44px; width: 820px; }
.lib-hero .hero-title { font-size: 60px; }
.lib-hero .hero-plot { -webkit-line-clamp: 2; font-size: 21px; }
.lib-hero .hero-meta { font-size: 20px; margin-top: 14px; }
.lib-hero .hero-actions { margin-top: 24px; }
.lib-hero .btn { height: 58px; font-size: 22px; padding: 0 26px; }
.lib-hero .hero-dots { left: auto; right: 40px; bottom: 30px; }
.lib-hero .hero-poster { right: 70px; top: 40px; width: 260px; height: 390px; }
.lib-head { position: absolute; left: 4px; top: 488px; display: flex; align-items: baseline; }
.no-hero .lib-hero { display: none; }
.no-hero .lib-head { top: 4px; }
.lib-title { font-size: 30px; font-weight: 800; letter-spacing: -.4px; }
.lib-count { margin-left: 16px; font-size: 19px; color: var(--text-3); font-weight: 600; }
.lib-empty { position: absolute; left: 0; right: 0; top: 600px; display: none; flex-direction: column; align-items: center; text-align: center; color: var(--text-3); font-size: 22px; }
.lib-empty .ic { font-size: 64px; margin-bottom: 16px; }
.view.empty .lib-empty { display: flex; }
.no-hero .lib-empty { top: 260px; }

/* ------------------------------------------------------------------ */
/* Detail                                                               */
/* ------------------------------------------------------------------ */
.dt-bg { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
.poster-bg .dt-bg img { filter: blur(34px) saturate(1.3); transform: scale(1.2); }
.dt-vig { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px;
  background: linear-gradient(90deg, rgba(8, 9, 12, .96) 0%, rgba(8, 9, 12, .78) 32%, rgba(8, 9, 12, .12) 64%, rgba(8, 9, 12, 0) 100%),
              linear-gradient(0deg, rgba(8, 9, 12, 1) 0%, rgba(8, 9, 12, 0) 46%), linear-gradient(180deg, rgba(8, 9, 12, .45) 0%, transparent 18%);
  transition: background-color .4s; }
.scrolled .dt-vig { background-color: rgba(8, 9, 12, .55); }
.dt-scroll { position: absolute; left: 110px; top: 0; width: 1810px; padding-top: 150px; transition: transform .45s var(--ease); will-change: transform; }
.dt-head { width: 1060px; min-height: 720px; }
.dt-kicker { font-size: 19px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-2); }
.dt-title { margin-top: 10px; font-size: 88px; line-height: 1; font-weight: 800; letter-spacing: -2.5px; text-shadow: 0 10px 50px rgba(0, 0, 0, .55); }
.dt-title.long { font-size: 68px; letter-spacing: -1.5px; }
.dt-meta { margin-top: 24px; display: flex; align-items: center; flex-wrap: wrap; font-size: 23px; color: var(--text-2); font-weight: 600; }
.dt-plot { margin-top: 22px; font-size: 25px; line-height: 1.5; color: var(--text-2); max-width: 980px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dt-credits { margin-top: 18px; font-size: 20px; color: var(--text-2); }
.dt-credits span { display: block; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-credits em { font-style: normal; color: var(--text-3); font-weight: 700; margin-right: 12px; text-transform: uppercase; font-size: 15px; letter-spacing: 1.5px; }
.dt-badges { margin-top: 18px; display: flex; flex-wrap: wrap; }
.dt-badges .b { display: inline-flex; align-items: center; padding: 6px 14px; margin: 0 10px 10px 0; border-radius: 10px; font-size: 17px; font-weight: 700; color: var(--text-2); background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }
.dt-badges .b .ic { margin-right: 8px; font-size: 19px; }
.dt-badges .b.q { color: var(--text); border-color: rgba(255, 255, 255, .4); font-weight: 800; }
.dt-progress { margin-top: 18px; display: flex; align-items: center; }
.dt-pbar { width: 340px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.dt-pbar i { display: block; height: 100%; background: var(--grad); }
.dt-progress span { margin-left: 16px; font-size: 18px; color: var(--text-2); font-weight: 600; }
.dt-actions { margin-top: 30px; display: flex; flex-wrap: nowrap; }
.dt-sec { margin-top: 30px; }
.dt-sec-title { font-size: 32px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 10px; }
.dt-seasons { display: flex; margin: 6px 0 4px; }
.season-tab { height: 50px; padding: 0 22px; margin-right: 12px; border-radius: 25px; display: flex; align-items: center; font-size: 20px; font-weight: 700; color: var(--text-2); background: var(--surface); transition: transform .15s var(--ease), background-color .15s, color .15s; cursor: pointer; }
.season-tab small { margin-left: 10px; font-size: 15px; color: var(--text-3); }
.season-tab.on { background: rgba(139, 108, 255, .22); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.season-tab.is-focused { background: #fff; color: var(--ink); transform: scale(1.06); }
.season-tab.is-focused small { color: rgba(11, 12, 16, .55); }
.dt-eps-vp, .dt-cast-vp, .dt-sim-vp { position: relative; width: 1810px; }
.epcard { width: 400px; height: 225px; }
.ec-art { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.ec-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent); }
.ec-play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 31px; background: rgba(255, 255, 255, .92); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 26px; opacity: 0; transition: opacity .2s; }
.is-focused .ec-play { opacity: 1; }
.ec-dur { position: absolute; right: 12px; bottom: 26px; font-size: 16px; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .6); }
.ec-done { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 16px; background: var(--mint); color: var(--ink); display: none; align-items: center; justify-content: center; font-size: 20px; }
.watched .ec-done { display: flex; }
.ec-title { margin-top: 14px; font-size: 21px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-plot { margin-top: 4px; font-size: 17px; line-height: 1.35; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Person */
.ps { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
.ps-head { position: absolute; left: 110px; top: 80px; display: flex; align-items: center; }
.ps-ph { width: 190px; height: 190px; border-radius: 95px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .14), 0 30px 70px rgba(0, 0, 0, .55); }
.ps-meta { margin-left: 40px; }
.ps-k { font-size: 18px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-2); }
.ps-name { font-size: 72px; font-weight: 800; letter-spacing: -2px; line-height: 1.05; }
.ps-count { margin-top: 8px; font-size: 22px; color: var(--text-2); }
.ps-src { margin-top: 4px; font-size: 16px; color: var(--text-3); }
.ps-grid-vp { position: absolute; left: 100px; top: 330px; width: 1740px; height: 690px; }
.ps-empty { position: absolute; left: 0; right: 0; top: 520px; display: none; flex-direction: column; align-items: center; color: var(--text-3); font-size: 22px; }
.ps-empty .ic { font-size: 60px; margin-bottom: 16px; }
.view.empty .ps-empty { display: flex; }

/* ------------------------------------------------------------------ */
/* Search                                                               */
/* ------------------------------------------------------------------ */
.sr { position: absolute; left: 0; top: 118px; width: 1920px; height: 900px; }
.sr-left { position: absolute; left: 64px; top: 0; width: 660px; }
.sr-field { position: relative; height: 86px; border-radius: 22px; display: flex; align-items: center; padding: 0 26px; background: rgba(255, 255, 255, .07); border: 1.5px solid var(--line-2); font-size: 34px; font-weight: 700; overflow: hidden; }
.sr-field > .ic { font-size: 32px; color: var(--accent-2); margin-right: 16px; }
.sr-q { white-space: pre; overflow: hidden; }
.sr-ph { position: absolute; left: 76px; color: var(--text-3); font-weight: 500; font-size: 26px; display: none; }
.sr-field.empty .sr-ph { display: block; }
.caret { display: inline-block; width: 3px; height: 38px; background: var(--accent-2); margin-left: 3px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sr-kb { margin-top: 24px; }
.sr-tip { margin-top: 18px; display: flex; align-items: center; font-size: 17px; color: var(--text-3); }
.sr-tip .ic { margin-right: 10px; font-size: 20px; }
.sr-right { position: absolute; left: 780px; top: 0; width: 1110px; height: 900px; overflow: hidden; }
.sr-results { position: absolute; left: 0; top: 0; width: 1110px; transition: transform .35s var(--ease); }
.sr-results .rail { margin-bottom: 10px; }
.sr-idle, .sr-none { position: absolute; left: 0; top: 0; right: 0; display: none; }
.view.idle .sr-idle { display: block; }
.view.idle .sr-results { visibility: hidden; }
.sr-none { top: 240px; flex-direction: column; align-items: center; color: var(--text-3); font-size: 24px; }
.sr-none .ic { font-size: 70px; margin-bottom: 18px; }
.view.no-results .sr-none { display: flex; }
.sg-k { font-size: 18px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-3); margin: 6px 0 14px; }
.sg-row { display: flex; flex-wrap: wrap; margin-bottom: 26px; }
.sg-chip { display: inline-flex; align-items: center; height: 54px; padding: 0 22px; margin: 0 14px 14px 0; border-radius: 27px; font-size: 21px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); transition: transform .15s var(--ease), background-color .15s, color .15s; cursor: pointer; }
.sg-chip .ic { margin-right: 10px; color: var(--accent-2); }
.sg-chip.is-focused { background: #fff; color: var(--ink); transform: scale(1.05); }

/* On-screen keyboard */
.kb-row { display: flex; }
.kb-key { height: 62px; margin: 4px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 600; background: rgba(255, 255, 255, .07); border: 1px solid var(--line);
  transition: transform .12s var(--ease), background-color .12s, color .12s; cursor: pointer; }
.kb-key.wide { font-size: 18px; font-weight: 700; }
.kb-key .ic { font-size: 26px; }
.kb-key.on { background: rgba(139, 108, 255, .35); }
.kb-key.is-focused { background: #fff; color: var(--ink); transform: scale(1.1); box-shadow: 0 10px 30px rgba(139, 108, 255, .45); position: relative; z-index: 2; }

/* ------------------------------------------------------------------ */
/* Settings                                                             */
/* ------------------------------------------------------------------ */
.set { position: absolute; left: 0; top: 118px; width: 1920px; height: 900px; }
.set-secs { position: absolute; z-index: 1; left: 64px; top: 0; width: 450px; }
.set-sec { display: flex; align-items: center; height: 94px; padding: 0 22px; margin-bottom: 8px; border-radius: 20px; color: var(--text-2); transition: transform .15s var(--ease), background-color .15s, color .15s; cursor: pointer; }
.set-sec > .ic { font-size: 30px; margin-right: 18px; flex-shrink: 0; }
.set-sec b { display: block; font-size: 23px; font-weight: 700; }
.set-sec span { display: block; font-size: 16px; color: var(--text-3); margin-top: 2px; }
.set-sec.on { background: rgba(139, 108, 255, .14); color: var(--text); }
.set-sec.on > .ic { color: var(--accent-2); }
.set-sec.is-focused { background: #fff; color: var(--ink); transform: scale(1.03); box-shadow: 0 12px 34px rgba(139, 108, 255, .35); }
.set-sec.is-focused span { color: rgba(11, 12, 16, .55); }
.set-sec.is-focused > .ic { color: var(--ink); }
.set-panel-wrap { position: absolute; left: 556px; top: 0; width: 1300px; height: 900px; overflow: hidden; }
.set-panel { padding: 0 20px 160px; }
.set-title { position: relative; z-index: 1; display: flex; align-items: center; font-size: 40px; font-weight: 800; letter-spacing: -.6px; margin: 4px 0 22px; }
.set-title .ic { font-size: 40px; margin-right: 16px; color: var(--accent-2); }
.set-head { position: relative; z-index: 1; font-size: 17px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-3); margin: 30px 0 12px 6px; }
.srow { position: relative; z-index: 1; display: flex; align-items: center; min-height: 92px; padding: 16px 26px; margin-bottom: 10px; border-radius: 20px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
  transition: transform .14s var(--ease), background-color .14s, color .14s; cursor: pointer; }
.srow.is-disabled { cursor: default; background: transparent; }
.sr-ic { font-size: 26px; margin-right: 18px; color: var(--text-3); }
.sr-main { flex: 1; min-width: 0; }
.sr-label { font-size: 23px; font-weight: 700; }
.sr-desc { font-size: 17px; color: var(--text-3); margin-top: 4px; line-height: 1.35; }
.sr-val { display: flex; align-items: center; margin-left: 24px; font-size: 21px; font-weight: 700; color: var(--accent-2); white-space: nowrap; max-width: 560px; }
.sr-val span { overflow: hidden; text-overflow: ellipsis; margin: 0 10px; }
.sr-val .ic { font-size: 22px; color: var(--text-3); }
.sr-val.info { color: var(--text-2); font-weight: 600; white-space: normal; text-align: right; max-width: 760px; }
.sr-val.input { color: var(--text-2); }
.sr-go { margin-left: 24px; font-size: 26px; color: var(--text-3); }
.sr-toggle { margin-left: 24px; width: 66px; height: 38px; border-radius: 19px; background: rgba(255, 255, 255, .16); position: relative; transition: background-color .2s; flex-shrink: 0; }
.sr-toggle i { position: absolute; left: 4px; top: 4px; width: 30px; height: 30px; border-radius: 15px; background: #fff; transition: transform .2s var(--ease); }
.sr-toggle.on { background: var(--accent); }
.sr-toggle.on i { transform: translateX(28px); }
.srow.primary { border-color: rgba(139, 108, 255, .6); background: rgba(139, 108, 255, .12); }
.srow.primary .sr-go { color: var(--accent); }
.srow.danger .sr-label { color: #FF8098; }
.srow.is-focused { background: #fff; color: var(--ink); transform: scale(1.015); box-shadow: 0 12px 34px rgba(139, 108, 255, .3); border-color: transparent; }
.srow.is-focused .sr-desc, .srow.is-focused .sr-val .ic, .srow.is-focused .sr-go { color: rgba(11, 12, 16, .55); }
.srow.is-focused .sr-val { color: #5B3FE0; }
.srow.is-focused .sr-val.input { color: rgba(11, 12, 16, .75); }
.set-monitor { position: relative; z-index: 0; display: flex; margin-top: 18px; }
.mon-video { position: relative; width: 560px; height: 315px; border-radius: 20px; background: rgba(0, 0, 0, .45); box-shadow: 0 0 0 1px var(--line-2); flex-shrink: 0; }
.mon-video.on { background: transparent; }
.mon-idle { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-3); font-size: 18px; text-align: center; padding: 30px; }
.mon-idle .ic { font-size: 54px; margin-bottom: 14px; }
.mon-video.on .mon-idle { display: none; }
.mon-stats { margin-left: 26px; flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; }
.ms { width: 50%; padding: 10px 16px 10px 0; }
.ms span { display: block; font-size: 15px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }
.ms b { display: block; font-size: 22px; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-subprev { position: relative; z-index: 1; margin-top: 18px; height: 150px; border-radius: 20px; background: linear-gradient(135deg, #2B1E5C, #0B2B3A); overflow: hidden; }

/* ------------------------------------------------------------------ */
/* Modals & toasts                                                      */
/* ------------------------------------------------------------------ */
#overlays { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; z-index: 6; pointer-events: none; }
#overlays > * { pointer-events: auto; }
#modals, #toasts { pointer-events: none; }
.modal-backdrop { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; display: flex; align-items: center; justify-content: center; background: rgba(3, 4, 7, .66); opacity: 0; transition: opacity .2s; pointer-events: auto; }
.modal-backdrop.show { opacity: 1; }
.modal { min-width: 760px; max-width: 1640px; padding: 48px 56px; border-radius: 34px; transform: scale(.96); transition: transform .24s var(--ease); box-shadow: 0 50px 120px rgba(0, 0, 0, .65); }
.modal-backdrop.show .modal { transform: none; }
.modal-title { font-size: 40px; font-weight: 800; letter-spacing: -.6px; }
.modal-sub { margin-top: 10px; font-size: 23px; color: var(--text-2); max-width: 1100px; line-height: 1.4; }
.modal-actions { margin-top: 38px; display: flex; }
.resume-meta { margin-top: 26px; }
.resume-bar { width: 640px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.resume-bar i { display: block; height: 100%; background: var(--grad); }
.resume-text { margin-top: 12px; font-size: 20px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.modal-pin { min-width: 600px; text-align: center; }
.pin-body { display: flex; flex-direction: column; align-items: center; }
.pin-lock { font-size: 48px; color: var(--accent-2); margin-top: 18px; }
.pin-dots { display: flex; margin-top: 18px; }
.pin-dots i { width: 22px; height: 22px; border-radius: 11px; margin: 0 12px; border: 2.5px solid rgba(255, 255, 255, .5); transition: background-color .15s, transform .15s; }
.pin-dots i.on { background: #fff; border-color: #fff; transform: scale(1.1); }
.pin-msg { margin-top: 18px; font-size: 20px; color: var(--text-2); min-height: 26px; }
.pin-pad { margin-top: 24px; width: 420px; display: flex; flex-wrap: wrap; }
.pin-key { width: 124px; height: 82px; margin: 8px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; background: rgba(255, 255, 255, .07); border: 1px solid var(--line);
  transition: transform .12s var(--ease), background-color .12s, color .12s; cursor: pointer; }
.pin-key span { font-size: inherit; }
.pin-key[data-k="clear"] { font-size: 20px; }
.pin-key.is-focused { background: #fff; color: var(--ink); transform: scale(1.08); }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-12px); } 40%, 80% { transform: translateX(12px); } }

.modal-input { width: 1000px; }
.input-field { position: relative; margin-top: 26px; height: 84px; border-radius: 20px; padding: 0 26px; display: flex; align-items: center; font-size: 32px; font-weight: 700; background: rgba(255, 255, 255, .07); border: 1.5px solid var(--line-2); overflow: hidden; white-space: pre; }
.input-field.empty::before { content: attr(data-ph); position: absolute; left: 26px; color: var(--text-3); font-weight: 500; }
.input-body .kb { margin-top: 20px; }
.input-hint { margin-top: 14px; font-size: 18px; color: var(--text-3); }

.modal-tracks { width: 1640px; }
.tracks { display: flex; margin-top: 28px; }
.tk-col { width: 25%; padding-right: 22px; }
.tk-head { display: flex; align-items: center; font-size: 19px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.tk-head .ic { font-size: 24px; margin-right: 10px; color: var(--accent-2); }
.tk-list { max-height: 460px; overflow: hidden; }
.tk-opt { display: flex; align-items: center; height: 62px; padding: 0 18px; margin-bottom: 8px; border-radius: 16px; font-size: 21px; font-weight: 600; background: rgba(255, 255, 255, .05); transition: transform .12s var(--ease), background-color .12s, color .12s; cursor: pointer; }
.tk-opt small { margin-left: auto; font-size: 15px; color: var(--text-3); }
.tk-dot { width: 18px; height: 18px; border-radius: 9px; border: 2px solid rgba(255, 255, 255, .35); margin-right: 14px; flex-shrink: 0; }
.tk-opt.on .tk-dot { border-color: var(--accent-2); background: radial-gradient(circle, var(--accent-2) 45%, transparent 50%); }
.tk-opt.is-focused { background: #fff; color: var(--ink); transform: scale(1.03); }
.tk-opt.is-focused small { color: rgba(11, 12, 16, .5); }
.tk-empty { font-size: 17px; color: var(--text-3); padding: 8px 4px; }
.tk-step { display: flex; align-items: center; height: 62px; margin-bottom: 8px; padding: 0 6px 0 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.tk-lbl { flex: 1; font-size: 20px; font-weight: 600; }
.tk-val { min-width: 120px; text-align: center; font-size: 19px; color: var(--accent-2); }
.tk-pm { width: 48px; height: 48px; border-radius: 24px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; background: rgba(255, 255, 255, .1); transition: transform .12s var(--ease), background-color .12s, color .12s; cursor: pointer; }
.tk-pm.is-focused { background: #fff; color: var(--ink); transform: scale(1.12); }
.tk-preview { margin-top: 14px; height: 110px; border-radius: 16px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; background: linear-gradient(135deg, #2B1E5C, #0B2B3A); text-align: center; }
.set-subprev .tk-preview { height: 150px; margin-top: 0; }
.tk-preview span { padding: 4px 14px; border-radius: 6px; font-weight: 600; text-shadow: 0 2px 4px rgba(0, 0, 0, .8); }
.tk-preview.size-s span { font-size: 18px; } .tk-preview.size-m span { font-size: 23px; } .tk-preview.size-l span { font-size: 28px; } .tk-preview.size-xl span { font-size: 34px; }
.set-subprev .tk-preview.size-s span { font-size: 26px; } .set-subprev .tk-preview.size-m span { font-size: 32px; } .set-subprev .tk-preview.size-l span { font-size: 40px; } .set-subprev .tk-preview.size-xl span { font-size: 48px; }

.modal-mvpick { width: 900px; }
.mv-pick-list { margin-top: 24px; height: 640px; }
.modal-trailer { width: 1600px; padding: 36px; }
.yt-frame { margin-top: 20px; width: 100%; height: 760px; border: 0; border-radius: 18px; background: #000; }

#toasts { position: absolute; right: 64px; bottom: 90px; display: flex; flex-direction: column; align-items: flex-end; }
.toast { display: flex; align-items: center; margin-top: 12px; padding: 16px 26px; border-radius: 22px; font-size: 21px; font-weight: 600; background: rgba(22, 24, 32, .94); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(16px); transition: opacity .25s, transform .25s var(--ease); }
.toast .ic { font-size: 24px; margin-right: 14px; color: var(--accent-2); }
.toast.show { opacity: 1; transform: none; }
#chnum { position: absolute; right: 80px; top: 60px; padding: 12px 30px; border-radius: 22px; font-size: 72px; font-weight: 800; letter-spacing: 6px; font-variant-numeric: tabular-nums; background: rgba(14, 16, 22, .9); border: 1px solid var(--line-2); display: none; z-index: 9; }
#chnum.on { display: block; }

/* ------------------------------------------------------------------ */
/* Fullscreen player                                                    */
/* ------------------------------------------------------------------ */
#player-ui { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; display: none; }
#player-ui.on { display: block; }
.pl-shade-top, .pl-shade-bottom { position: absolute; left: 0; width: 1920px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.pl-shade-top { top: 0; height: 280px; background: linear-gradient(180deg, rgba(0, 0, 0, .78), transparent); }
.pl-shade-bottom { bottom: 0; height: 560px; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); }
.osd-on .pl-shade-top, .osd-on .pl-shade-bottom { opacity: 1; }
.pl-top { position: absolute; left: 80px; right: 80px; top: 50px; display: flex; align-items: center; justify-content: space-between; opacity: 0; transform: translateY(-16px); transition: opacity .3s, transform .3s var(--ease); }
.osd-on .pl-top { opacity: 1; transform: none; }
.pl-top-l { display: flex; align-items: center; min-width: 0; }
.pl-logo { width: 76px; height: 76px; border-radius: 18px; flex-shrink: 0; margin-right: 22px; }
.pl-title { font-size: 36px; font-weight: 800; letter-spacing: -.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 1200px; }
.pl-sub { font-size: 21px; color: var(--text-2); margin-top: 2px; }
.pl-top-r { display: flex; align-items: center; }
.pl-clock { font-size: 36px; font-weight: 700; margin-left: 24px; font-variant-numeric: tabular-nums; }
.pl-center { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; }
.pl-center .spinner { width: 84px; height: 84px; margin: -42px 0 0 -42px; border-width: 6px; }
.pl-flash { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9); padding: 18px 32px; border-radius: 26px; background: rgba(0, 0, 0, .7); font-size: 26px; font-weight: 700; opacity: 0; transition: opacity .2s, transform .2s var(--ease); white-space: nowrap; }
.pl-flash.icon { width: 140px; height: 140px; padding: 0; border-radius: 70px; display: flex; align-items: center; justify-content: center; font-size: 60px; }
.pl-flash.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.pl-subs { position: absolute; left: 160px; right: 160px; bottom: 110px; text-align: center; transition: bottom .3s var(--ease); pointer-events: none; display: none; }
.pl-subs.on { display: block; }
.osd-on .pl-subs { bottom: 430px; }
.pl-subs span { display: inline-block; padding: 6px 18px; border-radius: 8px; font-weight: 600; line-height: 1.3; text-shadow: 0 2px 6px rgba(0, 0, 0, .9), 0 0 2px #000; }
.pl-subs.size-s span { font-size: 34px; } .pl-subs.size-m span { font-size: 44px; } .pl-subs.size-l span { font-size: 54px; } .pl-subs.size-xl span { font-size: 66px; }

.pl-osd { position: absolute; left: 80px; right: 80px; bottom: 54px; padding: 30px 40px 28px; border-radius: 34px; opacity: 0; transform: translateY(40px); transition: opacity .28s, transform .28s var(--ease); }
.osd-on .pl-osd { opacity: 1; transform: none; }
.pi-row { display: flex; align-items: center; }
.pi-logo { width: 84px; height: 84px; border-radius: 18px; overflow: hidden; flex-shrink: 0; margin-right: 24px; background: var(--bg-3); }
.pi-main { flex: 1; min-width: 0; }
.pi-title { display: flex; align-items: center; font-size: 34px; font-weight: 800; letter-spacing: -.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi-tag { display: inline-flex; align-items: center; margin-left: 16px; padding: 4px 10px; border-radius: 8px; font-size: 14px; font-weight: 800; color: #CFC3FF; background: rgba(139, 108, 255, .2); letter-spacing: 1px; text-transform: uppercase; }
.pi-tag .ic { margin-right: 6px; }
.pi-time { margin-top: 4px; font-size: 21px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pi-desc { margin-top: 4px; font-size: 19px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 1100px; }
.pi-next { margin-left: 30px; padding-left: 30px; border-left: 1px solid var(--line-2); width: 360px; flex-shrink: 0; }
.pi-next-k { font-size: 15px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--text-3); }
.pi-next-t { margin-top: 4px; font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi-prog { margin-top: 16px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.pi-prog i { display: block; height: 100%; background: rgba(255, 255, 255, .55); }

.pl-scrub { position: relative; margin-top: 28px; padding: 14px 0 0; }
.pl-bar { position: relative; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .16); transition: transform .15s var(--ease); cursor: pointer; }
.pl-scrub.is-focused .pl-bar { transform: scaleY(1.5); }
.pl-buf, .pl-fill, .pl-tfill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 4px; transform-origin: 0 50%; transform: scaleX(0); }
.pl-buf { background: rgba(255, 255, 255, .22); }
.pl-fill { background: var(--grad); }
.pl-tfill { background: rgba(255, 255, 255, .5); display: none; }
.pl-scrub.seeking .pl-tfill { display: block; }
.pl-scrub.seeking .pl-fill { opacity: .45; }
.pl-knob { position: absolute; left: -11px; top: -7px; width: 22px; height: 22px; border-radius: 11px; background: #fff; opacity: 0; transition: opacity .2s; will-change: transform; }
.pl-scrub.is-focused .pl-knob, .pl-scrub.seeking .pl-knob { opacity: 1; box-shadow: 0 0 0 7px rgba(139, 108, 255, .4); }
.pl-scrub.is-focused .pl-bar + .pl-knob { opacity: 1; }
.pl-bubble { position: absolute; left: 0; bottom: 68px; opacity: 0; transition: opacity .15s; will-change: transform; pointer-events: none; }
.pl-bubble.on { opacity: 1; }
.pl-bubble b, .pl-bubble span { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; }
.pl-bubble b { bottom: 0; padding: 10px 20px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }
.pl-bubble span { bottom: 62px; display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 800; }
.pl-bubble span .ic { margin-right: 6px; }
.pl-times { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 21px; color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-controls { margin-top: 22px; display: flex; justify-content: center; }
.osd-zap .pl-controls { display: none; }
.pbtn { position: relative; width: 74px; height: 74px; margin: 0 10px; border-radius: 37px; display: flex; align-items: center; justify-content: center; font-size: 32px; background: rgba(255, 255, 255, .1);
  transition: transform .15s var(--ease), background-color .15s, color .15s; cursor: pointer; }
.pbtn .tip { position: absolute; top: 86px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 17px; font-weight: 700; color: var(--text); opacity: 0; transition: opacity .15s; }
.pbtn.is-focused { background: #fff; color: var(--ink); transform: scale(1.12); box-shadow: 0 12px 34px rgba(139, 108, 255, .45); }
.pbtn.is-focused .tip { opacity: 1; }
.osd-on .pl-osd { padding-bottom: 50px; }
.osd-zap .pl-osd { padding-bottom: 28px; }

.pl-upnext { position: absolute; right: 80px; bottom: 80px; width: 720px; padding: 22px; border-radius: 28px; display: flex; opacity: 0; transform: translateX(40px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.upnext-on .pl-upnext { opacity: 1; transform: none; pointer-events: auto; }
.un-art { width: 260px; height: 146px; border-radius: 16px; flex-shrink: 0; }
.un-body { margin-left: 22px; min-width: 0; flex: 1; }
.un-kicker { font-size: 15px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent-2); }
.un-title { font-size: 26px; font-weight: 800; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.un-sub { font-size: 17px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.un-count { font-size: 18px; color: var(--text-2); margin-top: 4px; font-variant-numeric: tabular-nums; }
.un-actions { margin-top: 14px; display: flex; }
.un-actions .btn { height: 54px; font-size: 20px; padding: 0 22px; margin-right: 12px; }

.pl-stats { position: absolute; right: 80px; top: 160px; width: 470px; padding: 24px 28px; border-radius: 26px; opacity: 0; transform: translateX(30px); transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.stats-on .pl-stats { opacity: 1; transform: none; }
.st-title { display: flex; align-items: center; font-size: 20px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.st-title .ic { font-size: 24px; margin-right: 10px; color: var(--accent-2); }
.st-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.st-row span { color: var(--text-3); font-weight: 600; }
.st-row b { font-weight: 700; font-variant-numeric: tabular-nums; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pl-error { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .6); }
.error-on .pl-error { display: flex; }
.pl-error-box { padding: 48px 64px; border-radius: 32px; text-align: center; max-width: 900px; }
.pl-error-ic { font-size: 60px; color: var(--accent-3); }
.pl-error-title { margin-top: 12px; font-size: 36px; font-weight: 800; }
.pl-error-msg { margin-top: 10px; font-size: 21px; color: var(--text-2); }
.pl-error-hint { margin-top: 24px; font-size: 19px; color: var(--text-3); font-weight: 700; }
#player-ui.buffering .pl-center .spinner { display: block; }

/* ------------------------------------------------------------------ */
/* Multi-View                                                           */
/* ------------------------------------------------------------------ */
#multiview { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background: #000; display: none; }
#multiview.on { display: block; }
body.mv-on #screens { visibility: hidden; }
.mv-head { position: absolute; left: 0; top: 0; width: 1920px; height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 36px; }
.mv-title { display: flex; align-items: center; font-size: 28px; font-weight: 800; }
.mv-title .ic { font-size: 30px; margin-right: 14px; color: var(--accent-2); }
.mv-hint { display: flex; font-size: 18px; color: var(--text-2); font-weight: 600; }
.mv-hint span { margin-left: 28px; display: flex; align-items: center; }
.mv-hint .ic { margin-right: 8px; }
.mv-hint b { padding: 1px 8px; border-radius: 6px; background: rgba(255, 255, 255, .85); color: var(--ink); font-size: 14px; margin-right: 8px; }
.mv-grid { position: absolute; left: 24px; top: 82px; width: 1872px; height: 978px; display: flex; flex-wrap: wrap; }
.mv-cell { position: relative; width: 924px; height: 477px; margin: 6px 6px 6px 6px; border-radius: 18px; overflow: hidden; background: #050608; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; cursor: pointer; }
.mv-video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.mv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; padding: 0 22px; display: flex; align-items: center; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); }
.mv-logo { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; margin-right: 16px; flex-shrink: 0; }
.mv-label b { display: block; font-size: 21px; font-weight: 800; }
.mv-label span { display: block; font-size: 17px; color: var(--text-2); }
.mv-audio { position: absolute; right: 18px; top: 18px; width: 52px; height: 52px; border-radius: 26px; background: var(--accent); display: none; align-items: center; justify-content: center; font-size: 26px; }
.mv-cell.is-focused { box-shadow: 0 0 0 5px #fff, 0 0 0 11px rgba(139, 108, 255, .45); z-index: 2; }
.mv-cell.is-focused .mv-audio { display: flex; }
.mv-cell.failed .mv-video::after { content: 'Stream unavailable'; position: absolute; left: 0; right: 0; top: 45%; text-align: center; color: var(--text-3); font-size: 22px; }

/* ------------------------------------------------------------------ */
/* Splash                                                               */
/* ------------------------------------------------------------------ */
#splash { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; z-index: 20; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: opacity .6s; }
#splash.out { opacity: 0; pointer-events: none; }
.sp-glow { position: absolute; left: 50%; top: 50%; width: 1100px; height: 800px; margin: -400px 0 0 -550px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(139, 108, 255, .35) 0%, rgba(61, 216, 240, .12) 40%, transparent 70%); }
.sp-center { position: relative; display: flex; flex-direction: column; align-items: center; }
.sp-logo { width: 190px; height: 190px; filter: drop-shadow(0 30px 60px rgba(139, 108, 255, .5)); animation: spIn 1s var(--ease); }
.sp-word { margin-top: 26px; font-size: 76px; font-weight: 800; letter-spacing: -2.5px; background: linear-gradient(100deg, #FFFFFF 0%, #E4DCFF 45%, #9FEFFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-bar { margin-top: 40px; width: 360px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.sp-bar i { display: block; height: 100%; width: 10%; background: var(--grad); transition: width .4s var(--ease); }
.sp-text { margin-top: 18px; font-size: 20px; color: var(--text-3); font-weight: 600; }
@keyframes spIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ */
/* Motion preferences                                                   */
/* ------------------------------------------------------------------ */
body.reduce-motion * { transition-duration: 0s !important; animation-duration: 0s !important; }
body.reduce-motion { --focus-scale: 1; }

/* Rounded artwork containers keep clipping after the skeleton class is removed */
.ps-ph, .cast-ph, .cr-logo, .cc-logo, .nw-logo, .pl-logo, .un-art, .mv-logo, .pi-logo, .hero-poster, .pc-art, .lc-art, .ec-art { overflow: hidden; }

/* Multi-View quadrants beyond the provider's stream limit */
.mv-cell.mv-locked { cursor: default; background: #08090C; }
.mv-cell.mv-locked .mv-video::after { content: attr(data-msg); position: absolute; left: 40px; right: 40px; top: 44%; text-align: center; color: var(--text-3); font-size: 22px; font-weight: 600; }

/* Category icons showing the first channel's logo */
.ct-ic .ct-logo { display: none; width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ct-ic.has-logo { background: rgba(255, 255, 255, .1); overflow: hidden; }
.ct-ic.has-logo .ct-logo { display: block; }
.ct-ic.has-logo .ct-svg { display: none; }
.ct-ic.has-logo, .catrow.is-focused .ct-ic.has-logo, .catrow.is-selected .ct-ic.has-logo { background: #1C1F2A; }

/* Continue Watching: "Remove" hint on the focused card (Yellow button) */
.lc-remove { position: absolute; right: 10px; top: 10px; display: none; align-items: center; padding: 5px 12px 5px 8px; border-radius: 14px;
  background: rgba(0, 0, 0, .72); font-size: 15px; font-weight: 700; color: #fff; cursor: pointer; }
.lc-remove .key { margin-right: 7px; }
.cw.is-focused .lc-remove { display: flex; }
