/* SN Plus TV — TV web app (Samsung Tizen / LG webOS), 1920x1080, matte */
* { margin:0; padding:0; box-sizing:border-box; }
html, body { width:100%; height:100%; overflow:hidden; background:#e2e6ea; }
body {
  font-family: "Samsung Sans", "LG Smart UI", "Segoe UI", Arial, sans-serif;
  color:#191d24; font-size:28px;
  background: linear-gradient(180deg, #f7f8f9 0%, #e6e9ed 340px, #d8dce1 100%);
}
.hidden { display:none !important; }
button { font-family:inherit; cursor:pointer; }

/* ---------- focus: always clearly visible ---------- */
.focusable { outline:none; border:3px solid transparent; }
.focusable.focused {
  border-color:#b30e31;
  box-shadow:0 0 0 3px #b30e31, 0 10px 34px rgba(0,0,0,.55);
  transform:scale(1.05);
  z-index:5;
}

/* ---------- left icon rail (2026-11-25 rebuild) ----------
   Slim rail down the left edge, like the reference design: brand at
   the top, icon destinations down the rail, clock + Settings at the
   bottom. The content area starts to the right of the rail. */
#rail {
  position:absolute; top:0; bottom:0; left:0; width:112px; z-index:40;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  padding:26px 0 20px; background:rgba(243,244,246,.97);
  border-right:1px solid #c6ccd4;
}
#rail-brand { display:flex; flex-direction:column; align-items:center; gap:8px; margin-bottom:22px; }
#brand-icon { width:62px; height:62px; border-radius:14px; }
#brand-name { font-size:17px; font-weight:800; letter-spacing:.5px; text-align:center; line-height:1.15; }
.brand-tv { color:#b30e31; }
.rail-btn {
  width:88px; padding:13px 0 10px; background:transparent; color:#4a5261;
  border-radius:16px; display:flex; flex-direction:column; align-items:center; gap:5px;
}
.rail-btn svg { width:34px; height:34px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.rail-label { font-size:16px; font-weight:600; letter-spacing:.3px; }
.rail-btn.active { background:#b30e31; color:#fff; }
#rail-spacer { flex:1; }
#clock { font-size:19px; font-weight:700; color:#232830; text-align:center; margin-bottom:8px; }

/* ---------- layout ---------- */
#screen { position:absolute; top:0; bottom:54px; left:112px; right:0; overflow-y:auto; overflow-x:hidden; }
#footerbar {
  position:absolute; bottom:0; left:112px; right:0; height:54px;
  display:flex; align-items:center; justify-content:center; gap:14px;
  background:rgba(238,240,243,.97); color:#5b6470; font-size:21px;
  border-top:1px solid #c6ccd4;
}
#footerbar b { color:#232830; }
.foot-sep { color:#b30e31; font-weight:800; }

.state-box { text-align:center; padding-top:300px; }
.state-text { font-size:34px; line-height:1.5; color:#232830; margin-bottom:34px; }
.spinner {
  width:74px; height:74px; margin:0 auto 30px; border-radius:50%;
  border:9px solid #b7bec8; border-top-color:#b30e31;
  animation:spin 0.9s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }
.big-btn {
  background:#b30e31; color:#fff; border-radius:14px;
  font-size:30px; font-weight:700; padding:18px 52px; margin:0 10px;
}

/* ---------- rows & cards ---------- */
.view { padding:34px 56px 60px; }
.row-block { margin-bottom:44px; }
.row-head { display:flex; align-items:baseline; gap:26px; margin-bottom:18px; }
.row-title { font-size:36px; font-weight:800; }
.row-count { font-size:23px; color:#5b6470; }
.row-more {
  margin-left:auto; background:#e7eaee; color:#2b3038; border-radius:10px;
  font-size:23px; font-weight:600; padding:9px 24px;
}
.card-row { display:flex; gap:22px; overflow-x:auto; padding:12px 6px 20px; scrollbar-width:none; }
.card-row::-webkit-scrollbar { display:none; }
.card {
  flex:0 0 auto; width:300px; background:#ffffff; border-radius:16px;
  padding:14px; text-align:left; color:#191d24; position:relative;
}
.card .thumb {
  display:block; width:100%; height:158px; border-radius:10px; background:#e7eaee;
  position:relative; overflow:hidden;
}
.card .thumb img { display:block; position:relative; z-index:1; width:100%; height:100%; object-fit:contain; background:#e7eaee; }
.card .thumb .letter {
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:64px; font-weight:800; color:#98a0aa;
}
.card .c-title {
  display:block; font-size:24px; font-weight:700; line-height:1.25; margin-top:12px;
  height:62px; overflow:hidden;
}
.card .c-sub { display:block; font-size:20px; color:#5b6470; margin-top:4px; height:26px; overflow:hidden; }
.card.poster { width:236px; }
.card.poster .thumb { height:330px; }
.card.poster .thumb img { object-fit:cover; }
/* ---------- partner apps: tile BUTTONS pinned to the bottom ----------
   A fixed bar at the bottom of the layout (directly above the support
   footer), Home screen only: body.on-home is set by renderView(). The
   tiles are large remote-first buttons in each service's brand colour —
   plain text, no logo artwork. Focus uses the global .focused style. */
#partnerbar {
  position:absolute; left:112px; right:0; bottom:54px; height:182px; z-index:30;
  display:none; padding:14px 56px 16px;
  background:rgba(238,240,243,.98); border-top:3px solid #b30e31;
}
body.on-home #partnerbar { display:block; }
body.on-home #screen { bottom:236px; }
#partnerbar-head { display:flex; align-items:baseline; gap:26px; margin-bottom:12px; }
#partnerbar-title { font-size:27px; font-weight:800; letter-spacing:1.5px; }
#partnerbar-hint { font-size:21px; color:#5b6470; }
#partner-tiles { display:flex; gap:16px; }
.partner-tile {
  flex:1 1 0; min-width:0; height:106px; border-radius:14px; padding:8px 6px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  box-shadow:0 6px 18px rgba(0,0,0,.45);
}
.pt-name { font-size:28px; font-weight:800; line-height:1.07; text-align:center; }
.pt-open { font-size:18px; font-weight:600; color:rgba(255,255,255,.85); letter-spacing:.4px; }
.badge {
  position:absolute; top:22px; left:22px; background:#b30e31; color:#fff;
  font-size:18px; font-weight:800; padding:4px 12px; border-radius:8px; letter-spacing:1px;
}

/* grid view */
.grid { display:flex; flex-wrap:wrap; gap:22px; padding:12px 6px; }
.chips { display:flex; gap:14px; flex-wrap:wrap; margin-bottom:26px; }
.chip {
  background:#e7eaee; color:#2b3038; border-radius:999px;
  font-size:25px; font-weight:600; padding:12px 28px;
}
.chip.active { background:#b30e31; color:#fff; }
.page-title { font-size:42px; font-weight:800; margin-bottom:8px; }
.page-sub { font-size:24px; color:#5b6470; margin-bottom:26px; line-height:1.45; max-width:1500px; }

/* series detail */
.ep-row { display:flex; gap:22px; flex-wrap:wrap; padding:12px 6px; }
.ep-card { width:340px; }
.ep-card .thumb { height:180px; }
.season-title { font-size:32px; font-weight:800; margin:30px 0 6px; }

/* search */
#search-wrap { display:flex; gap:48px; }
#kb { width:760px; flex:0 0 auto; }
#kb-query, #sup-query {
  background:#ffffff; border:3px solid #b7bec8; border-radius:14px;
  font-size:38px; font-weight:700; padding:20px 26px; min-height:92px; margin-bottom:22px;
}
#kb-query .placeholder { color:#8a94a0; font-weight:400; }
.kb-row { display:flex; gap:12px; margin-bottom:12px; }
.kb-key {
  flex:1; background:#e7eaee; color:#191d24; border-radius:12px;
  font-size:30px; font-weight:700; padding:18px 0; text-align:center;
}
.kb-key.wide { flex:2.2; }
#search-results { flex:1; min-width:0; }
#search-results .grid { padding-top:0; }

/* ---------- AI support ---------- */
#support-wrap { display:flex; gap:48px; }
#support-left { width:760px; flex:0 0 auto; }
.support-h { font-size:27px; font-weight:800; margin-bottom:14px; }
#support-common { display:flex; flex-direction:column; gap:12px; margin-bottom:30px; }
.sup-qbtn {
  background:#e7eaee; color:#191d24; border-radius:12px; text-align:left;
  font-size:25px; font-weight:600; padding:16px 22px;
}
#sup-ask { width:100%; margin-top:4px; }
#support-chat { flex:1; min-width:0; }
#support-status { font-size:23px; color:#5b6470; margin-bottom:20px; line-height:1.45; }
#support-status b { color:#232830; }
#support-lang { display:flex; gap:12px; align-items:center; margin-bottom:22px; }
#support-lang .lang-label { font-size:23px; color:#5b6470; font-weight:600; margin-right:4px; }
.lang-chip {
  background:#e7eaee; color:#2b3038; border-radius:999px;
  font-size:23px; font-weight:600; padding:10px 24px;
}
.lang-chip.active { background:#b30e31; color:#fff; }
.chat-q {
  background:#e7eaee; border-radius:14px; padding:18px 24px;
  font-size:26px; font-weight:700; margin:0 0 14px 60px;
}
.chat-a {
  background:#ffffff; border:3px solid #b7bec8; border-radius:14px;
  padding:18px 24px; font-size:26px; line-height:1.5; margin:0 60px 14px 0;
}
.chat-a.dim { color:#5b6470; }
.chat-a.warn { border-color:#b30e31; }
.sup-channel {
  display:block; background:#b30e31; color:#fff; border-radius:12px; text-align:left;
  font-size:24px; font-weight:700; padding:14px 22px; margin:0 60px 26px 0;
}

/* ---------- hero carousel + focused-card detail (2026-11-25) ----------
   Home opens with a full-bleed hero (rotating featured series, dot
   indicators) exactly like the reference design; under it, a detail
   line mirrors the FOCUSED card: title + badges + description. */
#hero {
  position:relative; height:452px; margin:-34px -56px 6px; overflow:hidden;
  background:#ffffff; text-align:left; color:#fff; width:calc(100% + 112px);
}
#hero-bg { position:absolute; inset:0; background-size:cover; background-position:center; transition:opacity .6s; overflow:hidden; }
/* STANDARD FIT (Boss, 2026-11-25 §P3 + §X): hero/wallpaper media is shown
   at the DEFAULT, STANDARD size — the WHOLE picture inside the frame,
   never stretched, zoomed or cropped to fill (no cut heads/faces/letters).
   #hero-bg::before = the same artwork as a blurred, darkened backdrop
   that fills the frame; ::after = the complete picture, contain-fit. */
#hero-bg::before { content:''; position:absolute; inset:0; background-image:inherit; background-size:cover; background-position:center; filter:blur(26px) brightness(.5) saturate(1.15); transform:scale(1.18); }
#hero-bg::after { content:''; position:absolute; inset:0; background-image:inherit; background-size:contain; background-position:center; background-repeat:no-repeat; }
#hero-shade { position:absolute; inset:0; background:linear-gradient(90deg, rgba(4,9,20,.88) 0%, rgba(4,9,20,.45) 46%, rgba(4,9,20,.05) 75%), linear-gradient(0deg, rgba(6,13,26,.92) 0%, transparent 42%); }
#hero-body { position:absolute; left:56px; bottom:44px; max-width:1060px; }
#hero-kicker { font-size:21px; font-weight:800; letter-spacing:3px; color:#ffcf3f; margin-bottom:12px; }
#hero-title { font-size:58px; font-weight:800; line-height:1.08; text-shadow:0 4px 22px rgba(0,0,0,.6); }
#hero-meta { display:flex; gap:10px; margin:16px 0 12px; }
.hero-badge { background:#b30e31; color:#fff; font-size:19px; font-weight:800; letter-spacing:1px; padding:5px 14px; border-radius:8px; }
.hero-badge.alt { background:rgba(255,255,255,.16); }
#hero-desc { font-size:24px; line-height:1.45; color:#2b3038; max-height:70px; overflow:hidden; }
#hero-dots { position:absolute; right:56px; bottom:48px; display:flex; gap:9px; }
.hero-dot { width:13px; height:13px; border-radius:50%; background:rgba(255,255,255,.35); }
.hero-dot.on { background:#fff; width:30px; border-radius:7px; }
#home-detail {
  display:flex; align-items:baseline; gap:22px; min-height:64px;
  padding:14px 6px 4px; border-bottom:1px solid #c6ccd4; margin-bottom:26px;
}
#hd-title { font-size:31px; font-weight:800; white-space:nowrap; }
#hd-badges { display:flex; gap:8px; flex:0 0 auto; }
.hd-badge { background:#e7eaee; color:#b30e31; font-size:18px; font-weight:800; letter-spacing:1px; padding:4px 12px; border-radius:8px; }
#hd-desc { font-size:22px; color:#4a5261; line-height:1.4; overflow:hidden; max-height:62px; }
.card .kind-badge {
  position:absolute; top:24px; left:24px; z-index:2; background:rgba(4,9,20,.82); color:#ffcf3f;
  font-size:16px; font-weight:800; letter-spacing:1px; padding:4px 11px; border-radius:8px;
}
.set-row { display:flex; gap:14px; flex-wrap:wrap; margin:10px 0 34px; }

/* ---------- player ---------- */
#player { position:fixed; inset:0; background:#000; z-index:100; }
#video, #embed-frame { position:absolute; inset:0; width:100%; height:100%; background:#000; }
#player-spinner { position:absolute; top:50%; left:50%; margin:-37px 0 0 -37px; }
#player-top {
  position:absolute; top:0; left:0; right:0; padding:40px 56px;
  background:linear-gradient(180deg, rgba(0,0,0,.78), transparent);
  transition:opacity .4s;
}
#player-title { font-size:42px; font-weight:800; }
#player-hint { font-size:23px; color:#c8d5e8; margin-top:8px; }
#player-top.fade { opacity:0; }
#player-error { position:absolute; inset:0; text-align:center; padding-top:400px; background:rgba(0,0,0,.72); }

/* ---------- pre-roll advertisement ---------- */
#adlayer { position:absolute; inset:0; background:#000; z-index:50; }
#ad-video { position:absolute; inset:0; width:100%; height:100%; background:#000; }
#ad-label {
  position:absolute; top:36px; left:56px; background:#ffcf3f; color:#141414;
  font-size:24px; font-weight:800; letter-spacing:1.5px; padding:8px 22px; border-radius:8px;
}
#ad-bottom {
  position:absolute; left:0; right:0; bottom:0; display:flex; align-items:center;
  justify-content:space-between; padding:40px 56px 36px;
  background:linear-gradient(0deg, rgba(0,0,0,.82), transparent);
}
#ad-count { font-size:26px; font-weight:600; color:#232830; }
#ad-skip {
  background:#3a3f47; color:#fff; border-radius:12px;
  font-size:26px; font-weight:700; padding:14px 36px;
}
#ad-skip.locked { opacity:.55; }
#ad-skip.ready { background:#b30e31; }

/* ---------- player subtitles ----------
   Frozen house style (same as the website players): the cue block's bottom
   edge sits at 73.5% of the frame height (bottom:26.5%), centred and wide,
   white text (weight 400) on a semi-transparent black strip that hugs the
   text lines; the speaker's name sits on its own small strip above. */
#player-cc {
  margin-top:16px; background:rgba(10,24,48,.88); color:#fff;
  border-radius:10px; font-size:24px; font-weight:700; padding:10px 24px;
}
#sub-cue {
  position:absolute; left:50%; transform:translateX(-50%); bottom:26.5%;
  width:88%; text-align:center; pointer-events:none; z-index:6;
}
#sub-cue-name {
  display:inline-block; margin-bottom:6px; background:rgba(0,0,0,.32); color:#fff;
  font-size:24px; font-weight:400; letter-spacing:.03em; padding:2px 14px; border-radius:6px;
}
#sub-cue-text {
  background:rgba(0,0,0,.32); color:#fff; font-size:36px; font-weight:400; line-height:1.35;
  padding:4px 18px; border-radius:6px;
  -webkit-box-decoration-break:clone; box-decoration-break:clone;
}
#subbar {
  position:absolute; left:0; right:0; bottom:0; z-index:7;
  background:linear-gradient(0deg, rgba(0,0,0,.88), rgba(0,0,0,.55) 75%, transparent);
  padding:90px 56px 48px; text-align:center;
}
.subbar-title { font-size:30px; font-weight:800; margin-bottom:22px; }
#subbar-list { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.sub-chip {
  background:#e7eaee; color:#2b3038; border-radius:999px;
  font-size:26px; font-weight:600; padding:13px 30px;
}
.sub-chip.active { background:#b30e31; color:#fff; }

/* ---------- player news ticker (1112 + 1036) ----------
   Mirrors the website modal player's nb-/cat- ticker blocks for these two
   channels: RTL Pashto band flush at the bottom of the picture, dark
   near-black strip, jigari-red (#C62032) title tab reading
   "نړیوال خبرونه", headlines scrolling rightward (translateX 0 -> 50%)
   over 120 s, and a red BREAKING bar ("بریکینګ نیوز") directly above the
   band that shows by itself for ~75 s when the feed's newest headline
   changes. Sizes are the website sizes scaled up for a 1920x1080 TV
   screen. Subtitle cues sit at bottom:26.5% — well above this band. */
#tickerbar {
  position:absolute; left:0; right:0; bottom:0; z-index:8;
  display:flex; direction:rtl; align-items:stretch; height:56px;
  background:rgba(8,8,12,.88); border-top:1px solid rgba(255,255,255,.14);
  font-family:"Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
}
#ticker-tab {
  flex:0 0 auto; align-self:center; background:#C62032; color:#fff;
  font-family:"Arial Narrow", "Liberation Sans Narrow", "Oswald", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size:23px; font-weight:800; letter-spacing:.02em; line-height:1.1;
  padding:4px 10px; white-space:nowrap; border-radius:0;
}
#ticker-viewport { flex:1 1 auto; overflow:hidden; white-space:nowrap; display:flex; align-items:stretch; min-width:0; }
#ticker-track { display:inline-flex; align-items:center; width:max-content; height:100%; will-change:transform; }
#ticker-track.run { animation:tickmove-tv 120s linear infinite; }
@keyframes tickmove-tv { from { transform:translateX(0); } to { transform:translateX(50%); } }
.ticker-set { display:inline-flex; align-items:center; gap:60px; padding-inline-end:60px; }
.ticker-item { color:#f2f2f2; font-size:27px; font-weight:500; letter-spacing:.01em; line-height:1.4; white-space:nowrap; }
.ticker-load { color:#c9c9d1; font-size:24px; white-space:nowrap; }
#ticker-breaking {
  position:absolute; left:0; right:0; bottom:56px; z-index:9; direction:rtl;
  display:flex; align-items:center; padding:2px 0; background:#C62032; color:#fff;
  font-family:"Arial Narrow", "Liberation Sans Narrow", "Oswald", "Helvetica Neue", Helvetica, Arial, sans-serif;
  opacity:0; visibility:hidden; transform:translateY(13px);
  transition:opacity .45s ease, transform .45s ease, visibility .45s ease;
  pointer-events:none;
}
#ticker-breaking.show { opacity:1; visibility:visible; transform:translateY(0); }
#ticker-breaking-tab {
  flex:0 0 auto; align-self:center; font-size:30px; font-weight:800; letter-spacing:.02em;
  line-height:1.1; padding:3px 10px; white-space:nowrap;
  border-inline-end:1px solid rgba(255,255,255,.4);
}
#ticker-breaking-text {
  flex:1 1 auto; display:flex; align-items:center; padding:0 20px;
  font-size:28px; font-weight:600; line-height:1.1; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis;
}

