/* ============================================================
   FULL HD 16:9 SAMPLE (1920x1080) — same app, same features as
   the horizontal sample; layout only:
   - the hero goes FULL-BLEED edge to edge, sliding under a
     translucent rail (Fire TV / Netflix big-screen treatment)
   - content keeps a 168px left gutter so text and rows clear
     the rail; footer and partner bars span the full width
   - cards step up one size for the big screen; hero 76vh (§AG)
   ============================================================ */
#screen{left:0}
.view{padding:36px 60px 36px 168px}
#hero{margin:-36px -60px 6px -168px;width:calc(100% + 228px);height:76vh}
#topmenu + #hero{margin-top:0}
#hero-body{left:228px}
#hero-adtag{right:60px}
#rail{background:linear-gradient(90deg, rgba(243,244,246,.97) 55%, rgba(243,244,246,0));border-right:none}
#footerbar{left:0;padding-left:168px}
#partnerbar{left:0;padding-left:168px}
.card{width:300px}
.card .thumb{height:169px}
.card.poster{width:228px}
.card.poster .thumb{height:342px}

/* Category banner tiles step up with the HD card size. */
.chip.cat-tile { width:320px; height:180px; }

/* REBUILD 2026-11-26: dark rail gradient for the pitch-black theme */
#rail{background:linear-gradient(90deg, rgba(5,5,8,.97) 55%, rgba(5,5,8,0))}

/* §AG (Boss, 2026-11-26): the §AB opener == hero-frame override is
   REMOVED — the opener video now fills the whole stage via the
   §AG rule in style.css (see there). Hero height is 76vh (§AG). */


/* §BV (Boss's written directive 2026-11-27 §3): HD poster cards
   rest PORTRAIT 9:16 at the HD step-up size (225x400). */
.card.poster{width:225px}
.card.poster .thumb{height:400px}

/* §CL (2026-11-28): HD poster cards take the same enlarged
   vertical size as the shared sheet — 400x711, four across the
   frame (Boss, chat 2026-11-28 10:46 EST). */
.card.poster{width:400px}
.card.poster .thumb{height:711px}

/* §CL2 (2026-11-28): the HD step-up sizes +30% like every other
   card (Boss, chat 2026-11-28 10:51 EST) — standard card
   300x169 -> 390x220, category tile 320x180 -> 416x234. */
.card{width:390px}
.card .thumb{height:220px}
.chip.cat-tile{width:416px;height:234px}

/* §CL4 (2026-11-28): the HD hero takes the full frame too —
   full-viewport height (was 76vh); shade removal lives in the
   shared sheet. */
#hero{height:42vh} /* §CO (Boss 12:08 EST): supersedes the §CL4 100vh below in this file — hero + one FULL horizontal row together on the opening screen; 42vh is the measured fit (see style.css §CO) */

/* §CO (2026-11-28): HD poster cards +30% (Boss 12:19 EST) — this
   file loads after style.css, so the §CL 400x711 rule above needs
   its §CO counterpart here: 520x924, 9:16 kept. */
.card.poster{width:520px}
.card.poster .thumb{height:924px}

/* ============================ §CZ (Boss, voice 2026-11-28
   ~20:50–20:53 EST) ============================
   (1) NO FLIP: focus is ZOOM + SLOW MOTION only — the focus
   settle slows from .38s to .9s and card transitions from
   .28s to .6s, so the fast remote stays calm and readable.
   The by-vertical morph is removed in app.js; its geometry
   is neutralized here as insurance so no legacy state can
   ever stand a card up or leave black space around it.
   (2) TEN PER ROW on the TV front too: the series-store and
   rental group rails on Home show at most 10 items (the
   complete sets live in the Series / Movies / category
   views; the channel index sections keep their own deal). */
.focusable.focused { animation-duration: .9s; }
.card { transition: transform .6s ease, box-shadow .6s ease; }
.card.by-vertical, .card.by-hcard.by-vertical { width: auto !important; }
.card.by-vertical .thumb, .card.by-hcard.by-vertical .thumb { height: auto !important; }
body.on-home #world-series-row .card-row > .card:nth-of-type(n+11),
body.on-home #rentals-row .card-row > .card:nth-of-type(n+11) { display: none; }

/* ================= §DB (2026-11-28) — HERO GEOMETRY = BOSS'S
   FINAL WORD (voice call 2026-11-28 ~21:41 EST, consolidating
   his 21:27 reference video, the 21:31 screenshot and the
   21:44 photo): the hero is BIG — 78vh, full-bleed — its
   picture COVERS it completely (§DC), the top menu floats
   OVER it, and the content after it is pulled UP over the
   hero's bottom edge (negative bottom margin): the picture
   runs behind the first row (Top Picks), the row sits fully
   visible on the hero's lower edge, NO black gap between
   hero and row. The hero text block lifts clear of the
   overlap. Supersedes the §CO 42vh fit on Home; hero-to-top
   and the calm rotation are unchanged. */
#hero{height:78vh}
body.on-home #topmenu{position:absolute;top:16px;left:168px;right:60px;z-index:30;margin:0;padding:0}
body.on-home #topmenu + #hero{margin-top:-36px}
body.on-home #hero{margin-bottom:-190px}
body.on-home #hero ~ *{position:relative;z-index:6}
body.on-home #hero-body{bottom:216px}
body.on-home #hero-dots{bottom:202px}

/* ================= §DD (2026-11-28) — LEFT SIDEBAR = BOSS'S
   DESIGN (Boss, chat 2026-11-28 ~21:28 EST, reference image
   «۲. منوی عمودی سمت چپ (Sidebar)»): the left rail becomes a
   dark rounded floating panel — icon ABOVE its label, items
   Search · Home · My List · Connect TV · Ask AI · Settings ·
   Help · Profile (markup in index.html, destinations
   unchanged); the active item is a FILLED jigari #B30E31
   rounded block with white icon+label; inactive items are
   grey icon+label. The brand mark stays as the round icon at
   the panel's top (his own screenshot of our app). */
#rail{top:0;bottom:14px;left:0;width:124px;padding:16px 0 12px;gap:4px;background:#101014;border:1px solid #1e1e24;border-left:none;border-top:none;border-radius:0 26px 26px 0;overflow-y:auto} /* §DI+§DL (Boss, chat 2026-11-28 ~22:39 + ~22:47 EST): the frame's home is the TOP-LEFT CORNER — flush to the left edge («چوکاټ چپ طرف مو کړه») and raised flush to the top edge («هغه چوکاټ پورته کړه»); no gap at the top, no gap at the left (supersedes the §DD 14px/12px float) */
#rail-brand{margin-bottom:8px}
#brand-name{display:none}
#brand-icon{width:52px;height:52px;border-radius:50%}
.rail-btn{width:104px;padding:11px 0 9px;border-radius:18px;color:#a7adb6;gap:6px}
.rail-btn svg{width:29px;height:29px}
.rail-label{font-size:15px}
.rail-btn.active{background:#b30e31;color:#fff;box-shadow:none}
.rail-btn.focused{background:rgba(179,14,49,.32);color:#fff;box-shadow:inset 0 0 0 2px rgba(232,235,238,.8)}
.rail-btn.active.focused{background:#b30e31}
#clock{display:none}
