/* PhiPTV — demo-phone.css (demo.html): a look-alike of the PHONE app's main
   screens. The canvas is the phone build's own 411-dp-wide design canvas
   (DeviceProfile.phone: 411×891, every scale 1.0), so every size below is
   the dp value read from the Flutter phone code (dashboard_layout
   _PhoneNavBar, phone_page_header, home_screen, live_tv_screen,
   phone_browse_chrome). demo-phone.js scales the canvas as one unit
   (--ph-scale) and sets its height (--ph-h). Runtime values arrive as custom
   properties set through CSSOM: no inline styles (CSP style-src 'self'). */

/* ── Which version shows (TV / phone) ───────────────────── */
/* No flash before demo-phone.js runs: narrow screens start on the phone. */
@media (min-width: 721px) { .page-demo:not([data-demo]) [data-for="phone"] { display: none !important; } }
@media (max-width: 720px) { .page-demo:not([data-demo]) [data-for="tv"] { display: none !important; } }
.page-demo[data-demo="tv"] [data-for="phone"],
.page-demo[data-demo="phone"] [data-for="tv"] { display: none !important; }

.demo-mode { display: inline-flex; inline-size: fit-content; gap: 4px; padding: 4px; margin-block-start: 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.demo-mode button {
  min-block-size: 40px; padding-inline: 18px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.demo-mode button:hover { color: var(--text); }
.demo-mode button[aria-pressed="true"] { background: var(--violet); color: #fff; }
.demo-mode button:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }

/* ── The phone on the page ──────────────────────────────── */
.ph-stage { display: grid; justify-items: center; gap: 14px; min-inline-size: 0; }
.phone { inline-size: min(100%, 392px, calc((100vh - 120px) * 0.4613 + 20px)); min-inline-size: min(100%, 300px); padding: 10px; border-radius: 48px; background: #05030A; border: 1px solid rgba(186, 158, 255, 0.18); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 0 0 2px #17112A; }
.ph-frame { scroll-margin-block-start: 84px; position: relative; inline-size: 100%; block-size: var(--ph-frame-h, 780px); overflow: hidden; border-radius: 38px; background: #0A0614; }
@media (max-width: 720px) {
  /* On a real phone the canvas is the screen: no bezel, full width. */
  .phone { inline-size: 100%; padding: 0; border: 0; border-radius: 22px; box-shadow: none; background: transparent; }
  .ph-frame { border-radius: 22px; }
}
.ph-caption { color: var(--muted); font-size: 14px; text-align: center; min-block-size: 1.4em; }

/* ── Canvas (411 dp wide) ───────────────────────────────── */
.ph-canvas {
  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  position: absolute; inset-block-start: 0; inset-inline-start: 0; inline-size: 411px; block-size: var(--ph-h, 891px);
  transform-origin: 0 0; transform: scale(var(--ph-scale, 0.9)); overflow: hidden;
  display: flex; flex-direction: column; background: #0A0614; color: #CBC3D7;
  font-family: "PhiInter", Inter, Roboto, system-ui, sans-serif; font-size: 14px; line-height: 1.4; letter-spacing: 0.25px;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
:where(.ph-canvas *, .ph-canvas *::before, .ph-canvas *::after) { box-sizing: border-box; }
:where(.ph-canvas img) { display: block; -webkit-user-drag: none; pointer-events: none; }
/* Resets at zero specificity so every component rule below wins. */
:where(.ph-canvas button) { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
:where(.ph-canvas input) { font: inherit; letter-spacing: inherit; }
.pi { display: block; flex: 0 0 auto; fill: currentColor; }
.pi.s10 { inline-size: 10px; block-size: 10px; } .pi.s14 { inline-size: 14px; block-size: 14px; }
.pi.s16 { inline-size: 16px; block-size: 16px; } .pi.s18 { inline-size: 18px; block-size: 18px; }
.pi.s20 { inline-size: 20px; block-size: 20px; } .pi.s22 { inline-size: 22px; block-size: 22px; }
.pi.s24 { inline-size: 24px; block-size: 24px; } .pi.s40 { inline-size: 40px; block-size: 40px; }
.pi.s64 { inline-size: 64px; block-size: 64px; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-inline-size: 0; }
.ph-scroll { overflow: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ph-scroll::-webkit-scrollbar { display: none; }

/* Press feedback (press_feedback.dart): 0.96 scale + white veil, 90 ms. */
.p-pf { position: relative; transition: transform 90ms ease-out; }
.p-pf::after { content: ""; position: absolute; inset: 2px; border-radius: 14px; background: rgba(255, 255, 255, 0.165); opacity: 0; transition: opacity 90ms ease-out; pointer-events: none; }
.p-pf.down { transform: scale(0.96); }
.p-pf.down::after { opacity: 1; }

/* ── Status bar (system; #0A0614, light icons) ──────────── */
.ph-sb { flex: 0 0 28px; display: flex; align-items: center; justify-content: space-between; padding-inline: 22px 18px; color: rgba(255, 255, 255, 0.92); font-size: 13px; font-weight: 600; letter-spacing: 0.2px; }
.ph-sb .sb-i { display: flex; gap: 5px; align-items: center; }

/* ── Body + screens ─────────────────────────────────────── */
.ph-body { position: relative; flex: 1 1 auto; min-block-size: 0; overflow: hidden; }
.ps { position: absolute; inset: 0; display: none; flex-direction: column; background: #0A0614; }
.ps.on { display: flex; }

/* ── Bottom bar (_PhoneNavBar) ──────────────────────────── */
.ph-nav { flex: 0 0 auto; display: flex; flex-direction: column; background: #0F0A1E; }
.ph-tabs { display: flex; block-size: 64px; }
.nt { flex: 1 1 0; min-inline-size: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nt-pill { display: grid; place-items: center; inline-size: 52px; block-size: 30px; border-radius: 16px; color: #B0A7C0; transition: background 180ms ease; }
.nt-l { max-inline-size: 100%; padding-inline: 2px; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.784); white-space: nowrap; overflow: hidden; }
.nt.on .nt-pill { background: rgba(137, 90, 246, 0.275); color: #D0BCFF; }
.nt.on .nt-l { font-weight: 700; color: rgba(255, 255, 255, 0.92); }
.ph-gest { block-size: 14px; display: grid; place-items: center; }
.ph-gest i { inline-size: 108px; block-size: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); }

/* ── Title bar (PhoneHeader: 16/12/16/8, 48 row = 68) ───── */
.hdr { flex: 0 0 68px; display: flex; align-items: center; padding: 12px 16px 8px; gap: 10px; }
.hdr-t { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; min-inline-size: 0; }
.hdr-t img { inline-size: 30px; block-size: 30px; flex: 0 0 auto; }
.hdr-tx { display: flex; flex-direction: column; min-inline-size: 0; }
.hdr-name { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; color: #E8DFF5; }
.hdr-sub { font-size: 10px; font-weight: 800; letter-spacing: 2px; line-height: 1.2; color: #6E6684; }
.p-chip { position: relative; display: grid; place-items: center; flex: 0 0 44px; inline-size: 44px; block-size: 44px; border-radius: 50%; background: rgba(0, 0, 0, 0.431); border: 1px solid rgba(255, 255, 255, 0.078); color: rgba(255, 255, 255, 0.863); }
.p-chip.active { background: rgba(137, 90, 246, 0.235); border-color: rgba(137, 90, 246, 0.706); color: #BA9EFF; }
.p-chip .cnt { position: absolute; inset-block-start: -3px; inset-inline-end: -3px; min-inline-size: 18px; padding: 1px 5px; border-radius: 999px; background: #895AF6; border: 2px solid #0A0614; color: #fff; font-size: 10px; font-weight: 900; line-height: 1.2; text-align: center; }
/* Home builds its own row: search, 16, bell, 12, avatar. */
.hdr.home { gap: 0; }
.hdr.home .hdr-t { margin-inline-end: 10px; }
.hdr.home .p-bell { margin-inline-start: 16px; }
.hdr.home .p-av { margin-inline-start: 12px; }

/* Search fields (open state replaces the row at the same height) */
.sf { flex: 1 1 auto; min-inline-size: 0; display: flex; align-items: center; gap: 10px; block-size: 44px; padding-inline: 16px; border-radius: 12px; background: rgba(41, 34, 60, 0.4); border: 2px solid #BA9EFF; color: #4B4559; }
.sf input { flex: 1 1 auto; min-inline-size: 0; block-size: 100%; border: 0; outline: 0; background: transparent; color: #E8DFF5; font-size: 15px; font-weight: 500; letter-spacing: 0.25px; }
.sf input::placeholder { color: #4B4559; }
.sf .x { display: grid; place-items: center; color: #4B4559; }
.sf .x[hidden] { display: none; }
.mic-t { display: grid; place-items: center; flex: 0 0 44px; block-size: 44px; border-radius: 12px; background: rgba(41, 34, 60, 0.4); border: 2px solid transparent; color: #4B4559; }
/* Home: round field (radius 24), white text */
.sf.home { padding-inline: 14px; gap: 8px; border-radius: 24px; background: rgba(0, 0, 0, 0.431); border: 1px solid rgba(255, 255, 255, 0.078); color: rgba(255, 255, 255, 0.627); }
.sf.home input { color: #fff; font-weight: 400; }
.sf.home input::placeholder { color: rgba(255, 255, 255, 0.549); }
.sf.home .x { color: rgba(255, 255, 255, 0.627); }
.mic-t.home { border-radius: 22px; background: rgba(0, 0, 0, 0.431); border-color: rgba(255, 255, 255, 0.078); color: rgba(255, 255, 255, 0.784); }
/* Live TV: compact quick-find field (36 high, 12 sp) */
.sf.quick { block-size: 36px; padding-inline: 12px; gap: 8px; }
.sf.quick input { font-size: 12px; color: #B0A7C0; }
.mic-t.quick { flex-basis: 36px; block-size: 36px; }

/* ── Home ───────────────────────────────────────────────── */
.h-scroll { position: absolute; inset: 0; }
.h-pad { padding-block: 96px 96px; }
.h-sec { margin-block-end: 28px; }
.h-sec[hidden] { display: none; }
.h-t { padding-inline: 16px; margin-block-end: 16px; font-size: 20px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.33; color: #fff; }
.h-rail { display: flex; padding-inline: 16px; overscroll-behavior-x: contain; }
.h-rail.cwr { gap: 16px; block-size: 156px; }
.h-rail.ltr { gap: 16px; block-size: 174px; }
.h-rail.pcr { gap: 24px; block-size: 210px; }
.h-top { position: absolute; inset-block-start: 0; inset-inline: 0; z-index: 2; background: linear-gradient(rgba(10, 6, 20, 0.863), rgba(10, 6, 20, 0.549) 60%, rgba(10, 6, 20, 0)); }
.p-av { position: relative; display: grid; place-items: center; flex: 0 0 44px; inline-size: 44px; block-size: 44px; border-radius: 50%; background: linear-gradient(135deg, #895AF6, #4A22A8); color: #fff; font-size: 18.5px; font-weight: 800; letter-spacing: 0; }
.p-av::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.235); }
.p-bell.on { color: #DC2626; }
.p-bell .bn { position: absolute; inset-block-start: 3px; inset-inline-end: 3px; min-inline-size: 17px; block-size: 17px; padding-inline: 4px; border-radius: 999px; background: #DC2626; border: 1.5px solid #0A0614; color: #fff; font-size: 9.5px; font-weight: 800; line-height: 14px; letter-spacing: 0; text-align: center; }

/* Continue Watching tile: 250×156 slot, 2 dp frame → 246×152, radius 14 */
.p-cw { flex: 0 0 250px; block-size: 156px; border: 2px solid transparent; border-radius: 16px; }
.p-cw-in { position: relative; block-size: 100%; border-radius: 14px; overflow: hidden; background: #1E1928; }
.p-cw-in > img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.p-cw-top { position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 56px; background: linear-gradient(rgba(0, 0, 0, 0.6), transparent); }
.p-cw-scrim { position: absolute; inset: 0; background: linear-gradient(rgba(10, 6, 20, 0) 32%, rgba(10, 6, 20, 0.843) 72%, rgba(10, 6, 20, 0.98)); }
.p-ep { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; padding: 4px 8px; border-radius: 7px; background: rgba(137, 90, 246, 0.922); box-shadow: 0 0 6px rgba(0, 0, 0, 0.353); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: 0.6px; }
.p-cw-foot { position: absolute; inset-inline: 14px; inset-block-end: 11px; }
.p-cw-name { color: #fff; font-size: 15px; font-weight: 800; line-height: 1.2; letter-spacing: 0.25px; text-shadow: 0 0 6px rgba(0, 0, 0, 0.6); }
.p-seek { position: relative; block-size: 13px; margin-block: 9px 6px; }
.p-seek i { position: absolute; inset-inline: 0; inset-block-start: 4.5px; block-size: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.275); }
.p-seek i::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: var(--p, 0%); border-radius: 2px; background: linear-gradient(90deg, #895AF6, #BA9EFF); box-shadow: 0 0 6px rgba(137, 90, 246, 0.627); }
.p-seek b { position: absolute; inset-block-start: 1.5px; inset-inline-start: calc(var(--p, 0%) - 5px); inline-size: 10px; block-size: 10px; border-radius: 50%; background: #fff; border: 2px solid #895AF6; box-shadow: 0 0 6px rgba(137, 90, 246, 0.55); }
.p-clk { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.4px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.p-clk b { color: #BA9EFF; font-weight: 800; }
.p-clk span { color: rgba(255, 255, 255, 0.59); font-weight: 600; }

/* Recently watched live tile (UnitCard): 132×174 slot → 128×170, radius 14 */
.p-lt { flex: 0 0 132px; block-size: 174px; border: 2px solid transparent; border-radius: 16px; }
.p-lt-in { display: flex; flex-direction: column; block-size: 100%; border-radius: 14px; overflow: hidden; background: #1A1526; }
.p-lt-media { position: relative; flex: 1 1 auto; min-block-size: 0; display: grid; place-items: center; padding: 22px 21px 10px; background: #262033; }
.p-lt-sq { block-size: 100%; max-block-size: 86px; aspect-ratio: 1; display: grid; place-items: center; }
.p-lt-sq .lgm { font-size: 30px; border-radius: 12px; }
.p-lt-sq .lgm.l3 { font-size: 23px; }
.p-lt-ini { font-size: 64px; font-weight: 900; line-height: 1; color: rgba(186, 158, 255, 0.82); }
.p-lbadge { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; display: flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 4px; background: #DC2626; color: #fff; font-size: 8px; font-weight: 900; letter-spacing: 0.5px; line-height: 1.4; }
.p-lbadge i { inline-size: 4px; block-size: 4px; border-radius: 50%; background: #fff; }
.p-lfav { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; padding: 4px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(250, 204, 21, 0.7); color: #FACC15; }
.p-lt-cap { flex: 0 0 auto; padding: 8px 12px 10px; }
.p-lt-n { font-size: 13.5px; font-weight: 800; line-height: 1.25; color: #E8DFF5; }
.p-lt-m { margin-block-start: 3px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.3px; color: rgba(176, 167, 192, 0.745); }

/* Poster (picture only): 140 slot, 2 dp frame → 136×204, radius 14 */
.p-pc { flex: 0 0 140px; block-size: 208px; border: 2px solid transparent; border-radius: 16px; }
.p-pc-in, .p-gc-in { position: relative; block-size: 100%; border-radius: 14px; overflow: hidden; background: #1A1526; }
.p-pc-in > img, .p-gc-in > img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.p-qb { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; padding: 3px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.59); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; font-size: 8px; font-weight: 900; letter-spacing: 0.5px; line-height: 1.2; }
.p-fs { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; display: grid; place-items: center; inline-size: 26px; block-size: 26px; border-radius: 50%; background: rgba(0, 0, 0, 0.39); color: rgba(255, 255, 255, 0.7); }
.p-fs.on { background: rgba(255, 193, 7, 0.86); color: #fff; }
.p-rp { position: absolute; inset-block-end: 8px; inset-inline-end: 8px; display: flex; align-items: center; gap: 2px; padding: 3px 7px; border-radius: 20px; background: rgba(208, 188, 255, 0.9); color: #3B0091; font-size: 9px; font-weight: 900; letter-spacing: 0.25px; line-height: 1.3; }
.h-empty { margin-inline: 16px; display: flex; align-items: center; gap: 18px; block-size: 110px; padding: 16px 24px; border-radius: 16px; background: rgba(255, 255, 255, 0.031); border: 1px solid rgba(255, 255, 255, 0.05); color: #B0A7C0; }
.h-empty b { display: block; color: #E8DFF5; font-size: 18px; font-weight: 700; letter-spacing: 0; }
.h-empty span { display: block; font-size: 14px; }

/* ── Live TV ────────────────────────────────────────────── */
.lv-pv { position: relative; flex: 0 0 auto; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.lv-pv > img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; transition: opacity 260ms ease; }
.lv-pv.stopped > img { opacity: 0; }
.pv-pills { position: absolute; inset-block-start: 24px; inset-inline-start: 24px; inset-inline-end: 24px; display: flex; align-items: center; gap: 12px; }
.live-p { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #EF4444; box-shadow: 0 0 12px rgba(239, 68, 68, 0.4); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: 2px; line-height: 1.2; }
.live-p i { inline-size: 6px; block-size: 6px; border-radius: 50%; background: #fff; }
.name-p { padding: 6px 16px; border-radius: 999px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.3; }
.pvb { position: absolute; inset-block-start: 50%; z-index: 2; display: grid; place-items: center; inline-size: 44px; block-size: 44px; margin-block-start: -22px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.235); color: #fff; }
.pvb.hl { background: rgba(137, 90, 246, 0.9); }
.pvb.l { inset-inline-start: 12px; }
.pvb.r { inset-inline-end: 12px; }
.p-epg { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 64px 32px 24px; background: linear-gradient(to top, rgba(10, 6, 20, 0.9), rgba(10, 6, 20, 0)); }
.p-epg-r1 { display: flex; align-items: center; gap: 12px; }
.p-now-b { flex: 0 0 auto; padding: 3px 8px; border-radius: 4px; background: #895AF6; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: 0.25px; line-height: 1.2; }
.p-epg-t { flex: 1 1 auto; font-size: 28px; font-weight: 900; letter-spacing: -0.5px; line-height: 1.2; color: #E8DFF5; }
.p-epg-nx { flex: 0 0 auto; text-align: end; line-height: 1.2; }
.p-epg-nx b { display: block; margin-block-end: 4px; color: #4B4559; font-size: 10px; font-weight: 900; letter-spacing: 2px; }
.p-epg-nx span { color: #B0A7C0; font-size: 10px; }
.p-epg-d { margin-block-start: 4px; color: #B0A7C0; font-size: 13px; font-weight: 500; }
.p-epg-bar { position: relative; block-size: 4px; margin-block: 16px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.p-epg-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: var(--p, 0%); border-radius: inherit; background: #895AF6; box-shadow: 0 0 10px rgba(137, 90, 246, 0.8); }
.p-epg-tm { display: flex; justify-content: space-between; color: #4B4559; font-size: 10px; font-weight: 800; letter-spacing: 0.25px; }
.p-epg-tm em { font-style: normal; color: #BA9EFF; }
.lv-panel { position: relative; flex: 1 1 auto; min-block-size: 0; display: flex; flex-direction: column; background: #161024; border-inline-end: 1px solid rgba(137, 90, 246, 0.05); }
.lv-area, .vg-area { position: relative; flex: 1 1 auto; min-block-size: 0; }
.lv-list { position: absolute; inset: 0; padding: 8px 12px; }
.lv-empty { padding: 40px 16px; text-align: center; color: #B0A7C0; }
.p-lr { padding-block: 2px; }
.p-lr-f { border: 2px solid transparent; border-radius: 12px; }
.p-lr-c { display: flex; align-items: center; block-size: 60px; padding-inline: 12px; border-radius: 12px; border-inline-start: 3px solid transparent; }
.p-lr.act .p-lr-c { border-inline-start-color: #895AF6; background: rgba(41, 34, 60, 0.5); }
.p-lr-num { flex: 0 0 30px; font-size: 17px; font-weight: 700; color: #B0A7C0; font-variant-numeric: tabular-nums; letter-spacing: 0.25px; }
.p-lr-star { flex: 0 0 22px; margin-inline: 4px 6px; color: rgba(255, 255, 255, 0.22); }
.p-lr-star.on { color: #FACC15; }
.p-lr-logo { flex: 0 0 40px; block-size: 40px; padding: 3px; border-radius: 8px; background: #0A0614; border: 1px solid rgba(75, 69, 89, 0.2); display: grid; place-items: center; margin-inline-end: 10px; }
.p-lr.act .p-lr-logo { border-color: rgba(137, 90, 246, 0.2); }
.p-lr-logo .lgm { font-size: 11px; border-radius: 6px; }
.p-lr-logo .lgm.l3 { font-size: 9px; }
.p-lr-ini { color: #D0BCFF; font-size: 12px; font-weight: 700; }
.p-lr-nm { flex: 1 1 auto; display: flex; align-items: center; gap: 6px; min-inline-size: 0; }
.p-lr-nm .ell { font-size: 17px; font-weight: 700; color: #B0A7C0; }
.p-lr.act .p-lr-num, .p-lr.act .p-lr-nm .ell { color: #E8DFF5; font-weight: 800; }
.p-now-c { flex: 0 0 auto; padding: 1px 4px; border-radius: 3px; background: #895AF6; color: #fff; font-size: 8px; font-weight: 900; letter-spacing: 0.25px; line-height: 1.3; }

/* Category handle (PhoneCategoryHandle) + left-edge swipe strip */
.hdl { position: absolute; inset-inline-start: 0; z-index: 3; display: grid; place-items: center; inline-size: 28px; block-size: 88px; border-radius: 0 14px 14px 0; background: rgba(137, 90, 246, 0.59); border: 1px solid rgba(186, 158, 255, 0.667); box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.47); color: #fff; }
.hdl.active { background: rgba(137, 90, 246, 0.92); }
.lv-area .hdl { inset-block-start: 10px; }
.vg-area .hdl { inset-block-start: 12px; }
.edge { position: absolute; inset-block: 0; inset-inline-start: 0; z-index: 2; inline-size: 24px; touch-action: pan-y; }

/* ── Movies / Series grid ───────────────────────────────── */
.vg { position: absolute; inset: 0; }
.vg-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px 16px 16px; }
.p-gc { aspect-ratio: 2 / 3; border: 2px solid transparent; border-radius: 16px; }
.p-gc .ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #1E1928, #0A0614); color: rgba(186, 158, 255, 0.235); }
.vg-msg { display: grid; justify-items: center; gap: 16px; padding: 72px 24px; text-align: center; color: rgba(255, 255, 255, 0.2); }
.vg-msg b { color: rgba(255, 255, 255, 0.7); font-size: 16px; font-weight: 400; }
.vg-msg.fav b { color: rgba(255, 255, 255, 0.863); font-size: 18px; font-weight: 700; }
.vg-msg span { margin-block-start: -8px; color: rgba(255, 255, 255, 0.55); font-size: 14px; }
.vg-msg button { margin-block-start: 8px; padding: 12px 24px; border-radius: 8px; background: #895AF6; color: #fff; font-weight: 700; }

/* ── Overlays: category drawer, genre sheet, toast ──────── */
.ov { position: absolute; inset: 0; z-index: 40; visibility: hidden; }
.ov.on { visibility: visible; }
.ov-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.588); opacity: 0; transition: opacity 220ms var(--ease); }
.ov.on .ov-scrim { opacity: 1; }
.drw { position: absolute; inset-block: 0; inset-inline-start: 0; display: flex; flex-direction: column; inline-size: 328.8px; padding-block: 28px 14px; border-radius: 0 20px 20px 0; background: #161024; box-shadow: 8px 0 24px rgba(0, 0, 0, 0.5); transform: translateX(-100%); transition: transform 220ms var(--ease); touch-action: pan-y; }
.ov.on .drw { transform: translateX(var(--dx, 0px)); }
.drw.drag { transition: none; }
.drw-h { display: flex; align-items: center; padding: 16px 8px 8px 20px; }
.drw-h b { flex: 1 1 auto; font-size: 20px; font-weight: 900; letter-spacing: 0.25px; line-height: 48px; color: #EDE5FF; }
.ib { display: grid; place-items: center; inline-size: 48px; block-size: 48px; border-radius: 50%; color: #B0A7C0; }
.dv { block-size: 1px; background: rgba(255, 255, 255, 0.078); flex: 0 0 auto; }
.drw-l { flex: 1 1 auto; min-block-size: 0; padding-block-end: 8px; }
.dr { display: flex; align-items: center; inline-size: 100%; block-size: 56px; padding: 0 24px 0 16px; gap: 20px; color: #B0A7C0; text-align: start; }
.dr .ell { flex: 1 1 auto; font-size: 13px; line-height: 1.5; font-weight: 500; }
.dr .ck { display: none; color: #BA9EFF; }
.dr.pinned > .pi:first-child { color: #BA9EFF; }
.dr.sel { background: rgba(137, 90, 246, 0.118); }
.dr.sel > .pi:first-child { color: #BA9EFF; }
.dr.sel .ell { color: #EDE5FF; font-weight: 700; }
.dr.sel .ck { display: block; }

.ov.sheet .ov-scrim { background: rgba(0, 0, 0, 0.54); }
.sht { position: absolute; inset-inline: 0; inset-block-end: 0; display: flex; flex-direction: column; max-block-size: 75%; padding-block-end: 14px; border-radius: 20px 20px 0 0; background: #161024; transform: translateY(100%); transition: transform 220ms var(--ease); }
.ov.on .sht { transform: none; }
.sht-h { display: flex; align-items: center; padding: 16px 12px 4px 20px; }
.sht-h b { flex: 1 1 auto; font-size: 20px; font-weight: 900; color: #EDE5FF; letter-spacing: 0.25px; }
.sht-h button { padding: 8px 16px; font-size: 14px; font-weight: 600; color: #D0BCFF; }
.sht-h button:disabled { color: rgba(232, 223, 245, 0.38); cursor: default; }
.sht-c { display: flex; flex-wrap: wrap; gap: 15px 8px; padding: 12px 16px 16px; overflow: auto; }
.gch { padding: 7px 12px; border-radius: 8px; background: #221D2D; border: 1px solid rgba(255, 255, 255, 0.078); color: #B0A7C0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.gch.on { background: #895AF6; border-color: #895AF6; color: #fff; }
.sht-f { padding: 4px 16px 0; }
.sht-f button { inline-size: 100%; block-size: 48px; border-radius: 12px; background: #895AF6; color: #3B0091; font-size: 15px; font-weight: 800; }

/* TvToast at phone scale */
.ptoast { position: absolute; inset-inline-start: 50%; inset-block-end: 96px; z-index: 60; display: flex; align-items: center; gap: 10px; max-inline-size: 379px; padding: 10px 18px 10px 10px; border-radius: 24px; background: #2D2737; border: 1.5px solid rgba(137, 90, 246, 0.275); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); color: #E8DFF5; font-size: 13px; font-weight: 600; line-height: 1.35; opacity: 0; transform: translate(-50%, 10px); transition: opacity 200ms ease, transform 200ms ease; pointer-events: none; }
.ptoast.on { opacity: 1; transform: translate(-50%, 0); }
.ptoast i { display: grid; place-items: center; flex: 0 0 30px; block-size: 30px; border-radius: 50%; background: rgba(137, 90, 246, 0.25); color: #BA9EFF; }

@media (prefers-reduced-motion: reduce) {
  .ph-canvas *, .ph-canvas *::before, .ph-canvas *::after { transition-duration: 1ms !important; }
}

.lv-hdr, .vg-hdr { flex: 0 0 auto; }
.lv-pv { cursor: pointer; }
.sf input { -webkit-appearance: none; appearance: none; }
.sf input::-webkit-search-cancel-button, .sf input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