/* ============================================================
   2026-11-25 — THREE LAYOUT SAMPLES build (Boss's orders):
   (a) proportion pass to the Amazon Prime Video / Netflix TV
       front-layout scale at 1920x1080 (their published design
       tokens + the layout research report SS4.3): hero ~50% of
       screen height, hero title ~54px, top-menu text ~21px,
       row titles 27px, ~6 landscape tiles across (280px),
       portrait posters 216px, row gap ~32px class, base 25px.
   (b) enlarged motion hero: video layer + Ken Burns artwork
       motion + ad tag.
   (c) ONE top category menu bar.
   These rules override the earlier values above by cascade.
   ============================================================ */
body{font-size:25px}
#rail{width:100px}
#rail-brand img{width:54px;height:54px}
.rail-btn{width:80px}
.rail-ic{font-size:31px}
.rail-clock{font-size:19px}
#screen{left:100px}
#footerbar{left:100px;font-size:20px}
#partnerbar{left:100px;height:170px}
body.on-home #screen{bottom:224px}
.partner-tile{height:108px}
.pt-name{font-size:24px}
.view{padding:36px 60px}
.page-title{font-size:38px}
.page-sub{font-size:22px}
.chip{font-size:22px}
.big-btn{font-size:27px}
.row-block{margin-bottom:36px}
.row-head{margin-bottom:14px}
.row-title{font-size:27px}
.row-count{font-size:20px}
.card-row{gap:20px}
.card{width:280px}
.card .thumb{height:158px}
.card.poster{width:216px}
.card.poster .thumb{height:324px}
.card-title{font-size:21px}
.grid{gap:24px}
.ep-card{width:404px}
.kb-query{font-size:34px}
.kb-key{font-size:27px}
.player-title{font-size:38px}
.support-h{font-size:31px}
.support-p{font-size:23px}
.ai-msg{font-size:24px}
.ai-input{font-size:24px}
.set-row{font-size:27px}
.set-val{font-size:24px}

