
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: #050506; color: #ddd; overflow: hidden;
  font-family: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  font-variant-numeric: tabular-nums lining-nums; font-feature-settings: 'zero' 0;
  -webkit-font-smoothing: antialiased; user-select: none;
}

/* ------------------------------------------------------------ page shell */
.page { position: fixed; inset: 0; display: grid; grid-template-columns: 1fr 228px; gap: 20px; padding: 20px; }
.stage { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; }
.bezel { position: relative; background: #000; border: 1px solid #1d1f22; padding: 10px; }
#tv {
  position: relative; width: 1920px; height: 1080px; overflow: hidden; transform-origin: 0 0;
  background: var(--bg); color: var(--text); font-family: var(--font), 'Figtree', sans-serif; font-weight: var(--w4);
  font-size: calc(24px * var(--fs)); line-height: 1.3;
}
.bezel-inner { position: relative; overflow: hidden; }

/* ------------------------------------------------------------ remote */
.remote { align-self: center; justify-self: center; width: 200px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 16px 18px; background: #111214; border: 1px solid #23262a; border-radius: 34px; color: #b9bec6; }
.remote .rlabel { font-size: calc(11px * var(--fs, 1)); letter-spacing: .14em; text-transform: uppercase; color: #6c727b; }
.rrow { display: flex; gap: 10px; justify-content: center; }
.rbtn { width: 46px; height: 34px; border-radius: 17px; background: #1b1d21; border: 1px solid #2b2f35; color: #c9ced6; font: 600 11px/1 'Figtree', sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; letter-spacing: .02em; }
.rbtn:hover { background: #24272c; }
.rbtn:active, .rbtn.hit { background: #F5B13D; color: #1a1204; border-color: #F5B13D; }
.rbtn.wide { width: 66px; }
.rbtn svg { width: 16px; height: 16px; }
.dpad { position: relative; width: 156px; height: 156px; border-radius: 50%; background: #1b1d21; border: 1px solid #2b2f35; }
.dpad button { position: absolute; background: none; border: none; color: #c9ced6; cursor: pointer; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.dpad button:hover { color: #fff; }
.dpad button.hit { color: #F5B13D; }
.dpad .u { left: 52px; top: 0; } .dpad .d { left: 52px; bottom: 0; } .dpad .l { left: 0; top: 52px; } .dpad .r { right: 0; top: 52px; }
.dpad .ok { left: 44px; top: 44px; width: 66px; height: 66px; border-radius: 50%; background: #25282d; border: 1px solid #353a41; font: 700 15px 'Figtree', sans-serif; }
.dpad .ok.hit { background: #F5B13D; color: #1a1204; }
.numpad { display: grid; grid-template-columns: repeat(3, 46px); gap: 8px; }
.keyhelp { margin-top: 4px; font-size: calc(11px * var(--fs, 1)); line-height: 1.55; color: #6c727b; text-align: left; width: 100%; }
.keyhelp b { color: #9aa1aa; font-weight: var(--w6); }

/* ------------------------------------------------------------ chrome */
.top { position: absolute; left: 0; right: 0; top: 0; height: 112px; display: flex; align-items: center; padding: 28px 64px 0; gap: 40px; z-index: 5; }
.wordmark { display: flex; align-items: center; gap: 12px; font-weight: var(--w7); font-size: calc(30px * var(--fs, 1)); letter-spacing: -.01em; }
.wordmark i { width: 34px; height: 34px; display: block; }
.wordmark .wmt { font-weight: var(--w6); letter-spacing: -.02em; }
.wordmark .wmt b { font-weight: var(--w6); color: var(--accent); }
.boot .wm .wmt b { color: var(--accent); font-weight: inherit; }
.tabs { display: flex; gap: 6px; }
.tab { padding: 10px 20px; border-radius: var(--r); font-size: calc(23px * var(--fs, 1)); font-weight: var(--w6); color: var(--muted); transition: background .12s, color .12s, transform .12s; }
.tab.active { color: var(--text); }
.tab.active::after { content: ''; display: block; height: 2px; background: var(--accent); margin-top: 6px; }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: calc(21px * var(--fs, 1)); font-weight: var(--w5); }
.top .clock { color: var(--text); font-size: calc(30px * var(--fs, 1)); font-weight: var(--w6); }
.top .pl { display: flex; align-items: center; gap: 10px; }
.top .pl::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.screen { position: absolute; left: 0; right: 0; top: 112px; bottom: 0; }

/* focus */
[data-f] { outline: 2px solid transparent; outline-offset: -2px; transition: background .12s ease-out, transform .12s ease-out, outline-color .12s, color .12s; }
.is-focus { outline-color: var(--accent) !important; background: var(--s2) !important; }
.tab.is-focus { color: var(--text); transform: scale(1.04); }
.no-anim [data-f] { transition: none; }

.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 7px; border: 1px solid var(--line); border-radius: 3px; font-size: calc(14px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: .05em; color: var(--muted); vertical-align: middle; }
.badge.q4k { color: var(--accent); border-color: var(--accent); }
.badge.live { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.badge.solid { background: var(--s2); }
.ico { width: 22px; height: 22px; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 18px; height: 18px; }
.ico.fill { fill: currentColor; stroke: none; }
.muted { color: var(--muted); }
.acc { color: var(--accent); }

.logo { flex: none; width: 64px; height: 44px; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-weight: var(--w8); font-size: calc(17px * var(--fs, 1)); letter-spacing: .02em; color: #fff; position: relative; overflow: hidden; }
.logo.s1::after { content: ''; position: absolute; right: -10px; bottom: -14px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); }
.logo.s2::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(0,0,0,.25); }
.logo.off { background: var(--s2) !important; color: var(--muted); }

.prog { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.prog > i { display: block; height: 100%; background: var(--accent); }

.btn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 24px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); font-size: calc(22px * var(--fs, 1)); font-weight: var(--w6); color: var(--text); white-space: nowrap; }
.btn.primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn.primary.is-focus { background: var(--accent) !important; outline-color: var(--text) !important; transform: scale(1.04); }
.btn.is-focus { transform: scale(1.04); }
.btn.sm { height: 46px; padding: 0 18px; font-size: calc(20px * var(--fs, 1)); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line); font-size: calc(19px * var(--fs, 1)); font-weight: var(--w6); color: var(--muted); white-space: nowrap; }
.chip.on { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.chip.on.is-focus { background: var(--accent) !important; color: var(--ink); outline-color: var(--text) !important; }
.chip.is-focus { color: var(--text); }
.chip .n { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--accent); color: var(--ink); font-size: calc(14px * var(--fs, 1)); display: inline-flex; align-items: center; justify-content: center; }

/* ------------------------------------------------------------ live */
.livescr { position: absolute; inset: 0 64px 40px; display: grid; grid-template-columns: 320px 1fr; gap: 0; border-top: 1px solid var(--line); }
.col { position: relative; min-height: 0; display: flex; flex-direction: column; }
.col + .col { border-left: 1px solid var(--line); }
.colhead { height: 84px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 20px; }
.colhead h2 { font-size: calc(28px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.colhead .count { color: var(--muted); font-size: calc(20px * var(--fs, 1)); font-weight: var(--w5); }
.scroll-y { overflow: hidden; position: relative; flex: 1; min-height: 0; }
.scroll-x { overflow: hidden; position: relative; }

.cats { padding: 0 12px 0 0; }
.cat { display: flex; align-items: center; height: var(--rowc); padding: 0 16px 0 20px; border-radius: var(--r); font-size: calc(22px * var(--fs, 1)); font-weight: var(--w6); color: var(--muted); gap: 12px; }
.cat .nm { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat .ct { font-size: calc(18px * var(--fs, 1)); font-weight: var(--w5); color: var(--muted); }
.cat.sel { color: var(--accent); background: var(--s1); }
.cat.is-focus { color: var(--text); }
.cat .ico { color: var(--muted); }
.cat.sel .ico { color: var(--accent); }
.catsep { height: 1px; background: var(--line); margin: 10px 16px 10px 20px; }
.catlabel { font-size: calc(15px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 20px 8px; }

.chhead { display: flex; align-items: center; gap: 12px; padding: 0 24px; }
.chhead .sp { flex: 1; }
.chrows { padding: 0 12px 0 12px; }
.ch { display: grid; grid-template-columns: 70px 64px 1fr; align-items: center; gap: 18px; height: var(--row); padding: 0 18px 0 12px; border-radius: var(--r); }
.ch .num { font-size: calc(22px * var(--fs, 1)); font-weight: var(--w6); color: var(--muted); text-align: right; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.ch .main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ch .l1 { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ch .nm { font-size: calc(25px * var(--fs, 1)); font-weight: var(--w6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch .l2 { display: grid; grid-template-columns: 1fr 120px; gap: 16px; align-items: center; font-size: calc(19px * var(--fs, 1)); color: var(--muted); font-weight: var(--w5); }
.ch .l2 .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch.playing .nm { color: var(--accent); }
.ch .fav { color: var(--accent); }
.compact .ch .l2 { display: none; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 16px; }
.eq i { width: 3px; background: var(--accent); animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%,100% { height: 4px } 50% { height: 16px } }

.pv { padding: 24px 0 0 28px; display: flex; flex-direction: column; gap: 0; }
.pvvid { position: relative; width: 612px; height: 344px; background: #000; flex: none; overflow: hidden; border-radius: var(--r); }
.pvvid canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pvvid .state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; color: #fff; font-size: calc(22px * var(--fs, 1)); font-weight: var(--w6); background: rgba(0,0,0,.55); }
.pvvid .hint { position: absolute; left: 14px; bottom: 12px; font-size: calc(16px * var(--fs, 1)); font-weight: var(--w6); color: #fff; background: rgba(0,0,0,.6); padding: 4px 8px; border-radius: 3px; }
.pvinfo { padding: 22px 4px 0 0; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.pvinfo .chn { display: flex; align-items: center; gap: 12px; font-size: calc(20px * var(--fs, 1)); color: var(--muted); font-weight: var(--w6); }
.pvinfo h3 { font-size: calc(32px * var(--fs, 1)); line-height: 1.15; font-weight: var(--w7); letter-spacing: -.01em; }
.pvinfo .meta { display: flex; gap: 10px; align-items: center; font-size: calc(20px * var(--fs, 1)); color: var(--muted); font-weight: var(--w5); flex-wrap: wrap; }
.pvinfo .desc { font-size: calc(21px * var(--fs, 1)); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.later { margin-top: 10px; border-top: 1px solid var(--line); }
.later .row { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: calc(21px * var(--fs, 1)); }
.later .row .tm { color: var(--muted); font-weight: var(--w6); }
.later .row .tt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: var(--w5); }

.empty { padding: 60px 24px; color: var(--muted); font-size: calc(22px * var(--fs, 1)); line-height: 1.5; }
.empty b { color: var(--text); display: block; font-size: calc(26px * var(--fs, 1)); margin-bottom: 6px; }

/* ------------------------------------------------------------ drawers & dialogs */
.scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); z-index: 20; }
.drawer { position: absolute; top: 0; bottom: 0; right: 0; width: 700px; background: var(--s1); border-left: 1px solid var(--line); z-index: 21; display: flex; flex-direction: column; padding: 48px 56px 40px 48px; animation: slidein .16s ease-out; }
.drawer.left { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--line); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0 } to { transform: none; opacity: 1 } }
.drawer h2 { font-size: calc(36px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: -.01em; }
.drawer .sub { color: var(--muted); font-size: calc(20px * var(--fs, 1)); margin-top: 6px; }
.drawer .body { flex: 1; min-height: 0; margin-top: 26px; }
.fsec { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.fsec h4 { font-size: calc(16px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.fsec .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { display: flex; align-items: center; gap: 16px; height: 62px; padding: 0 18px; border-radius: var(--r); font-size: calc(22px * var(--fs, 1)); font-weight: var(--w5); }
.opt .v { margin-left: auto; color: var(--muted); font-weight: var(--w6); font-size: calc(20px * var(--fs, 1)); }
.opt .v.acc { color: var(--accent); }
.opt .ico { color: var(--muted); }
.opt.sel { color: var(--accent); }
.opt.sel .ico { color: var(--accent); }
.tog { width: 48px; height: 28px; border-radius: 14px; background: var(--line); position: relative; flex: none; margin-left: auto; }
.tog::after { content: ''; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: left .12s; }
.tog.on { background: var(--accent); }
.tog.on::after { left: 24px; background: var(--ink); }
.foot { display: flex; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot .keys { margin-left: auto; color: var(--muted); font-size: calc(18px * var(--fs, 1)); align-self: center; }

.dialog { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 900px; background: var(--s1); border: 1px solid var(--line); border-radius: calc(var(--r) * 2); z-index: 31; padding: 44px 48px 36px; animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) } to { opacity: 1; transform: translate(-50%, -50%) } }
.dialog h2 { font-size: calc(36px * var(--fs, 1)); font-weight: var(--w7); }
.dialog p { color: var(--muted); font-size: calc(22px * var(--fs, 1)); margin-top: 10px; }
.dialog .acts { display: flex; gap: 14px; margin-top: 30px; }
.toast { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 16px 28px; border-radius: var(--r); font-size: calc(22px * var(--fs, 1)); font-weight: var(--w6); z-index: 60; animation: pop2 .14s ease-out; }
@keyframes pop2 { from { opacity: 0; transform: translate(-50%, 10px) } to { opacity: 1; transform: translate(-50%, 0) } }

/* ------------------------------------------------------------ guide */
.guide { position: absolute; inset: 0 64px 40px; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ghead { height: 230px; flex: none; display: grid; grid-template-columns: 1fr 520px; gap: 40px; padding: 26px 0 22px; }
.ghead h3 { font-size: calc(40px * var(--fs, 1)); font-weight: var(--w7); line-height: 1.1; letter-spacing: -.015em; }
.ghead .meta { display: flex; gap: 12px; align-items: center; margin-top: 12px; color: var(--muted); font-size: calc(21px * var(--fs, 1)); font-weight: var(--w5); }
.ghead .desc { margin-top: 12px; color: var(--muted); font-size: calc(21px * var(--fs, 1)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 1100px; }
.ghead .ctl { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.ghead .ctl .row { display: flex; gap: 10px; }
.gbody { flex: 1; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.gruler { height: 52px; flex: none; display: flex; position: relative; }
.gruler .cc { width: 380px; flex: none; display: flex; align-items: center; padding-left: 16px; font-size: calc(19px * var(--fs, 1)); color: var(--muted); font-weight: var(--w6); }
.gruler .tl { flex: 1; position: relative; }
.gruler .tk { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding-left: 10px; font-size: calc(19px * var(--fs, 1)); font-weight: var(--w6); color: var(--muted); border-left: 1px solid var(--line); }
.grows { flex: 1; position: relative; overflow: hidden; }
.grow { display: flex; height: var(--grow); border-top: 1px solid var(--line); }
.grow .gc { width: 380px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.grow .gc .n { width: 52px; text-align: right; font-size: calc(20px * var(--fs, 1)); font-weight: var(--w6); color: var(--muted); }
.grow .gc .nm { font-size: calc(22px * var(--fs, 1)); font-weight: var(--w6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grow.cur .gc { background: var(--s1); }
.grow.cur .gc .nm { color: var(--accent); }
.grow .tl { flex: 1; position: relative; overflow: hidden; }
.cell { position: absolute; top: 4px; bottom: 4px; background: var(--s1); border-radius: 3px; padding: 0 14px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; border-left: 1px solid var(--bg); }
.cell .ct { font-size: calc(21px * var(--fs, 1)); font-weight: var(--w6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell .cs { font-size: calc(17px * var(--fs, 1)); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: var(--w5); }
.cell.past { opacity: .5; }
.cell.past.arch { opacity: .75; }
.cell.now { background: var(--s2); }
.cell.focus { background: var(--accent); color: var(--ink); opacity: 1; }
.cell.focus .cs { color: var(--ink); opacity: .75; }
.cell .mk { display: inline-flex; gap: 6px; align-items: center; }
.nowline { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); z-index: 3; pointer-events: none; }
.nowline::before { content: ''; position: absolute; top: 0; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.gnodata { position: absolute; top: 4px; bottom: 4px; left: 0; right: 0; display: flex; align-items: center; padding-left: 14px; color: var(--muted); font-size: calc(19px * var(--fs, 1)); background: repeating-linear-gradient(90deg, var(--s1) 0 1px, transparent 1px 12px); }

/* ------------------------------------------------------------ vod */
.vod { position: absolute; inset: 0; }
.hero { position: absolute; left: 0; right: 0; top: 0; height: 450px; overflow: hidden; }
.hero .art { position: absolute; right: 0; top: 0; width: 1240px; height: 450px; opacity: .55; }
.hero .pst { position: absolute; right: 64px; top: 18px; width: 220px; height: 330px; border-radius: var(--r); overflow: hidden; outline: 1px solid rgba(255,255,255,.08); }
.hero .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 30%, transparent 60%), linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
.hero .txt { position: absolute; left: 64px; top: 40px; width: 900px; }
.hero h1 { font-size: calc(64px * var(--fs, 1)); line-height: 1.02; font-weight: var(--w8); letter-spacing: -.025em; }
.hero .meta { display: flex; gap: 14px; align-items: center; margin-top: 16px; font-size: calc(22px * var(--fs, 1)); color: var(--muted); font-weight: var(--w6); }
.hero .plot { margin-top: 16px; font-size: calc(23px * var(--fs, 1)); color: var(--muted); max-width: 820px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vodrows { position: absolute; left: 0; right: 0; top: 450px; bottom: 0; overflow: hidden; }
.vodbar { position: absolute; left: 64px; right: 64px; top: 380px; display: flex; gap: 10px; z-index: 2; }
.vrow { margin-bottom: 26px; }
.vrow h3 { font-size: calc(24px * var(--fs, 1)); font-weight: var(--w7); padding: 0 64px 12px; display: flex; gap: 12px; align-items: baseline; }
.vrow h3 span { color: var(--muted); font-size: calc(19px * var(--fs, 1)); font-weight: var(--w5); }
.vtrack { display: flex; gap: 22px; padding: 20px 64px 18px; }
.poster { flex: none; width: 196px; height: 294px; border-radius: var(--r); position: relative; overflow: hidden; transition: transform .14s ease-out, outline-color .12s; }
.poster.is-focus { transform: scale(1.07); background: transparent !important; outline-width: 3px; outline-offset: 3px; z-index: 2; }
.poster .pp { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(0,0,0,.4); }
.poster .pp i { display: block; height: 100%; background: var(--accent); }
.poster .pq { position: absolute; top: 10px; right: 10px; }
.art-c { position: absolute; inset: 0; overflow: hidden; }
.art-c .t { position: absolute; left: 8%; right: 8%; bottom: 8%; font-weight: var(--w8); text-transform: uppercase; letter-spacing: -.01em; line-height: .95; }
.art-c .y { position: absolute; left: 8%; top: 6%; font-weight: var(--w7); letter-spacing: .12em; opacity: .8; }
.vgrid { display: grid; grid-template-columns: repeat(8, 196px); gap: 30px 26px; padding: 14px 64px; }

.detail { position: absolute; inset: 0; }
.detail .art { position: absolute; right: 0; top: 0; width: 1240px; height: 968px; opacity: .6; }
.detail .pst { position: absolute; right: 64px; top: 40px; width: 300px; height: 450px; border-radius: var(--r); overflow: hidden; outline: 1px solid rgba(255,255,255,.08); }
.detail .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 38%, color-mix(in srgb, var(--bg) 30%, transparent) 75%), linear-gradient(0deg, var(--bg) 0%, transparent 50%); }
.detail .txt { position: absolute; left: 64px; top: 60px; width: 1000px; }
.detail h1 { font-size: calc(76px * var(--fs, 1)); line-height: 1; font-weight: var(--w8); letter-spacing: -.03em; }
.detail .meta { display: flex; gap: 14px; align-items: center; margin-top: 20px; font-size: calc(23px * var(--fs, 1)); color: var(--muted); font-weight: var(--w6); flex-wrap: wrap; }
.detail .plot { margin-top: 22px; font-size: calc(25px * var(--fs, 1)); line-height: 1.45; color: var(--text); opacity: .86; max-width: 880px; }
.detail .credits { margin-top: 18px; font-size: calc(21px * var(--fs, 1)); color: var(--muted); }
.detail .credits b { color: var(--text); font-weight: var(--w6); }
.detail .acts { display: flex; gap: 14px; margin-top: 34px; }
.seasons { display: flex; gap: 8px; margin-top: 30px; }
.eplist { position: absolute; left: 64px; right: 64px; top: 470px; bottom: 30px; }
.ep { display: grid; grid-template-columns: 220px 1fr 140px; gap: 24px; align-items: center; height: 128px; padding: 0 18px 0 0; border-radius: var(--r); }
.ep .th { width: 220px; height: 124px; border-radius: var(--r); position: relative; overflow: hidden; }
.ep .th .pp { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(0,0,0,.4); }
.ep .th .pp i { display: block; height: 100%; background: var(--accent); }
.ep .et { font-size: calc(24px * var(--fs, 1)); font-weight: var(--w6); }
.ep .ed { font-size: calc(19px * var(--fs, 1)); color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep .er { text-align: right; font-size: calc(19px * var(--fs, 1)); color: var(--muted); font-weight: var(--w6); }
.ep .er .ico { color: var(--accent); }

/* ------------------------------------------------------------ search */
.search { position: absolute; inset: 0 64px 40px; display: grid; grid-template-columns: 560px 1fr; gap: 48px; border-top: 1px solid var(--line); padding-top: 36px; }
.qbox { height: 76px; border-bottom: 2px solid var(--accent); font-size: calc(36px * var(--fs, 1)); font-weight: var(--w6); display: flex; align-items: center; gap: 14px; }
.qbox .ph { color: var(--muted); font-weight: var(--w5); }
.qbox .caret { width: 2px; height: 40px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0 } }
.kb { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 28px; }
.key { height: 66px; border-radius: var(--r); background: var(--s1); display: flex; align-items: center; justify-content: center; font-size: calc(26px * var(--fs, 1)); font-weight: var(--w6); }
.key.w2 { grid-column: span 2; font-size: calc(20px * var(--fs, 1)); } .key.w3 { grid-column: span 3; font-size: calc(20px * var(--fs, 1)); }
.key.is-focus { transform: scale(1.06); }
.sres h3 { font-size: calc(24px * var(--fs, 1)); font-weight: var(--w7); margin: 0 0 12px; display: flex; gap: 10px; align-items: baseline; }
.sres h3 span { color: var(--muted); font-size: calc(19px * var(--fs, 1)); font-weight: var(--w5); }
.sres .strack { display: flex; gap: 18px; padding: 8px 4px 22px; }
.schip { flex: none; display: flex; align-items: center; gap: 14px; height: 72px; padding: 0 22px 0 12px; border-radius: var(--r); background: var(--s1); font-size: calc(22px * var(--fs, 1)); font-weight: var(--w6); }
.recent { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* ------------------------------------------------------------ settings */
.settings { position: absolute; inset: 0 64px 40px; display: grid; grid-template-columns: 420px 1fr; border-top: 1px solid var(--line); }
.snav { padding: 28px 24px 0 0; border-right: 1px solid var(--line); }
.snav .opt { font-weight: var(--w6); color: var(--muted); }
.snav .opt.sel { color: var(--accent); background: var(--s1); }
.snav .opt.is-focus { color: var(--text); }
.spane { padding: 28px 0 0 48px; min-height: 0; display: flex; flex-direction: column; }
.spane h2 { font-size: calc(34px * var(--fs, 1)); font-weight: var(--w7); margin-bottom: 6px; }
.spane .lead { color: var(--muted); font-size: calc(21px * var(--fs, 1)); margin-bottom: 22px; }
.themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.themes.colour { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tcard { border-radius: calc(var(--r) * 1.5); padding: 14px; border: 1px solid var(--line); background: var(--s1); position: relative; min-width: 0; }
.tcard.compact { padding: 12px; }
.tcard.compact .tmini { height: 96px; }
.tcard.compact .tmini .a { gap: 6px; }
.tcard.compact .tmini .a i { height: 6px; }
.tcard.compact .tmini .b { padding: 8px; gap: 6px; }
.tcard.compact .tmini .b i { height: 14px; }
.tcard.compact .tmini .smp { font-size: 16px; }
.tcard.compact .tname { margin-top: 8px; font-size: calc(19px * var(--fs, 1)); }
.tcard.sel, .fcard.sel { border: 2px solid var(--accent); padding: 13px; }
.tcard.compact.sel { padding: 11px; }
[data-sk="pane:app"] { margin-left: -14px; padding: 8px 18px 0 14px; }
.tcard.is-focus { transform: scale(1.03); background: transparent !important; outline-width: 3px; outline-offset: 2px; }
.tmini { height: 128px; border-radius: 4px; display: grid; grid-template-columns: 30% 1fr; overflow: hidden; border: 1px solid; }
.tmini .a { border-right: 1px solid; padding: 10px 8px; display: flex; flex-direction: column; gap: 7px; }
.tmini .a i { height: 8px; border-radius: 2px; display: block; }
.tmini .b { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.tmini .b i { height: 18px; border-radius: 2px; display: block; }
.tname { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: calc(21px * var(--fs, 1)); font-weight: var(--w6); }
.tname .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ckb { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.ckb .ico { width: 17px; height: 17px; }
.plock { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--s1); color: var(--muted); font-size: calc(13px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: .06em; font-family: 'Figtree', sans-serif; }
.plock .ico { width: 15px; height: 15px; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; margin-left: -14px; }
.swc { width: 92px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.swc span { font-size: calc(15px * var(--fs, 1)); color: var(--muted); font-weight: var(--w5); white-space: nowrap; }
.swc span.on { color: var(--text); font-weight: var(--w7); }
.sw { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); position: relative; margin-top: 4px; }
.sw.sel { border: 2px solid var(--text); }
.sw.is-focus { transform: scale(1.12); outline-offset: 3px; outline-width: 3px; }
.sw.sel::after { content: ''; position: absolute; inset: 16px; border-radius: 50%; background: var(--bg); }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.acct { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 6px 0 18px; }
.acct > div { background: var(--s1); padding: 16px 20px; }
.acct .k { font-size: calc(16px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.acct .v { font-size: calc(26px * var(--fs, 1)); font-weight: var(--w6); margin-top: 4px; }
.acct .v.ok { color: var(--accent); }
.plcard { display: flex; align-items: center; gap: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; }
.plcard .t { font-size: calc(24px * var(--fs, 1)); font-weight: var(--w6); }
.plcard .s { font-size: calc(19px * var(--fs, 1)); color: var(--muted); margin-top: 2px; }
.plcard .r { margin-left: auto; text-align: right; color: var(--muted); font-size: calc(19px * var(--fs, 1)); }
.diag { font-size: calc(18px * var(--fs, 1)); line-height: 1.6; color: var(--muted); background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; }
.diag b { color: var(--text); font-weight: var(--w6); }
.keytable { display: grid; grid-template-columns: 220px 1fr 1fr; border-top: 1px solid var(--line); font-size: calc(20px * var(--fs, 1)); }
.keytable > div { padding: 12px 10px; border-bottom: 1px solid var(--line); }
.keytable .h { font-size: calc(15px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kbd { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; font-size: calc(17px * var(--fs, 1)); font-weight: var(--w7); background: var(--s1); }

/* inputs / wizard */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: calc(16px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field .inp { height: 62px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); display: flex; align-items: center; padding: 0 18px; font-size: calc(23px * var(--fs, 1)); font-weight: var(--w5); }
.field .inp input { all: unset; width: 100%; font: inherit; color: var(--text); }
.field .inp .ph { color: var(--muted); }
.steps { margin-top: 10px; }
.step { display: flex; align-items: center; gap: 14px; height: 50px; font-size: calc(22px * var(--fs, 1)); color: var(--muted); }
.step.done { color: var(--text); }
.step.done .dot { background: var(--accent); border-color: var(--accent); }
.step .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); }
.step.run .dot { border-color: var(--accent); animation: pulse .8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.4) } }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ------------------------------------------------------------ player */
.player { position: absolute; inset: 0; background: #000; z-index: 10; }
.player canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.player.fill canvas { transform: scale(1.12); }
.player.ar43 canvas { left: 240px; right: 240px; width: auto; }
.player.zoom canvas { transform: scale(1.3); }
.osd { position: absolute; left: 64px; right: 64px; bottom: 40px; background: var(--s1); border: 1px solid var(--line); border-radius: calc(var(--r) * 1.5); display: grid; grid-template-columns: 180px 1fr 380px; animation: osdin .16s ease-out; z-index: 12; overflow: hidden; }
@keyframes osdin { from { transform: translateY(24px); opacity: 0 } to { transform: none; opacity: 1 } }
.osd .l { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border-right: 1px solid var(--line); padding: 22px 0; }
.osd .l .num { font-size: calc(40px * var(--fs, 1)); font-weight: var(--w7); }
.osd .l .logo { width: 104px; height: 70px; font-size: calc(26px * var(--fs, 1)); }
.osd .m { padding: 24px 32px; min-width: 0; }
.osd .m .chn { font-size: calc(22px * var(--fs, 1)); font-weight: var(--w6); color: var(--muted); display: flex; gap: 10px; align-items: center; }
.osd .m h3 { font-size: calc(38px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: -.01em; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osd .m .pr { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-top: 12px; font-size: calc(20px * var(--fs, 1)); color: var(--muted); font-weight: var(--w6); }
.osd .m .nx { margin-top: 14px; font-size: calc(21px * var(--fs, 1)); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osd .m .nx b { color: var(--text); font-weight: var(--w6); }
.osd .r { border-left: 1px solid var(--line); padding: 24px 28px; display: flex; flex-direction: column; justify-content: space-between; }
.osd .r .clock { font-size: calc(44px * var(--fs, 1)); font-weight: var(--w7); text-align: right; }
.osd .r .bd { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.osd .r .keys { font-size: calc(17px * var(--fs, 1)); color: var(--muted); text-align: right; line-height: 1.6; }
.numentry { position: absolute; top: 48px; right: 64px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 28px; z-index: 14; text-align: right; }
.numentry .d { font-size: calc(72px * var(--fs, 1)); font-weight: var(--w7); line-height: 1; letter-spacing: .02em; }
.numentry .n { font-size: calc(20px * var(--fs, 1)); color: var(--muted); font-weight: var(--w6); margin-top: 6px; max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pstatus { position: absolute; top: 48px; left: 50%; transform: translateX(-50%); background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 26px; font-size: calc(22px * var(--fs, 1)); font-weight: var(--w6); z-index: 14; display: flex; align-items: center; gap: 14px; }
.pstatus .spinner { width: 26px; height: 26px; border-width: 3px; }
.pcenter { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; z-index: 11; color: #fff; text-align: center; }
.pcenter h2 { font-size: calc(40px * var(--fs, 1)); font-weight: var(--w7); }
.pcenter p { font-size: calc(23px * var(--fs, 1)); color: #aab0b8; }
.stats { position: absolute; top: 48px; left: 64px; width: 560px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 26px; z-index: 13; font-size: calc(19px * var(--fs, 1)); }
.stats h4 { font-size: calc(16px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.stats .kv { display: grid; grid-template-columns: 200px 1fr; padding: 5px 0; border-bottom: 1px solid var(--line); }
.stats .kv span:first-child { color: var(--muted); font-weight: var(--w6); }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 44px; margin-top: 12px; }
.spark i { flex: 1; background: var(--accent); opacity: .8; border-radius: 1px 1px 0 0; }
.ovl { position: absolute; top: 0; bottom: 0; left: 0; width: 760px; background: var(--s1); border-right: 1px solid var(--line); z-index: 15; display: flex; flex-direction: column; animation: slidel .16s ease-out; }
.ovl.wide { width: 1100px; display: grid; grid-template-columns: 340px 1fr; }
@keyframes slidel { from { transform: translateX(-40px); opacity: 0 } to { transform: none; opacity: 1 } }
.ovl .colhead { padding: 36px 28px 0; height: 110px; }
.ovl .rows { flex: 1; min-height: 0; padding: 0 16px 30px; }
.pmenu { position: absolute; top: 0; bottom: 0; right: 0; width: 640px; background: var(--s1); border-left: 1px solid var(--line); z-index: 15; padding: 44px 40px 30px; display: flex; flex-direction: column; animation: slidein .16s ease-out; }
.pmenu h2 { font-size: calc(32px * var(--fs, 1)); font-weight: var(--w7); }
.pmenu .sub { color: var(--muted); font-size: calc(19px * var(--fs, 1)); margin: 4px 0 18px; }
.vodctl { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 64px 48px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); z-index: 12; color: #fff; animation: osdin .16s ease-out; }
.vodctl h3 { font-size: calc(40px * var(--fs, 1)); font-weight: var(--w7); }
.vodctl .sub { font-size: calc(22px * var(--fs, 1)); color: #b9bec6; margin-top: 4px; }
.seek { position: relative; height: 6px; background: rgba(255,255,255,.25); border-radius: 3px; margin-top: 26px; }
.seek i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 3px; }
.seek b { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; }
.seek .buf { background: rgba(255,255,255,.35); }
.vodctl .tm { display: flex; justify-content: space-between; margin-top: 12px; font-size: calc(21px * var(--fs, 1)); font-weight: var(--w6); color: #d6dae0; }
.vodctl .acts { display: flex; gap: 12px; margin-top: 22px; }
.upnext { position: absolute; right: 64px; bottom: 220px; width: 520px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; z-index: 13; }
.upnext .k { font-size: calc(16px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.upnext .t { font-size: calc(26px * var(--fs, 1)); font-weight: var(--w7); margin-top: 6px; }
.badgeMuted { position: absolute; top: 48px; right: 64px; z-index: 14; }

/* boot */
.boot { position: absolute; inset: 0; z-index: 80; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 28px; transition: opacity .3s; }
.boot .wm { font-size: calc(72px * var(--fs, 1)); font-weight: var(--w8); letter-spacing: -.03em; display: flex; align-items: center; gap: 20px; }
.boot .wm i { width: 96px; height: 96px; display: block; }
.boot .bl { width: 320px; }
.boot .msg { color: var(--muted); font-size: calc(22px * var(--fs, 1)); }

.grows[data-f] { outline: none !important; background: transparent !important; }
.pcenter > .ico { width: 56px; height: 56px; }
.pvvid .state .ico { width: 40px; height: 40px; }

/* ---- Live TV guide layout (TiviMate style) */
.lgrid { min-width: 0; }
.lghead { height: 280px; flex: none; display: grid; grid-template-columns: 1fr 448px; gap: 32px; padding: 22px 0 20px 28px; border-bottom: 1px solid var(--line); }
.lghead .pvinfo { padding: 0; gap: 8px; min-width: 0; height: 100%; }
.lghead .pvinfo h3 { font-size: calc(34px * var(--fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lghead .pvinfo .desc { -webkit-line-clamp: 2; }
.lghead .pvvid { width: 448px; height: 252px; }
.lgrid .gruler .cc { width: 400px; gap: 10px; padding-left: 20px; padding-right: 12px; }
.lgcat { flex: 1; font-size: calc(20px * var(--fs, 1)); font-weight: var(--w7); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.sm { height: 38px; padding: 0 12px; font-size: calc(17px * var(--fs, 1)); }
.lgrid .grows { flex: 1; }
.lgrid .grow .gc { width: 400px; gap: 12px; padding: 0 14px 0 8px; }
.lgrid .grow .gc .n { width: 46px; display: flex; justify-content: flex-end; }
.lgrid .grow .gc .nm { flex: 1; min-width: 0; }
.lgrid .grow .gc .logo { width: 56px; height: 38px; font-size: calc(15px * var(--fs, 1)); }
.grow .gc.cf { background: var(--s2) !important; outline: 2px solid var(--accent); outline-offset: -2px; }
.grow.cur .gc { background: var(--s1); }
.grow.playing .gc .nm { color: var(--accent); }
.cell .cp { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); opacity: .9; }
.cell.focus .cp { background: var(--ink); }
.lgscroll { position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: var(--line); }
.lgscroll i { position: absolute; left: 0; right: 0; background: var(--muted); border-radius: 2px; }

/* ---- Movies / Series: categories | grid */
.vright { min-width: 0; }
.vinfo { height: 176px; flex: none; padding: 24px 0 0 32px; display: flex; flex-direction: column; gap: 8px; }
.vinfo h3 { font-size: calc(36px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vinfo .meta { display: flex; gap: 10px; align-items: center; font-size: calc(20px * var(--fs, 1)); color: var(--muted); font-weight: var(--w6); }
.vinfo .desc { font-size: calc(21px * var(--fs, 1)); color: var(--muted); max-width: 1100px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vbar { height: 72px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 0 0 32px; border-top: 1px solid var(--line); }
.vbar h2 { font-size: calc(26px * var(--fs, 1)); font-weight: var(--w7); white-space: nowrap; }
.vbar .count { color: var(--muted); font-size: calc(20px * var(--fs, 1)); font-weight: var(--w5); }
.vbar .sp { flex: 1; }
.vgrid2 { display: grid; grid-template-columns: repeat(6, 196px); gap: 34px 30px; padding: 20px 0 10px 40px; }

/* ================================================================ theme packs */
#tv { font-size-adjust: var(--fsa, none); }
#tv.font-rajdhani { --fsa: 0.53; }
#tv.font-oswald, #tv.font-saira { letter-spacing: .01em; }

/* settings: font cards + theme tags */
.fonts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.fonts.w4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fcard { border: 1px solid var(--line); border-radius: calc(var(--r) * 1.5); padding: 10px 12px 12px 16px; min-width: 0; background: var(--s1); }
.fcard.sel { padding: 9px 11px 11px 15px; }
.fcard.is-focus { transform: scale(1.03); }
.fcard .ftop { display: flex; align-items: flex-start; gap: 6px; }
.fcard .ftop .fa { flex: 1; }
.fcard .ftop .ckb { width: 24px; height: 24px; }
.fcard .fa { font-size: calc(44px * var(--fs, 1)); line-height: 1.15; letter-spacing: -.01em; }
.fcard .fn { font-size: calc(20px * var(--fs, 1)); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard .fs { font-size: calc(15px * var(--fs, 1)); color: var(--muted); font-weight: var(--w5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tname .tg { display: block; font-size: calc(15px * var(--fs, 1)); color: var(--muted); font-weight: var(--w5); margin-top: 2px; min-height: 1.2em; overflow: hidden; text-overflow: ellipsis; }
.tmini .smp { font-size: 20px; line-height: 1; white-space: nowrap; overflow: hidden; }

/* ---- Windows 11 (Fluent): rounded, white focus ring, accent pills */
.th-win11 .is-focus { outline: 2px solid #FFFFFF !important; outline-offset: 1px; box-shadow: inset 0 0 0 1px #000; }
.th-win11 .tab.active::after { width: 18px; height: 3px; border-radius: 2px; margin: 6px auto 0; }
.th-win11 .cat.sel, .th-win11 .snav .opt.sel { position: relative; }
.th-win11 .cat.sel::before, .th-win11 .snav .opt.sel::before { content: ''; position: absolute; left: 6px; top: 50%; width: 3px; height: 18px; margin-top: -9px; border-radius: 2px; background: var(--accent); }
.th-win11 .btn.primary.is-focus, .th-win11 .chip.on.is-focus { outline-color: #FFFFFF !important; }

/* ---- PlayStation 5: deep blue backdrop, thick white focus, big card lift */
#tv.th-ps5 { background: linear-gradient(180deg, #00174A 0%, #000C26 46%, #00081C 100%); }
.th-ps5 .col + .col, .th-ps5 .livescr, .th-ps5 .settings, .th-ps5 .guide, .th-ps5 .search { border-color: rgba(255,255,255,.08); }
.th-ps5 .is-focus { outline: 3px solid #FFFFFF !important; outline-offset: 0; }
.th-ps5 .poster.is-focus, .th-ps5 .tcard.is-focus, .th-ps5 .fcard.is-focus { transform: scale(1.1); outline-offset: 4px; }
.th-ps5 .tab { font-weight: var(--w4); }
.th-ps5 .tab.active { font-weight: var(--w7); }
.th-ps5 .tab.active::after { display: block; width: 28px; height: 3px; border-radius: 2px; margin: 6px auto 0; background: #FFFFFF; }
.th-ps5 .wordmark { font-weight: var(--w5); letter-spacing: .02em; }

/* ---- Xbox: green filled focus tiles */
.th-xbox .is-focus:not(.poster):not(.tcard):not(.fcard):not(.sw):not(.grows) { background: var(--accent) !important; color: var(--ink) !important; outline-color: transparent !important; }
.th-xbox .is-focus:not(.poster):not(.grows) :is(.muted, .ct, .v, .ico, .num, .l2, .nm, .badge) { color: var(--ink) !important; border-color: var(--ink) !important; }
.th-xbox .poster.is-focus, .th-xbox .tcard.is-focus, .th-xbox .fcard.is-focus { outline: 4px solid var(--accent) !important; outline-offset: 2px; }
.th-xbox .grow .gc.cf { background: var(--accent) !important; color: var(--ink); outline-color: transparent; }
.th-xbox .grow .gc.cf .nm, .th-xbox .grow .gc.cf .n, .th-xbox .grow .gc.cf .badge { color: var(--ink) !important; border-color: var(--ink); }
.th-xbox .tab.active::after { height: 3px; }

/* ---- Cyberpunk: caps, hard offset shadows, chamfered buttons */
.th-cyber .colhead h2, .th-cyber .tab, .th-cyber .drawer h2, .th-cyber .vbar h2, .th-cyber .spane h2, .th-cyber .ghead h3, .th-cyber .wordmark, .th-cyber .dialog h2, .th-cyber .pmenu h2 { text-transform: uppercase; letter-spacing: .06em; }
.th-cyber .is-focus { outline: 2px solid var(--accent) !important; box-shadow: 5px 5px 0 #00F0FF; }
.th-cyber .grows.is-focus { box-shadow: none; }
.th-cyber .grow .gc.cf { box-shadow: 4px 4px 0 #00F0FF; }
.th-cyber .btn.primary, .th-cyber .badge.live, .th-cyber .chip.on { clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.th-cyber .btn.primary.is-focus, .th-cyber .chip.on.is-focus { box-shadow: none; outline-color: transparent !important; background: #00F0FF !important; color: #001A1C; }
.th-cyber .livescr, .th-cyber .settings, .th-cyber .guide, .th-cyber .search { border-top-color: #00F0FF; }
.th-cyber .tab.active::after { background: #FF003C; }
.th-cyber .cell.now { background: #1F1A33; }
.th-cyber .nowline, .th-cyber .nowline::before { background: #FF003C; }
.th-cyber .catlabel, .th-cyber .fsec h4 { color: #00F0FF; }

/* ---- Japanese: airy spacing, hinomaru mark, red square section markers */
.th-jp .colhead h2, .th-jp .spane h2, .th-jp .drawer h2, .th-jp .vbar h2 { letter-spacing: .05em; }
.th-jp .wordmark { letter-spacing: .08em; }
.th-jp .wordmark i svg { display: none; }
.th-jp .wordmark i { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); }
.th-jp .catlabel::before, .th-jp .fsec h4::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--accent); margin-right: 10px; vertical-align: 2px; }
.th-jp .is-focus { outline-width: 1.5px !important; }
.th-jp .tab.active::after { height: 1.5px; }

/* ---- American: condensed caps, star mark, red/white stripe rule */
.th-usa .tab, .th-usa .colhead h2, .th-usa .vbar h2, .th-usa .spane h2, .th-usa .drawer h2, .th-usa .wordmark, .th-usa .catlabel, .th-usa .fsec h4, .th-usa .btn { text-transform: uppercase; letter-spacing: .04em; }
.th-usa .wordmark i svg { display: none; }
.th-usa .wordmark i { display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: calc(30px * var(--fs, 1)); line-height: 1; }
.th-usa .wordmark i::before { content: '★'; }
.th-usa .top::after { content: ''; position: absolute; left: 64px; right: 64px; bottom: -1px; height: 3px; background: repeating-linear-gradient(90deg, var(--accent) 0 28px, #FFFFFF 28px 56px); z-index: 1; }
.th-usa .livescr, .th-usa .settings, .th-usa .guide, .th-usa .search { border-top-color: transparent; }

/* ---- Synthwave: night gradient, pink/cyan hard shadows */
#tv.th-synth { background: linear-gradient(180deg, #24104A 0%, #150A2B 45%, #0E061C 100%); }
.th-synth .is-focus { box-shadow: 4px 4px 0 #2DE2E6; }
.th-synth .grows.is-focus { box-shadow: none; }
.th-synth .tab.active::after { background: linear-gradient(90deg, #FF4FD8, #2DE2E6); }
.th-synth .nowline, .th-synth .nowline::before { background: #2DE2E6; }

/* ---- Nordic: soft, calm */
.th-nordic .is-focus { box-shadow: 0 0 0 1px var(--accent); }
.th-nordic .grows.is-focus { box-shadow: none; }

/* ---- Swiss: strict black focus, red markers, caps labels */
.th-swiss .is-focus { outline-color: #0A0A0A !important; outline-width: 3px !important; }
.th-swiss .tab.active::after { height: 4px; }
.th-swiss .catlabel, .th-swiss .fsec h4, .th-swiss .badge { letter-spacing: .12em; }
.th-swiss .wordmark { text-transform: uppercase; letter-spacing: .02em; }

/* the live/guide grid is one focus target with its own cursor: never outline the whole grid */
#tv .grows.is-focus { outline: none !important; box-shadow: none !important; background: transparent !important; }

/* ================================================================ depth: tiles float above the page
   Uses :where() so theme packs (cyber/synth offset shadows, Xbox fill) keep priority. */
#tv { --sh: 0, 0, 0; --sha: 1; --hl: rgba(255,255,255,.07); }
#tv.is-light { --sh: 40, 48, 64; --sha: .45; --hl: rgba(255,255,255,.9); }

/* resting tiles: lit top edge, soft contact shadow, slight body shading */
:where(#tv.depth-float, #tv.depth-deep) :where(.poster, .tcard, .fcard, .btn, .chip, .key, .schip, .plcard, .cell, .logo, .ep .th, .sw) {
  box-shadow: inset 0 1px 0 var(--hl), 0 1px 0 rgba(var(--sh), calc(.35 * var(--sha))), 0 8px 16px -8px rgba(var(--sh), calc(.6 * var(--sha)));
}
:where(#tv.depth-float, #tv.depth-deep) :where(.cell, .btn:not(.primary), .chip:not(.on), .key, .schip, .plcard, .tcard, .fcard) {
  background-image: linear-gradient(180deg, rgba(255,255,255,.035), rgba(0,0,0,.07));
}
:where(#tv.depth-float, #tv.depth-deep) :where(.cat, .opt, .ch, .ep, .grow .gc) { transition: transform .14s ease-out, box-shadow .14s ease-out, background .12s; }
:where(#tv.depth-float, #tv.depth-deep) :where(.cell, .poster, .tcard, .fcard, .btn, .chip, .key, .schip, .plcard) { transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s ease-out, background .12s, outline-color .12s; }

/* focused: lifts off the page with a long shadow underneath */
:where(#tv.depth-float, #tv.depth-deep) :where(.is-focus, .cell.focus, .grow .gc.cf) {
  box-shadow: inset 0 1px 0 var(--hl), 0 2px 4px rgba(var(--sh), calc(.35 * var(--sha))), 0 18px 32px -12px rgba(var(--sh), calc(.75 * var(--sha)));
  transform: translateY(-3px) scale(1.03);
  position: relative; z-index: 3;
}
:where(#tv.depth-float, #tv.depth-deep) :where(.cell.focus) { transform: translateY(-2px); z-index: 4; }
:where(#tv.depth-float, #tv.depth-deep) :where(.grow .gc.cf) { transform: translateX(4px); }
:where(#tv.depth-float, #tv.depth-deep) :where(.poster.is-focus, .tcard.is-focus, .fcard.is-focus, .schip.is-focus) {
  transform: perspective(900px) translateY(-10px) rotateX(5deg) scale(1.07);
  box-shadow: inset 0 1px 0 var(--hl), 0 4px 8px rgba(var(--sh), calc(.4 * var(--sha))), 0 32px 44px -18px rgba(var(--sh), calc(.85 * var(--sha)));
}
/* light sweep across the top of a focused poster: feels like a card catching the light */
:where(#tv.depth-float, #tv.depth-deep) .poster.is-focus::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 38%); pointer-events: none; z-index: 3; }
:where(#tv.depth-float, #tv.depth-deep) :where(.grows.is-focus) { transform: none; box-shadow: none; }

/* floating panels */
:where(#tv.depth-float, #tv.depth-deep) :where(.pvvid, .osd, .numentry, .pstatus, .stats, .upnext, .dialog, .toast) {
  box-shadow: inset 0 1px 0 var(--hl), 0 2px 6px rgba(var(--sh), calc(.4 * var(--sha))), 0 30px 60px -20px rgba(var(--sh), calc(.85 * var(--sha)));
}
:where(#tv.depth-float, #tv.depth-deep) :where(.drawer, .pmenu) { box-shadow: -30px 0 60px -20px rgba(var(--sh), calc(.8 * var(--sha))); }
:where(#tv.depth-float, #tv.depth-deep) :where(.ovl, .drawer.left) { box-shadow: 30px 0 60px -20px rgba(var(--sh), calc(.8 * var(--sha))); }
:where(#tv.depth-float, #tv.depth-deep) :where(.cat.sel, .snav .opt.sel) { box-shadow: inset 0 1px 0 var(--hl), 0 6px 14px -8px rgba(var(--sh), calc(.6 * var(--sha))); }

/* deep: everything lifts further */
:where(#tv.depth-deep) :where(.is-focus, .grow .gc.cf) { transform: translateY(-5px) scale(1.05); box-shadow: inset 0 1px 0 var(--hl), 0 3px 6px rgba(var(--sh), calc(.4 * var(--sha))), 0 26px 44px -14px rgba(var(--sh), calc(.9 * var(--sha))); }
:where(#tv.depth-deep) :where(.poster.is-focus, .tcard.is-focus, .fcard.is-focus) { transform: perspective(800px) translateY(-14px) rotateX(7deg) scale(1.09); box-shadow: inset 0 1px 0 var(--hl), 0 6px 10px rgba(var(--sh), calc(.45 * var(--sha))), 0 44px 56px -20px rgba(var(--sh), .95); }
:where(#tv.depth-deep) :where(.poster, .cell, .tcard, .fcard, .btn, .chip, .key) { box-shadow: inset 0 1px 0 var(--hl), 0 2px 0 rgba(var(--sh), calc(.45 * var(--sha))), 0 12px 22px -10px rgba(var(--sh), calc(.75 * var(--sha))); }


/* transforms need real specificity to beat the base focus scale rules */
#tv:is(.depth-float, .depth-deep) .is-focus:not(.grows) { transform: translateY(-3px) scale(1.03); }
#tv:is(.depth-float, .depth-deep) .cell.focus { transform: translateY(-2px); }
#tv:is(.depth-float, .depth-deep) .grow .gc.cf { transform: translateX(4px); }
#tv:is(.depth-float, .depth-deep) :is(.poster, .tcard, .fcard, .schip).is-focus { transform: perspective(900px) translateY(-10px) rotateX(5deg) scale(1.07); }
#tv.depth-deep .is-focus:not(.grows) { transform: translateY(-5px) scale(1.05); }
#tv.depth-deep :is(.poster, .tcard, .fcard, .schip).is-focus { transform: perspective(800px) translateY(-14px) rotateX(7deg) scale(1.09); }
#tv.th-ps5:is(.depth-float, .depth-deep) :is(.poster, .tcard, .fcard).is-focus { transform: perspective(900px) translateY(-12px) rotateX(5deg) scale(1.1); }
#tv.th-cyber:is(.depth-float, .depth-deep) .is-focus:not(.grows):not(.poster):not(.tcard):not(.fcard) { transform: translate(-3px, -3px); }
#tv.th-synth:is(.depth-float, .depth-deep) .is-focus:not(.grows):not(.poster):not(.tcard):not(.fcard) { transform: translate(-2px, -3px); }
#tv.depth-flat .poster.is-focus::after { display: none; }
@media (prefers-reduced-motion: reduce) { #tv * { transition: none !important; } }
#tv .grows.is-focus { transform: none !important; }

/* ---- Pro */
.lockpro { position: absolute; top: 10px; right: 10px; z-index: 4; height: 22px; padding: 0 7px; border-radius: 3px; background: var(--accent); color: var(--ink); font-size: calc(13px * var(--fs, 1)); font-weight: var(--w8); letter-spacing: .08em; display: inline-flex; align-items: center; font-family: 'Figtree', sans-serif; }
.lockpro.inl { position: static; margin-left: 4px; }
.tcard, .fcard { position: relative; }
.dialog.pro { width: 1060px; }
.prohead { display: flex; align-items: center; gap: 16px; }
.probadge { height: 32px; padding: 0 12px; border-radius: 4px; background: var(--accent); color: var(--ink); font-weight: var(--w8); letter-spacing: .1em; font-size: calc(17px * var(--fs, 1)); display: inline-flex; align-items: center; }
.profeat { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; margin-top: 24px; }
.profeat.wide { margin-top: 6px; }
.profeat > div { display: flex; gap: 14px; align-items: flex-start; }
.profeat .ico { color: var(--accent); flex: none; margin-top: 3px; }
.profeat b { display: block; font-size: calc(22px * var(--fs, 1)); font-weight: var(--w6); }
.profeat i { display: block; font-style: normal; font-size: calc(18px * var(--fs, 1)); color: var(--muted); margin-top: 2px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.plan { position: relative; border: 1px solid var(--line); border-radius: calc(var(--r) * 2); padding: 22px 24px; background: var(--bg); }
.plan.best { border-color: var(--accent); }
.plan .pn { font-size: calc(20px * var(--fs, 1)); font-weight: var(--w6); color: var(--muted); }
.plan .pp { font-size: calc(56px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: -.02em; margin-top: 4px; }
.plan .pd { font-size: calc(19px * var(--fs, 1)); color: var(--muted); }
.plan .pt { position: absolute; top: 18px; right: 18px; font-size: calc(14px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.qrrow { display: flex; gap: 28px; align-items: center; margin-top: 24px; }
.qr { width: 180px; height: 180px; flex: none; padding: 0; border-radius: 6px; overflow: hidden; }
.qr svg { width: 100%; height: 100%; display: block; }

/* ---- real media */
.art-c.img { background: #000; }
.art-c.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo.svg { background: transparent; padding: 0; }
.logo.svg svg { width: 100%; height: 100%; display: block; border-radius: 3px; }

/* ---- VPN & network */
.top .vpnind { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 9px; border: 1px solid var(--accent); border-radius: var(--r); color: var(--accent); font-size: calc(17px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: .08em; }
.top .vpnind .ico { width: 20px; height: 20px; }
.spinner.sm { width: 20px; height: 20px; border-width: 2px; display: inline-block; flex: none; vertical-align: middle; }
.is-light .spinner { border-color: rgba(0,0,0,.14); border-top-color: var(--accent); }
.is-light :is(.pcenter, .player) .spinner { border-color: rgba(255,255,255,.22); border-top-color: var(--accent); }
.vstat { display: grid; grid-template-columns: 68px 1fr auto; align-items: start; gap: 24px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); margin-bottom: 10px; }
.vstat.on { border-color: var(--accent); }
.vsico { width: 68px; height: 68px; border-radius: var(--r); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); background: var(--bg); flex: none; }
.vsico.on { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.vsico .ico { width: 34px; height: 34px; }
.vst { font-size: calc(30px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: -.01em; line-height: 1.15; }
.vss { font-size: calc(19px * var(--fs, 1)); color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.vsip { font-size: calc(21px * var(--fs, 1)); margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 30px; }
.vsip b { font-weight: var(--w7); }
.vsip .muted { font-size: calc(18px * var(--fs, 1)); }
.vstat > .btn { align-self: center; }
.vnote { display: flex; align-items: flex-start; gap: 10px; font-size: calc(19px * var(--fs, 1)); line-height: 1.4; color: var(--text); padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r); background: var(--s1); margin: 12px 0 4px; }
.vnote .ico { color: var(--accent); flex: none; margin-top: 2px; }
.vnote.warn { flex-basis: 100%; margin: 4px 0 0; }
.vnote.err { border-left-color: #E5484D; }
.vnote.err .ico { color: #E5484D; }
.vnote.big { font-size: calc(22px * var(--fs, 1)); padding: 18px 20px; }
.opt.two { height: auto; min-height: 78px; padding: 12px 18px; }
.opt .lbl { display: flex; flex-direction: column; min-width: 0; }
.opt .lbl small { font-size: calc(18px * var(--fs, 1)); color: var(--muted); font-weight: var(--w4); margin-top: 3px; }
.opt.two > .ico:last-child { margin-left: auto; }
.vprow { display: flex; gap: 12px; margin-bottom: 10px; }
.vprof { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; height: 78px; padding: 0 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); }
.vprof.sel { border-color: var(--accent); }
.vprof .rad { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); flex: none; position: relative; }
.vprof.sel .rad { border-color: var(--accent); }
.vprof.sel .rad::after { content: ''; position: absolute; left: 3px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.vprof .lbl { display: flex; flex-direction: column; min-width: 0; }
.vprof .t { font-size: calc(23px * var(--fs, 1)); font-weight: var(--w6); }
.vprof .s { font-size: calc(17px * var(--fs, 1)); color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.vprof .r { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: calc(19px * var(--fs, 1)); font-weight: var(--w6); color: var(--muted); white-space: nowrap; }
.vprof .r.on { color: var(--accent); }
.vprow .vrm { height: 78px; width: 78px; justify-content: center; padding: 0; }
.vacts { display: flex; gap: 14px; margin: 16px 0 10px; flex-wrap: wrap; }
.acct.wgstats .v { font-size: calc(23px * var(--fs, 1)); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.acct.wgstats .vic { color: var(--accent); display: inline-flex; }
.pxgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 18px; }
.vres { display: inline-flex; align-items: center; gap: 10px; font-size: calc(20px * var(--fs, 1)); color: var(--muted); }
.vres.ok { color: var(--text); }
.vres.ok .ico { color: var(--accent); }
.vres.err { color: var(--text); }
.vres.err .ico { color: #E5484D; }
.vres b { font-weight: var(--w7); }
.demorow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.demorow .dl { font-size: calc(14px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 4px 0 0; }
.demorow .muted { font-size: calc(17px * var(--fs, 1)); }
.dialog .dhead { display: flex; align-items: center; gap: 18px; }
.dialog .dhead .vsico { width: 56px; height: 56px; }
.dialog .dhead .vsico .ico { width: 28px; height: 28px; }
.dialog.vpndlg { width: 860px; }
.dialog.sysdlg { width: 760px; }
.dialog.sysdlg .sysnote { font-size: calc(18px * var(--fs, 1)); }
.dialog.sysdlg .acts { justify-content: flex-end; }
.pcenter.vpnstop > .ico { width: 64px; height: 64px; color: #fff; }
.pcenter.vpnstop p:last-child { display: flex; align-items: center; gap: 12px; color: #fff; }
.drawer.vdrawer { width: 860px; }
.drawer.vdrawer.wide { width: 1060px; }
.drawer.vdrawer .body.scroll-y { padding: 8px 12px 0; margin-left: -12px; margin-right: -12px; }
.drawer .foot { display: flex; align-items: center; gap: 14px; }
.drawer .foot .demorow { margin-left: auto; }
.phonepair { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: start; }
.bigline { font-size: calc(36px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: -.005em; margin-top: 8px; font-variant-numeric: tabular-nums; }

/* ---- Pro pairing */
.pair { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; }
.pairqr { background: #fff; border-radius: var(--r); line-height: 0; flex: none; border: 1px solid var(--line); }
.pairqr svg { display: block; border-radius: var(--r); }
.pairlead { font-size: calc(23px * var(--fs, 1)); color: var(--muted); line-height: 1.45; max-width: 820px; }
.pairlead b { color: var(--text); font-weight: var(--w6); }
.paircode { display: flex; gap: 10px; margin: 18px 0 22px; }
.paircode span { width: 74px; height: 90px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: calc(54px * var(--fs, 1)); font-weight: var(--w7); color: var(--text); }
.paircode.pin span { width: 66px; height: 80px; font-size: calc(46px * var(--fs, 1)); border-color: var(--accent); }
.pairplans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 620px; }
.pplan { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; background: var(--s1); }
.pplan .pn { font-size: calc(19px * var(--fs, 1)); color: var(--muted); font-weight: var(--w6); }
.pplan .pp { font-size: calc(40px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: -.02em; line-height: 1.15; }
.pplan .pd { font-size: calc(17px * var(--fs, 1)); color: var(--muted); }
.pairwait { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: calc(21px * var(--fs, 1)); font-weight: var(--w6); }
.pairwait .muted { font-weight: var(--w5); font-size: calc(18px * var(--fs, 1)); margin-left: 6px; }
.dialog.pairdlg { width: 1240px; }
.dialog.pairdlg .pairplans { max-width: 560px; }
.prook { display: flex; gap: 20px; align-items: center; padding: 22px 24px; border: 1px solid var(--accent); border-radius: var(--r); background: var(--s1); margin-bottom: 14px; }
.prook .ck { width: 56px; height: 56px; flex: none; border-radius: var(--r); background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.prook .ck .ico { width: 30px; height: 30px; }
.prook .t { font-size: calc(28px * var(--fs, 1)); font-weight: var(--w7); }
.prook .s { font-size: calc(20px * var(--fs, 1)); color: var(--muted); margin-top: 4px; }
.th-xbox .is-focus :is(.s, .r, .rad, small, .lbl) { color: var(--ink) !important; border-color: var(--ink) !important; }
.th-xbox .vprof.is-focus.sel .rad::after { background: var(--ink); }

/* ---- 30-day free period */
.trialrow { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; font-size: calc(20px * var(--fs, 1)); color: var(--muted); line-height: 1.35; }
.trialpill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 19px; border: 2px solid var(--accent); color: var(--accent); font-size: calc(19px * var(--fs, 1)); font-weight: var(--w7); white-space: nowrap; flex: none; }
.trialpill .ico { width: 18px; height: 18px; }
.trialpill.warn { background: var(--accent); color: var(--ink); }
.trialpill.end { border-color: #E5484D; background: #E5484D; color: #FFFFFF; }
.lockscr { position: absolute; inset: 0; background: transparent; border-top: 1px solid var(--line); display: flex; justify-content: center; padding-top: 34px; z-index: 3; }
.lockin { width: 1240px; }
.lockin .prohead { gap: 14px; }
.lockin h1 { font-size: calc(56px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: -.015em; margin-top: 20px; line-height: 1.1; }
.locklead { font-size: calc(29px * var(--fs, 1)); color: var(--muted); margin: 10px 0 32px; }

/* ---- external player handoff */
.opt.hopt { min-height: 88px; }
.opt.hopt .lbl small { line-height: 1.35; }
.opt.hopt .v { flex: none; padding-left: 20px; }
.handoff { position: absolute; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.handoff.away { background: #000000; }
.hocenter { width: 1160px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hoflow { display: flex; align-items: center; gap: 34px; margin-bottom: 44px; }
.hoico.gl { width: 120px; height: 120px; border-radius: 28px; background: var(--s1); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.hoico.gl svg { width: 64px; height: 64px; }
.appico { width: 120px; height: 120px; border-radius: 28px; background: #F2F4F7; color: #0B0D10; display: inline-flex; align-items: center; justify-content: center; font-family: 'Figtree', sans-serif; font-size: calc(40px * var(--fs, 1)); font-weight: 800; letter-spacing: -.02em; flex: none; }
.hodots { display: flex; gap: 10px; }
.hodots i { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); opacity: .35; }
.hodots.run i { animation: hodot 1s ease-in-out infinite; }
.hodots.run i:nth-child(2) { animation-delay: .15s; }
.hodots.run i:nth-child(3) { animation-delay: .3s; }
@keyframes hodot { 0%, 100% { opacity: .25; } 40% { opacity: 1; background: var(--accent); } }
.handoff h1 { font-size: calc(58px * var(--fs, 1)); font-weight: var(--w7); letter-spacing: -.015em; line-height: 1.1; }
.hosub { font-size: calc(26px * var(--fs, 1)); color: var(--muted); margin-top: 14px; }
.hosub b { color: var(--text); font-weight: var(--w6); }
.homuted { font-size: calc(22px * var(--fs, 1)); color: var(--muted); margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 920px; line-height: 1.45; }
.honote { text-align: left; max-width: 920px; margin-top: 36px; }
.handoff .acts { display: flex; gap: 14px; margin-top: 40px; justify-content: center; }
.handoff.away .hotop { position: absolute; left: 64px; top: 52px; display: flex; align-items: center; gap: 16px; color: #FFFFFF; font-size: calc(26px * var(--fs, 1)); font-weight: 600; }
.handoff.away .hotop .appico { width: 56px; height: 56px; border-radius: 14px; font-size: calc(20px * var(--fs, 1)); }
.hoplay { width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); color: #FFFFFF; display: flex; align-items: center; justify-content: center; margin-bottom: 34px; }
.hoplay .ico { width: 46px; height: 46px; }
.handoff.away h1, .handoff.away .hosub b { color: #FFFFFF; }
.handoff.away .hosub, .handoff.away .homuted { color: #A9B1BA; }

/* ---- embed mode: the website shows the real app instead of screenshots */
body.embed .page { padding: 0; grid-template-columns: 1fr; gap: 0; }
body.embed .remote { display: none; }
body.embed .bezel { padding: 0; border: 0; background: transparent; }
body.embed { background: transparent; }

/* About: logo only (no wordmark) */
.aboutmark { margin: 4px 0 18px; }
.aboutmark i { width: 56px; height: 56px; display: block; }
.th-jp .aboutmark i svg { display: none; }
.th-jp .aboutmark i { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); }
[data-sk="pane:app"] .fsec h4 { margin-bottom: 26px; }

/* ---- 0.6.6: idle preview, quick-hide hint, update bar, detailed banner, checkbox rows, PIN pad ---- */
.pvvid .state.idle { background: var(--s1); color: var(--muted); }
.pvvid .state.idle .logo { width: 150px; height: 100px; font-size: calc(30px * var(--fs, 1)); }
.cathint { margin: 18px 20px 0; color: var(--muted); font-size: calc(17px * var(--fs, 1)); font-weight: var(--w5); }
.updbar { position: absolute; left: 64px; right: 64px; top: 4px; height: 36px; z-index: 6; display: flex; align-items: center; gap: 14px; padding: 0 18px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); font-size: calc(18px * var(--fs, 1)); font-weight: var(--w6); color: var(--text); }
.updbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.updbar .sp { flex: 1; }
.updbar .a { color: var(--accent); }
.updbar .k { color: var(--muted); font-weight: var(--w5); }
.updbar .bar { width: 220px; height: 4px; background: var(--line); }
.updbar .bar i { display: block; height: 100%; background: var(--accent); }
.updbar.is-focus { outline: 2px solid var(--accent); outline-offset: 0; }
.osd.top { top: 40px; bottom: auto; }
.osd .r .si { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 10px; font-size: calc(20px * var(--fs, 1)); font-weight: var(--w6); }
.osd .r .si2 { margin-top: 6px; text-align: right; color: var(--muted); font-size: calc(18px * var(--fs, 1)); font-weight: var(--w5); white-space: nowrap; }
.osd.compact { display: flex; align-items: center; gap: 18px; padding: 14px 24px; grid-template-columns: none; }
.osd.compact .num { font-size: calc(28px * var(--fs, 1)); font-weight: var(--w7); color: var(--accent); }
.osd.compact .logo { width: 84px; height: 56px; }
.osd.compact .chn { font-size: calc(26px * var(--fs, 1)); font-weight: var(--w7); white-space: nowrap; }
.osd.compact .cm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.osd.compact .cm .t { font-size: calc(21px * var(--fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osd.compact .clock { font-size: calc(26px * var(--fs, 1)); font-weight: var(--w6); }
.opt.chk .box { width: 26px; height: 26px; flex: none; border: 1px solid var(--muted); border-radius: calc(var(--r) * .5); display: flex; align-items: center; justify-content: center; }
.opt.chk.on .box { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.opt.chk .box .ico { width: 18px; height: 18px; }
.dialog.pin { text-align: center; }
.pindots { display: flex; gap: 16px; justify-content: center; margin: 22px 0; }
.pindots span { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r); position: relative; }
.pindots span.cur { border-color: var(--accent); }
.pindots span.on::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--text); border-radius: 2px; }
.pinpad { display: grid; grid-template-columns: repeat(3, 96px); gap: 10px; justify-content: center; }
.pinpad .btn { justify-content: center; }
