/* 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 {
  /* §BN 2026-11-26: the subtitle-language menu sits at the TOP
     of the player (Boss's order) - it was anchored to the
     bottom. Gradient + padding mirrored to match. */
  position:absolute; left:0; right:0; top:0; z-index:7;
  background:linear-gradient(180deg, rgba(0,0,0,.88), rgba(0,0,0,.55) 75%, transparent);
  padding:48px 56px 90px; 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:#000;
  opacity:0; transition:opacity 1.4s ease; overflow:hidden;
}
/* §AH (Boss 2026-11-26 ~10:10 EST): ONE banner per slide as a real <img>.
   The old mechanism painted the banner as CSS backgrounds on three
   stacked layers (element cover, blurred ::before cover, ::after
   contain); the element and ::before repeat by default with no
   no-repeat guard, and the bulletin banner is exactly 1280x720 — half
   the 2560x1440 stage in both axes — so when his browser painted a
   repeating layer at the image's own size it tiled into a perfect
   2x2 grid. An <img> cannot tile, ever; object-fit:contain keeps the
   WHOLE banner sharp in frame on pitch black (§P3/§W); there is NO
   blurred backdrop anywhere in the wallpaper. */
.attract-slide img.attract-img {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:contain; display:block;
}
.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%; } }
/* §AH: the bottom-left mark is the SN Plus LOGO (icon.png), small and
   button-sized — the plain-text "SN PLUS" label is gone
   (Boss 2026-11-26 ~10:11 EST). */
.attract-brand {
  position:absolute; left:60px; bottom:56px; z-index:4;
  width:56px; height:56px; display:block;
}
.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: banner slides + announcement cards.
   §AH: #attract-video is GONE — the wallpaper never plays videos
   (Boss 2026-11-26 ~10:11 EST); slides are banner <img> elements. */
.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}

/* ================================================================
   §AB (Boss, 2026-11-26 ~08:10-08:14 EST, ultrawide monitor photos):
   1) STANDARD STAGE ON ULTRAWIDE — his standing §P3 rule ("Default
      and standard Size") at the whole-stage level: on any viewport
      wider than 16:9 the app stage keeps the standard 16:9
      proportion, centred, pitch-black at the sides (pillarbox).
      Nothing stretches to fill an ultrawide screen and nothing is
      clipped at the edges. At 16:9 and narrower nothing changes:
      min() resolves to the full width there. body becomes the
      positioned stage, so every absolutely-positioned layer (rail,
      screen, footer, player, attract, opener) anchors to the stage
      instead of the physical viewport.
   2) OPENER CENTRED — #sn-opener was position:fixed (viewport),
      which on ultrawide left it shrunk toward the left; anchored to
      the stage it fills the centred 16:9 stage exactly, and its
      contain-fit video plays at the standard size in the middle.
      All §S/§V behaviour (once, tap-for-sound, skip, watchdogs) is
      opener.js logic and is untouched.
   3) HERO MOTION — the hero picture itself MOVES again (Boss: "the
      pictures in the hero must not be frozen — they should come
      like motion"). §W put the Ken Burns drift on the blurred
      backdrop only, which read as frozen. The sharp foreground now
      carries a gentle slow zoom (heroKBfg): scale .93 -> 1.0, NEVER
      above 1.0, so the contain-fit picture stays WHOLE inside the
      frame at every instant — no cropped heads/faces, ever — over
      the same §W blurred backdrop. Same treatment for the hero
      promo video element and the idle attract/wallpaper slides.
   ================================================================ */