/* ---- top category menu (ONE menu, Amazon/Netflix style) ---- */
#topmenu{display:flex;align-items:center;gap:10px;margin:0 0 22px;padding:4px 0 2px;flex-wrap:nowrap}
.topmenu-brand{font-size:23px;font-weight:800;letter-spacing:2px;color:#191d24;margin-right:18px;white-space:nowrap}
.topmenu-brand span{color:#b30e31}
.topmenu-btn{background:rgba(25,29,36,.06);color:#2b3038;border:2px solid transparent;border-radius:999px;padding:9px 15px;font-size:21px;font-weight:600;cursor:pointer;white-space:nowrap}
.topmenu-btn.active{background:#b30e31;color:#fff}
.topmenu-btn.focused{border-color:#b30e31;background:rgba(179,14,49,.10);color:#191d24;outline:none}

/* ---- enlarged motion hero (540px = 50% of 1080) ---- */
#hero{height:540px;margin:-36px -60px 6px;width:calc(100% + 120px)}
#topmenu + #hero{margin-top:0}
#hero-bg{z-index:1}
/* Ken Burns living-wallpaper motion now moves ONLY the blurred backdrop
   layer (::before) — the sharp picture itself never moves, so it can
   never be pushed outside the frame (§P3/§X standard fit). */
#hero-bg.kenburns::before{animation:heroKB 18s ease-in-out infinite alternate}
@keyframes heroKB{from{transform:scale(1.18) translate(0,0)}to{transform:scale(1.30) translate(-1.5%,-2%)}}
#hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:2;opacity:0;transition:opacity .7s ease;background:transparent}
#hero-video.on{opacity:1}
#hero-shade{z-index:3}
#hero-body{left:60px;bottom:48px;max-width:1000px;z-index:4}
#hero-kicker{font-size:19px}
#hero-title{font-size:54px}
#hero-desc{font-size:22px;max-height:96px}
#hero-dots{z-index:4}
#hero-adtag{position:absolute;top:30px;right:60px;z-index:5;background:#ffcf3f;color:#141414;font-size:19px;font-weight:800;letter-spacing:2px;padding:7px 16px;border-radius:8px}
#home-detail{margin:20px 4px 26px}
#hd-title{font-size:28px}
#hd-desc{font-size:20px}

/* ---- Our Partner Applications row (Boss 2026-11-25 12:06) ----
   Partner banners ride the standard .card frame, so all three layout
   samples size them exactly like the other rows' cards: one uniform
   size, even spacing, same focus ring/scale. The banner face is the
   partner's brand colour with its name in plain text — the same
   no-logo-artwork standard as the bottom-bar partner tiles. */
.card .thumb.partner-thumb{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}
.partner-name{display:block;font-size:34px;font-weight:800;line-height:1.05;text-align:center;padding:0 10px;position:relative;z-index:1}
.partner-open{display:block;font-size:18px;font-weight:600;color:rgba(255,255,255,.85);letter-spacing:.4px;position:relative;z-index:1}
.card .thumb img.partner-banner{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2;background:transparent}

/* ---------- category banner tiles (Boss's corrected spec 2026-11-25
   13:07 EST): the Live TV genre selector renders the ONE uniform
   transparent/glass category banner set as tiles — the banner image
   itself carries the category name, large at its top, so no text is
   drawn over or under the tile. The name span is only the fallback
   face if a banner image cannot load. The active category keeps a
   burgundy outline; focus keeps the global .focused ring/scale. */
.cat-strip { flex-wrap:nowrap; overflow-x:auto; padding:10px 4px 14px; scrollbar-width:none; }
.cat-strip::-webkit-scrollbar { display:none; }
.chip.cat-tile {
  flex:0 0 auto; width:264px; height:149px; padding:0; border-radius:14px;
  overflow:hidden; background:rgba(255,255,255,.6); position:relative;
}
.chip.cat-tile img { display:block; width:100%; height:100%; object-fit:cover; }
.chip.cat-tile .cat-tile-name { display:none; }
.chip.cat-tile.cat-tile-text { width:auto; height:auto; padding:14px 26px; border-radius:999px; }
.chip.cat-tile.cat-tile-text .cat-tile-name { display:block; font-size:25px; font-weight:600; }
.chip.cat-tile.active { background:rgba(255,255,255,.6); outline:3px solid #b30e31; outline-offset:2px; }

/* ---------- JARGA colour scheme (Boss's order 2026-11-25 ~17:44 EST) ----------
   The layout stays ours; the colours are JARGA's: burgundy red
   #B30E31 as the primary accent (rail, focus, highlights, buttons)
   over SILVER app-background surfaces, with dark crisp text. The
   player and the hero keep their dark treatments because they sit
   on video and artwork, not on the app background. */
.legal-p { font-size:24px; line-height:1.55; color:#2b3038; margin-bottom:22px; max-width:1500px; }
.az-strip { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.az-btn {
  background:#e7eaee; color:#2b3038; border-radius:999px;
  font-size:22px; font-weight:700; padding:9px 18px;
}
.az-btn.active { background:#b30e31; color:#fff; }

/* ---------- idle motion wallpaper + focus motion (2026-11-25 ~17:52) ---------- */
#attract { position:fixed; inset:0; z-index:90; background:#101216; overflow:hidden; }
.attract-slide {
  position:absolute; inset:0; background-size:cover; background-position:center;
  opacity:0; transition:opacity 1.4s ease; overflow:hidden;
}
/* STANDARD FIT (Boss §P3/§X): the whole wallpaper picture sits inside the
   frame — ::before is the same art blurred/darkened as a full-frame
   backdrop (it alone carries the slow Ken Burns drift), ::after is the
   complete picture at contain fit, never cropped. */
.attract-slide::before {
  content:''; position:absolute; inset:0; background-image:inherit;
  background-size:cover; background-position:center;
  filter:blur(26px) brightness(.55) saturate(1.2); transform:scale(1.18);
  animation:heroKB 18s ease-in-out infinite alternate;
}
.attract-slide::after {
  content:''; position:absolute; inset:0; background-image:inherit;
  background-size:contain; background-position:center; background-repeat:no-repeat;
}
.attract-slide.on { opacity:1; }
.attract-shade {
  position:absolute; inset:0; z-index:3; pointer-events:none;
  background:linear-gradient(120deg, rgba(179,14,49,.34), rgba(24,26,32,.16) 40%, rgba(230,233,237,.22) 70%, rgba(179,14,49,.30));
  background-size:220% 220%;
  animation:attractSheen 16s ease-in-out infinite alternate;
}
@keyframes attractSheen { from { background-position:0% 40%; } to { background-position:100% 60%; } }
.attract-brand {
  position:absolute; left:60px; bottom:64px; z-index:4;
  font-size:44px; font-weight:800; letter-spacing:2px; color:#fff;
  text-shadow:0 4px 22px rgba(0,0,0,.65);
}
.attract-brand span { color:#ff8296; }
.attract-hint {
  position:absolute; right:60px; bottom:64px; z-index:4;
  font-size:22px; color:rgba(255,255,255,.88); text-shadow:0 2px 10px rgba(0,0,0,.6);
}
/* Focus motion: when focus/hover lands on a card it comes alive with
   a gentle settle (a small overshoot into the standing 1.05 focus
   scale) instead of snapping — every row, Live TV logos included. */
.card, .chip, .az-btn, .kb-key, .sup-qbtn, .lang-chip, .sub-chip {
  transition:transform .28s ease, box-shadow .28s ease;
}
@keyframes focusSettle {
  0% { transform:scale(1); }
  55% { transform:scale(1.07); }
  100% { transform:scale(1.05); }
}
.focusable.focused { animation:focusSettle .38s ease-out; }

/* ================================================================
   REBUILD 2026-11-26 — Boss's consolidated spec + overnight letter:
   pitch-black background everywhere, NO white boxes, NO outlines,
   rounded EMBOSSED cards (subtle shadows, gentle 3D depth), the
   logo alone (no written name beside it), hero dots CENTRED with
   smooth transitions, partners only in their centre row (the fixed
   bottom partner bar is gone), focus flip, pairing, notifications,
   PIN pad, favorites. Brand colours only: jigari #B30E31 + silver.
   ================================================================ */
.focusable{outline:none}
body{background:#050506;color:#e8ebee}
#rail{background:rgba(7,7,9,.97);border-right:1px solid #1e1e24}
#brand-name{display:none}
.rail-btn{color:#c7ccd4}
.rail-btn.active{background:rgba(179,14,49,.18);color:#fff;box-shadow:inset 3px 0 0 #b30e31}
.rail-btn.focused{background:rgba(179,14,49,.28);color:#fff}
#clock{color:#9aa3ad}
#footerbar{background:rgba(7,7,9,.97);border-top:1px solid #1e1e24;color:#9aa3ad}
#partnerbar{display:none!important}
body.on-home #screen{bottom:54px}
#topmenu-brand img{width:44px;height:44px;border-radius:10px;display:block}
.topmenu-btn{color:#dfe3e8}
.topmenu-btn.active{background:#b30e31;color:#fff}
.topmenu-btn.focused{background:rgba(179,14,49,.25);color:#fff}
#hero{height:560px}
#hero-desc{color:rgba(240,242,245,.95)}
#hero-kicker{color:#ff8296}
.hero-badge.alt{background:rgba(8,8,10,.55);color:#eef1f4;border:1px solid rgba(255,255,255,.35)}
#hero-dots{left:50%;right:auto;transform:translateX(-50%);bottom:40px}
.hero-dot{transition:width .45s ease,background .45s ease;cursor:pointer}
#home-detail{border-top:1px solid #232329}
#hd-title{color:#fff}
#hd-desc{color:#9aa3ad}
.hd-badge{background:#1c1e24;color:#cfd4da;border:1px solid #2b2b33}
.row-count{color:#8b939d}
.row-more{background:#17181d;color:#dfe3e8;border:1px solid #2b2b33}
.row-more.focused{box-shadow:0 0 0 3px #b30e31}
.card{background:linear-gradient(180deg,#1d1f26,#101116);padding:0;border-radius:16px;box-shadow:0 12px 26px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.08),inset 0 -12px 22px rgba(0,0,0,.35)}
.card .thumb{border-radius:16px;background:#0b0b0e}
.ep-row .card .thumb{border-radius:16px 16px 0 0}
.card .c-title{color:#e8ebee}
.card .c-sub{color:#8b939d}
.card:hover{transform:scale(1.05)}
.card.focused{box-shadow:0 0 0 3px #b30e31,0 24px 48px rgba(0,0,0,.7),inset 0 1px 0 rgba(255,255,255,.1)}
.card.wide{width:400px}
.card.wide .thumb{height:225px}
.card.flipped{width:158px}
.card.flipped .thumb{height:280px}
.fav-star{position:absolute;top:10px;right:10px;z-index:3;font-size:20px;line-height:1;color:rgba(226,230,234,.4);text-shadow:0 1px 6px rgba(0,0,0,.85);cursor:pointer;padding:2px;transition:color .25s ease,transform .25s ease}
.fav-star.on{color:#e2e6ea;transform:scale(1.15);text-shadow:0 0 10px rgba(179,14,49,.9),0 1px 6px rgba(0,0,0,.85)}
.page-title{color:#fff}
.page-sub{color:#9aa3ad}
.chip{background:#17181d;color:#dfe3e8;border:1px solid #2b2b33;box-shadow:0 6px 14px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.06)}
.chip.active{background:#b30e31;color:#fff;border-color:#b30e31}
.chip.focused,.az-btn.focused,.kb-key.focused,.set-btn.focused,.sup-qbtn.focused,.lang-chip.focused,.sub-chip.focused{box-shadow:0 0 0 3px #b30e31}
.chip.cat-tile{border:none;box-shadow:0 12px 26px rgba(0,0,0,.55)}
.chip.cat-tile.active{box-shadow:0 0 0 3px #b30e31}
.az-btn{background:#17181d;color:#dfe3e8;border:1px solid #2b2b33}
.az-btn.active{background:#b30e31;color:#fff;border-color:#b30e31}
.kb-key{background:#17181d;color:#e8ebee;border:1px solid #2b2b33;box-shadow:0 6px 14px rgba(0,0,0,.4)}
#kb-query{background:#0d0d10;color:#fff;border:1px solid #2b2b33}
.support-h{color:#fff}
.support-h.set-h{font-size:23px;margin:26px 0 10px}
.support-p{color:#c3c9d1}
.set-btn{background:#17181d;color:#e8ebee;border:1px solid #2b2b33;box-shadow:0 8px 18px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.06)}
.big-btn{box-shadow:0 10px 22px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.18)}
.big-btn.focused{box-shadow:0 0 0 3px #e2e6ea,0 14px 30px rgba(0,0,0,.6)}
.sup-qbtn{background:#17181d;color:#e8ebee;border:1px solid #2b2b33}
#sup-query{background:#0d0d10;color:#fff;border:1px solid #2b2b33}
.chat-q{background:#33121b;color:#f3d9de}
.chat-a{background:#17181d;color:#e8ebee}
.lang-chip{background:#17181d;color:#dfe3e8;border:1px solid #2b2b33}
.lang-chip.active{background:#b30e31;color:#fff;border-color:#b30e31}
.sub-chip{background:#17181d;color:#e8ebee;border:1px solid #2b2b33}
.legal-p{color:#c3c9d1}
.state-text{color:#e8ebee}
.spinner{border-color:#2b2b33;border-top-color:#b30e31}
#set-update-msg{color:#9aa3ad;font-size:19px;align-self:center}
.about-line{display:flex;gap:18px;align-items:center;margin:4px 0 14px;color:#c3c9d1;font-size:20px;line-height:1.45}
.about-logo{width:64px;height:64px;border-radius:14px}
#sub-cue.sub-lg #sub-cue-text{font-size:30px}
/* categories: picture-tile grid page + Home category cards */
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.cat-card{position:relative;border:none;border-radius:16px;overflow:hidden;background:#101116;cursor:pointer;padding:0;box-shadow:0 12px 26px rgba(0,0,0,.55);aspect-ratio:16/9;font-family:inherit}
.cat-card img{width:100%;height:100%;object-fit:cover;display:block}
.cat-card-name{position:absolute;left:14px;bottom:10px;color:#fff;font-size:21px;font-weight:700;text-shadow:0 2px 8px rgba(0,0,0,.85)}
.cat-card.focused{box-shadow:0 0 0 3px #b30e31,0 22px 44px rgba(0,0,0,.65)}
.card-row .card.cat-card{width:320px}
.card-row .card.cat-card .thumb{height:180px}
/* pairing (TV side + phone claim side) */
.pair-wrap{display:flex;gap:48px;align-items:flex-start}
.pair-left{text-align:center}
#pair-qr{border-radius:12px;background:#fff}
.pair-code-label{color:#9aa3ad;font-size:18px;margin-top:18px;letter-spacing:2px}
.pair-code{font-size:64px;font-weight:800;letter-spacing:10px;color:#fff}
.pair-count-line{color:#9aa3ad;font-size:18px;margin-top:6px}
.pair-right{max-width:640px}
#pair-status{color:#e8ebee}
#claim-code-display{font-size:44px;font-weight:800;letter-spacing:12px;color:#fff;margin:10px 0 20px}
.fee-card{margin-top:26px;background:linear-gradient(180deg,#1d1f26,#101116);border:1px solid #2b2b33;border-radius:18px;padding:26px;box-shadow:0 16px 34px rgba(0,0,0,.55)}
.fee-bell{color:#ff8296;font-size:15px;letter-spacing:2px;font-weight:700}
.fee-title{font-size:28px;font-weight:800;color:#fff;margin:8px 0}
.fee-body{color:#c3c9d1;font-size:19px;line-height:1.5;margin-bottom:16px}
.fee-note{color:#9aa3ad;font-size:17px;margin-top:12px;line-height:1.45}
.inbox-item{background:#121317;border:1px solid #2b2b33;border-radius:14px;padding:18px 22px;margin-bottom:14px}
.inbox-title{color:#fff;font-size:21px;font-weight:700;margin-bottom:4px}
.inbox-body{color:#9aa3ad;font-size:18px;line-height:1.45}
#pin-dots{display:flex;gap:14px;margin:16px 0 24px}
.pin-dot{width:20px;height:20px;border-radius:50%;border:2px solid #3a3a42;background:transparent}
.pin-dot.on{background:#b30e31;border-color:#b30e31}
/* attract screensaver: video slides + announcement cards */
#attract-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000;opacity:0;transition:opacity .8s ease;z-index:1}
#attract-video.on{opacity:1}
.attract-note{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(ellipse at center,#1a050a 0%,#050506 70%);padding:0 120px}
.attract-note.hidden{display:none}
.attract-note-title{font-size:64px;font-weight:800;letter-spacing:6px;color:#fff;margin-bottom:18px}
.attract-note-line{font-size:26px;color:#c3c9d1;line-height:1.5}
