/*
 * The home page's pictures of the app. Each screen is laid out at the app's own size
 * (a TV is 1440 x 810, a phone 360 wide) with the app's own measurements, colors and
 * fonts, then scaled down to fit (home.js sets --k). Channels are made up.
 */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('/fonts/Barlow_400Regular.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('/fonts/Barlow_500Medium.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('/fonts/Barlow_600SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-display: swap; src: url('/fonts/BarlowCondensed_500Medium.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('/fonts/BarlowCondensed_600SemiBold.woff2') format('woff2'); }

/* ---- the stage the pictures sit on ---- */
.stage {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; user-select: none; isolation: isolate;
  border-radius: 18px; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 70% 0%, #262a42 0%, #171a28 55%, #11131c 100%);
}
.hero-stage { box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(245,185,66,.08); }
.stage * { box-sizing: border-box; }

/* Devices: a TV, a phone, a remote */
.tv { position: absolute; z-index: 1; left: 3%; top: 6%; width: 77%; aspect-ratio: 16 / 9; border-radius: .6cqw; overflow: hidden; background: #000;
  box-shadow: 0 0 0 .5cqw #040508, 0 0 0 .62cqw #2d3243, 0 0 0 .7cqw #11131b, 0 2.6cqw 5cqw -1.4cqw rgba(0,0,0,.9), 0 0 10cqw -3cqw rgba(110,140,255,.2); }
/* the glass: a soft sheen across the top left, over whatever is on screen */
.tv::after { content: ''; position: absolute; inset: 0; z-index: 40; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.075) 0%, rgba(255,255,255,.02) 28%, rgba(255,255,255,0) 42%); }
.stage { container-type: inline-size; }
.tv.solo { left: 4%; top: 5%; width: 92%; }
/* beside a phone: side by side, the TV level with the phone's middle, nothing covered */
.stage:has(.phone) .tv { left: 3%; top: 16.5cqw; width: 72%; }
.stage:has(.phone) .link { left: 73.4%; top: 34.3cqw; }
.stage:has(.remote) .tv { width: 74%; top: 8cqw; }
.phone { position: absolute; right: 3%; bottom: 4%; width: 20%; aspect-ratio: 360 / 800; border-radius: 2.7cqw; background: #000; z-index: 5;
  box-shadow: 0 0 0 .42cqw #040508, 0 0 0 .56cqw #3b4054, 0 0 0 .64cqw #15171f, 0 2.2cqw 4cqw -1cqw rgba(0,0,0,.85); }
.phone > .scr { border-radius: calc(2.7cqw / var(--k, .5)); }
/* the glass, the camera in the screen, and the volume and power keys on the side */
.phone > .scr::after { content: ''; position: absolute; inset: 0; z-index: 50; pointer-events: none; background: linear-gradient(122deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.015) 30%, rgba(255,255,255,0) 44%); }
.phone::after { content: ''; position: absolute; z-index: 6; left: 50%; top: .75cqw; width: .85cqw; height: .85cqw; margin-left: -.425cqw; border-radius: 50%; background: #030406; box-shadow: inset 0 0 0 .12cqw #1b1f2c; }
.phone::before { content: ''; position: absolute; right: -.86cqw; top: 19%; width: .26cqw; height: 9%; border-radius: .2cqw; background: linear-gradient(90deg, #2b3042, #474d63); box-shadow: 0 5.2cqw 0 -.05cqw #3a4055; }
.remote { position: absolute; right: 6%; top: 9%; width: 11%; height: 82%; border-radius: 5.5cqw / 7cqw; background: linear-gradient(90deg, #171922 0%, #2a2e3e 38%, #252938 70%, #14161e 100%); box-shadow: inset 0 .25cqw .3cqw rgba(255,255,255,.08), 0 0 0 .14cqw #0b0c12, 0 2.2cqw 4cqw -1cqw rgba(0,0,0,.85); display: flex; flex-direction: column; align-items: center; padding-top: 5.2cqw; gap: 2cqw; z-index: 5; transform: rotate(5deg); }
/* the power key and the microphone at the top */
.remote::before { content: ''; position: absolute; top: 1.8cqw; left: 50%; width: 1.5cqw; height: 1.5cqw; margin-left: -.75cqw; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f06a6e, #b8383c); box-shadow: 0 .2cqw .3cqw rgba(0,0,0,.6); }
.remote::after { content: ''; position: absolute; top: 3.85cqw; left: 50%; width: .32cqw; height: .32cqw; margin-left: -.16cqw; border-radius: 50%; background: #07080c; }
.dpad { position: relative; width: 7.6cqw; height: 7.6cqw; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #3a3f55, #262a3a 70%); box-shadow: inset 0 .15cqw .2cqw rgba(255,255,255,.08), 0 .25cqw .4cqw rgba(0,0,0,.55); flex: none; }
.k { position: absolute; display: block; background: #7d84a3; transition: background .15s, transform .15s; }
.k.up, .k.down { left: 50%; width: 0; height: 0; margin-left: -.55cqw; background: none; border: .55cqw solid transparent; }
.k.up { top: .55cqw; border-bottom: .6cqw solid #8a91b0; border-top-width: 0; }
.k.down { bottom: .55cqw; border-top: .6cqw solid #8a91b0; border-bottom-width: 0; }
.k.left, .k.right { top: 50%; width: 0; height: 0; margin-top: -.55cqw; background: none; border: .55cqw solid transparent; }
.k.left { left: .55cqw; border-right: .6cqw solid #8a91b0; border-left-width: 0; }
.k.right { right: .55cqw; border-left: .6cqw solid #8a91b0; border-right-width: 0; }
.k.ok { left: 50%; top: 50%; width: 3.6cqw; height: 3.6cqw; margin: -1.8cqw 0 0 -1.8cqw; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #353a50, #1c1f2c); box-shadow: 0 0 0 .14cqw #12141c, inset 0 .1cqw .15cqw rgba(255,255,255,.07); }
.k.back, .k.home, .k.play, .k.mute { position: relative; width: 2.3cqw; height: 2.3cqw; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #3a3f55, #252939); box-shadow: 0 .2cqw .3cqw rgba(0,0,0,.5); }
.remote-row { display: flex; gap: 1.5cqw; }
.remote-vol { display: flex; flex-direction: column; width: 2.3cqw; height: 6cqw; border-radius: 1.15cqw; overflow: hidden; background: #252939; box-shadow: 0 .2cqw .3cqw rgba(0,0,0,.5); margin-top: .4cqw; }
.remote-vol i { flex: 1; }
.remote-vol i + i { border-top: .1cqw solid #171922; }
.k.up.press { border-bottom-color: #f5b942; } .k.down.press { border-top-color: #f5b942; } .k.left.press { border-right-color: #f5b942; } .k.right.press { border-left-color: #f5b942; }
.k.ok.press, .k.back.press, .k.home.press { background: #f5b942; transform: scale(1.1); }
.k.up.press, .k.down.press, .k.left.press, .k.right.press { transform: scale(1.25); }
.link { position: absolute; left: 73%; top: 50%; width: 5cqw; height: 5cqw; border-radius: 50%; background: #20243a; outline: .3cqw solid #343a56; display: grid; place-items: center; z-index: 6; transition: box-shadow .3s, background .3s; }
.link svg { width: 2.4cqw; height: 2.4cqw; fill: none; stroke: #f5b942; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.link.cloud svg { stroke: #8fa3d9; }
.link.pulse { background: #4a3d1f; box-shadow: 0 0 0 1cqw rgba(245,185,66,.16); }

/* ---- a screen at the app's own size ---- */
.scr {
  --bg: #151722; --rail: #10121B; --panel: #1B1E2C; --raised: #252939; --line: #2E3346;
  --text: #F3F0EA; --text2: #D7D3CC; --muted: #9C99A8; --faint: #6C6A7C;
  --focus: #F5B942; --ink: #1C1405; --live: #E5484D; --scrim: rgba(14,15,23,.95); --overlay: rgba(8,9,14,.72);
  position: absolute; left: 0; top: 0; width: 1440px; height: 810px; transform-origin: 0 0; transform: scale(var(--k, .5));
  background: var(--bg); color: var(--text); font-family: 'Barlow', system-ui, sans-serif; font-weight: 400; overflow: hidden;
  -webkit-font-smoothing: antialiased; transition: background-color .5s;
}
.scr.p { width: 360px; height: 800px; }
.scr[data-theme="midnight"] { --bg: #0B0D12; --rail: #07080C; --panel: #12151D; --raised: #1B1F2A; --line: #262B38; --text: #EEF1F6; --text2: #CCD2DC; --muted: #8E96A6; --faint: #5F6676; --focus: #5AA9FF; --ink: #04121F; --scrim: rgba(7,8,12,.95); }
.scr[data-theme="forest"] { --bg: #121A17; --rail: #0D1411; --panel: #18231F; --raised: #22302B; --line: #2C3D36; --text: #EFF3EE; --text2: #D0D8D1; --muted: #93A39A; --faint: #64736B; --focus: #7BD88F; --ink: #06180C; --scrim: rgba(11,17,14,.95); }
.scr[data-theme="ember"] { --bg: #1C1513; --rail: #151010; --panel: #251C19; --raised: #322622; --line: #40312C; --text: #F5EEE8; --text2: #DDD2C9; --muted: #A8988E; --faint: #776860; --focus: #FF8A4C; --ink: #1F0C02; --scrim: rgba(18,13,12,.95); }
.scr[data-theme="contrast"] { --bg: #000; --rail: #000; --panel: #141414; --raised: #222; --line: #3A3A3A; --text: #fff; --text2: #E6E6E6; --muted: #B0B0B0; --faint: #8A8A8A; --focus: #FFD60A; --ink: #000; --live: #FF453A; --scrim: rgba(0,0,0,.96); }
.scr * { transition: background-color .35s, color .35s, border-color .35s; }
.cond { font-family: 'Barlow Condensed', 'Barlow', sans-serif; }
.ic { display: inline-block; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.solid { fill: currentColor; stroke: none; }
.pill { font-weight: 700; font-size: 12px; letter-spacing: 1px; padding: 2px 7px; border-radius: 4px; background: var(--live); color: #fff; line-height: 16px; flex: none; }

/* channel logos (made up) on the app's logo tile */
.lg { flex: none; border-radius: 8px; background: #262a3a; display: flex; align-items: center; justify-content: center; gap: 4px; overflow: hidden; position: relative; color: #fff; line-height: 1; white-space: nowrap; }
.lg b, .lg i { font-style: normal; }
.lg-hn { background: #1d3463; flex-direction: column; gap: 1px; }
.lg-hn b { font: 700 calc(var(--lh) * .36px) 'Barlow Condensed'; letter-spacing: .06em; }
.lg-hn i { font: 600 calc(var(--lh) * .2px) 'Barlow'; letter-spacing: .3em; color: #ff6b5e; }
.lg-ss b { font: 700 calc(var(--lh) * .3px) 'Barlow'; font-style: italic; letter-spacing: -.02em; color: #9be37a; }
.lg-ss::before { content: ''; width: calc(var(--lh) * .34px); height: calc(var(--lh) * .3px); background: #9be37a; clip-path: polygon(0 100%, 45% 0, 62% 40%, 75% 20%, 100% 100%); }
.lg-c9 b { font: 600 calc(var(--lh) * .24px) Georgia, serif; letter-spacing: .06em; color: #f3e6c8; }
.lg-c9 i { font: 700 calc(var(--lh) * .44px) 'Barlow'; color: #f5b942; }
.lg-cs { background: #3a1f14; }
.lg-cs b { font: 700 calc(var(--lh) * .34px) 'Barlow'; color: #ffb36b; letter-spacing: -.01em; }
.lg-cs::before { content: ''; width: calc(var(--lh) * .3px); height: calc(var(--lh) * .3px); border-radius: 50%; background: #ff7a3d; box-shadow: inset 0 0 0 calc(var(--lh) * .06px) #3a1f14, 0 0 0 calc(var(--lh) * .03px) #ff7a3d; }
.lg-na { background: #0f3d47; }
.lg-na b { font: 700 calc(var(--lh) * .32px) 'Barlow Condensed'; letter-spacing: .12em; color: #7fe3d0; }
.lg-na::before { content: ''; width: calc(var(--lh) * .3px); height: calc(var(--lh) * .3px); border-radius: 50% 0; background: #7fe3d0; transform: rotate(-45deg); }
.lg-rh b { font: 700 calc(var(--lh) * .4px) 'Barlow'; font-style: italic; color: #ff7ad9; text-shadow: 0 0 calc(var(--lh) * .1px) #ff3fb8; letter-spacing: -.02em; }
.lg-kc { background: #2b65c9; }
.lg-kc b { font: 700 calc(var(--lh) * .42px) 'Barlow'; color: #ffe066; letter-spacing: -.03em; }
.lg-mw b { font: 700 calc(var(--lh) * .3px) 'Barlow Condensed'; letter-spacing: .08em; color: #cfe6ff; }
.lg-mw::before { content: ''; width: calc(var(--lh) * .3px); height: calc(var(--lh) * .3px); border-radius: 50%; background: #ffcc4d; box-shadow: 0 0 calc(var(--lh) * .1px) #ffcc4d; }

/* video: illustrated scenes */
.vid { position: absolute; inset: 0; overflow: hidden; background: #000; }
.vid svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.paused .vid *, .paused .vid svg * { animation-play-state: paused !important; }
@keyframes cs-drift { from { transform: translateX(-8px); } to { transform: translateX(8px); } }
@keyframes cs-run { 0% { transform: translate(0, 0); } 50% { transform: translate(14px, -4px); } 100% { transform: translate(0, 0); } }
@keyframes cs-run2 { 0% { transform: translate(0, 0); } 50% { transform: translate(-12px, 5px); } 100% { transform: translate(0, 0); } }
@keyframes cs-steam { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: .7; } 100% { transform: translateY(-22px); opacity: 0; } }
@keyframes cs-ticker { from { transform: translateX(0); } to { transform: translateX(-160px); } }
@keyframes cs-wave { from { transform: translateX(0); } to { transform: translateX(-40px); } }
@keyframes cs-grid { from { transform: translateY(0); } to { transform: translateY(8px); } }
@keyframes cs-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes cs-spin { to { transform: rotate(360deg); } }
.a-drift { animation: cs-drift 6s ease-in-out infinite alternate; }
.a-run { animation: cs-run 3s ease-in-out infinite; }
.a-run2 { animation: cs-run2 3.4s ease-in-out infinite; }
.a-steam { animation: cs-steam 2.4s ease-out infinite; }
.a-ticker { animation: cs-ticker 9s linear infinite; }
.a-wave { animation: cs-wave 4s linear infinite; }
.a-grid { animation: cs-grid 1s linear infinite; }
.a-bob { animation: cs-bob 3s ease-in-out infinite; }
.a-spin { animation: cs-spin 20s linear infinite; transform-box: fill-box; transform-origin: center; }

/* ---- guide ---- */
.gmain { position: absolute; inset: 36px 36px 20px; display: flex; flex-direction: column; }
.gtop { height: 56px; display: flex; align-items: center; flex: none; }
.tnav { display: flex; align-items: center; gap: 6px; }
.tn { height: 50px; padding: 0 22px; border-radius: 25px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 22px; color: var(--text2); white-space: nowrap; }
.tn.ico { padding: 0 13px; }
.tn .ic { width: 25px; height: 25px; }
.tn.here { background: rgba(255,255,255,.08); color: var(--text); }
.gtitle { margin-left: auto; font-weight: 600; font-size: 20px; color: var(--text); }
.gtitle b { font-weight: 500; color: var(--faint); margin-left: 8px; }
.gupd { margin-left: 18px; display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 16px; border-radius: 19px; background: var(--panel); font-weight: 600; font-size: 15px; color: var(--text2); }
.gupd::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #4cc38a; }
.gclock { font: 600 32px 'Barlow Condensed'; margin-left: 22px; min-width: 76px; text-align: right; }
.ghero { height: 270px; margin: 14px 0 18px; display: flex; border-radius: 16px; overflow: hidden; background: var(--panel); flex: none; position: relative; }
.ghero-info { flex: 1; padding: 26px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ghero-chan { display: flex; align-items: center; gap: 20px; }
.ghero-name { font-weight: 700; font-size: 30px; white-space: nowrap; }
.ghero-name em { font-style: normal; color: var(--focus); margin-right: 10px; }
.ghero-grp { font-weight: 500; font-size: 15px; color: var(--muted); margin-top: 2px; text-transform: uppercase; }
.ghero-tl { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.ghero-title { font-weight: 600; font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ghero-ep { font-weight: 500; font-size: 18px; color: var(--muted); white-space: nowrap; }
.ghero-time { display: flex; align-items: center; margin-top: 8px; font: 600 18px 'Barlow Condensed'; color: var(--muted); }
.trk { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; flex: none; }
.trk > i { display: block; height: 100%; background: var(--live); }
.ghero-time .trk { width: 240px; margin-left: 14px; }
.ghero-desc { font-size: 16px; line-height: 21px; color: var(--text2); margin-top: 8px; flex: none; max-width: 760px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ghero-next { font-weight: 500; font-size: 16px; color: var(--text2); margin-top: 10px; }
.ghero-next span { color: var(--faint); margin-right: 10px; }
.ghero-prev { width: 480px; height: 270px; position: relative; flex: none; background: #000; }
.rows { flex: 1; overflow: hidden; min-height: 0; }
.row { height: 70px; margin-bottom: 6px; display: flex; align-items: center; padding-right: 8px; border-radius: 10px; background: var(--panel); overflow: hidden; }
.row.on { background: var(--raised); }
.row .bar { width: 4px; align-self: stretch; margin-right: 14px; flex: none; }
.row.on .bar { background: var(--focus); }
.row .num { font: 600 20px 'Barlow Condensed'; color: var(--faint); width: 52px; flex: none; }
.row.on .num { color: var(--focus); }
.row .ncol { width: 250px; margin: 0 20px 0 16px; flex: none; min-width: 0; }
.row .nm { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 19px; white-space: nowrap; }
.row .grp { font-size: 13px; color: var(--faint); margin-top: 2px; text-transform: uppercase; }
.row .now { flex: 2; margin-right: 24px; min-width: 0; }
.row .now b { display: block; font-weight: 500; font-size: 17px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.on .now b { color: var(--text); }
.row .pl { display: flex; align-items: center; margin-top: 7px; }
.row .pl .trk { width: 220px; height: 3px; }
.row .tm { font: 500 14px 'Barlow Condensed'; color: var(--faint); margin-left: 10px; white-space: nowrap; }
.row .nxt { flex: 1.2; margin-right: 12px; min-width: 0; }
.row .nl { font: 500 14px 'Barlow Condensed'; color: var(--faint); }
.row .nt { font-size: 15px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .star { width: 44px; height: 44px; display: grid; place-items: center; color: var(--focus); flex: none; }
.star .ic { width: 20px; height: 20px; transform: scale(0); transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.fav .star .ic, .fav > .star .ic { transform: scale(1); }
.spk { color: var(--live); width: 18px; height: 18px; display: none; }
.playing .spk { display: inline-block; }
.hints { display: flex; align-items: center; gap: 18px; padding-top: 12px; flex: none; }
.hint { display: flex; align-items: center; gap: 7px; }
.kc { font: 600 13px 'Barlow Condensed'; color: var(--text2); min-width: 26px; text-align: center; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--panel); }
.ht { font-weight: 500; font-size: 14px; color: var(--faint); }
.hints .prof { margin-left: auto; font-weight: 500; font-size: 14px; color: var(--faint); }

/* timeline */
.tl { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.tl-head { height: 34px; display: flex; position: relative; margin-bottom: 4px; }
.tl-day { width: 290px; font-weight: 600; font-size: 14px; color: var(--muted); padding: 8px 0 0 4px; flex: none; }
.tl-t { position: absolute; top: 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.tl-t::before { content: ''; position: absolute; left: -10px; top: -2px; height: 26px; border-left: 1px solid var(--line); }
.tl-nowpill { position: absolute; top: 4px; transform: translateX(-50%); background: var(--live); color: #fff; font: 600 14px 'Barlow Condensed'; padding: 2px 8px; border-radius: 12px; z-index: 3; }
.tl-line { position: absolute; top: 30px; bottom: 0; width: 2px; margin-left: -1px; background: var(--live); z-index: 3; opacity: .9; }
.tl-row { height: 70px; margin-bottom: 6px; display: flex; position: relative; }
.tl-ch { width: 284px; margin-right: 6px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 12px 0 16px; border-radius: 10px; background: var(--panel); border-left: 4px solid transparent; }
.tl-row.on .tl-ch { background: var(--raised); border-left-color: var(--focus); }
.tl-ch .num { font: 600 20px 'Barlow Condensed'; color: var(--faint); width: 34px; }
.tl-row.on .tl-ch .num { color: var(--focus); }
.tl-ch .nm { font-weight: 600; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.tl-progs { position: relative; flex: 1; }
.tl-p { position: absolute; top: 0; bottom: 0; border-radius: 10px; background: var(--panel); padding: 0 14px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; min-width: 0; }
.tl-p b { font: 500 19px 'Barlow Condensed'; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-p span { font: 500 14px 'Barlow Condensed'; color: var(--faint); margin-top: 3px; white-space: nowrap; }
.tl-p.cur { background: #23263A; }
.scr[data-theme] .tl-p.cur { background: var(--raised); }
.tl-row.on .tl-p.sel { background: var(--focus); }
.tl-row.on .tl-p.sel b { color: var(--ink); font-weight: 600; }
.tl-row.on .tl-p.sel span { color: var(--ink); opacity: .7; }

/* full screen playback, info banner, pause bar */
.full { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .35s; pointer-events: none; z-index: 8; }
.full.in { opacity: 1; }
.osd { position: absolute; left: 36px; right: 36px; bottom: 36px; display: flex; align-items: center; gap: 22px; padding: 24px; border-radius: 16px; background: var(--scrim); border: 1px solid var(--line); transition: opacity .4s, transform .4s; }
.osd.hide { opacity: 0; transform: translateY(20px); }
.osd-info { flex: 1; min-width: 0; }
.osd-top { display: flex; align-items: center; gap: 12px; }
.osd-num { font: 600 30px 'Barlow Condensed'; color: var(--focus); }
.osd-ch { font-weight: 700; font-size: 28px; white-space: nowrap; }
.osd-meta { font-weight: 500; font-size: 15px; color: var(--faint); margin-left: auto; margin-right: 8px; }
.osd-clock { font: 600 26px 'Barlow Condensed'; }
.osd-tl { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.osd-title { font-weight: 600; font-size: 21px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osd-prog { display: flex; align-items: center; margin-top: 10px; gap: 16px; }
.osd-prog .t { font: 500 16px 'Barlow Condensed'; color: var(--muted); white-space: nowrap; }
.osd-prog .trk { flex: 1; max-width: 520px; }
.osd-prog .left { font: 500 16px 'Barlow Condensed'; color: var(--faint); }
.osd-next { font-weight: 500; font-size: 16px; color: var(--text2); margin-top: 12px; }
.osd-next span { color: var(--faint); margin-right: 10px; }
.shift { position: absolute; left: 16px; top: 16px; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 10px; background: rgba(12,13,20,.86); transition: opacity .3s; }
.shift.hide { opacity: 0; }
.shift .ic { width: 18px; height: 18px; color: var(--focus); }
.shift-t { font-weight: 600; font-size: 16px; }
.shift-t em { font-style: normal; color: var(--focus); margin-left: 8px; }
.shift-k { font-weight: 500; font-size: 14px; color: var(--muted); margin-left: 10px; white-space: pre; }
.toast { position: absolute; top: 36px; left: 50%; transform: translateX(-50%); padding: 12px 22px; border-radius: 24px; background: var(--raised); border: 1px solid var(--line); font-weight: 500; font-size: 17px; white-space: nowrap; z-index: 9; transition: opacity .3s; }
.toast.hide { opacity: 0; }

/* options menu */
.menu { position: absolute; top: 0; right: 0; bottom: 0; width: 400px; padding: 36px 20px; background: var(--scrim); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .35s ease; z-index: 7; }
.menu.in { transform: none; }
.menu-t { font-weight: 700; font-size: 26px; padding: 0 12px; }
.menu-s { font-size: 15px; color: var(--muted); padding: 0 12px; margin: 4px 0 18px; text-transform: uppercase; }
.mi { height: 52px; margin-bottom: 6px; border-radius: 10px; padding: 0 14px; display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 19px; color: var(--text); }
.mi .ic { width: 22px; height: 22px; color: var(--muted); }
.mi.on { background: var(--focus); color: var(--ink); }
.mi.on .ic { color: var(--ink); }
.mdiv { height: 1px; background: var(--line); margin: 10px 12px; }

/* search */
.sov { position: absolute; inset: 0; background: var(--overlay); padding: 60px 140px; opacity: 0; transition: opacity .3s; z-index: 7; }
.sov.in { opacity: 1; }
.sbox { height: 100%; background: var(--bg); border-radius: 16px; padding: 28px; border: 1px solid var(--line); }
.shead { display: flex; align-items: center; gap: 14px; padding: 0 18px; height: 64px; border-radius: 12px; background: var(--panel); border: 2px solid var(--focus); }
.shead .ic { width: 26px; height: 26px; color: var(--focus); }
.sq { font-weight: 500; font-size: 24px; display: flex; align-items: center; }
.sq:empty::before { content: 'Channel or program'; color: var(--faint); }
.caret { width: 2px; height: 28px; background: var(--focus); margin-left: 2px; animation: cs-blink 1s steps(1) infinite; }
@keyframes cs-blink { 50% { opacity: 0; } }
.shint { font-size: 16px; color: var(--muted); padding: 16px; }
.sres { height: 70px; margin-top: 6px; border-radius: 10px; padding: 0 12px; display: flex; align-items: center; border-left: 4px solid transparent; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s, background-color .3s; }
.sres.in { opacity: 1; transform: none; }
.sres.on { background: var(--raised); border-left-color: var(--focus); }
.sres .num { font: 600 18px 'Barlow Condensed'; color: var(--faint); width: 46px; }
.sres.on .num { color: var(--focus); }
.sres .nm { font-weight: 600; font-size: 18px; }
.sres .nm i { font-style: normal; font-weight: 400; font-size: 14px; color: var(--faint); margin-left: 16px; text-transform: uppercase; }
.sres .pg { font-size: 14px; color: var(--muted); margin-top: 2px; }
.sres .pg em { font-style: normal; color: var(--live); margin-right: 12px; }

/* multi-view */
.mv { position: absolute; inset: 0; background: #000; padding: 6px 6px 32px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; }
.mvt { position: relative; border-radius: 10px; overflow: hidden; background: #000; border: 3px solid transparent; }
.mvt.on { border-color: var(--focus); }
.mvl { position: absolute; left: 8px; bottom: 8px; max-width: 92%; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(12,13,20,.82); }
.mvl .ic { width: 18px; height: 18px; color: var(--muted); }
.mvt.on .mvl .ic { color: var(--focus); }
.mvl b { font-weight: 600; font-size: 15px; white-space: nowrap; }
.mvl b em { font-style: normal; color: var(--focus); margin-right: 6px; }
.mvl span { font-size: 14px; color: var(--text2); white-space: nowrap; }
.mvt.add { background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--faint); font-weight: 600; font-size: 18px; }
.mvt.add .ic { width: 34px; height: 34px; }
.mvkeys { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-weight: 500; font-size: 13px; color: var(--faint); word-spacing: 2px; }

/* who's watching */
.who { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; }
.who-brand { position: absolute; top: 40px; left: 48px; font-weight: 700; font-size: 40px; letter-spacing: -1px; }
.who-brand span { color: var(--focus); }
.who-t { font-weight: 700; font-size: 40px; margin-bottom: 36px; }
.who-row { display: flex; gap: 34px; }
.who-p { display: flex; flex-direction: column; align-items: center; }
.av { width: 132px; height: 132px; border-radius: 50%; border: 5px solid transparent; opacity: .72; display: grid; place-items: center; font-weight: 700; font-size: 61px; color: #151722; position: relative; transition: opacity .25s, transform .25s, border-color .25s; }
.who-p.on .av { border-color: var(--text); opacity: 1; transform: scale(1.08); }
.av .lock { position: absolute; right: -2px; bottom: -2px; background: var(--panel); border-radius: 16px; padding: 6px; color: var(--text); display: flex; }
.av .lock .ic { width: 17px; height: 17px; }
.who-n { font-weight: 600; font-size: 21px; color: var(--muted); margin-top: 14px; }
.who-p.on .who-n { color: var(--text); }
.pinbox { position: absolute; inset: 0; background: var(--overlay); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.pinbox.in { opacity: 1; }
.pin { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 32px 48px; text-align: center; }
.pin b { display: block; font-size: 26px; font-weight: 700; }
.pin small { display: block; font-size: 16px; color: var(--muted); margin-top: 6px; }
.dots { display: flex; gap: 14px; justify-content: center; margin-top: 24px; }
.dots i { width: 54px; height: 64px; border-radius: 10px; background: var(--panel); border: 2px solid var(--line); display: grid; place-items: center; }
.dots i.in::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--text); }
.dots i.at { border-color: var(--focus); }

/* ---- phone: the remote and the phone guide ---- */
.pstat { height: 26px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-weight: 600; font-size: 12px; color: var(--text); }
.pstat i { display: flex; gap: 4px; }
.pstat i::before, .pstat i::after { content: ''; width: 14px; height: 9px; border-radius: 2px; background: var(--text); opacity: .9; }
.phead { display: flex; align-items: center; gap: 12px; padding: 10px 16px 8px; }
.phead > div { flex: 1; min-width: 0; }
.ptitle { font-weight: 700; font-size: 20px; white-space: nowrap; }
.psub { font-size: 12px; color: var(--faint); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdone { height: 36px; padding: 0 16px; border-radius: 18px; background: var(--panel); display: flex; align-items: center; font-weight: 600; font-size: 14px; color: var(--text2); }
.scr.rem { display: flex; flex-direction: column; }
.scr.rem > * { flex: none; }
/* Simple or Full, with the thumb under the side that's on; a finger swipes across it */
.pmode { position: relative; width: 200px; height: 34px; margin: 0 auto 4px; padding: 3px; border-radius: 17px; background: var(--panel); display: flex; }
.pmode .thumb { position: absolute; left: 3px; top: 3px; bottom: 3px; width: 97px; border-radius: 14px; background: var(--focus); transform: translateX(97px); transition: transform .4s cubic-bezier(.3,1.35,.5,1); }
.scr.simple .pmode .thumb { transform: none; }
.pmode .m { position: relative; flex: 1; display: grid; place-items: center; font-weight: 600; font-size: 13.5px; color: var(--text2); transition: color .3s; }
.scr:not(.simple) .pmode .f, .scr.simple .pmode .s { color: var(--ink); }
.pmode .swipe { position: absolute; z-index: 2; top: 50%; left: 150px; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: rgba(255,255,255,.5); box-shadow: 0 0 0 7px rgba(255,255,255,.14); opacity: 0; pointer-events: none; }
.pmode.to-s .swipe { animation: cs-swipe-l .65s ease-in-out; }
.pmode.to-f .swipe { animation: cs-swipe-r .65s ease-in-out; }
@keyframes cs-swipe-l { 0% { left: 150px; opacity: 0; } 15%, 80% { opacity: 1; } 100% { left: 22px; opacity: 0; } }
@keyframes cs-swipe-r { 0% { left: 22px; opacity: 0; } 15%, 80% { opacity: 1; } 100% { left: 150px; opacity: 0; } }
.rbody { position: relative; flex: 1 !important; min-height: 0; overflow: hidden; }
.rfull, .rsimple { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; transition: opacity .35s, transform .45s cubic-bezier(.3,0,.2,1); }
.rfull { padding-top: 6px; }
.rsimple { justify-content: space-evenly; padding-bottom: 14px; opacity: 0; transform: translateX(40px); }
.scr.simple .rfull { opacity: 0; transform: translateX(-40px); }
.scr.simple .rsimple { opacity: 1; transform: none; }
/* the pad: a ring of arrows around OK (Full: 320 with the corner keys; Simple: the ring fills it) */
.rpad { position: relative; width: 320px; height: 320px; flex: none; }
.rpad .ring { position: absolute; left: 35px; top: 35px; width: 250px; height: 250px; border-radius: 50%; background: var(--raised); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.rpad.big .ring { left: 0; top: 0; width: 320px; height: 320px; }
.rk { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; color: var(--text); transition: background-color .15s, transform .15s, filter .15s; }
.rk.u, .rk.d, .rk.l, .rk.r { width: 83.3px; height: 83.3px; }
.rk.u { left: 118.3px; top: 35px; } .rk.d { left: 118.3px; top: 201.7px; } .rk.l { left: 35px; top: 118.3px; } .rk.r { left: 201.7px; top: 118.3px; }
.rk .ic { width: 33px; height: 33px; }
.rpad.big .rk.u, .rpad.big .rk.d, .rpad.big .rk.l, .rpad.big .rk.r { width: 106.7px; height: 106.7px; }
.rpad.big .rk.u { left: 106.7px; top: 0; } .rpad.big .rk.d { left: 106.7px; top: 213.3px; } .rpad.big .rk.l { left: 0; top: 106.7px; } .rpad.big .rk.r { left: 213.3px; top: 106.7px; }
.rpad.big .rk .ic { width: 42px; height: 42px; }
.rk.ok { left: 115px; top: 115px; width: 90px; height: 90px; background: var(--focus); color: var(--ink); font-weight: 700; font-size: 21px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.6); }
.rpad.big .rk.ok { left: 102.5px; top: 102.5px; width: 115px; height: 115px; font-size: 26px; }
.rk.c { width: 77px; height: 77px; background: var(--panel); color: var(--text2); gap: 2px; }
.rk.c .ic { width: 23px; height: 23px; }
.rk.c small { font-weight: 600; font-size: 11px; }
.rk.tl { left: 0; top: 0; } .rk.tr { right: 0; top: 0; } .rk.bl { left: 0; bottom: 0; } .rk.br { right: 0; bottom: 0; }
.rk.press { background-color: rgba(255,255,255,.1); }
.rk.ok.press, .rk.c.press { transform: scale(.93); filter: brightness(1.25); }
.pextras { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.px { height: 46px; width: 101px; border-radius: 23px; background: var(--panel); display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--text2); transition: transform .15s, filter .15s; }
.px .ic { width: 18px; height: 18px; }
.px.press { transform: scale(.94); filter: brightness(1.4); }
.rfull .psearch { margin: 0 14px 4px; }
.pchip.sm { font-size: 13px; border: 1px solid transparent; }
.pchip.line { border-color: var(--focus); color: var(--focus); }
.plist { flex: 1; min-height: 0; overflow: hidden; }
/* the channel sheet: peeking under the hint, or pulled up to just under Details and Options */
.rsheet { position: absolute; left: 0; right: 0; top: 330px; bottom: 0; display: flex; flex-direction: column; background: var(--bg); border-radius: 20px 20px 0 0; border-top: 1px solid var(--line); box-shadow: 0 -10px 26px -6px rgba(0,0,0,.55); transform: translateY(140px); transition: transform .55s cubic-bezier(.3,1.15,.45,1); }
.scr.sheet-up .rsheet { transform: none; }
.rsheet > * { flex: none; }
.rsheet .plist { flex: 1; }
.rhandle { position: relative; height: 18px; display: grid; place-items: center; }
.rhandle::before { content: ''; width: 38px; height: 4px; border-radius: 2px; background: var(--line); }
.rhandle .drag { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: rgba(255,255,255,.5); box-shadow: 0 0 0 7px rgba(255,255,255,.14); opacity: 0; pointer-events: none; }
.rhandle.pull .drag { animation: cs-pull .6s ease-out; }
@keyframes cs-pull { 0% { opacity: 0; transform: translateY(40px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.plist-in { transition: transform .55s cubic-bezier(.4,0,.2,1); }
.rrow { height: 60px; }
.rrow.on .nm { color: var(--focus); }
.rtv { color: var(--focus); opacity: 0; transition: opacity .3s; }
.rtv .ic { width: 18px; height: 18px; }
.rrow.on .rtv { opacity: 1; }
.rrow.press { background: var(--raised); }
/* Simple: Back, Play/Pause and Guide, then the volume and channel rockers either side of Mute */
.srow { display: flex; gap: 26px; align-items: center; }
.rnd { width: 72px; height: 72px; border-radius: 50%; background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text); transition: transform .15s, filter .15s; }
.rnd .ic { width: 22px; height: 22px; }
.rnd small { font-weight: 600; font-size: 11px; color: var(--text2); }
.rnd.big { background: var(--focus); color: var(--ink); }
.rnd.big small { color: var(--ink); }
.rnd.big .ic { width: 28px; height: 28px; }
.rnd.press { transform: scale(.93); filter: brightness(1.3); }
.rock { width: 72px; height: 150px; border-radius: 36px; background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: space-between; overflow: hidden; }
.rock > span { width: 72px; height: 60px; display: grid; place-items: center; color: var(--text); transition: background-color .15s; }
.rock .ic { width: 24px; height: 24px; }
.rock small { font-weight: 700; font-size: 11px; letter-spacing: 1.5px; color: var(--faint); }
.rock > span.press { background: rgba(255,255,255,.12); }
.phint { font-size: 12px; color: var(--faint); text-align: center; margin-top: 8px; white-space: pre; }
.pchips { display: flex; gap: 8px; padding: 8px 14px; overflow: hidden; }
.pchip { height: 34px; padding: 0 14px; border-radius: 17px; background: var(--panel); display: flex; align-items: center; font-weight: 600; font-size: 14px; color: var(--text2); white-space: nowrap; flex: none; }
.pchip.sm { height: 30px; }
.pchip.on { background: var(--focus); color: var(--ink); }
.pchip b { margin-left: 6px; font-weight: 600; }
.psearch { display: flex; align-items: center; gap: 8px; height: 38px; margin: 0 14px 4px; padding: 0 12px; border-radius: 19px; background: var(--panel); font-weight: 500; font-size: 14px; color: var(--faint); white-space: nowrap; overflow: hidden; }
.psearch .ic { width: 16px; height: 16px; flex: none; }
.psearch .mic { margin-left: auto; color: var(--focus); }
.prow { height: 56px; display: flex; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.prow.tall { height: 66px; padding-right: 4px; }
.prow.on { background: var(--raised); }
.prow .txt { flex: 1; margin-left: 12px; min-width: 0; }
.prow .nm { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow.tall .nm { font-size: 16px; }
.prow .nm em { font: 600 14px 'Barlow Condensed'; font-style: normal; color: var(--faint); margin-right: 6px; }
.prow .pn { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow.tall .pn { font-size: 13px; color: var(--text2); }
.prow .pp { display: flex; align-items: center; margin-top: 4px; }
.prow .pp .trk { width: 90px; height: 3px; }
.prow .pp span { font: 500 12px 'Barlow Condensed'; color: var(--faint); margin-left: 8px; }
.prow .star { width: 44px; height: 44px; display: grid; place-items: center; color: var(--focus); }
.prow .star .ic.out { width: 20px; height: 20px; color: var(--faint); position: absolute; }
.prow.fav .star .ic.out { display: none; }
.prow.tap::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); transform: translate(-50%, -50%); animation: cs-ripple .55s ease-out forwards; }
@keyframes cs-ripple { to { width: 420px; height: 420px; opacity: 0; } }
.prow.gone { display: none; }
.prow.arrive { animation: cs-arrive .5s ease-out; }
@keyframes cs-arrive { from { opacity: 0; transform: translateY(-10px); background: var(--raised); } }
.ptabs { height: 58px; display: flex; align-items: center; gap: 4px; padding: 0 14px; }
.ptab-sw { flex: 1; display: flex; height: 44px; padding: 3px; border-radius: 22px; background: var(--panel); }
.ptab { flex: 1; display: grid; place-items: center; border-radius: 19px; font-weight: 600; font-size: 15px; color: var(--text2); }
.ptab.on { background: var(--focus); color: var(--ink); }
.ptab-ic { width: 38px; height: 40px; display: grid; place-items: center; color: var(--text2); }
.ptab-ic .ic { width: 21px; height: 21px; }
.ptitle .caret { color: var(--muted); font-size: 16px; font-weight: 500; }
.pgroups { height: 38px; padding: 0 14px; border-radius: 19px; background: var(--focus); color: var(--ink); display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.pgroups .ic { width: 16px; height: 16px; }

/* where playlists come from (guide demo) */
.sources { position: absolute; left: 41%; top: 46%; display: flex; gap: 1.2cqw; transform: translate(-50%, -50%); z-index: 9; pointer-events: none; font-size: 1.5cqw; color: #f3f0ea; }
.chip { background: #262b42; border: .12em solid #3a4162; padding: .55em .95em; border-radius: 999px; white-space: nowrap; opacity: 0; transform: translateY(1em); transition: opacity .4s, transform .6s cubic-bezier(.5,0,.3,1); box-shadow: 0 .6em 1.4em rgba(0,0,0,.55); font-weight: 600; }
.sources.in .chip { opacity: 1; transform: none; }
.sources.in .chip:nth-child(2) { transition-delay: .12s; }
.sources.in .chip:nth-child(3) { transition-delay: .24s; }
.sources.merge .chip { opacity: 0; transform: translateY(5em) scale(.6); transition-delay: 0s !important; }

@media (prefers-reduced-motion: reduce) {
  .stage *, .stage *::before, .stage *::after { animation: none !important; transition: none !important; }
}

/* ▶ VOD: the prompt on a live channel, then the library copy from the beginning (the screen is drawn at 1440 px) */
.vodb { position: absolute; z-index: 10; right: 40px; bottom: 40px; display: flex; align-items: center; gap: 18px; padding: 18px 26px; border-radius: 16px; background: rgba(12,13,20,.9); transition: opacity .3s, transform .3s; }
.vodb.hide { opacity: 0; transform: translateY(12px); }
.vodb.press { transform: scale(.96); }
.vodb b { color: var(--focus); font-size: 32px; }
.vodb span { font-size: 28px; }
.vodk { border: 2px solid rgba(255,255,255,.5); border-radius: 8px; padding: 2px 10px; font-size: 22px !important; font-weight: 700; }
.vodm { position: absolute; z-index: 9; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none; }
.vodm.in { opacity: 1; }

/* The controls along the bottom: the same for live TV and a movie or episode */
.ctl { position: absolute; left: 36px; right: 36px; bottom: 30px; padding: 22px 28px; border-radius: 16px; background: rgba(14,16,24,.94); border: 1px solid rgba(255,255,255,.1); }
.ctl-t { font-weight: 700; font-size: 28px; }
.ctl-s { font-weight: 500; font-size: 16px; color: var(--muted); margin-top: 2px; }
.ctl-bar { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.ctl-time { font: 600 18px 'Barlow Condensed'; color: var(--text2); min-width: 72px; text-align: center; font-variant-numeric: tabular-nums; }
.ctl-trk { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); position: relative; }
.ctl-trk i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--focus); transition: width .9s linear; }
.ctl-trk b { position: absolute; top: 50%; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--focus); transition: left .9s linear; }
.ctl-btns { display: flex; gap: 10px; margin-top: 16px; }
.ctl-b { height: 44px; padding: 0 18px; border-radius: 22px; background: rgba(255,255,255,.08); display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; color: var(--text2); }
.ctl-b.on { background: var(--focus); color: var(--ink); }
.ctl-b .ic { width: 20px; height: 20px; }

/* A title's details: picture, facts, cast (live TV's Details and Movies and Series share them) */
/* Pictures in Details and on posters are stills in the app, so they hold still here too */
.dpic .vid *, .vb-poster .vid * { animation: none !important; }
.dpic { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--panel); }
.dcredit { font-weight: 500; font-size: 12px; color: var(--faint); white-space: nowrap; }
.dcredit b { color: #6cd491; font-weight: 700; }
.dfacts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; }
.dfacts span { font-weight: 500; font-size: 15px; color: var(--muted); }
.dfacts .drate, .drate { font-weight: 700; font-size: 13px; color: var(--text); padding: 1px 7px; border-radius: 4px; border: 1.5px solid var(--text2); }
.dpeople { display: flex; gap: 4px; margin-top: 18px; }
.dperson { width: 92px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.dface { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 20px; color: #151722; }
.dperson b { font-weight: 600; font-size: 13px; color: var(--text2); margin-top: 6px; line-height: 1.2; }
.dperson small { font-size: 12px; color: var(--faint); }

/* live TV: a program's Details over the guide */
.det { position: absolute; inset: 0; z-index: 7; background: var(--overlay); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .35s; }
.det.in { opacity: 1; }
.det-box { width: 880px; height: 714px; padding: 28px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; transform: translateY(16px); transition: transform .35s; }
.det.in .det-box { transform: none; }
.det-head { font-weight: 600; font-size: 16px; color: var(--muted); }
.det-head em { font-style: normal; color: var(--focus); margin-right: 10px; }
.det-scroll { flex: 1; min-height: 0; overflow: hidden; margin-top: 16px; }
.det-body { transition: transform .9s cubic-bezier(.4,0,.2,1); }
.det-when { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.det-when > span:not(.pill):not(.dcredit) { font-weight: 600; font-size: 15px; color: var(--text2); white-space: pre; }
.det-when .dcredit { margin-left: auto; }
.det-title { font-weight: 700; font-size: 30px; line-height: 36px; margin-top: 10px; }
.det-desc { font-size: 17px; line-height: 25px; color: var(--text2); margin-top: 14px; }
.det-ppl { font-size: 15px; color: var(--faint); margin-top: 12px; }
.det-vod { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 22px; background: var(--focus); color: var(--ink); font-weight: 600; font-size: 16px; margin-top: 18px; transition: transform .15s; }
.det-vod .ic { width: 18px; height: 18px; }
.det-vod.press, .vb-btn.press, .vb-item.press { transform: scale(.94); }

/* Movies and Series: the list, a title's page */
.vb { position: absolute; inset: 0; display: flex; padding: 36px 36px 0; }
.vb-side { width: 300px; margin-right: 34px; flex: none; }
.vb-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.vb-back { width: 50px; height: 50px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; flex: none; }
.vb-back .ic { width: 24px; height: 24px; }
.vb-back.abs { position: absolute; left: 36px; top: 30px; }
.vb-tabs { display: flex; flex: none; padding: 5px; border-radius: 28px; background: var(--panel); }
.vb-tabs span { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 23px; font-weight: 600; font-size: 19px; color: var(--muted); }
.vb-tabs span .ic { width: 20px; height: 20px; }
.vb-tabs span.on { background: var(--raised); color: var(--text); }
.vb-mi { height: 52px; margin-bottom: 6px; border-radius: 10px; padding: 0 16px; display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 19px; color: var(--text2); }
.vb-mi .ic { width: 20px; height: 20px; color: var(--focus); }
.vb-mi .ic.end { margin-left: auto; color: var(--muted); }
.vb-mi.on { background: var(--focus); color: var(--ink); font-weight: 600; }
.vb-grid { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 20px; align-content: start; padding-top: 72px; }
.vb-item { transition: transform .25s; }
.vb-poster { position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--panel); outline: 4px solid transparent; transition: outline-color .2s, transform .25s; }
.vb-item.on .vb-poster { outline-color: var(--focus); transform: scale(1.04); }
.vb-poster::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.vb-ptitle { position: absolute; left: 10px; right: 10px; bottom: 14px; z-index: 1; text-align: center; font: 600 24px/1.05 'Barlow Condensed'; text-transform: uppercase; letter-spacing: .05em; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.vb-name { font-weight: 500; font-size: 16px; color: var(--text2); margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb-page { position: absolute; inset: 0; z-index: 6; background: var(--bg); display: flex; padding: 100px 48px 0; opacity: 0; transition: opacity .35s; }
.vb-page.in { opacity: 1; }
.vb-left { width: 560px; flex: none; }
.vb-credit { margin-top: 12px; text-align: right; }
.vb-info { flex: 1; margin-left: 40px; min-width: 0; }
.vb-title { font-weight: 700; font-size: 38px; line-height: 1.1; }
.vb-plot { font-size: 17px; line-height: 25px; color: var(--text2); margin-top: 16px; }
.vb-ppl { font-size: 15px; color: var(--faint); margin-top: 10px; white-space: pre; }
.vb-btns { display: flex; gap: 12px; margin-top: 22px; }
.vb-btn { height: 50px; padding: 0 22px; border-radius: 25px; background: var(--raised); display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; transition: transform .15s; }
.vb-btn.on { background: var(--focus); color: var(--ink); }
.vb-btn .ic { width: 20px; height: 20px; }

/* A viewer's content-rating limit: what's above it doesn't play */
.gate .vid svg { filter: blur(18px) brightness(.45); transform: scale(1.15); }
.gate-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 520px; max-width: 680px; padding: 34px 44px; border-radius: 18px; background: rgba(12,13,20,.9); border: 1px solid var(--line); text-align: center; }
.gate-lock { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--raised); display: grid; place-items: center; }
.gate-lock .ic { width: 30px; height: 30px; color: var(--focus); }
.gate-t { display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 700; font-size: 28px; }
.gate-t .drate { font-size: 16px; }
.gate-s { font-size: 17px; color: var(--muted); margin-top: 8px; }

/* ---- Home: the highlighted title fills the top, rows of continue watching, on now, trending ---- */
.hm-hero { position: absolute; inset: 0; transition: opacity .45s; }
.hm-hero.enter { opacity: 0; }
.hm-back { position: absolute; right: 0; top: 0; width: 1000px; height: 562px; }
.hm-back .vid svg { object-fit: cover; }
.hm-back::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(21,23,34,.85) 22%, rgba(21,23,34,0) 55%), linear-gradient(0deg, var(--bg) 0%, rgba(21,23,34,0) 45%), linear-gradient(180deg, rgba(21,23,34,.92) 0%, rgba(21,23,34,0) 20%); }
.hm-info { position: absolute; left: 64px; top: 96px; width: 640px; }
.hm-eyebrow { font: 600 17px 'Barlow Condensed'; letter-spacing: .12em; text-transform: uppercase; color: var(--focus); }
.hm-chan { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 20px; color: var(--text2); }
.hm-chan em { font: 600 20px 'Barlow Condensed'; font-style: normal; color: var(--focus); margin-right: 8px; }
.hm-title { font-weight: 700; font-size: 54px; line-height: 1.04; margin-top: 10px; letter-spacing: -.01em; }
.hm-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 12px; }
.hm-facts span { font-weight: 500; font-size: 17px; color: var(--muted); }
.hm-facts .drate { font-size: 14px; }
.hm-facts .pill { font-size: 13px; color: #fff; }
.hm-desc { font-size: 18px; line-height: 26px; color: var(--text2); margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-left { display: flex; align-items: center; gap: 12px; margin-top: 14px; font: 600 17px 'Barlow Condensed'; color: var(--muted); }
.hm-left .trk { width: 220px; }
.hm-left .trk > i, .hm-prog .trk > i { background: var(--focus); }
.hm-top { position: absolute; left: 64px; right: 52px; top: 34px; display: flex; align-items: center; gap: 28px; z-index: 2; }
.hm-top .gclock { margin-left: auto; }
.hm-rows { position: absolute; left: 0; right: 0; top: 410px; bottom: 0; z-index: 2; overflow: hidden; padding: 8px 0 0 64px; }
.hm-rows-in { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.hm-row { height: 196px; overflow: hidden; padding-top: 2px; }
.hm-rt { font-weight: 600; font-size: 22px; line-height: 28px; padding-left: 4px; color: var(--text2); display: flex; align-items: center; gap: 10px; transition: color .25s; }
.hm-row.on .hm-rt { color: var(--text); }
.hm-tag { font-weight: 600; font-size: 14px; color: #ff6b6b; border: 1.5px solid currentColor; border-radius: 12px; padding: 0 9px; line-height: 22px; }
.hm-strip { display: flex; gap: 22px; margin-top: 10px; padding: 6px 0 0 6px; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.hm-t { flex: none; position: relative; transition: transform .25s; }
.hm-t.wide { width: 256px; }
.hm-t.poster { width: 96px; }
.hm-pic { position: relative; border-radius: 12px; overflow: hidden; background: var(--panel); outline: 4px solid transparent; outline-offset: 0; transition: outline-color .2s; }
.hm-t.wide .hm-pic { height: 144px; }
.hm-t.poster .hm-pic { height: 144px; }
.hm-t.on { transform: scale(1.06); z-index: 1; }
.hm-t.on .hm-pic { outline-color: var(--focus); }
.hm-name { position: absolute; left: 12px; right: 12px; bottom: 14px; font-weight: 600; font-size: 17px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1; }
.hm-t.wide .hm-pic::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.hm-prog { position: absolute; left: 12px; right: 12px; bottom: 6px; z-index: 2; }
.hm-prog .trk { width: 100%; height: 4px; }
.hm-lg { position: absolute; left: 10px; top: 10px; z-index: 2; }
.hm-live { position: absolute; right: 10px; top: 10px; z-index: 2; }
.hm-ptitle { position: absolute; left: 8px; right: 8px; bottom: 12px; text-align: center; font: 600 17px/1.05 'Barlow Condensed'; text-transform: uppercase; letter-spacing: .05em; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.8); z-index: 1; }
.hm-rank { position: absolute; left: -6px; bottom: -8px; font: 700 52px/1 'Barlow Condensed'; color: var(--bg); -webkit-text-stroke: 2px var(--muted); z-index: 2; }
.hm-t.on .hm-rank { -webkit-text-stroke-color: var(--focus); }

/* the phone remote's power button and volume row; the TV's volume bar */
.ppower { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(229,72,77,.16); color: #ff6b6b; flex: none; }
.ppower .ic { width: 18px; height: 18px; }
.vol-osd { position: absolute; right: 48px; top: 48px; z-index: 12; display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-radius: 18px; background: var(--scrim); color: var(--text); opacity: 0; transform: translateY(-10px); transition: opacity .25s, transform .25s; }
.vol-osd.in { opacity: 1; transform: none; }
.vol-osd .ic { width: 30px; height: 30px; }
.vol-bar { width: 260px; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.vol-bar i { display: block; height: 100%; width: 50%; background: var(--focus); transition: width .2s; }

/* ---- Sports: today's games, live scores, the channels showing them ---- */
.lg-ss2 b { font: 700 calc(var(--lh) * .28px) 'Barlow'; font-style: italic; letter-spacing: -.02em; color: #9be37a; }
.lg-ss2 i { font: 700 calc(var(--lh) * .34px) 'Barlow'; color: #fff; }
.lg-co b { font: 700 calc(var(--lh) * .26px) 'Barlow Condensed'; letter-spacing: .08em; color: #ffb36b; }
.lg-co i { font: 700 calc(var(--lh) * .34px) 'Barlow'; color: #fff; }
.lg-co::before { content: ''; width: calc(var(--lh) * .2px); height: calc(var(--lh) * .2px); border-radius: 50%; background: #ff8a3d; }
.lg-gn b { font: 700 calc(var(--lh) * .24px) 'Barlow'; font-style: italic; color: #ffcc4d; border-bottom: calc(var(--lh) * .04px) solid #e5484d; }
.lg-rk { background: #17408f; }
.lg-rk b { font: 700 calc(var(--lh) * .32px) 'Barlow Condensed'; letter-spacing: .1em; color: #fff; }
.sp-main { position: absolute; left: 64px; right: 52px; top: 112px; bottom: 0; }
.sp-head { display: flex; align-items: flex-end; justify-content: space-between; }
.sp-today { font-weight: 700; font-size: 52px; line-height: 1; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 20px; }
.sp-today span { font: 600 18px 'Barlow Condensed'; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sp-yours { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 22px; background: var(--panel); font-weight: 600; font-size: 17px; color: var(--text2); }
.sp-yours .ic { width: 20px; height: 20px; }
.sp-sec { margin: 22px 0 12px; font: 600 19px 'Barlow Condensed'; letter-spacing: .16em; text-transform: uppercase; color: var(--text2); display: flex; gap: 12px; }
.sp-sec span { color: var(--faint); letter-spacing: .04em; }
.sp-row { display: flex; gap: 20px; }
.sp-card { flex: none; position: relative; width: 300px; height: 168px; padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; outline: 4px solid transparent; outline-offset: 3px; transition: outline-color .2s, transform .25s cubic-bezier(.2,.7,.2,1), background-color .3s; }
.sp-row.live .sp-card { width: 340px; height: 206px; }
.sp-row.live .sp-card.big { width: 560px; background: linear-gradient(110deg, #173a4a 0%, #1f2233 50%, #3a2026 100%); }
.sp-card.on { outline-color: var(--focus); transform: scale(1.03); z-index: 2; }
.sp-card.press { transform: scale(.98); }
.sp-ch-head { display: flex; align-items: center; gap: 12px; }
.sp-st { display: inline-flex; align-items: center; gap: 8px; font: 600 16px 'Barlow Condensed'; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); white-space: nowrap; }
.sp-card.later .sp-st { padding: 3px 10px; border-radius: 12px; background: var(--raised); }
.sp-st.live { color: var(--text); }
.sp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); animation: sp-pulse 1.6s ease-in-out infinite; }
@keyframes sp-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229,72,77,.6); } 60% { box-shadow: 0 0 0 7px rgba(229,72,77,0); } }
.sp-sport { margin-left: auto; font: 600 15px 'Barlow Condensed'; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sp-ok { font: 600 15px 'Barlow Condensed'; letter-spacing: .12em; text-transform: uppercase; color: var(--focus); margin-left: 18px; white-space: pre; }
.sp-note { margin-top: 8px; font: 600 13.5px 'Barlow Condensed'; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sp-teams { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.sp-team { display: flex; align-items: center; gap: 12px; position: relative; }
.sp-edge { position: absolute; left: -18px; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; }
.sp-badge { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 700 11.5px 'Barlow'; color: #fff; letter-spacing: .02em; box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.sp-badge.big { width: 76px; height: 76px; font-size: 20px; }
.sp-tn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 22px; white-space: nowrap; }
.sp-fav { width: 18px; height: 18px; color: #ff5a6a; fill: currentColor; stroke: none; }
.sp-sc { font: 700 26px 'Barlow'; font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; display: inline-block; }
.sp-sc.bump { animation: sp-bump .9s cubic-bezier(.2,.8,.2,1); }
@keyframes sp-bump { 0% { transform: translateY(40%); opacity: 0; color: var(--focus); } 35% { transform: none; opacity: 1; color: var(--focus); text-shadow: 0 0 18px rgba(245,185,66,.8); } 100% { color: inherit; } }
.sp-on { margin-top: auto; font-weight: 600; font-size: 16px; color: var(--text2); }
.sp-on small { display: block; margin-top: 3px; font: 600 13px 'Barlow Condensed'; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.sp-card.big .sp-on { font: 600 16px 'Barlow Condensed'; letter-spacing: .08em; text-transform: uppercase; }
.sp-match { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.sp-side { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; }
.sp-side.r { flex-direction: row-reverse; text-align: right; }
.sp-side small { display: block; font: 600 14px 'Barlow Condensed'; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sp-side b { font-weight: 700; font-size: 28px; white-space: nowrap; }
.sp-score { display: flex; align-items: center; gap: 12px; }
.sp-score .sp-sc { font-size: 64px; line-height: 1; min-width: 0; text-align: center; }
.sp-score i { font-style: normal; font-size: 30px; color: var(--muted); }
/* OK on a game: the channels in your lineup showing it */
.sp-sheet { position: absolute; inset: 0; z-index: 7; background: var(--overlay); display: grid; place-items: center; opacity: 0; transition: opacity .3s; pointer-events: none; }
.sp-sheet.in { opacity: 1; }
.sp-box { width: 640px; padding: 30px; border-radius: 20px; background: var(--scrim); border: 1px solid var(--line); transform: translateY(24px) scale(.98); transition: transform .4s cubic-bezier(.2,.8,.2,1); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); }
.sp-sheet.in .sp-box { transform: none; }
.sp-box-k { font: 600 15px 'Barlow Condensed'; letter-spacing: .16em; text-transform: uppercase; color: var(--focus); }
.sp-box-t { font-weight: 700; font-size: 34px; margin-top: 6px; }
.sp-box-s { font-size: 17px; color: var(--muted); margin: 4px 0 20px; }
.sp-chan { display: flex; align-items: center; gap: 18px; padding: 12px 16px; margin-top: 10px; border-radius: 12px; background: var(--panel); outline: 3px solid transparent; transition: outline-color .2s, transform .2s; }
.sp-chan.on { outline-color: var(--focus); }
.sp-chan.press { transform: scale(.98); }
.sp-chan-t { flex: 1; min-width: 0; }
.sp-chan b { display: block; font-weight: 700; font-size: 21px; }
.sp-chan em { font: 600 21px 'Barlow Condensed'; font-style: normal; color: var(--focus); margin-right: 10px; }
.sp-chan-t span { font-size: 16px; color: var(--text2); }
/* Home's Live sports row: the score on the tile */
.hm-game { padding: 14px 16px 0 22px; background: linear-gradient(135deg, #1d2233, #23273a); }
.hm-game .sp-teams { margin-top: 10px; gap: 6px; }
.hm-game .sp-badge { width: 28px; height: 28px; font-size: 10px; }
.hm-game .sp-tn { font-size: 19px; }
.hm-game .sp-sc { font-size: 22px; }
.hm-game .sp-st, .hm-game .sp-sport { font-size: 14px; }
.hm-t.game .hm-pic::after { display: none; }
.hm-t.game .hm-name { position: static; margin-top: 8px; text-shadow: none; color: var(--text2); font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .sp-dot, .sp-sc.bump { animation: none; } }
.sp-chcard { flex: none; width: 262px; height: 118px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.sp-chcard-h { display: flex; align-items: center; gap: 12px; }
.sp-chcard b { font-weight: 700; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-chcard > span { font-size: 15px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-chcard .trk { width: 100%; }
.sp-chcard .trk > i { background: var(--focus); }