html{background:#050506}
body{position:relative;width:min(100%,177.7778vh);margin:0 auto}
#player{position:absolute}
#attract{position:absolute}
#sn-opener{position:absolute!important}
#hero-bg::after{animation:heroKBfg 18s ease-in-out infinite alternate}
#hero-video{animation:heroKBfg 18s ease-in-out infinite alternate}
.attract-slide img.attract-img{animation:heroKBfg 18s ease-in-out infinite alternate}
@keyframes heroKBfg{from{transform:scale(.93)}to{transform:scale(1)}}
/* §AG (Boss, 2026-11-26 ~09:32 EST, ultrawide photo): OPENER == WHOLE
   STAGE — supersedes the §AB addendum's opener == hero sizing. On his
   ultrawide the §AB rule left the opener as a small rectangle in the
   upper-middle of the screen: the video element was capped at the
   560px hero strip, and contain-fit shrank the 16:9 picture to
   996x560 (29% of his 3440-wide screen, 39% of its height). His
   order: "make this frame bigger". The video element now fills the
   overlay, and the overlay (absolute, inset:0 of the body stage) IS
   the stage box — so the opener plays as a full-frame launch splash
   at the stage's exact size, contain-fit (§P3: whole picture in
   frame, no stretch/crop; on a 16:9 stage the 1280x720 picture
   fills it exactly). §S/§V behaviour (sound chip, tap-to-unmute,
   skip, watchdogs) is opener.js logic and is untouched. */
#sn-opener-video{position:absolute;left:0;top:0;width:100%!important;height:100%!important}

/* §AG (Boss, 2026-11-26 ~09:33 EST, TV Home photo): HERO TALLER +
   HEADS CENTRED. "Make the full vertical bigger so people's heads
   are in the centre" — the 560px hero strip made the contain-fit
   hero picture small (996px wide on the hero build) and the
   presenter read small and high in the frame. The hero is now 76vh
   of the stage (the hd variant matches; the portrait variant uses
   56vh of its tall stage), so the §W contain + blurred-backdrop
   picture renders far larger, and the focal point is pinned to the
   centre of the frame (the ::after picture already carries
   background-position:center; the hero video now carries an
   explicit object-position:center), so faces sit centred in the
   visible picture — whole picture always in frame, no stretch, no
   cropped heads. */
#hero{height:76vh}
#hero-video{object-position:center}

/* §AB(e) SETTINGS — BURGUNDY LABELS + TEXT-SIZED BUTTONS + RTL (Boss
   2026-11-26 ~08:28 EST, from his Settings photo): every Settings pill,
   label and button is the ONE jigari burgundy #B30E31 with silver text —
   no blue pills, no bright-red blocks, no orange/yellow outline anywhere
   (two-colour rule: burgundy + silver only). The selected state is the
   same burgundy fill with silver text and a silver border. Buttons are
   sized to their text: compact padding, text height — not big blocks. */
.set-view .set-btn, .set-view .chip, .set-view .lang-chip, .set-view .sup-qbtn {
  background:#b30e31; color:#e2e6ea; border:1px solid #b30e31;
}
.set-view .fee-bell { color:#e2e6ea; }
.set-view .big-btn { padding:9px 22px; font-size:23px; border-radius:12px; }
.set-view .chip { padding:8px 18px; font-size:21px; }
.set-view .chip.active, .set-view .lang-chip.active {
  background:#b30e31; color:#e2e6ea; border:2px solid #e2e6ea; font-weight:700;
}
.set-view .set-btn.focused, .set-view .chip.focused, .set-view .lang-chip.focused,
.set-view .sup-qbtn.focused, .set-view .big-btn.focused {
  box-shadow:0 0 0 3px #e2e6ea;
}
.view[dir="rtl"] { direction:rtl; }
.view[dir="rtl"] .page-title, .view[dir="rtl"] .support-h { text-align:right; }
.view[dir="rtl"] .page-sub, .view[dir="rtl"] .support-p, .view[dir="rtl"] .legal-p,
.view[dir="rtl"] .about-line, .view[dir="rtl"] .fee-body, .view[dir="rtl"] .inbox-body { text-align:right; }

/* §AB(e) addendum: Settings buttons/chips never shrink — the row wraps,
   the text does not (keeps every button exactly text-sized). */
.set-view .set-btn, .set-view .chip, .set-view .lang-chip { flex:0 0 auto; }

/* §AB(e) addendum 2: one explicit line-height for Settings buttons/chips
   so Arabic-script labels (taller font metrics) get the same compact,
   text-sized height as Latin ones. */
.set-view .big-btn, .set-view .chip { line-height:1.3; }

/* ============ §AG wave 2 (Boss 2026-11-26 09:41-09:42 EST) ============
   Idle wallpaper: the attract shade's silver sheen (rgba(230,233,237,.22))
   read as a pale blue-grey wash whenever a promo video could not paint —
   the shade is now a dark jigari shade only, and Attract falls back to
   the item's artwork (app.js) so the wallpaper is always OUR content in
   motion on pitch black. Settings: pills smaller (they were 23px/50px
   bold) and normal weight. Home: the hero's focus border was 3px — the
   two thick red lines under the menu and under the hero; now a 1px
   hairline in the same jigari #B30E31. The hero's blurred backdrop
   strips beside the picture read as one murky unidentifiable block —
   they are now clean pitch black (the picture layer is untouched).
   Cards: the white inset top line and the light thumb background are
   gone — card edges disappear into the black like glass; the card, its
   zoom and its button behaviour are unchanged. Outside the frame:
   html/body are pure #000. */
html,body{background:#000}
#attract{background:#000}
.attract-shade{background:linear-gradient(120deg, rgba(179,14,49,.20), rgba(0,0,0,.05) 45%, rgba(0,0,0,.30));background-size:220% 220%}
#hero{border-width:1px}
#hero-bg::before{background:#000;background-image:none;filter:none;transform:none}
#hero-bg.kenburns::before{animation:none}
.card{box-shadow:0 12px 26px rgba(0,0,0,.55),inset 0 -12px 22px rgba(0,0,0,.35)}
.card.focused{box-shadow:0 0 0 3px #b30e31,0 24px 48px rgba(0,0,0,.7)}
.card .thumb{background:#000}
.card .thumb img{background:#000}
.ep-card .thumb,.ep-card .thumb img{background:#000}
.chip{box-shadow:0 6px 14px rgba(0,0,0,.4)}
.set-btn{box-shadow:0 8px 18px rgba(0,0,0,.45)}
.big-btn{box-shadow:0 10px 22px rgba(0,0,0,.5)}
.set-view .set-btn,.set-view .chip,.set-view .lang-chip{font-size:17px;padding:5px 13px}
.set-view .big-btn{font-size:18px;padding:6px 15px}
.topmenu-btn,.rail-label,.row-title,.page-title,#partnerbar-title,.pt-name,.pt-open,#hero-kicker,.hero-badge,#hd-title,.hd-badge,.chip,.set-btn,.big-btn,.lang-chip,.az-btn{font-weight:400}

/* ============ §AH (Boss 2026-11-26 ~10:10-10:15 EST) ============
   Settings (§AH-2): NO white boxes, white lines or light backplates
   anywhere — the silver #e2e6ea focus ring on Settings pills and on
   focused big buttons, and the 2px silver border on active Settings
   chips, are gone; focus now shows as a soft jigari halo and the
   active chip is told apart by its full-strength fill. Default
   (light) scrollbars inside Settings are darkened.
   Colour (Boss ~10:14 EST): every jigari FILL is the logo red
   #B30E31 at 90% alpha over the pitch-black background —
   rgba(179,14,49,.9) — deep and calm, never bright or glary; the
   active/selected state keeps the full-strength #B30E31. Silver
   text (#e2e6ea) is unchanged and stays fully readable on both.
   The same softened treatment covers the shared accent classes and
   the Home focus accents (focus ring + hero hairline via
   .focusable.focused), so the red reads one way everywhere. */
.set-view .set-btn, .set-view .chip, .set-view .lang-chip, .set-view .sup-qbtn {
  background:rgba(179,14,49,.9); border-color:rgba(179,14,49,.9);
}
.set-view .chip.active, .set-view .lang-chip.active {
  background:#b30e31; border:2px solid #b30e31; font-weight:400;
}
.set-view .set-btn.focused, .set-view .chip.focused, .set-view .lang-chip.focused,
.set-view .sup-qbtn.focused, .set-view .big-btn.focused {
  box-shadow:0 0 0 3px rgba(179,14,49,.9), 0 0 24px rgba(179,14,49,.35);
}
.big-btn.focused { box-shadow:0 0 0 3px rgba(179,14,49,.9), 0 14px 30px rgba(0,0,0,.6); }
.chip.active, .lang-chip.active, .sub-chip.active, .az-btn.active,
.topmenu-btn.active { background:rgba(179,14,49,.9); border-color:rgba(179,14,49,.9); }
.pin-dot.on { background:rgba(179,14,49,.9); border-color:rgba(179,14,49,.9); }
.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 rgba(179,14,49,.9);
}
.card.focused { box-shadow:0 0 0 3px rgba(179,14,49,.9), 0 24px 48px rgba(0,0,0,.7); }
.focusable.focused { border-color:rgba(179,14,49,.9); box-shadow:0 0 0 3px rgba(179,14,49,.9), 0 10px 34px rgba(0,0,0,.55); }
.set-view ::-webkit-scrollbar { width:10px; height:10px; }
.set-view ::-webkit-scrollbar-track { background:#000; }
.set-view ::-webkit-scrollbar-thumb { background:#2b2b33; border-radius:5px; }
.set-view { scrollbar-color:#2b2b33 #000; }

/* ===== §AH-6 (Boss 2026-11-26 ~10:18-10:21 EST): country index,
   centred A-Z shortcut, rectangular Settings ===================== */
/* The A-Z shortcut line sits CENTRED between the category banners
   above it and the channel grid below it (Boss: the label between
   the two banners must sit centred). */
.az-strip{justify-content:center}
/* Country BLOCKS begin at the LEFT, ordered A-to-Z (Afghanistan
   first); each block carries the country's NAME + channel count. */
.country-strip{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-start;margin:2px 0 20px}
.country-block{display:flex;flex-direction:column;align-items:flex-start;gap:2px;background:#17181d;color:#e2e6ea;border:1px solid #2b2b33;border-radius:10px;padding:10px 18px;cursor:pointer}
.country-block .cb-name{font-size:21px;color:#e2e6ea}
.country-block .cb-count{font-size:15px;color:#9aa3ad}
.country-block.active{background:rgba(179,14,49,.9);border-color:#b30e31}
.country-block.active .cb-name{color:#fff}
.country-block.active .cb-count{color:#e2e6ea}
.country-block.focused{box-shadow:0 0 0 3px #b30e31}
.az-btn.az-off{opacity:.3}
/* Settings controls RECTANGULAR, four-cornered (Boss's §AH-2
   addendum): no capsule/pill shapes anywhere in Settings - action
   buttons, chips, toggles and the PIN pad (which renders inside
   .set-view) all get plain rectangle corners. */
.set-view .big-btn,.set-view .set-btn,.set-view .chip,.set-view .lang-chip,.set-view .sub-chip,.set-view .sup-qbtn,.set-view .kb-key{border-radius:8px}
/* No white/light outline on any Settings control in any state -
   selection is shown by the soft jigari fill alone (§AH-2). */
.set-view .focusable{outline:none}
/* The Settings view itself paints pitch black - no gradient. */
.set-view{background:#000;background-image:none}
/* Settings headings/labels SIMPLE, not bold (Boss's standing order;
   the base .support-h rule is weight 800 and the §AG2 normal-weight
   list never covered it). */
.set-view .support-h,.set-view .set-h{font-weight:400}

/* §AK (Boss 2026-11-26 ~12:08 EST): the country index is a LEFT-SIDE
   VERTICAL RAIL - ALL at its top, then the country blocks stacked
   A-to-Z (Afghanistan first), each with name + channel count; the
   selected country's channels fill the FRONT area to the right.
   The centred ALL - A-Z shortcut line above stays as it was (§AH-4). */
.live-main{display:flex;gap:24px;align-items:flex-start}
.country-rail{flex-direction:column;flex-wrap:nowrap;flex:0 0 302px;width:302px;margin:2px 0 20px}
.country-rail .country-block{width:100%}
.live-front{flex:1 1 auto;min-width:0}
.live-front #grid-count{padding-top:2px}

/* §AL (Boss 2026-11-26 ~12:10 EST): the AI assistant's card on Home -
   a slim strip in the top area above the content rows: her face in a
   jigari ring, her title in silver, one invitation line. The two
   brand colours only (#B30E31 + silver), pitch black around, rounded
   like the other Home cards. */
.assistant-card{display:flex;align-items:center;gap:24px;width:100%;text-align:left;background:#17181d;border:1px solid #2b2b33;border-radius:14px;padding:16px 28px;margin:4px 0 24px;cursor:pointer}
.assistant-card .assistant-face{width:92px;height:92px;border-radius:50%;border:3px solid #b30e31;object-fit:cover;background:#000;flex:0 0 auto}
.assistant-card .assistant-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.assistant-card .assistant-title{font-size:30px;color:#e2e6ea}
.assistant-card .assistant-invite{font-size:21px;color:#9aa3ad}
.assistant-card.focused{box-shadow:0 0 0 3px rgba(179,14,49,.9),0 0 22px rgba(179,14,49,.35);border-color:#b30e31}

/* §AN (Boss 2026-11-26 ~12:16 EST): one standard fit for pictures and
   video everywhere - standard 16:9, contain, on pitch black, never
   stretched (§P3/§W) - and the series-detail intro frame. */
#video, #embed-frame{object-fit:contain}
#sd-intro{position:relative;width:100%; /* §AY: full stage width */aspect-ratio:16/9;background:#000;border-radius:12px;overflow:hidden;margin:6px 0 20px}
#sd-intro .sd-intro-art{position:absolute;inset:0;background-size:contain;background-position:center;background-repeat:no-repeat}
#sd-intro-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity .7s ease;background:transparent}
#sd-intro.on #sd-intro-video{opacity:1}
#sd-intro .sd-intro-tag{position:absolute;left:16px;top:12px;background:rgba(179,14,49,.9);color:#e2e6ea;font-size:14px;letter-spacing:2px;padding:5px 12px;border-radius:6px}

/* SN Plus / shared-surface motion stylesheet — extracted verbatim from
   the JARGA AssistantFace.vue <style> block (motion update 2026-11-26).
   Class contract:
     .snx-face            wrapper (always: idle sway + breathing)
     .snx-face.talking    speaking state  -> add/remove this class
     .snx-face.thinking   thinking state  -> add/remove this class
     .snx-face.listening  listening state -> add/remove this class
     .snx-face-img        her picture (the <img>)
     .snx-ring            listening pulse ring (child of .snx-face,
                          rendered only while listening)
   All animation is transform/scale only (GPU-cheap, phone-safe).
   See MOTION-INTEGRATION-NOTE.md in this folder. */
.snx-face { position: relative; display: inline-block; flex: none; line-height: 0; transform-origin: 50% 88%; animation: snx-sway 6s ease-in-out infinite, snx-breath 4.8s ease-in-out infinite; }
.snx-face-img { width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; transform-origin: 50% 30%; }
/* Idle sway: gentle and calm, symmetric stops so the loop is seamless. */
@keyframes snx-sway { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-1.6px) rotate(0.45deg); } 50% { transform: translateY(-2.2px) rotate(0deg); } 75% { transform: translateY(-1.6px) rotate(-0.45deg); } }
/* Breathing: an independent slow scale layer (composes with the sway). */
@keyframes snx-breath { 0%, 100% { scale: 1; } 50% { scale: 1.008; } }
/* Talking: natural speech cadence — small, irregular courteous nods on
   the picture itself; matching start/end values keep the loop smooth.
   TTS boundary nods (WAAPI, see script) layer on top when available. */
.snx-face.talking .snx-face-img { animation: snx-img-talk 3.4s ease-in-out infinite; transform-origin: 50% 30%; }
@keyframes snx-img-talk {
  0%, 100% { transform: perspective(520px) rotateX(0deg) translateY(0); }
  14% { transform: perspective(520px) rotateX(2deg) translateY(0.5px); }
  30% { transform: perspective(520px) rotateX(0.8deg) translateY(0.1px); }
  47% { transform: perspective(520px) rotateX(2.4deg) translateY(0.7px); }
  63% { transform: perspective(520px) rotateX(1deg) translateY(0.2px); }
  80% { transform: perspective(520px) rotateX(2.1deg) translateY(0.5px); }
  92% { transform: perspective(520px) rotateX(0.9deg) translateY(0.1px); }
}
/* Thinking: a slight contemplative tilt, mostly still, one slow small
   nod per cycle — dignified, unhurried. */
.snx-face.thinking .snx-face-img { animation: snx-img-think 4.2s ease-in-out infinite; transform-origin: 50% 30%; }
@keyframes snx-img-think {
  0%, 100% { transform: perspective(520px) rotateX(0deg) rotate(0deg); }
  25% { transform: perspective(520px) rotateX(0.8deg) rotate(0.7deg); }
  45% { transform: perspective(520px) rotateX(1.1deg) rotate(0.9deg); }
  58% { transform: perspective(520px) rotateX(2.6deg) rotate(0.9deg); }
  72% { transform: perspective(520px) rotateX(1.1deg) rotate(0.9deg); }
  88% { transform: perspective(520px) rotateX(0.4deg) rotate(0.3deg); }
}
/* Listening: attentive — a slight lean, mostly still, with one slow
   acknowledging nod per cycle. */
.snx-face.listening .snx-face-img { animation: snx-img-listen 4.6s ease-in-out infinite; transform-origin: 50% 30%; }
@keyframes snx-img-listen {
  0%, 100% { transform: perspective(520px) rotateX(0deg) rotate(0deg); }
  22% { transform: perspective(520px) rotateX(1.2deg) rotate(0.7deg); }
  38% { transform: perspective(520px) rotateX(3.4deg) rotate(0.7deg); }
  54% { transform: perspective(520px) rotateX(1.2deg) rotate(0.7deg); }
  78% { transform: perspective(520px) rotateX(1deg) rotate(0.5deg); }
}
.snx-ring { position: absolute; inset: -7px; border: 2px solid #B30E31; border-radius: 50%; pointer-events: none; animation: snx-ring-pulse 2.2s ease-out infinite; }
@keyframes snx-ring-pulse { 0% { transform: scale(0.96); opacity: 0.55; } 100% { transform: scale(1.12); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .snx-face, .snx-face.talking .snx-face-img, .snx-face.listening .snx-face-img, .snx-face.thinking .snx-face-img, .snx-ring { animation: none; }
}


/* §AO app-specific (motion update 2026-11-26): her circular crop -
   the same look as the Home card today - and the support header. */
.snx-face .snx-face-img{border-radius:50%}
.assistant-card .snx-face{flex:0 0 auto}
.support-top{display:flex;gap:22px;align-items:flex-start;margin-bottom:10px}
.support-top-side{flex:1;min-width:0}
#sup-face{cursor:pointer}
#sup-face .snx-face-img{border:3px solid #b30e31;background:#000}


/* §AP (2026-11-26): subtitle controls in the brand two colours,
   rectangular like the Settings controls. The CC button's navy
   background (a pre-brand leftover) is gone; the active subtitle
   language reads in full jigari. */
#player-cc{background:rgba(179,14,49,.18);border:1px solid rgba(179,14,49,.9);color:#e2e6ea;border-radius:10px}
#player-cc.focused{box-shadow:0 0 0 3px rgba(179,14,49,.9),0 0 22px rgba(179,14,49,.35)}
#subbar .sub-chip{border-radius:10px}
#subbar .sub-chip.active{background:#b30e31;color:#fff;border-color:#b30e31}
.pair-card.focused{box-shadow:0 0 0 3px rgba(179,14,49,.9),0 0 34px rgba(179,14,49,.35)} /* §BO: the pairing card itself carries the remote focus when Connect TV opens - the halo is the visible focus */


/* §AQ (2026-11-26): the Premium template - hero banner, benefit
   cards, one action area. Pitch black, jigari + silver only. */
.prem-hero{display:flex;align-items:center;gap:38px;background:radial-gradient(600px 300px at 18% 50%,rgba(179,14,49,.28),transparent 70%),linear-gradient(120deg,#17040a,#0b0b0f);border:1px solid rgba(179,14,49,.55);border-radius:18px;padding:42px 52px;margin-bottom:28px}
.prem-hero-logo{width:148px;height:148px;object-fit:contain;flex:0 0 auto}
.prem-hero-title{font-size:62px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:#e2e6ea;line-height:1.05}
.prem-hero-free{display:inline-block;margin-top:18px;background:#b30e31;color:#fff;font-size:26px;font-weight:700;padding:11px 24px;border-radius:10px}
.prem-cards{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:16px 0 30px}
.prem-card{background:#141419;border:1px solid #2b2b33;border-radius:14px;padding:26px 28px;display:flex;gap:20px;align-items:flex-start}
.prem-ico{flex:0 0 auto;width:56px;height:56px;border-radius:12px;background:rgba(179,14,49,.16);border:1px solid rgba(179,14,49,.8);display:flex;align-items:center;justify-content:center}
.prem-card p{font-size:24px;line-height:1.45;color:#d6dbe0;margin:0}
.prem-action{display:flex;align-items:center;gap:28px;margin:4px 0 30px;flex-wrap:wrap}
.prem-note{font-size:22px;color:#9aa3ad;line-height:1.45;max-width:920px}


/* §AR (2026-11-26): the compact Home assistant entry - avatar +
   "AI" only, no card box (amends §AL). Focus reads through the
   avatar's jigari ring and the label's glow, not a new box. */
.assistant-slim{display:flex;align-items:center;gap:14px;background:none;border:none;padding:6px 4px;margin:2px 0 8px;cursor:pointer;text-align:left}
.assistant-slim .assistant-face{width:54px;height:54px;border-radius:50%;border:3px solid #b30e31;object-fit:cover;background:#000;flex:0 0 auto}
.assistant-slim .assistant-ai{font-size:26px;font-weight:700;color:#fff;letter-spacing:.05em}
.assistant-slim.focused .assistant-face{box-shadow:0 0 0 3px rgba(179,14,49,.95),0 0 18px rgba(179,14,49,.45)}
.assistant-slim.focused .assistant-ai{text-shadow:0 0 16px rgba(179,14,49,.9)}


/* §AS (2026-11-26): ONE hero picture only. Every hero layer is
   contain-fit, so the blurred backdrop can only ever be a soft
   halo of the SAME picture directly behind it - never a zoomed
   cover slice bleeding in at the edges - and the Ken Burns drift
   no longer drags picture content sideways. */
#hero{background:#000}
#hero-bg{background-size:contain;background-repeat:no-repeat;background-position:center}
#hero-bg::before{background-size:contain;background-repeat:no-repeat;filter:blur(34px) brightness(.45) saturate(1.1);transform:scale(1.02)}
#hero-bg.kenburns::before{animation:heroKB2 18s ease-in-out infinite alternate}
@keyframes heroKB2{from{transform:scale(1.02)}to{transform:scale(1.05)}}


/* §AT (2026-11-26): a rested poster card (Drama Series, Our
   Contents) grows into the enlarged vertical form - the same
   ~1 s rest flip the horizontal cards get, sized for posters
   (216x324 -> 252x378, the 2:3 poster ratio kept). */
.card.poster{transition:width .45s ease}
.card.poster .thumb{transition:height .45s ease}
.card.poster.flipped{width:252px}
.card.poster.flipped .thumb{height:378px}


/* §AV (2026-11-26): country rail blocks sized to their TEXT -
   compact padding, tight lines, smaller rail gap, so more
   countries fit on screen at once (§AK behaviour unchanged). */
.country-rail{gap:6px}
.country-rail .country-block{padding:4px 14px;gap:0}
.country-rail .cb-name{font-size:20px;line-height:1.15}
.country-rail .cb-count{font-size:14px;line-height:1.15}


/* §AV extension (2026-11-26): country blocks hug their text in
   WIDTH too - the rail is a left-aligned column and each block
   takes only the width its name + count need (capped at the
   rail width), instead of stretching across the whole rail. */
.country-rail{align-items:flex-start}
.country-rail .country-block{width:auto;max-width:100%}


/* §AX (2026-11-26): PREMIUM badge on every series poster - jigari
   badge, silver text, top-right of the thumb (the SERIES badge
   sits top-left), inside .thumb so it survives the flipped form. */
.card .prem-badge{position:absolute;top:24px;right:24px;z-index:2;background:#b30e31;color:#e2e6ea;font-size:15px;font-weight:700;letter-spacing:1.5px;padding:5px 11px;border-radius:8px}
.prem-badge.sd-prem{position:absolute;top:12px;right:16px;z-index:2;background:#b30e31;color:#e2e6ea;font-size:15px;font-weight:700;letter-spacing:1.5px;padding:5px 11px;border-radius:8px}


/* §AY (2026-11-26): the EPISODE pill inside episode thumbnails
   hugs its text and wears the brand pair (jigari + silver). */
.card[data-kind="episode"] .kind-badge{top:12px;left:12px;background:#b30e31;color:#e2e6ea;font-size:13px;letter-spacing:1px;padding:3px 8px;border-radius:6px}


/* §BA (2026-11-26): Premium boxes compact - same design, less
   height: hero padding/logo/title down, benefit cards tighter. */
.prem-hero{padding:20px 30px;gap:24px;margin-bottom:18px;border-radius:14px}
.prem-hero-logo{width:84px;height:84px}
.prem-hero-title{font-size:40px}
.prem-hero-free{margin-top:10px;font-size:20px;padding:7px 16px}
.prem-cards{gap:14px;margin:10px 0 20px}
.prem-card{padding:16px 20px;border-radius:12px;gap:14px}
.prem-card p{font-size:20px}
.prem-ico{width:44px;height:44px;border-radius:10px}
.prem-series{margin:6px 0 26px}


/* §BC (2026-11-26): "Show more" sized to its text - compact
   height + width, standard jigari pinned explicitly. */
#grid-more{font-size:20px;font-weight:600;padding:9px 24px;border-radius:10px;background:#b30e31;color:#e2e6ea}


/* §BF (2026-11-26): country entries are box-less TEXT rows at
   ONE uniform size - width of the longest name (North
   Macedonia), same height for all. Selection is jigari text +
   weight with a jigari side marker; no fill, no border. */
.country-rail .country-block{background:transparent;border:none;border-left:3px solid transparent;border-radius:0;box-shadow:none;width:204px;max-width:204px;height:52px;justify-content:center;padding:2px 10px}
.country-rail .country-block .cb-name{white-space:nowrap}
.country-rail .country-block.active{background:transparent;border-color:transparent;border-left:3px solid #b30e31}
.country-rail .country-block.active .cb-name{color:#b30e31;font-weight:700}
.country-rail .country-block.active .cb-count{color:#9aa3ad}
.country-rail .country-block.focused{box-shadow:none;border-left:3px solid #b30e31}
.country-rail .country-block.focused .cb-name{color:#fff;font-weight:700}

.country-rail .country-block.active.focused .cb-name{color:#b30e31;font-weight:700}


/* §BH (2026-11-26): pairing = ONE centred instruction card on
   pitch black - the QR sits in the middle of the stage, the
   6-digit code directly under it, the steps a clean centred
   block under a short jigari rule, status at the card foot.
   Card chrome matches the app's other panels (fee-card family);
   jigari + silver only. margin:auto inside the flex view keeps
   the card centred yet scroll-safe if it ever outgrows the
   screen height. */
.view.pair-view{position:absolute;inset:0;display:flex;padding:36px 60px}
.pair-card{margin:auto;max-height:100%;overflow-y:auto;background:linear-gradient(180deg,#1d1f26,#101116);border:1px solid #2b2b33;border-radius:20px;box-shadow:0 24px 60px rgba(0,0,0,.6);padding:38px 64px 34px;text-align:center;max-width:920px}
.pair-card-title{font-size:38px;font-weight:800;color:#fff}
.pair-card #pair-qr{display:block;margin:24px auto 0}
.pair-card .pair-code-label{margin-top:20px}
.pair-divider{width:120px;height:3px;border-radius:2px;background:#b30e31;margin:26px auto 22px}
.pair-steps-h{font-size:25px;font-weight:800;color:#fff;margin-bottom:12px}
.pair-steps{color:#c3c9d1;font-size:21px;line-height:1.55;max-width:680px;margin:0 auto}
.pair-status{color:#e8ebee;font-size:21px;line-height:1.5;margin-top:22px}


/* §BI (2026-11-26): country BOXES BACK (Boss corrects §BF) -
   every rail entry is a box again at ONE uniform size: width
   of the longest name (North Macedonia), same height for all.
   Box chrome = the app's original country-block treatment;
   selection is the jigari fill with white name / silver count;
   focus is the jigari halo. */
.country-rail .country-block{background:#17181d;border:1px solid #2b2b33;border-radius:10px;box-shadow:none;width:204px;max-width:204px;height:52px;justify-content:center;padding:2px 10px}
.country-rail .country-block.active{background:rgba(179,14,49,.9);border-color:#b30e31}
.country-rail .country-block.active .cb-name{color:#fff;font-weight:700}
.country-rail .country-block.active .cb-count{color:#e2e6ea}
.country-rail .country-block.focused{box-shadow:0 0 0 3px #b30e31}
.country-rail .country-block.focused .cb-name{color:#fff;font-weight:700}
.country-rail .country-block.active.focused .cb-name{color:#fff}


/* §BJ (2026-11-26): category tiles - kill the 60% WHITE wash
   behind the ACTIVE tile (rgba(255,255,255,.6) in the base
   rules): with the old translucent banner PNGs it turned the
   selected banner into a blank grey box. The artwork is now
   opaque and the jigari halo alone marks the selection. */
.chip.cat-tile,.chip.cat-tile.active{background:transparent}


/* §BK (2026-11-26): the attract base is pitch black like the
   rest of the app (was #101216), so the wallpaper's frame is
   the same black as every other screen. */
#attract{background:#000}


/* ================= §BR (Boss's written priority list 2026-11-27, section 1):
   ONE clean, subtle focus effect - the double red lines are gone.
   Before this round a focused card carried BOTH a 3px jigari border
   (.focusable base + border-color) AND a 3px jigari box-shadow ring:
   two parallel red frames, which on TV read as double red lines
   above and below the selected item (the sides hide behind the
   neighbouring cards). Now the border stays transparent and there
   is exactly ONE 2px jigari ring plus a soft jigari glow - modern,
   subtle, still only the two brand colours. The §A/§AT/§AW flip
   geometry and the focus scale are untouched. ================= */
.focusable.focused { border-color:transparent; box-shadow:0 0 0 2px rgba(179,14,49,.95), 0 0 22px rgba(179,14,49,.32), 0 10px 34px rgba(0,0,0,.55); }
.card.focused { box-shadow:0 0 0 2px rgba(179,14,49,.95), 0 0 22px rgba(179,14,49,.30), 0 24px 48px rgba(0,0,0,.7); }
.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 2px rgba(179,14,49,.95), 0 0 16px rgba(179,14,49,.30); }
.set-view .set-btn.focused, .set-view .chip.focused, .set-view .lang-chip.focused, .set-view .sup-qbtn.focused, .set-view .big-btn.focused { box-shadow:0 0 0 2px rgba(179,14,49,.95), 0 0 16px rgba(179,14,49,.30); }
.big-btn.focused { box-shadow:0 0 0 2px rgba(179,14,49,.95), 0 0 18px rgba(179,14,49,.30), 0 14px 30px rgba(0,0,0,.6); }
.row-more.focused { box-shadow:0 0 0 2px rgba(179,14,49,.95), 0 0 14px rgba(179,14,49,.30); }
.cat-card.focused { box-shadow:0 0 0 2px rgba(179,14,49,.95), 0 0 20px rgba(179,14,49,.30), 0 22px 44px rgba(0,0,0,.65); }
.country-block.focused, .country-rail .country-block.focused { box-shadow:0 0 0 2px rgba(179,14,49,.95), 0 0 16px rgba(179,14,49,.30); }
.pair-card.focused { box-shadow:0 0 0 2px rgba(179,14,49,.95), 0 0 34px rgba(179,14,49,.35); }
#player-cc.focused { box-shadow:0 0 0 2px rgba(179,14,49,.95), 0 0 22px rgba(179,14,49,.35); }
.assistant-card.focused { box-shadow:0 0 0 2px rgba(179,14,49,.95), 0 0 22px rgba(179,14,49,.35); border-color:transparent; }
.assistant-slim.focused .assistant-face { box-shadow:0 0 0 2px rgba(179,14,49,.95), 0 0 18px rgba(179,14,49,.45); }
/* §BR: the lock note inside a locked series' intro frame (the
   artwork stays; the intro video does not play - see app.js Gate). */
#sd-intro .sd-lock { position:absolute; left:18px; bottom:16px; z-index:3; background:rgba(5,5,6,.85); color:#e2e6ea; border:1px solid rgba(179,14,49,.9); border-radius:10px; padding:8px 14px; font-size:19px; }


/* §BR refinement (Boss 2026-11-27 ~01:10 EST): the wallpaper moves
   SLOWLY and gently - a 2.8 s dissolve between banners (was 1.4 s)
   and a barely-there 30 s Ken Burns drift (was the hero's 18 s
   heroKBfg), the sheen slowed to match. §AH/§AJ/§BK untouched:
   one sharp drama banner per slide, contain-fit on pitch black,
   validated slides only, §BE tune unchanged. */
.attract-slide { transition:opacity 2.8s ease; }
.attract-slide img.attract-img { animation:attractKB 30s ease-in-out infinite alternate; }
@keyframes attractKB { from { transform:scale(1); } to { transform:scale(1.045); } }
.attract-shade { animation-duration:26s; }

/* §BR fix-up: a focused ACTIVE category tile keeps the single subtle
   ring too (was: 3px ring + 3px outline from the .active rules). */
.chip.cat-tile.focused { outline:none; }
.chip.cat-tile.active.focused { box-shadow:0 0 0 2px rgba(179,14,49,.95), 0 0 16px rgba(179,14,49,.30); outline:none; }


/* §BV (Boss's written directive 2026-11-27 §§2-3): poster cards
   rest PORTRAIT 9:16 (180x320); a rested card EXPANDS into a
   landscape 16:9 preview - channel cards 400x225, wide cards
   480x270, poster cards 432x243 - with the Play button visible
   inside it (the §A/§AT vertical flip is retired; its .flipped
   rules above are inert, no script adds that class any more).
   The expanded poster preview shows the series' landscape hero
   art cover-fit - cropped, never stretched, so no distortion.
   The Home Premium heading (.prem-head) and the Premium page's
   series heading (.prem-series-h) are CENTRED. Brand colours
   only: jigari #B30E31 + silver #e2e6ea on pitch black. */
.card{transition:width .45s ease}
.card .thumb{transition:height .45s ease}
.card.poster{width:180px}
.card.poster .thumb{height:320px}
.card.expanded{width:400px}
.card.expanded .thumb{height:225px}
.card.wide.expanded{width:480px}
.card.wide.expanded .thumb{height:270px}
.card.poster.expanded{width:432px}
.card.poster.expanded .thumb{height:243px}
.card.poster.expanded .thumb img{object-fit:cover}
.card.expanded .thumb::after{content:'';position:absolute;inset:0;background:rgba(0,0,0,.22);z-index:2}
.card .play-btn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.85);z-index:5;display:flex;align-items:center;gap:10px;background:#B30E31;color:#fff;border:2px solid #e2e6ea;border-radius:999px;padding:12px 26px;font-size:22px;font-weight:700;letter-spacing:.4px;opacity:0;pointer-events:none;transition:opacity .3s ease,transform .3s ease;box-shadow:0 10px 28px rgba(0,0,0,.6)}
.card .play-btn .play-ico{font-size:20px;line-height:1}
.card.expanded .play-btn{opacity:1;transform:translate(-50%,-50%) scale(1)}
.prem-head{text-align:center;margin-bottom:14px}
.prem-series-h{text-align:center}

/* ================= §BY (2026-11-27) — Amazon-style DOWNSIDE on the
   TV front page: country blocks + the full channel index in mixed
   layouts below the existing Home rows (mirrors the phone §BX
   grammar, TV sizes), silver accent rules on the section headings,
   the Top-10 numeral row, the jigari PREMIUM pill mechanism, and
   the Fix11-style hero zoom-out settle on the sharp hero picture
   (the front page carries motion like Amazon's home page). ====== */
/* §BY: the silver heading RULES under the downside section titles are REMOVED (Boss 2026-11-27 ~20:34 EST — the lines below the front come off, they only clutter). Headings keep their silver text accents only. */
#by-countries .by-premium-badge { position:absolute; top:10px; right:10px; z-index:3; background:#B30E31; color:#fff; font-size:15px; font-weight:800; letter-spacing:1px; padding:4px 10px; border-radius:6px; }
.by-rail-big .card { width:400px; }
.by-rail-big .card .thumb { height:225px; }
/* §BY: .by-grid-small superseded by .by-vgrid (alternating orientation rule) — vertical-line cards take the .by-vcard geometry below. */
.by-vgrid .card-row { flex-wrap:wrap; overflow-x:visible; }
.by-grid-wide .card-row { flex-wrap:wrap; overflow-x:visible; }
.by-grid-wide .card { width:calc(50% - 11px); }
.by-grid-wide .card .thumb { height:320px; }
.by-top10-item { display:flex; align-items:center; gap:4px; flex:0 0 auto; }
.by-num { font-size:150px; font-weight:900; line-height:.78; color:#c0c0c0; -webkit-text-fill-color:transparent; -webkit-text-stroke:3px #c0c0c0; padding:0 2px; }
#hero-bg.kenburns::after { animation:heroZoomOut 8s ease-out both; }
@keyframes heroZoomOut { from { transform:scale(1.16); } to { transform:scale(1); } }

/* ================= §BY-2 (2026-11-27) — hero FLIP (TV only),
   alternating row orientation, banner GLOW + matte 12K-ultra grade.
   Boss, voice call 2026-11-27 ~20:32-20:40 EST. ====== */
/* The flip: a slow, gentle 1.4 s ease-in-out (calmed per Boss
   ~20:38 EST — the motion was flipping too fast). */
#hero-bg.flip { animation:heroFlip 1.4s ease-in-out; transform-origin:center; }
@keyframes heroFlip { from { transform:perspective(1500px) rotateY(84deg); } to { transform:perspective(1500px) rotateY(0deg); } }
/* Vertical-line cards: portrait geometry (Amazon portrait tiles). */
.by-vcard { width:180px; }
.by-vcard .thumb { height:320px; }
/* Horizontal-line cards turn VERTICAL on a ~1 s remote rest. */
.card.by-hcard { transition:width .45s ease; }
.card.by-hcard .thumb { transition:height .45s ease; }
.card.by-hcard.by-vertical { width:180px; }
.card.by-hcard.by-vertical .thumb { height:320px; }
/* Vertical-style play: a portrait 9:16 stage centred on pitch
   black; the 16:9 picture contain-fits whole inside it. */
#player.vplay #video, #player.vplay #embed-frame { inset:auto; top:0; left:50%; transform:translateX(-50%); height:100%; width:auto; aspect-ratio:9 / 16; background:#000; box-shadow:0 0 90px rgba(0,0,0,.9); }
/* Moon-halo GLOW: a soft BLACK glow around and below the front
   banners (Boss ~20:34 EST). Focused cards keep the §BR jigari
   ring + glow — the halo yields to it via :not(.focused). */
#hero { box-shadow:0 34px 90px rgba(0,0,0,.85), 0 10px 34px rgba(0,0,0,.65), 0 0 70px rgba(192,192,192,.16), 0 26px 60px rgba(179,14,49,.12); } /* §BY-4: + the luminous silver rim and a faint jigari under-glow (Boss's glow picture, 2026-11-27 ~20:53 EST — silver/jigari tones only, never a hard line) */
#view-root .card:not(.focused) { box-shadow:0 22px 48px rgba(0,0,0,.78), 0 6px 18px rgba(0,0,0,.6), 0 0 30px rgba(192,192,192,.13), 0 12px 30px rgba(179,14,49,.08); } /* §BY-4: + the luminous silver rim / jigari under-glow */
/* Matte 12K-ultra colour grade — matte, no shine — on the hero's
   sharp picture layer and every in-app card's art. */
#hero-bg::after { filter:saturate(.94) contrast(1.03); }
#view-root .card .thumb img { filter:saturate(.94) contrast(1.03); }

/* ================= §BY-3 (2026-11-27) — the Netflix half of the
   mix at the head of the downside: pill category chips (silver
   pills, jigari focus ring — the two-colour brand) and the silver
   meta line. No border lines (Boss's lines removal stands). ====== */
.by-chips { display:flex; flex-wrap:wrap; gap:12px; margin:18px 0 10px; }
.by-chip { border-radius:999px; border:1px solid rgba(192,192,192,.45); background:rgba(255,255,255,.04); color:#c0c0c0; font-size:21px; font-weight:600; padding:9px 22px; cursor:pointer; font-family:inherit; }
.by-chip.focused { box-shadow:0 0 0 2px rgba(179,14,49,.95), 0 0 22px rgba(179,14,49,.30); border-color:#B30E31; color:#fff; }
.by-meta { color:#9aa3ad; font-size:20px; margin:2px 0 4px; }

/* ================= §BY-4 (2026-11-27) — row-height rhythm
   (small -> TALL -> standard portrait lines), the TOP 10 corner
   badge, and the generalised focus stand-up geometry, from
   Boss's Netflix pictures + counts ~20:53-20:54 EST. ====== */
.by-vrail .by-vcard { width:150px; }
.by-vrail .by-vcard .thumb { height:267px; }
.by-vgrid .by-vcard { width:216px; }
.by-vgrid .by-vcard .thumb { height:384px; }
.by-top10-badge { position:absolute; top:10px; left:10px; z-index:4; background:#B30E31; color:#fff; font-size:14px; font-weight:800; letter-spacing:1px; padding:4px 9px; border-radius:6px; box-shadow:0 0 18px rgba(179,14,49,.35); }
.by-top10-sec .card .kind-badge { top:52px; }
.card.by-vertical { width:180px; }
.card.by-vertical .thumb { height:320px; }

/* ================= §CG (ported from Fix13, §CH 2026-11-28) —
   SMOKY EDGE FINISH on every banner picture (Boss's reference
   graphic, 2026-11-28 ~00:24 EST): the picture melts into
   smoke/mist on ALL FOUR SIDES while the centre — faces,
   subjects — stays clear and sharp; no hard rectangular edge
   anywhere. The mist is COLOUR-MATCHED to each picture's own
   edge colours: SmokeFX (js/app.js, ported with this block)
   samples the image's four edge bands and sets --smoke-t/b/l/r
   on the host; hosts whose art cannot be sampled (cross-origin
   catalogue art) keep the neutral silver-smoke defaults
   declared here. CSS gradients + inset shadows only — no
   filters — so the TV stays smooth. The hero overlay sits at
   z-index 3, over the picture and the shade, under the hero
   body (z 4) and the ad tag (z 5). */
/* hero (full-frame scale) */
#hero{--smoke-t:rgba(168,175,186,.50);--smoke-b:rgba(168,175,186,.55);--smoke-l:rgba(168,175,186,.45);--smoke-r:rgba(168,175,186,.45)}
#hero::after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(180deg,var(--smoke-t),transparent 22%,transparent 76%,var(--smoke-b)),linear-gradient(90deg,var(--smoke-l),transparent 16%,transparent 84%,var(--smoke-r));box-shadow:inset 0 84px 84px -40px var(--smoke-t),inset 0 -100px 100px -40px var(--smoke-b),inset 84px 0 84px -40px var(--smoke-l),inset -84px 0 84px -40px var(--smoke-r)}
/* row cards (thumb scale) — ::before was unused on thumbs */
#view-root .card .thumb{--smoke-t:rgba(168,175,186,.50);--smoke-b:rgba(168,175,186,.55);--smoke-l:rgba(168,175,186,.45);--smoke-r:rgba(168,175,186,.45)}
#view-root .card .thumb::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;background:linear-gradient(180deg,var(--smoke-t),transparent 30%,transparent 68%,var(--smoke-b)),linear-gradient(90deg,var(--smoke-l),transparent 24%,transparent 76%,var(--smoke-r));box-shadow:inset 0 36px 36px -16px var(--smoke-t),inset 0 -44px 44px -16px var(--smoke-b),inset 36px 0 36px -16px var(--smoke-l),inset -36px 0 36px -16px var(--smoke-r)}
#view-root .card .kind-badge{z-index:3}
#view-root .card .prem-badge{z-index:3}

/* ================= §CH (2026-11-28) — CINEMATIC DEPTH,
   uniform ground shadow: the §BY-4 stacks already ground the
   hero and the resting row cards; this block extends the same
   soft shadow UNDERNEATH to the surfaces that lacked it — the
   category cards (resting + focused) and the focused row card —
   so hero, rows, categories and the Rentals shelf (standard
   .card markup) all sit on the same ground. The §BR focus ring
   (ONE 2px jigari ring + glow) is preserved exactly; only the
   deep ground layer is appended. Shadows/gradients only. */
#view-root .cat-card{box-shadow:0 12px 26px rgba(0,0,0,.55),0 40px 52px -18px rgba(0,0,0,.85)}
#view-root .cat-card.focused{box-shadow:0 0 0 2px rgba(179,14,49,.95),0 0 20px rgba(179,14,49,.30),0 22px 44px rgba(0,0,0,.65),0 44px 60px -20px rgba(0,0,0,.85)}
#view-root .card.focused{box-shadow:0 0 0 2px rgba(179,14,49,.95),0 0 22px rgba(179,14,49,.30),0 24px 48px rgba(0,0,0,.7),0 44px 60px -20px rgba(0,0,0,.85)}

/* ================= §CI (2026-11-28) — PAIRING SCREEN:
   FULL-SCREEN LANDSCAPE FRAME ON PURE BLACK (Boss, voice call
   2026-11-28 ~07:41 EST: "this barcode for whole screen and the
   background of the barcode be black… all this frame like
   landscape"; refinement ~07:42 EST: the writing below the
   barcode is JUSTIFIED, spread edge-to-edge "from right to
   left, all like justification"). The §BH centred card is
   retired as the visual frame: the pairing view itself becomes
   a fixed full-viewport landscape frame — no card surface, no
   navy gradient panel, no coloured border. QR + the 6-digit
   code sit in one column; title, divider, the three steps and
   the waiting status sit in the other; the steps and status
   text is fully JUSTIFIED. The restricted left rail stays on
   top at the left (the frame's left padding clears it), the
   player (z 100) and attract mode (z 90) stay above. Brand
   accents only: the jigari divider bar, the silver code, and a
   quiet silver focus ring (the frame itself is the focus
   target, so the ring hugs the screen edge). Presentation
   only — every pairing id, endpoint, countdown and behaviour
   is unchanged. */
.view.pair-view{position:fixed;inset:0;z-index:30;background:#000;padding:0 72px 0 172px}
.pair-card{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:110px;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;background:#000;border:none;border-radius:0;box-shadow:none;text-align:left}
.pair-card.focused{box-shadow:inset 0 0 0 2px rgba(199,204,212,.55)}
.pair-col-qr{flex:none;text-align:center}
.pair-card #pair-qr{display:block;margin:0 auto;width:520px;height:520px}
.pair-card .pair-code{font-size:76px}
.pair-col-text{flex:1 1 auto;min-width:0;max-width:920px}
.pair-card .pair-card-title{text-align:left;font-size:46px}
.pair-card .pair-divider{margin:30px 0 26px}
.pair-card .pair-steps-h{text-align:left;font-size:28px}
.pair-card .pair-steps{max-width:none;margin:0;text-align:justify;font-size:24px;line-height:1.6}
.pair-card .pair-status{text-align:justify}
.pair-view[dir="rtl"] .pair-card-title,.pair-view[dir="rtl"] .pair-steps-h{text-align:right}

/* ================= §CL (2026-11-28) — VERTICAL CARDS ENLARGED
   (Boss, chat 2026-11-28 10:46 EST, Android Google TV photo):
   "make the vertical size bigger so four show in the frame."
   Resting poster cards step up 180x320 -> 400x711 (the 9:16
   ratio kept): at the 1920 stage the row inner width is ~1676px
   (hero geometry) / ~1680px (HD geometry), and 4 x 400 + 3 x 20
   gap = 1660px — exactly four full vertical cards across, the
   remaining items of the 12 continue off-frame in the horizontal
   scroll. The §BY vertical focus form takes the same size, so a
   horizontal card that stands up on focus lands at the one
   vertical size; focus behaviour itself is unchanged (posters
   still rest-expand into their 16:9 preview with Play; the
   play-in-vertical path is kept). The §CH moon-glow ground
   shadow and the §BR focus ring are untouched. */
.card.poster{width:400px}
.card.poster .thumb{height:711px}
.card.by-vertical{width:400px}
.card.by-vertical .thumb{height:711px}
.card.by-hcard.by-vertical{width:400px}
.card.by-hcard.by-vertical .thumb{height:711px}

/* ================= §CL2 (2026-11-28) — ALL CARDS +30%
   (Boss, chat 2026-11-28 10:51 EST): "increase ALL banner/card
   sizes by 30%" — every row's cards, measured against the sizes
   live on his TV before this change (standard card 280x158,
   wide 400x225, expanded preview 400x225 / wide 480x270 /
   poster 432x243, episode card 404x180, category tile 264x149,
   category row card 320x180, downside rail card 400x225, grid
   thumb 320). Each is stepped up by exactly 30% below. The
   vertical cards are the one exception to the +30% arithmetic:
   they follow §CL's yardstick — Boss's own measure of four
   across the frame, in the mobile layout's 9:16 portrait
   pattern — which lands them at 400x711, above +30%.
   The hero frame itself is the screen, not a card; unchanged. */
.card{width:364px}
.card .thumb{height:205px}
.card.wide{width:520px}
.card.wide .thumb{height:293px}
.card.expanded{width:520px}
.card.expanded .thumb{height:293px}
.card.wide.expanded{width:624px}
.card.wide.expanded .thumb{height:351px}
.card.poster.expanded{width:562px}
.card.poster.expanded .thumb{height:316px}
.ep-card{width:525px}
.ep-card .thumb{height:234px}
.chip.cat-tile{width:343px;height:194px}
.card-row .card.cat-card{width:416px}
.card-row .card.cat-card .thumb{height:234px}
.by-rail-big .card{width:520px}
.by-rail-big .card .thumb{height:293px}
.by-grid-wide .card .thumb{height:416px}

/* ================= §CL3 (2026-11-28) — THE FOCUS MORPH FILLS
   THE FRAME (Boss, chat 2026-11-28 10:53 EST, Free to Me photo):
   the focused card stands up into the large vertical form, but
   its picture stayed a small landscape image floating inside
   the tall frame with black space around it. Two fixes:
   (1) the §BY vertical form's picture now COVERS the whole
   frame (cover-fit, centred) — no black bars, no empty space,
   in every row type; (2) the vertical size is re-asserted AFTER
   the §CL2 +30% block so a wide card that stands up on focus
   lands at the vertical 400x711, not at its resting wide size.
   The morph itself is unchanged: width/height transition .45s
   ease (§BV) into the vertical form, focus settle on top. */
.card.by-vertical{width:400px}
.card.by-vertical .thumb{height:711px}
.card.by-hcard.by-vertical{width:400px}
.card.by-hcard.by-vertical .thumb{height:711px}
.card.by-vertical .thumb img{object-fit:cover}
.card.by-hcard.by-vertical .thumb img{object-fit:cover}

/* ================= §CL4 (2026-11-28) — HERO FULL FRAME, SHADE
   REMOVED (Boss, voice call 2026-11-28 ~10:58 EST): the top
   wallpaper frame takes the WHOLE frame at full size, and its
   shadow/shade is removed. The hero's motion effects (Ken Burns
   drift, smoke fade, zoom settle) are NOT touched — only the
   frame: full-viewport height (was 76vh), the 1px frame border
   gone, and the #hero-shade gradient overlay hidden. Row-card
   ground shadows (the §CH moon-glow) are a separate standing
   order and stay exactly as they are. */
#hero{height:100vh;border:none;box-shadow:none}
#hero-shade{display:none}

/* §CO (Boss, chat 2026-11-28 12:08 EST — his photo of the
   "Emotional Pain" hero filling the ENTIRE screen, no row
   visible): «دې سره باید یوه هرزنتل رو بینر ووسی» — with the
   full hero there must be ONE HORIZONTAL ROW of banners visible
   with it. §CL4's 100vh pushed every row off the opening screen;
   the hero returns to 76vh — full-frame wide and dominant, the
   frame border and shade stay removed (§CL4, kept), the motion
   effects untouched, the §CL9 focus-follow untouched — and the
   first row sits beneath it on the opening screen, the
   arrangement of Boss's own demo video (full graphic on top,
   one horizontal line below). MEASURED FIT (§CO harness,
   1920x1080): the screen's usable height is 1026px; the top
   menu takes 52, the assistant strip 66, the row head 73 and a
   full horizontal row 299 — leaving at most ~480px (~44%) for
   the hero if the row is to be FULLY visible. The hero is set
   to 42vh (454px) so hero + one full horizontal row share the
   opening screen with margin; the hero stays full-frame wide
   and dominant, and the focus-follow still fills it. */
#hero{height:42vh}

/* ================= §CL8 (2026-11-28) — ROW CARDS KEEP THEIR
   OWN HEIGHT: when one card in a row stands up into the tall
   vertical morph, the flex row no longer stretches its resting
   neighbours into tall empty frames around a centred thumbnail
   (the same big-dark-frame look Boss flagged, on the neighbours).
   Cards align to the top of the row at their own resting height;
   sizes, gaps and scrolling are unchanged. */
.card-row{align-items:flex-start}

/* ================= §CL7 (2026-11-28) — HERO TEXT A LITTLE
   LOWER (Boss, chat 2026-11-28 11:16 EST, after his video of the
   working main menu): "the banner's left side a little lower" —
   the hero's left text block (series title + description over
   the picture) sits slightly lower in the full-frame hero:
   bottom 48px -> 26px. The writing stays over the picture; the
   full-frame hero and the row below it are unchanged. */
#hero-body{bottom:26px}

/* ================= §CL10 (2026-11-28) — ACTIVATION STRIP OFF
   THE FRONT (Boss, chat 2026-11-28 11:27 EST, photo of the app
   on his TV): "remove that writing at the top too" — the whole
   top strip ("...TV is not activated yet. Connect your phone to
   unlock every menu and Premium..." + its red "Connect your
   phone" button) no longer shows on the front. Presentation
   only: the gate itself is untouched, and the left rail's
   Connect TV entry remains the pairing path. The hero's own
   information text is a different thing and stays. (The gate
   injects its own .access-banner{display:flex} sheet at runtime,
   so this rule carries the #view-root scope to win the cascade
   without touching the gate's code.) */
#view-root .access-banner{display:none}

/* ================= §CO (2026-11-28) — CATEGORIES GRID TILES +
   CATEGORY BANNER. The grid tiles are our own design (Boss's
   12:07 order): matte black base, a jigari rule over the name,
   the name large at the top-left, the item count in silver at
   the bottom-left, and one quiet line motif in a calm per-
   category accent on the right — no borrowed artwork, nothing
   hotlinked. The grid stays 4 across (standing .cat-grid rule).
   The category view's top banner (#cat-hero) is where the §CL9
   follow behaviour lives inside a category: the focused item's
   picture fills it, its information on the left. */
#view-root .cat-card{background:#050506;border:1px solid #1c1c22;text-align:left}
.cat-card .cat-art{position:absolute;right:-14px;top:50%;transform:translateY(-50%);width:56%;height:118%;color:var(--cat-accent,#c8ccd4);opacity:.45;pointer-events:none}
.cat-card .cat-art svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:3.5;stroke-linejoin:round;stroke-linecap:round}
.cat-card .cat-rule{position:absolute;left:22px;top:20px;width:54px;height:5px;border-radius:3px;background:#b30e31}
#view-root .cat-card-name{left:22px;top:36px;bottom:auto;font-size:30px;font-weight:800;letter-spacing:.01em}
.cat-card .cat-card-count{position:absolute;left:22px;bottom:16px;color:#c8ccd4;font-size:19px;font-weight:600;letter-spacing:.02em;text-shadow:0 2px 8px rgba(0,0,0,.85)}
#cat-hero{position:relative;height:400px;border-radius:18px;overflow:hidden;background:#050506;border:1px solid #1c1c22;margin:6px 0 30px;box-shadow:0 18px 40px rgba(0,0,0,.55)}
#cat-hero-img{position:absolute;inset:0;background-size:cover;background-position:center;transition:opacity .35s ease}
#cat-hero-scrim{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.78) 0%,rgba(0,0,0,.45) 42%,rgba(0,0,0,0) 72%)}
#cat-hero .cat-art{position:absolute;right:-10px;top:50%;transform:translateY(-50%);width:34%;height:118%;color:var(--cat-accent,#c8ccd4);opacity:.4;pointer-events:none}
#cat-hero .cat-art svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:3.5;stroke-linejoin:round;stroke-linecap:round}
#cat-hero-info{position:absolute;left:40px;bottom:32px;max-width:62%}
#cat-hero-title{font-size:46px;font-weight:800;color:#fff;line-height:1.12;text-shadow:0 3px 14px rgba(0,0,0,.9)}
#cat-hero-desc{margin-top:10px;font-size:22px;line-height:1.4;color:#dfe3e8;text-shadow:0 2px 10px rgba(0,0,0,.9);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* ================= §CO-2 (2026-11-28) — ONE-WAY MORPH + VERTICAL
   +30% (Boss, chat 12:17–12:22 EST). Vertical banners grow 30%
   from the §CL size: poster cards and the by-vertical morph form
   go 400x711 -> 520x924 (9:16 kept). At 520 wide the poster row
   shows THREE full cards with the fourth peeking — Boss's own
   fallback from his 10:57 call ("three bigger ones with the next
   row peeking"). The morphed (by-vertical) frame shows the WHOLE
   banner (object-fit:contain on the matte thumb) — never the
   centre-crop that cut "Current Affairs" to "…rent Af…" in his
   12:19 photo. Poster cards keep cover: their art IS 9:16 and
   fills the frame natively. The .poster.expanded landscape rules
   above are dead after the §CO flip fix (posters never receive
   .expanded now); the two guards below make that structural. */
.card.poster{width:520px}
.card.poster .thumb{height:924px}
.card.by-vertical{width:520px}
.card.by-vertical .thumb{height:924px;background:#0b0b0e}
.card.by-hcard.by-vertical{width:520px}
.card.by-hcard.by-vertical .thumb{height:924px;background:#0b0b0e}
.card.by-vertical .thumb img{object-fit:contain}
.card.by-hcard.by-vertical .thumb img{object-fit:contain}
.card.poster.expanded{width:520px}
.card.poster.expanded .thumb{height:924px}
.card.poster.expanded .thumb img{object-fit:cover}
/* Home Categories row tiles (§CO text design inside the card
   thumb): the name sits in the thumb's own box, always whole. */
.card.cat-card .thumb{background:#050506}
.card.cat-card .cat-card-name{font-size:27px}

/* ================= §CO-3 (2026-11-28) — ILLUSTRATED CATEGORY
   TILES (Boss, chat 12:28 EST). The §CO dark motif tiles are
   replaced: each tile is a bright per-category gradient ground
   with its own flat illustration scene (CAT_ART in app.js)
   filling the tile, and the category NAME in a label bar across
   the foot — always whole, always legible, never cropped. The
   rules below override the §CO tile geometry (right-side line
   motif, absolute name) for both the grid tiles and the Home
   row tiles (same component inside .thumb). */
#view-root .cat-card{border:1px solid rgba(255,255,255,.14)}
.cat-card .cat-art{position:absolute;inset:0;width:100%;height:100%;transform:none;color:inherit;opacity:1}
.cat-card .cat-art svg{width:100%;height:100%;display:block}
.cat-card .cat-label{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:26px 16px 11px;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.62) 55%,rgba(0,0,0,.78) 100%);z-index:3}
#view-root .cat-card-name{position:static;font-size:25px;font-weight:800;color:#fff;letter-spacing:.01em;text-shadow:0 2px 8px rgba(0,0,0,.6);white-space:nowrap}
.cat-card .cat-card-count{position:static;color:#e8ebee;font-size:16px;font-weight:600;text-shadow:0 2px 8px rgba(0,0,0,.6);white-space:nowrap}
.card.cat-card .cat-card-name{font-size:23px}

/* ================= §CO-4 (2026-11-28) — RENTAL POSTER ASPECT.
   The designed rental banners are 708x990 (0.715). In the 9:16
   series frame (520x924) cover-fit cropped ~21% of their width
   and cut film titles mid-word ("OPPENHEIME…"). Rental cards
   take their own art's true frame — 520x727 — so every film
   poster shows WHOLE: the film identifiable, its title intact
   (Boss's standing requirement for the rental rows). Series
   poster rows keep the 9:16 frame per his +30% order. */
.card.poster.rental-card{width:520px}
.card.poster.rental-card .thumb{height:727px}

/* ================= §CO-5 (2026-11-28) — NO BLACK CARD FACES.
   While a card's picture is still travelling (or if it fails),
   the card face is a designed house surface — a deep jigari-to-
   black radial with the smoky frame — never a flat black void
   (Boss 12:14: «توره پرده باید ونلري»). The picture fades in
   over it when it lands. */
.card .thumb{background:radial-gradient(120% 130% at 30% 20%,#33101c 0%,#170a10 52%,#0b0b0e 100%)}
.card .thumb img{background:radial-gradient(120% 130% at 30% 20%,#33101c 0%,#170a10 52%,#0b0b0e 100%)}

/* ================= §CP-TV (2026-11-28) — Boss, voice call
   ~14:36–14:47 EST, four rulings in one block:
   (1) DOWNSIDE VERTICAL CARDS AT THE BIG STANDARD: the by-vcard
       geometry in the downside A–Z rails was never carried into
       the §CL/§CO enlargements — it still sat at 180x320 /
       150x267 / 216x384 while every other vertical banner is
       520x924. That is the "Current Affairs vertical cards are
       VERY SMALL" defect (ch 1036 measures 216x390 in the C rail).
       All by-vcard forms now take the same 520x924 as .poster
       and .by-vertical, so every banner matches the big size.
   (2) THE MORPH IS A GRADUAL MOTION, NEVER A SNAP: the
       horizontal->vertical stand-up and the return were .45s,
       which reads as a quick flip at TV distance. Width/height
       transitions on content cards are now a full 1s soft ease,
       both ways (the class add/remove drives both directions).
   (3) VERTICAL CARDS: SUBTLE MOTION ZOOM ON FOCUS, FORM ALWAYS
       VERTICAL: poster and by-vcard cards keep their portrait
       frame in every state (handleFocusFlip already refuses to
       morph them); on focus they now ease into a gentle 1.06
       zoom (transform transition .9s) and ease back on leave —
       motion, never a reshaping. One-way rule unchanged.
   (4) URDU + ARABIC UI TEXT BIGGER (~+20%): at equal px the
       TV's Arabic-script fallback renders Urdu/Arabic small
       (Boss: "very small"). When the UI language is ur or ar,
       the main text sizes step up. PASHTO IS NOT TOUCHED —
       Boss: its size is OK as it is. Player subtitles are a
       separate lane and are not affected. */
.by-vcard{width:520px}
.by-vcard .thumb{height:924px}
.by-vrail .by-vcard{width:520px}
.by-vrail .by-vcard .thumb{height:924px}
.by-vgrid .by-vcard{width:520px}
.by-vgrid .by-vcard .thumb{height:924px}
.card{transition:width 1s cubic-bezier(.25,.6,.2,1),transform .9s ease}
.card .thumb{transition:height 1s cubic-bezier(.25,.6,.2,1)}
.card.by-hcard{transition:width 1s cubic-bezier(.25,.6,.2,1),transform .9s ease}
.card.by-hcard .thumb{transition:height 1s cubic-bezier(.25,.6,.2,1)}
.card.poster{transition:width 1s cubic-bezier(.25,.6,.2,1),transform .9s ease}
.card.poster .thumb{transition:height 1s cubic-bezier(.25,.6,.2,1)}
.card.poster.focused,.card.by-vcard.focused{transform:scale(1.06)}
html[lang="ur"] .row-title,html[lang="ar"] .row-title{font-size:33px}
html[lang="ur"] .row-count,html[lang="ar"] .row-count{font-size:24px}
html[lang="ur"] .topmenu-btn,html[lang="ar"] .topmenu-btn{font-size:25px}
html[lang="ur"] .rail-label,html[lang="ar"] .rail-label{font-size:19px}
html[lang="ur"] #hero-title,html[lang="ar"] #hero-title{font-size:64px}
html[lang="ur"] #hero-desc,html[lang="ar"] #hero-desc{font-size:27px}
html[lang="ur"] .cat-card-name,html[lang="ar"] .cat-card-name{font-size:30px}
html[lang="ur"] .card.cat-card .cat-card-name,html[lang="ar"] .card.cat-card .cat-card-name{font-size:28px}
html[lang="ur"] .page-title,html[lang="ar"] .page-title{font-size:45px}
html[lang="ur"] .page-sub,html[lang="ar"] .page-sub{font-size:27px}
html[lang="ur"] .chip,html[lang="ar"] .chip{font-size:26px}
html[lang="ur"] .kb-key,html[lang="ar"] .kb-key{font-size:32px}
html[lang="ur"] #kb-query,html[lang="ar"] #kb-query{font-size:30px}
html[lang="ur"] .rentals-sub,html[lang="ar"] .rentals-sub{font-size:23px}
html[lang="ur"] .rentals-group,html[lang="ar"] .rentals-group{font-size:25px}
html[lang="ur"] .rentals-group span,html[lang="ar"] .rentals-group span{font-size:23px}
html[lang="ur"] .fee-body,html[lang="ar"] .fee-body{font-size:23px}
html[lang="ur"] .inbox-body,html[lang="ar"] .inbox-body{font-size:22px}
html[lang="ur"] .set-view .set-btn,html[lang="ar"] .set-view .set-btn,html[lang="ur"] .set-view .chip,html[lang="ar"] .set-view .chip,html[lang="ur"] .set-view .lang-chip,html[lang="ar"] .set-view .lang-chip,html[lang="ur"] .set-view .sub-chip,html[lang="ar"] .set-view .sub-chip{font-size:20px}

/* ================= §DA (2026-11-28) — HERO SHADOW REMOVED
   (Boss, chat 2026-11-28 ~21:24 EST: «از هیرو شیدو را ختم کنید» —
   end the shadow on the hero.) The hero's own shadow treatment
   is the SmokeFX four-side frame (#hero::after: silver-smoke
   edge gradients + inset box-shadows on all four sides, §CG):
   switched off here. The hero's box-shadow stays none (the
   §BY-4 stack was already overridden by §CL4; re-asserted so
   nothing revives it). The hero picture now sits clean and
   flat, edge to edge. NOT touched: card-thumb smoke (§CG on
   the rows), the §CL4 shade removal, the hero text treatment.
   Revert = delete this block. */
#hero{box-shadow:none}
#hero::after{display:none}

/* ================= §DC (2026-11-28) — HERO ART FULL-BLEED
   (Boss, chat 2026-11-28 ~21:31 + voice ~21:41 + photo ~21:44
   EST: «تصویر خورد درست نیست» / «پلیز هیرو سایز فل بیګ» — the
   small picture is not right; hero size full big.) The hero
   picture was contain-fit (§AS): the title's poster sat SMALL
   in the centre over a blurred dark halo of itself. That does
   not count as filling the hero. The hero now COVERS its whole
   frame with the title's art — wide backdrop/banner art where
   the catalogue has it (hero-cinema §DC), the poster scaled up
   to cover where it does not — edge to edge, no small centred
   poster, no blurred halo, no black or dark empty space. The
   blurred ::before halo layer is gone entirely. Supersedes
   the §AS contain fit FOR THE HERO ONLY; cards and detail
   pages keep their own fits. Revert = delete this block. */
#hero-bg{background-size:cover}
#hero-bg::before{display:none}

/* ================= §DE (2026-11-28) — ONE PICTURE, NO FLIP,
   NO DOUBLE (Boss, voice call 2026-11-28 ~21:58–22:02 EST +
   his photos of THE PIT hero and the GoT wallpaper) ==========
   The hero carried the same picture TWICE — #hero-bg at cover
   and its ::after twin at contain — so slides showed a centred
   copy with visible seams over a stretched copy ("half one
   piece, half another piece"), and a playing promo letterboxed
   (object-fit:contain) over the picture: video + image together,
   the "double". Now the hero is ONE layer: the ::after twin is
   gone, #hero-bg alone paints the picture at cover, the promo
   video covers the whole frame while the picture hides (no
   double), the house-ad slide takes the full screen, slide
   changes are a calm fade, the picture keeps a slow Ken Burns
   drift, and the idle wallpaper image covers the full screen.
   The §BY heroFlip is retired. Revert = delete this block. */
#hero-bg::after { display:none; }
#hero-bg { background-size:cover; }
#hero-bg.kenburns { animation:heroDEFade .9s ease, heroDEKB 24s ease-in-out infinite alternate; }
@keyframes heroDEFade { from { opacity:.3; } to { opacity:1; } }
@keyframes heroDEKB { from { transform:scale(1.03) translate(0,0); } to { transform:scale(1.13) translate(-1.6%,-2%); } }
#hero-bg.flip { animation:none; }
#hero-video { object-fit:cover; }
#hero.hv-on #hero-bg { opacity:0; }
#hero.ad-full { position:fixed; inset:0; width:100%; height:100vh; height:100dvh; z-index:85; }
.attract-slide img.attract-img { object-fit:cover; }

/* ================= §DF (2026-11-28) — PICTURE DOWN, COMPLETE
   AT EVERY WIDTH, SIZE FREEZE (Boss, chat 2026-11-28
   ~22:20–22:25 EST) =========================================
   (1) «تصویر ښکته راوړی، سر یې کت کېږي» — the hero picture is
   anchored near its TOP (focal 50% 12%): heads and faces sit
   fully inside the frame; the cover crop falls on the lower
   part of the artwork, which the first row covers anyway. The
   !important beats the inline 50% 50% heroPicSet writes for
   feed banners, so the rule holds for every slide. The promo
   video layer takes the same focal point.
   (2) «دواړو خواته مات دی» — on screens wider than the app's
   2560px stage the hero stopped at the stage edges with dead
   sides, and the §DC 1.05 hero scale cropped the picture on
   both sides at every width. The scale is retired (the §DE
   Ken Burns drift inside the picture keeps the motion) and
   past 2560px the hero breaks out to the full screen width —
   one complete picture edge to edge — while its text block
   stays aligned with the stage the rows live on.
   (3) «ټول همدا سایز کړی» — SIZE FREEZE: the front card size
   Boss approved (520px wide) is the standard for every row
   and grid in the TV app; the channel cards (390px until now)
   come up to it, and the wide focus form no longer shrinks
   below it. Nothing is enlarged beyond the approved size. */
#hero { transform:none !important; }
#hero-bg { background-position:50% 12% !important; }
#hero-video { object-position:50% 12%; }
@media (min-width:2561px) {
  /* !important: variant.css loads after this file and sets the
     hero's in-stage width/margins — the breakout must win. */
  #hero { width:100vw !important; margin-left:calc(1112px - 50vw) !important; }
  #hero-body { left:calc(50vw - 1280px + 228px) !important; } /* §DN (Boss, chat 2026-11-28 ~22:49 EST): «لیکل چپ طرف ته یوسئ» — TAKE THE WRITING TO THE LEFT SIDE, COMPLETELY: the old +60px inset put the hero text UNDER the sidebar on screens wider than the stage (his photo: the title read "gg Boss", description lines began mid-word). The writing now starts at the same +228px inset it uses inside the stage — fully clear of the rail at every width. */
}
#view-root .row-block .card.poster, #view-root .grid .card.poster,
#view-root .row-block .card.wide, #view-root .card[data-kind="channel"] { width:520px; }
#view-root .card[data-kind="channel"] .thumb { height:293px; }
#view-root .card.wide.expanded { width:520px; }
#view-root .card.wide.expanded .thumb { height:293px; }

/* ================= §DK (2026-11-28) — ROW 1 IS 16:9
   (Boss, chat 2026-11-28 ~22:43 EST) ==========================
   «مطلب د ۱۶:۹ سایز وو» — HE MEANT THE 16:9 SIZE: the first
   (Drama) row carries 16:9 LANDSCAPE cards at the frozen
   520px width (520x293, the app's own wide form). This
   settles the 22:24/22:25 exchange straight: the portrait
   reading («عمودي سایز») that §DF recorded for row 1 is
   WITHDRAWN by Boss himself after he saw the portrait-card
   photo. The conversion runs in hero-cinema.js (§DK step):
   feed series are rebuilt as wide cards with their true
   wide banners; store series — whose only art is the
   portrait poster — show that poster COMPLETE inside the
   wide frame (§DM: contain, no crop at all), so heads and
   poster titles are never cut. Row 2 and every other
   poster row keep the portrait format. */
#view-root .sn-de-drama-1 .card .thumb img { object-fit:contain; object-position:50% 50%; } /* §DM (Boss, chat 2026-11-28 ~22:49 EST): «لومړی قطار باید په 16:9 پوره وښودل شي» — THE FIRST ROW MUST BE SHOWN COMPLETELY IN 16:9: nothing is cropped. A title with wide art fills the card with its complete banner; a title with only a portrait poster shows the COMPLETE poster inside the 16:9 frame on the matte thumb (the §CO-2 whole-picture rule) — never a cut head, face or title. Supersedes the §DK cover rule above. */

/* ================= §DQ + §DO (2026-11-28) — ROW 1 RIGHT
   AND UP · THE AI TO THE TOP (Boss, chat 2026-11-28
   ~22:52 + ~22:50 EST) =====================================
   §DQ (1) «خط ښي خواته یوسئ» — MOVE THE ROW TO THE RIGHT:
   the first (Drama) row shifts right so it starts aligned
   with the hero text's left edge (+228px in the stage),
   clear of the sidebar zone. §DQ (2) «بینر لږ نور هم پورته
   کړئ» — RAISE THE BANNER A LITTLE MORE: the row lifts a
   little higher over the hero's bottom edge (-32px).
   §DO «د AI سر ته» — THE AI TO THE TOP was superseded
   the same evening by §DS (23:01 EST): the AI sits at the
   right end of the Drama Series header line, beside View
   all — see the §DS rule below. */
#view-root .sn-de-drama-1 { margin-left:60px; margin-top:-32px; }
/* §DS (Boss, chat 2026-11-28 ~23:01 EST): «AI ښي خوا ته د
   View all سره راوړه» — BRING THE AI TO THE RIGHT SIDE, WITH
   "VIEW ALL": the assistant in its place on the Drama Series
   header line (hero-cinema.js moves the element into that
   header, after the View all button): no flow margins of
   its own, centred on the line. The §AR compact form (her
   small picture + the white "AI") is unchanged. */
#view-root .sn-de-drama-1 .row-head #home-assistant { margin:0; align-self:center; }
