/* Baxelo Player — Web. "Satellite" look for live TV / catch up / settings, dark VOD look for movies and series. */
:root {
  --bg1: #23395C; --bg2: #172741; --bg3: #0E1829;
  --cell: #2A3A52; --chan: #34465F; --chan-focus: #4A5F80;
  --focus: #1E6BD6; --text: #F4F7FB; --dim: #A9B6C8;
  --panel: rgba(11, 20, 36, 0.95); --section: #7FB2FF; --value: #A9CBFF; --card: #1B2A42;
  --vbg: #0E0F11; --vtext: #F2F2F2; --vdim: #B3B3B3; --vaccent: #46D369;
  --danger: #FF6B6B;
  --rowh: 46px; --chw: 210px; --gap: 3px;
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg3); color: var(--text); overflow: hidden; }
body { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
input { font: inherit; }
[hidden] { display: none !important; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
img.broken { visibility: hidden; }
:focus { outline: none; }
#app { height: 100%; }

.screen { position: fixed; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.sat { background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 45%, var(--bg3) 100%); color: var(--text); }

.btn { padding: 12px 22px; border-radius: 10px; background: rgba(255,255,255,.1); font-weight: 600; font-size: 16px; }
.btn.primary { background: var(--focus); color: #fff; }
.btn:hover, .btn:focus { box-shadow: 0 0 0 3px #fff; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.iconbtn:hover, .iconbtn:focus { background: var(--focus); }
.backbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); flex: none; }
.backbtn .ic { width: 22px; height: 22px; }
.backbtn:hover, .backbtn:focus { background: rgba(255,255,255,.22); box-shadow: 0 0 0 2px var(--focus); }

.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- splash and sign-in */
.splash { align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 16px; }
.splash-logo { width: 96px; height: 96px; border-radius: 22px; }
.splash-brand { font-weight: 800; letter-spacing: .12em; font-size: 18px; }
.splash-text { color: var(--dim); max-width: 520px; margin: 0; }
.splash-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.login { align-items: center; justify-content: center; overflow-y: auto; padding: 24px 16px; }
.lcard { width: 100%; max-width: 440px; background: rgba(11,20,36,.6); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 28px 26px; text-align: center; margin: auto; }
.llogo { width: 76px; height: 76px; border-radius: 18px; }
.ltitle { margin: 10px 0 4px; font-size: 26px; }
.lsub { margin: 0 0 18px; color: var(--dim); }
.lform { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.lfield { display: flex; flex-direction: column; gap: 6px; }
.llabel { font-size: 13px; color: var(--dim); font-weight: 600; }
.linput { width: 100%; padding: 12px 14px; border-radius: 10px; border: 2px solid rgba(255,255,255,.12); background: var(--card); color: var(--text); font-size: 17px; }
.linput:focus { border-color: var(--focus); }
.lerror { color: #FFB4B4; min-height: 1.2em; margin: 0; font-size: 14px; line-height: 1.4; }
.lsubmit { margin-top: 4px; padding: 14px; font-size: 17px; }
.lnote { color: var(--dim); font-size: 12px; margin: 16px 0 0; }

/* ---------- guide */
.guide { padding: 0 18px 10px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 54px; flex: none; }
.tleft { display: flex; align-items: center; gap: 12px; min-width: 0; white-space: nowrap; }
.tbrand { font-weight: 800; letter-spacing: .06em; font-size: 19px; }
.tsep { width: 1px; height: 20px; background: rgba(255,255,255,.4); }
.tclock { font-size: 18px; }
.tconswrap { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; font-size: 16px; }
.tright { display: flex; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); font-size: 14px; white-space: nowrap; }
.pill .ic { width: 18px; height: 18px; }
.pill:hover, .pill:focus { background: var(--focus); border-color: var(--focus); }

.gtop { display: flex; gap: 22px; height: clamp(150px, 30vh, 340px); flex: none; padding: 4px 0 10px; }
.preview { position: relative; height: 100%; aspect-ratio: 16 / 9; background: #000; cursor: pointer; flex: none; overflow: hidden; }
.pvideo, .lvideo { position: absolute; inset: 0; }
.vid { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
.pstate, .lstate { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 8px 16px; border-radius: 8px; background: rgba(0,0,0,.6); font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s; white-space: nowrap; }
.pstate.show, .lstate.show { opacity: 1; }
.pmute { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: rgba(0,0,0,.7); font-size: 13px; }
.pinfo { display: flex; gap: 18px; min-width: 0; flex: 1; align-items: flex-start; padding-top: 4px; }
.ilogo { width: 92px; height: 52px; flex: none; display: grid; place-items: center; margin-top: 6px; }
.ilogo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.itext { min-width: 0; }
.ititle { margin: 0 0 6px; font-size: clamp(18px, 2.2vw, 28px); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imeta { color: var(--text); opacity: .9; font-size: 15px; margin-bottom: 8px; }
.idesc { margin: 0; color: var(--dim); font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.gridwrap { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ruler { display: flex; height: 34px; flex: none; align-items: stretch; }
.rleft { width: var(--chw); flex: none; display: flex; align-items: center; gap: 8px; min-width: 0; padding-right: 6px; }
.rdate { font-weight: 700; font-size: 17px; white-space: nowrap; }
.rcat { display: inline-flex; align-items: center; gap: 4px; min-width: 0; color: var(--value); font-size: 13px; padding: 4px 6px; border-radius: 6px; }
.rcat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcat .ic { width: 14px; height: 14px; }
.rcat:hover { background: rgba(255,255,255,.1); }
.rtimeswrap { position: relative; flex: 1; border-bottom: 1px solid rgba(255,255,255,.15); }
.rtimes { position: absolute; inset: 0; }
.rtime { position: absolute; top: 6px; padding-left: 6px; border-left: 1px solid rgba(255,255,255,.35); font-size: 17px; height: 26px; }
.rshift { position: absolute; top: 3px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); opacity: 0; transition: opacity .2s; }
.rshift .ic { width: 16px; height: 16px; }
.rl { right: 36px; } .rr { right: 4px; }
.ruler:hover .rshift { opacity: 1; }
.rshift:hover { background: var(--focus); }
.rowsbox { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: pan-x pinch-zoom; }
.rows { position: absolute; inset: 0; }
.grow { display: flex; height: var(--rowh); padding-top: var(--gap); }
.gch { width: var(--chw); flex: none; background: var(--chan); display: flex; align-items: center; justify-content: space-between; padding: 0 10px; margin-right: var(--gap); cursor: pointer; min-width: 0; }
.grow.focus .gch { background: var(--chan-focus); }
.gchtext { min-width: 0; }
.gnumline { display: flex; align-items: center; gap: 5px; }
.gnum { font-size: 17px; font-weight: 600; }
.grow.playing .gnum { color: #7FB2FF; }
.garch { width: 13px; height: 13px; color: var(--dim); }
.gfav { width: 13px; height: 13px; color: #F5B84A; }
.gname { font-size: 10.5px; color: var(--dim); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(var(--chw) - 80px); }
.glogo { width: 52px; height: calc(var(--rowh) - 14px); display: grid; place-items: center; flex: none; }
.glogo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gprogs { position: relative; flex: 1; min-width: 0; }
.gcell { position: absolute; top: 0; bottom: 0; background: var(--cell); border-right: var(--gap) solid transparent; background-clip: padding-box; display: flex; align-items: center; padding: 0 10px; cursor: pointer; overflow: hidden; }
.gcell.empty { color: var(--dim); }
.gcell.focus { background-color: var(--focus); }
.gcell:hover:not(.focus) { background-color: #33476A; }
.gtitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; flex: 1; }
.gafter { width: 14px; height: 14px; opacity: .8; }
.nowwrap { position: absolute; top: 0; bottom: 0; left: calc(var(--chw) + var(--gap)); right: 0; pointer-events: none; }
.nowline { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #5A9BFF; box-shadow: 0 0 6px rgba(90,155,255,.6); }
.gempty { position: absolute; inset: 20px; color: var(--dim); text-align: center; padding-top: 30px; }
.dial { position: fixed; top: 24px; right: 32px; background: rgba(0,0,0,.75); font-size: 44px; font-weight: 700; padding: 6px 18px; border-radius: 10px; z-index: 60; letter-spacing: .05em; }

/* categories panel */
.scrim { position: absolute; inset: 0; background: rgba(0,0,0,.35); z-index: 20; }
.catpanel { position: absolute; left: 0; top: 0; bottom: 0; width: min(380px, 88vw); background: var(--panel); z-index: 21; display: flex; flex-direction: column; padding: 14px 12px; gap: 10px; box-shadow: 8px 0 30px rgba(0,0,0,.4); animation: slidein .18s ease-out; }
@keyframes slidein { from { transform: translateX(-30px); opacity: 0; } }
.phead { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.phead h2 { margin: 0; font-size: 20px; }
.psearchwrap { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 10px; padding: 0 12px; border: 2px solid transparent; }
.psearchwrap:focus-within { border-color: var(--focus); }
.psearch { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); padding: 11px 0; font-size: 16px; }
.plist { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pitem { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; text-align: left; font-size: 15px; }
.pitem .ic { width: 18px; height: 18px; color: var(--dim); }
.pname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcount { color: var(--dim); font-size: 13px; }
.pitem.on { color: var(--value); }
.pitem:hover, .pitem:focus { background: var(--focus); color: #fff; }
.pitem:hover .pcount, .pitem:focus .pcount, .pitem:focus .ic { color: #fff; }

/* ---------- full-screen players */
.fullplayer { position: fixed; inset: 0; background: #000; z-index: 40; color: #fff; }
.lchrome { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .25s; display: flex; flex-direction: column; justify-content: space-between; }
.fullplayer.chrome .lchrome { opacity: 1; pointer-events: auto; }
.fullplayer.chrome { cursor: default; }
.fullplayer:not(.chrome) { cursor: none; }
.ltop { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: linear-gradient(rgba(0,0,0,.65), transparent); }
.lclock { font-size: 22px; font-weight: 600; order: 2; margin-left: auto; }
.lcontrols { display: flex; align-items: center; gap: 8px; flex: 1; order: 1; }
.lspacer { flex: 1; }
.lbtn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.lbtn .ic { width: 22px; height: 22px; }
.lbtn.big { width: 58px; height: 58px; }
.lbtn.big .ic { width: 28px; height: 28px; }
.lbtn:hover, .lbtn:focus { background: var(--focus); }
.lbanner { margin: 0 24px 24px; padding: 16px 20px; background: rgba(11,20,36,.92); border-radius: 14px; display: flex; gap: 24px; align-items: center; }
.bchan { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 0 1 34%; }
.blogo { width: 96px; height: 56px; display: grid; place-items: center; flex: none; }
.lbanner .blogo img { max-width: 96px; max-height: 56px; object-fit: contain; }
.bchaninfo { min-width: 0; }
.bnamerow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bnamerow .bname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bqual { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 2px 7px; border-radius: 5px; border: 1px solid rgba(244,247,251,.55); color: #F4F7FB; }
.bnum { font-size: 30px; font-weight: 700; }
.bname { color: var(--dim); font-size: 14px; text-transform: uppercase; }
.bprog { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bnowline, .bnextline { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.blabel { font-size: 12px; font-weight: 700; color: var(--section); letter-spacing: .08em; text-transform: uppercase; flex: none; }
.bnow { font-size: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bnext { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btimes { color: var(--dim); font-size: 14px; }
.bbar { height: 4px; background: rgba(255,255,255,.2); border-radius: 2px; overflow: hidden; }
.bfill { height: 100%; background: var(--focus); width: 0; }

/* VOD player */
.vptop { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: linear-gradient(rgba(0,0,0,.7), transparent); }
.vptitles { min-width: 0; }
.vptitle { font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vpsub { color: var(--vdim); font-size: 14px; }
.vpbottom { padding: 16px 24px 22px; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.vpseekrow { display: flex; align-items: center; gap: 12px; }
.vptime { font-variant-numeric: tabular-nums; font-size: 14px; min-width: 56px; text-align: center; }
.vpseek { flex: 1; height: 24px; cursor: pointer; -webkit-appearance: none; appearance: none; background: transparent; --played: 0%; --rec: 0%; }
/* Played part, then (catch up still on the air) the rest of what is recorded lighter, then the programme's remainder. */
.vpseek::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(to right, var(--focus) var(--played), rgba(255,255,255,.55) var(--played) var(--rec), rgba(255,255,255,.22) var(--rec)); }
.vpseek::-moz-range-track { height: 5px; border-radius: 3px; background: linear-gradient(to right, var(--focus) var(--played), rgba(255,255,255,.55) var(--played) var(--rec), rgba(255,255,255,.22) var(--rec)); }
.vpseek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5.5px; border-radius: 50%; background: #fff; border: 0; }
.vpseek::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; }
.vpseek:focus-visible { outline: none; }
.vpseek:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(30,107,214,.6); }
.vpbtns { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.vperror { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(480px, calc(100% - 32px)); background: rgba(11,20,36,.96); border-radius: 14px; padding: 22px; text-align: center; z-index: 5; }
.vperror .ic { width: 34px; height: 34px; color: #F5B84A; }
.vperror p { line-height: 1.45; }
.nextcard { position: absolute; right: 4%; bottom: 14%; width: min(460px, calc(100% - 32px)); background: rgba(16, 24, 38, .96); border-radius: 14px; padding: 20px 22px; z-index: 5; }
.nclabel { color: #8EC2FF; font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.nctitle { font-size: 20px; font-weight: 700; margin: 4px 0; }
.ncsub { color: var(--vdim); font-size: 14px; margin-bottom: 14px; }
.ncbtns { display: flex; gap: 12px; justify-content: center; }
.nextcard .ncbtns { justify-content: stretch; }
.ncbtn { flex: 1; padding: 12px 16px; border-radius: 8px; background: #252F40; font-weight: 700; font-size: 16px; }
.ncbtn.primary { background: #E6EBF3; color: #0E1829; }
.ncbtn:focus, .ncbtn:hover { box-shadow: 0 0 0 3px var(--focus); }
.trackpanel { position: absolute; right: 24px; bottom: 120px; width: min(340px, calc(100% - 32px)); max-height: 60vh; overflow-y: auto; background: rgba(11,20,36,.97); border-radius: 12px; padding: 12px; z-index: 6; }
.tsec h3 { margin: 6px 8px; font-size: 13px; color: var(--section); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- dialogs, toast */
.dialog { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; z-index: 80; padding: 16px; }
.dcard { width: min(520px, 100%); background: #16263F; border-radius: 16px; padding: 26px 24px 20px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.5); max-height: 90vh; overflow-y: auto; }
.dicon { width: 64px; height: 64px; border-radius: 50%; border: 2px solid; display: grid; place-items: center; margin: 0 auto 12px; }
.dicon .ic { width: 32px; height: 32px; }
.dtitle { margin: 0 0 10px; font-size: 22px; }
.dbar { width: 56px; height: 3px; border-radius: 2px; margin: 0 auto 14px; }
.dmsg { color: #DCE6F2; line-height: 1.5; margin: 0 0 20px; white-space: pre-line; }
.dbtns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dbtn { padding: 11px 22px; border-radius: 10px; border: 1px solid rgba(185,199,218,.4); font-weight: 600; min-width: 120px; }
.dbtn.primary { background: #5AA0FF; border-color: #5AA0FF; color: #0E1A2E; }
.dbtn:focus, .dbtn:hover { box-shadow: 0 0 0 3px #fff; }
.choices { text-align: left; }
.choices .dtitle { text-align: center; }
.clist { display: flex; flex-direction: column; gap: 4px; }
.choice { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 8px; text-align: left; }
.choice.on { color: var(--value); }
.choice:hover, .choice:focus { background: var(--focus); color: #fff; }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; transition: all .2s; z-index: 90; pointer-events: none; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-in { background: rgba(11,20,36,.95); border: 1px solid rgba(255,255,255,.12); padding: 10px 18px; border-radius: 10px; font-size: 15px; }

/* ---------- movies / series */
.vod { flex-direction: row; background: var(--vbg); color: var(--vtext); }
.rail { width: 84px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; z-index: 3; background: linear-gradient(90deg, rgba(0,0,0,.6), transparent); }
.rbtn { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; color: var(--vdim); }
.rbtn .ic { width: 28px; height: 28px; }
.rbtn.on { color: #fff; }
.rbtn:hover, .rbtn:focus { background: rgba(255,255,255,.14); color: #fff; box-shadow: 0 0 0 2px #fff; }
.rlabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vmain { flex: 1; min-width: 0; min-height: 0; position: relative; display: flex; flex-direction: column; }
.vstatus { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; flex: 1; color: var(--vdim); padding: 16px; text-align: center; }
.vbrowse { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.hero { position: relative; height: 46vh; min-height: 230px; flex: none; display: flex; align-items: flex-end; overflow: hidden; }
.herobg { position: absolute; top: 0; right: 0; bottom: 0; width: 70%; background-size: cover; background-position: center top; }
.herobg.poster { width: 40%; background-size: contain; background-repeat: no-repeat; background-position: right top; opacity: .85; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--vbg) 30%, rgba(14,15,17,.6) 55%, rgba(14,15,17,0) 80%), linear-gradient(0deg, var(--vbg) 0%, rgba(14,15,17,0) 40%); }
.herotext { position: relative; z-index: 1; padding: 0 48px 18px; max-width: 760px; }
.herokind { font-size: 15px; font-weight: 700; letter-spacing: .2em; color: var(--vdim); }
.herotitle { margin: 6px 0 10px; font-size: clamp(26px, 4vw, 48px); line-height: 1.05; }
.herometa, .dmeta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 17px; color: var(--vtext); margin-bottom: 10px; }
.herometa span, .dmeta span { display: inline-flex; align-items: center; gap: 4px; }
.hstar { width: 16px; height: 16px; }
.dot { color: var(--vdim); }
.heroplot { color: #DDD; line-height: 1.45; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; }
.vrows { flex: 1; overflow-y: auto; padding: 4px 0 30px; scroll-behavior: smooth; }
.vrow { padding: 6px 0; }
.vrowtitle { margin: 6px 44px 8px; font-size: 21px; }
.strip { display: flex; gap: 12px; overflow-x: auto; padding: 6px 44px 10px; scroll-padding: 0 44px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.tile { position: relative; width: 150px; flex: none; text-align: left; border-radius: 6px; }
.tposter { position: relative; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: #1E2026; }
.timg { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; }
.tname { position: absolute; inset: auto 8px 8px; font-size: 13px; color: var(--vdim); }
/* Category of a search result whose title appears more than once (another language or quality). */
.tcat { position: absolute; inset: auto 0 0; z-index: 2; padding: 4px 6px 6px; background: rgba(0,0,0,.85); color: #fff; font-size: 11px; line-height: 1.25;
  text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile:hover .tposter, .tile:focus .tposter { box-shadow: 0 0 0 3px #fff; }
.tile:focus { transform: scale(1.04); transition: transform .12s; }
.tprog { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 4px; background: rgba(255,255,255,.3); border-radius: 2px; overflow: hidden; z-index: 2; }
.tprogfill { height: 100%; background: #E50914; }
.twatched { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--vaccent); color: #000; display: grid; place-items: center; z-index: 2; }
.twatched .ic { width: 15px; height: 15px; stroke-width: 3; }
.vsearchview { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 24px 44px 0; }
.vsearchbar { display: flex; align-items: center; gap: 10px; background: #1E2026; border-radius: 10px; padding: 0 14px; border: 2px solid transparent; }
.vsearchbar:focus-within { border-color: #fff; }
.vsearch { flex: 1; background: transparent; border: 0; color: var(--vtext); padding: 14px 0; font-size: 18px; min-width: 0; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; overflow-y: auto; padding: 18px 4px 30px; }
.vgrid .tile { width: auto; }
.vnone { color: var(--vdim); padding: 20px 0; }

/* detail page */
.detail { position: absolute; inset: 0; z-index: 10; background: var(--vbg); overflow-y: auto; }
.dbg { position: fixed; top: 0; right: 0; width: 65%; height: 80vh; background-size: cover; background-position: center top; }
.dshade { position: fixed; inset: 0; background: linear-gradient(90deg, var(--vbg) 35%, rgba(14,15,17,.75) 55%, rgba(14,15,17,.1) 85%), linear-gradient(0deg, var(--vbg) 15%, rgba(14,15,17,0) 55%); pointer-events: none; }
.detail > .backbtn { position: fixed; top: 20px; left: 104px; z-index: 2; }
.dbody { position: relative; z-index: 1; padding: 70px 48px 40px 128px; max-width: 1100px; }
.dtext { max-width: 640px; }
.dtitle2 { margin: 6px 0 10px; font-size: clamp(28px, 4.2vw, 52px); line-height: 1.05; }
.dbuttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.vbtn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: 6px; background: rgba(109,109,110,.7); font-weight: 700; font-size: 18px; }
.vbtn.primary { background: #fff; color: #000; }
.vbtn:focus, .vbtn:hover { box-shadow: 0 0 0 3px var(--vaccent); }
.dplot { line-height: 1.5; font-size: 17px; color: #E6E6E6; }
.dsmall { color: var(--vdim); margin: 6px 0; }
.seasons { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.stab { padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.08); font-weight: 600; }
.stab.on { background: #fff; color: #000; }
.stab:focus, .stab:hover { box-shadow: 0 0 0 3px var(--vaccent); }
.dbody > .vrowtitle { margin: 26px 0 10px; }
.episodes { display: flex; flex-direction: column; gap: 8px; max-width: 900px; }
.ep { display: flex; gap: 16px; padding: 10px; border-radius: 8px; text-align: left; align-items: flex-start; }
.ep:hover, .ep:focus { background: rgba(255,255,255,.1); box-shadow: 0 0 0 2px #fff; }
.epimg { position: relative; width: 168px; aspect-ratio: 16 / 9; flex: none; border-radius: 6px; overflow: hidden; background: #1E2026; }
.epimg img { width: 100%; height: 100%; object-fit: cover; }
.eptext { min-width: 0; flex: 1; }
.eptitle { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; flex-wrap: wrap; }
.epwatched { display: inline-flex; align-items: center; gap: 4px; color: var(--vaccent); font-size: 13px; font-weight: 600; }
.epwatched .ic { width: 15px; height: 15px; stroke-width: 3; }
.epdur { color: var(--vdim); font-size: 13px; margin-top: 2px; }
.epplot { color: var(--vdim); font-size: 14px; margin: 6px 0 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- catch up */
.catchup { padding: 18px 28px 16px; }
.cuhead { display: flex; align-items: center; gap: 16px; flex: none; margin-bottom: 12px; flex-wrap: wrap; }
.cuhead h1 { margin: 0; font-size: 26px; }
.cunote { margin: 0; color: var(--dim); font-size: 15px; }
.cucols { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, .8fr) minmax(300px, 2fr); gap: 16px; flex: 1; min-height: 0; }
.cusec { display: flex; flex-direction: column; min-height: 0; }
.cuh { margin: 0 4px 8px; font-size: 12px; color: var(--section); text-transform: uppercase; letter-spacing: .12em; }
.cucol { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 2px; }
.cuitem { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--card); text-align: left; flex-wrap: wrap; min-height: 48px; }
.cuitem.on { background: var(--chan-focus); }
.cuitem:hover, .cuitem:focus { background: var(--focus); }
.cunum { width: 36px; font-weight: 700; }
.culogo { width: 48px; height: 28px; display: grid; place-items: center; }
.culogo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cuname { flex: 1; min-width: 0; font-weight: 600; }
.cuch .cuname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cusub { width: 100%; color: var(--dim); font-size: 13px; }
.cuitem:focus .cusub, .cuitem:focus .cudesc, .cuitem:focus .cutime { color: #fff; }
.cuprogitem { flex-direction: column; align-items: flex-start; gap: 3px; flex-wrap: nowrap; }
.cutime { color: var(--value); font-size: 13px; }
.cudesc { color: var(--dim); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.culive { display: inline-flex; align-items: center; gap: 6px; color: #FF7A7A; font-size: 12px; font-weight: 700; }
.culive .ic { width: 10px; height: 10px; stroke: none; }
.cuempty { color: var(--dim); padding: 10px 6px; margin: 0; }
.cuload { display: flex; align-items: center; gap: 12px; color: var(--dim); padding: 10px 6px; }
.cuload .spinner { width: 22px; height: 22px; }

/* ---------- settings */
.settings { padding: 18px 28px 16px; }
.shead { display: flex; align-items: center; gap: 16px; flex: none; }
.shead h1 { margin: 0; font-size: 26px; flex: 1; }
.sver { color: var(--dim); font-size: 13px; }
.scols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; flex: 1; min-height: 0; overflow-y: auto; padding: 6px 2px 10px; align-content: start; }
.scol { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ssec { margin: 14px 4px 6px; font-size: 12px; color: var(--section); text-transform: uppercase; letter-spacing: .12em; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 8px; background: var(--card); text-align: left; font-size: 16px; min-height: 46px; }
.slabel { min-width: 0; }
.svalue { color: var(--value); font-size: 14px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow.f:hover, .srow.f:focus { background: var(--focus); }
.srow.f:hover .svalue, .srow.f:focus .svalue { color: #fff; }
.srow.danger .slabel { color: #FFB4B4; }
.srow.danger:focus .slabel, .srow.danger:hover .slabel { color: #fff; }
.shelp { flex: none; display: flex; gap: 12px; align-items: flex-start; border: 1px solid rgba(169,182,200,.35); background: rgba(27,42,66,.7); border-radius: 12px; padding: 12px 16px; margin-top: 8px; }
.shelp .ic { color: var(--section); margin-top: 2px; }
.shelp p { margin: 0; line-height: 1.45; color: var(--text); font-size: 15px; }

/* ---------- phones and narrow windows */
@media (max-width: 760px) {
  :root { --rowh: 52px; --chw: 96px; }
  .guide { padding: 0 8px 6px; }
  .topbar { height: 48px; }
  .tbrand { font-size: 15px; }
  .tsep, .tconswrap { display: none; }
  .plabel { display: none; }
  .pill { padding: 8px; }
  .tright { gap: 6px; }
  .gtop { flex-direction: column; height: auto; gap: 8px; }
  .preview { width: 100%; height: auto; }
  .pinfo { gap: 10px; }
  .ilogo { width: 56px; height: 34px; margin-top: 0; }
  .ititle { font-size: 17px; margin-bottom: 2px; }
  .imeta { font-size: 13px; margin-bottom: 0; }
  .idesc { display: none; }
  .rleft { flex-direction: column; align-items: flex-start; gap: 0; justify-content: center; }
  .rdate { font-size: 13px; }
  .rcat { padding: 0; font-size: 11px; max-width: 100%; }
  .rtime { font-size: 14px; }
  .rshift { opacity: 1; }
  .gch { padding: 0 6px; flex-direction: column; justify-content: center; align-items: flex-start; }
  .glogo { display: none; }
  .gname { max-width: calc(var(--chw) - 14px); font-size: 9.5px; }
  .gtitle { font-size: 13px; }
  .gcell { padding: 0 6px; }
  .lbanner { margin: 0 8px 10px; padding: 12px; flex-direction: column; align-items: stretch; gap: 10px; }
  .blogo { width: 64px; height: 38px; }
  .lbanner .blogo img { max-width: 64px; max-height: 38px; }
  .bnum { font-size: 22px; }
  .bnow { font-size: 16px; }
  .ltop { padding: 10px; }
  .lbtn { width: 40px; height: 40px; }
  .lclock { font-size: 16px; }

  .vod { flex-direction: column-reverse; }
  .rail { width: 100%; height: 58px; flex-direction: row; gap: 4px; justify-content: space-around; background: #000; }
  .rbtn { width: 46px; height: 46px; }
  .rbtn .ic { width: 24px; height: 24px; }
  .hero { height: 34vh; min-height: 200px; }
  .herobg, .herobg.poster { width: 100%; opacity: .5; }
  .herotext { padding: 0 16px 10px; }
  .herometa { font-size: 14px; }
  .heroplot { font-size: 14px; -webkit-line-clamp: 2; }
  .vrowtitle { margin: 6px 16px 6px; font-size: 18px; }
  .strip { padding: 6px 16px 10px; gap: 10px; scroll-padding: 0 16px; }
  .tile { width: 112px; }
  .vsearchview { padding: 14px 16px 0; }
  .vgrid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
  .dbg { width: 100%; height: 42vh; opacity: .55; }
  .detail > .backbtn { left: 12px; top: 12px; }
  .dbody { padding: 30vh 16px 90px; }
  .ep { gap: 10px; }
  .epimg { width: 120px; }
  .vbtn { padding: 11px 18px; font-size: 16px; }

  .catchup, .settings { padding: 12px 12px 10px; }
  .cunote { display: none; }
  .cucols { grid-template-columns: 1fr; }
  .catchup[data-step="channels"] .cusec:nth-child(2), .catchup[data-step="channels"] .cusec:nth-child(3),
  .catchup[data-step="days"] .cusec:nth-child(1), .catchup[data-step="days"] .cusec:nth-child(3),
  .catchup[data-step="programs"] .cusec:nth-child(1), .catchup[data-step="programs"] .cusec:nth-child(2) { display: none; }
  .scols { grid-template-columns: 1fr; gap: 0; }
  .sver { display: none; }
  .vpbottom { padding: 10px 12px 14px; }
  .trackpanel { right: 12px; bottom: 100px; }
}
@media (max-height: 520px) and (min-width: 761px) {
  .gtop { height: 34vh; }
  .idesc { -webkit-line-clamp: 2; }
  :root { --rowh: 40px; }
}

/* Satellite exact colours (Theme.swift) */
.guide.sat .grow.focus .gch { background: #7084A0; }
.guide.sat .grow.focus .gcell:not(.focus) { background-color: #45597A; }
.guide .grow.playing .gch { box-shadow: inset 4px 0 0 #4FA3FF; }
.guide.sat .nowline { background: rgba(79,163,255,.55); box-shadow: none; }
.rtime { color: #D5DDE8; }

/* ---------- Cable guide style (GuideSkin.cable) */
.guide.cable { background: #15171B; color: #EDEFF3; padding: 0 0 8px; }
.cablehead { display: flex; gap: 12px; padding: 14px 28px 0; height: 150px; flex: none; align-items: flex-start; }
.chleft { flex: 1; min-width: 0; height: 120px; display: flex; flex-direction: column; }
.chtop { display: flex; align-items: center; gap: 12px; padding-top: 6px; min-width: 0; }
.cable .tbrand { font-size: 21px; letter-spacing: .04em; }
.cable .tconswrap { margin-left: 0; color: #AFB5C0; font-size: 19px; }
.ctabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ctab { padding: 6px 9px; border-radius: 2px; font-size: 18px; color: #EDEFF3; border: 2px solid transparent; display: inline-flex; align-items: center; white-space: nowrap; }
.ctab.on { border-color: rgba(230,180,34,.8); }
.ctab:hover, .ctab:focus { border: 3px solid #E6B422; background: rgba(230,180,34,.13); padding: 5px 8px; }
.ctab .ic { width: 18px; height: 18px; }
.chtitle { margin-top: 10px; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chtitle .ititle { font-size: 19px; font-weight: 400; margin: 0; }
.chmeta { font-size: 14px; color: #AFB5C0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chmeta .imeta { font-size: 14px; color: #AFB5C0; margin: 0; opacity: 1; }
.chclock { align-self: flex-end; padding-bottom: 26px; font-size: 19px; color: #AFB5C0; }
.cable .preview { height: 120px; }
.cable .gridwrap { padding: 0 0 0 0; }
.cable .ruler { padding-left: 0; }
.cable .rleft { padding-left: 10px; }
.cable .rdate { color: #AFB5C0; font-weight: 400; text-transform: uppercase; }
.cable .rcat { color: #C9B8FF; }
.cable .rtime { color: #AFB5C0; border-left-color: rgba(255,255,255,.25); }
.cable .rtimeswrap { border-bottom: 0; }
.cable .gch { background: transparent; flex-direction: row; justify-content: space-between; }
.cable .grow.focus .gch { background: #2A2E36; }
.cable .glogo { width: 56px; }
.cable .gchtext { text-align: right; }
.cable .gnumline { justify-content: flex-end; }
.cable .gname { max-width: calc(var(--chw) - 84px); margin-left: auto; color: #AFB5C0; }
.cable .gcell { background-color: #383D47; }
.cable .gcell.focus { background-color: #5D6577; box-shadow: inset 4px 0 0 #9B7BFF; }
.cable .gcell:hover:not(.focus) { background-color: #474D59; }
.cable .grow.playing .gch { box-shadow: inset 4px 0 0 #9B7BFF; background: rgba(155,123,255,.18); }
.cable .gtitle { font-size: 15.5px; }
.cable .nowline { background: rgba(155,123,255,.5); box-shadow: none; }
.nowpill { position: absolute; top: 6px; transform: translateX(-50%); background: #9B7BFF; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 999px; z-index: 2; }
.cable .rows, .cable .nowwrap { }
.cable .rowsbox { margin: 0 12px; }
.cable .ruler { margin: 0 12px; }
.catpanel.cable { background: rgba(27,30,36,.95); }
.catpanel.cable .pitem:hover, .catpanel.cable .pitem:focus { background: #6A4FE0; }
@media (max-width: 760px) {
  .cablehead { height: auto; padding: 8px 8px 6px; flex-wrap: wrap; }
  .chleft { height: auto; flex-basis: 100%; }
  .chtop { flex-wrap: wrap; }
  .ctab span { font-size: 15px; }
  .chclock { display: none; }
  .cable .preview { width: 100%; height: auto; }
  .cable .rowsbox, .cable .ruler { margin: 0 6px; }
  .cable .glogo { display: grid; width: 34px; }
  .cable .gname { display: none; }
}

/* Picture setting */
:root[data-fit="stretch"] .vid { object-fit: fill; }
:root[data-fit="auto"] .vid.fill16 { object-fit: cover; }

/* ---------- STB guide style (StbGuideView.swift) */
.stb { background: linear-gradient(180deg, #13233D, #0E1A2E); color: #fff; padding: 14px 22px 10px; }
.stbhead { display: flex; align-items: center; gap: 14px; flex: none; min-height: 40px; }
.stbcrumb { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: .06em; color: #DDE6F2; white-space: nowrap; overflow: hidden; }
.stbcrumb .sl { color: #8FA0B8; }
.stbcons { display: inline-flex; align-items: center; gap: 6px; }
.stbclock { font-size: 20px; font-weight: 700; }
.stb .pill { border: 0; background: #1A2E4C; }
.stb .pill:hover, .stb .pill:focus { background: #E9EEF5; color: #0E1A2E; }
.stbbody { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; padding: 10px 0; }
.stblist { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 4px; touch-action: pan-x; }
.stbrow { display: flex; align-items: center; gap: 12px; height: 56px; flex: none; padding: 0 12px; border-radius: 8px; background: #1A2E4C; cursor: pointer; }
.stbrow:hover:not(.focus) { background: #22395C; }
.stbrow.focus { background: #E9EEF5; color: #0E1A2E; }
.stbnum { min-width: 44px; height: 30px; padding: 0 6px; border-radius: 6px; background: #2A4166; display: grid; place-items: center; font-weight: 700; font-size: 16px; color: #fff; }
.stbrow.focus .stbnum { background: #2F80ED; }
.stblogo { width: 60px; height: 42px; display: grid; place-items: center; flex: none; }
.stblogo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.stbtext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stbname { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stbprog { font-size: 13px; color: #9FB0C4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stbrow.focus .stbprog { color: #3B4A60; }
.stbarch { width: 15px; height: 15px; color: #F5C518; }
.stbrow.focus .stbarch { color: #B8860B; }
.stbfav { width: 15px; height: 15px; color: #F5B84A; }
.stbright { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.stbpreview { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; cursor: pointer; flex: none; max-height: 55%; }
.stbcard { flex: 1; min-height: 0; overflow: hidden; background: #142640; border-radius: 10px; padding: 14px 16px; }
.stbctitle { margin: 0 0 6px; font-size: 19px; }
.stbcmeta { color: #B9C7DA; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.stbcnext { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.stbnextrow { color: #D7E0EC; font-size: 14px; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.stbkeys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; flex: none; }
.stbkey { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; background: #1A2E4C; font-size: 15px; }
.stbkey:hover, .stbkey:focus { background: #E9EEF5; color: #0E1A2E; }
.stbdot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.stblegend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; color: #8FA0B8; font-size: 12px; flex: none; }
.kcap { border: 1px solid #8FA0B8; border-radius: 4px; padding: 1px 5px; color: #DDE6F2; margin-left: 8px; }
.kcap:first-child { margin-left: 0; }
.catpanel.stb { background: linear-gradient(180deg, #0B1424, rgba(19,34,56,.99)); padding: 14px 12px; }
.catpanel.stb .pitem:hover, .catpanel.stb .pitem:focus { background: #E9EEF5; color: #0E1A2E; }
.stbfind { text-align: left; }
.stbfind .plist { max-height: 50vh; margin-top: 10px; }
@media (max-width: 760px) {
  .stb { padding: 8px 8px 6px; }
  .stbhead { flex-wrap: wrap; }
  .stbcrumb { font-size: 13px; flex-basis: 100%; order: 2; }
  .stb .tright .pill { padding: 6px 10px; font-size: 13px; }
  .stbbody { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .stbright { order: -1; }
  .stbcard { display: none; }
  .stbpreview { max-height: none; }
  .stbkeys { grid-template-columns: repeat(2, 1fr); }
  .stblegend { display: none; }
}

/* speed test panel (SpeedTestPanel) */
.speedpanel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(380px, calc(100% - 32px)); background: rgba(11,20,36,.96); border-radius: 16px; padding: 22px; text-align: center; z-index: 7; }
.sptitle { font-size: 15px; font-weight: 700; color: var(--dim); letter-spacing: .08em; }
.spfigrow { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 10px 0 4px; }
.spfig { font-size: 64px; font-weight: 800; font-variant-numeric: tabular-nums; }
.spunit { font-size: 20px; color: var(--dim); }
.spverdict { font-size: 17px; margin-bottom: 4px; }
.splat { font-size: 14px; color: #fff; opacity: .85; margin-bottom: 16px; min-height: 1.2em; }

/* parental PIN */
.pinbg { background: rgba(0,0,0,.75); }
.pincard { background: #16263F; border: 1px solid rgba(90,160,255,.2); width: min(560px, 100%); }
.pincard .dtitle { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pincard .dtitle .ic { width: 20px; height: 20px; }
.pininput { display: block; margin: 16px auto 0; width: 220px; max-width: 100%; text-align: center; font-size: 30px; letter-spacing: 18px; padding: 8px 12px 8px 30px; border-radius: 10px; background: #0E1A2E; color: #fff; border: 1px solid rgba(90,160,255,.4); }
.pininput:focus { border: 2px solid #fff; }
.pininput::placeholder { color: rgba(255,255,255,.4); }
.pinerr { color: #FF8A8A; font-size: 15px; margin: 8px 0 0; min-height: 1.2em; }
.pinforgot { color: #9FB0C8; font-size: 13px; margin: 10px 0 0; line-height: 1.4; }
.pincard .dbtns { margin-top: 18px; }
.plock { width: 15px; height: 15px; color: var(--dim); }
.tile.locked .tposter { display: grid; place-items: center; background: #1E2026; }
.tlock { color: var(--vdim); }
.tlock .ic { width: 40px; height: 40px; }
.tname.show { color: var(--vtext); font-weight: 600; text-align: center; }
/* settings sub-pages */
.catpage { padding: 18px 28px 16px; z-index: 50; }
.cpnote { color: var(--dim); font-size: 14px; }
.cptitlelock { width: 22px; height: 22px; margin-left: 8px; vertical-align: -3px; }
.cphelp { color: var(--dim); font-size: 14px; margin: 6px 0 10px; line-height: 1.4; flex: none; }
.cpsearch { flex: none; margin-bottom: 8px; }
.cplist { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; padding: 2px; min-height: 0; }
.cprow { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 8px; background: var(--card); text-align: left; font-size: 16px; flex: none; }
.cprow.bold { font-weight: 700; }
.cprow.dim .cpname { opacity: .6; }
.cpname { flex: 1; min-width: 0; }
.cpstate { color: var(--value); font-size: 13px; }
.cpstate.off { color: var(--dim); }
.cplock { width: 16px; height: 16px; }
.cprow:hover, .cprow:focus { background: var(--focus); }
.cprow:focus .cpstate, .cprow:hover .cpstate { color: #fff; }
.catpage .ssec { flex: none; }

/* full-screen live menu (TvMenu) and its panels */
.lmenu { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; padding: 14px 24px 26px; background: linear-gradient(rgba(0,0,0,.9), transparent); z-index: 4; overflow-x: auto; scrollbar-width: none; }
.mchip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 15px; font-weight: 600; white-space: nowrap; }
.mchip .ic { width: 20px; height: 20px; }
.mchip.gold .ic { color: #FFD54F; }
.mchip:hover, .mchip:focus { background: #fff; color: #0E1829; }
.lpanel { position: absolute; z-index: 6; background: rgba(11,20,36,.94); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 16px; color: #fff; }
.lpanel.keypad { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(320px, calc(100% - 32px)); }
.kpshow { font-size: 34px; font-weight: 700; text-align: center; padding: 6px 0 12px; min-height: 52px; color: #fff; }
.kpgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpkey { height: 54px; border-radius: 10px; background: rgba(255,255,255,.1); font-size: 22px; font-weight: 700; display: grid; place-items: center; }
.kpkey.ok { background: var(--focus); }
.kpkey:hover, .kpkey:focus { background: #fff; color: #0E1829; }
.lpanel.search { left: 50%; top: 12%; transform: translateX(-50%); width: min(460px, calc(100% - 32px)); max-height: 76%; display: flex; flex-direction: column; gap: 10px; }
.lpanel.search .plist { overflow-y: auto; }
.lpanel.tracks { right: 24px; top: 80px; width: min(360px, calc(100% - 32px)); max-height: 75%; overflow-y: auto; }
.lpanel.tracks h3 { margin: 6px 8px; font-size: 13px; color: var(--section); letter-spacing: .08em; }
.lpdim { color: var(--dim); margin: 4px 8px 10px; font-size: 14px; }
.lpanel.signal { left: 16px; top: 50%; transform: translateY(-50%); width: min(320px, calc(100% - 32px)); background: rgba(11,20,36,.77); }
.sighead { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: #C9D3E0; margin-bottom: 6px; }
.sighead .iconbtn { width: 32px; height: 32px; }
.sigrows { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-variant-numeric: tabular-nums; }
.lpanel.chcatchup { inset: 0; border-radius: 0; border: 0; background: linear-gradient(180deg, var(--bg1), var(--bg2) 45%, var(--bg3)); padding: 28px 48px 12px; display: flex; flex-direction: column; }
.cccols { display: grid; grid-template-columns: 220px 1fr; gap: 18px; flex: 1; min-height: 0; }
.ccdays, .ccprogs { overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 2px; }
@media (max-width: 760px) {
  .lmenu { justify-content: flex-start; padding: 10px; }
  .lpanel.chcatchup { padding: 12px; }
  .cccols { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .ccdays { flex-direction: row; overflow-x: auto; }
}
.live.menuopen .lcontrols { visibility: hidden; }

/* ---------- catch-up grid (CatchUpGuideView) */
.catchupgrid { padding: 14px 32px 6px; }
.cghead { flex: none; }
.cghead h1 { flex: none; margin-right: 6px; }
.cgnote { flex: 1; min-width: 0; color: var(--dim); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cgprog { color: var(--dim); font-size: 15px; }
.cgshift { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--dim); }
.cgshift:hover { background: rgba(255,255,255,.12); color: #fff; }
.cgshift .ic { width: 16px; height: 16px; }
.cginfo { display: flex; align-items: center; gap: 14px; padding: 4px 0 6px; flex: none; }
.cglogo { width: 72px; height: 44px; display: grid; place-items: center; flex: none; }
.cglogo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cgtext { min-width: 0; flex: 1; }
.cgtitle { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cgline { font-size: 13px; color: var(--value); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.2em; }
.cgdesc { font-size: 12px; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.cggrid { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cgbar { position: relative; height: 38px; flex: none; display: flex; }
.cgday { width: var(--chw); flex: none; font-weight: 700; font-size: 19px; padding: 8px 0 0 12px; white-space: nowrap; }
.cgticks { position: relative; flex: 1; margin-left: var(--gap); overflow: hidden; }
.cgtick { position: absolute; top: 10px; height: 28px; padding-left: 6px; border-left: 1px solid var(--dim); font-size: 17px; color: #D5DDE8; white-space: nowrap; }
.cgmid { position: absolute; top: 3px; padding: 6px; border-radius: 6px; background: var(--focus); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.cgrowsbox { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: pan-x pinch-zoom; }
.cgrows { position: absolute; inset: 0; touch-action: none; user-select: none; }
.cglines { position: absolute; top: 0; bottom: 0; left: calc(var(--chw) + var(--gap)); right: 0; pointer-events: none; }
.cgmidline { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--focus); }
.cgnow { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(79,163,255,.55); }
.catchupgrid .grow.focus .gch { background: #7084A0; }
.catchupgrid .grow.focus .gcell:not(.focus):not(.cggone) { background-color: #45597A; }
.cgcell { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; }
.cgcell .gtitle { flex: none; max-width: 100%; }
.cgwhen { font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cgmark { color: #7FC4FF; }
.cgmark.red { color: #FF5A5A; }
.cgcell.live { box-shadow: inset 3px 0 0 #FF5A5A; }
.cggone { background-color: rgba(42,58,82,.4) !important; color: var(--dim); }
@media (max-width: 760px) {
  .catchupgrid { padding: 10px 8px 6px; }
  .cgnote { display: none; }
  .cgday { font-size: 13px; padding-left: 4px; }
  .cgtick { font-size: 13px; }
  .cgdesc { display: none; }
}


/* terms and privacy (LegalView) */
.legalpage { position: fixed; inset: 0; z-index: 75; background: #0E1A2E; display: flex; flex-direction: column; padding: 22px 40px 18px; color: #fff; }
.lghead { display: flex; align-items: center; gap: 14px; flex: none; flex-wrap: wrap; }
.lghead h1 { margin: 0; font-size: 24px; flex: 1; }
.lgtabs { display: flex; gap: 10px; }
.lgtab { padding: 9px 18px; border-radius: 10px; background: #1A2E4C; font-weight: 600; }
.lgtab.on { box-shadow: inset 0 0 0 2px #5AA0FF; }
.lgtab:hover, .lgtab:focus { background: #E9EEF5; color: #0E1A2E; }
.lgintro { color: #B9C7DA; margin: 10px 0 0; line-height: 1.45; flex: none; }
.lgversion { color: #5AA0FF; font-size: 13px; margin: 8px 0 6px; flex: none; }
.lgtext { flex: 1; min-height: 0; overflow-y: auto; background: #1A2E4C; border-radius: 12px; padding: 16px 22px; line-height: 1.5; font-size: 16px; color: #E6ECF4; }
.lgtext:focus { outline: 2px solid #5AA0FF; }
.lgtext a { color: #8EC2FF; }
.lgtext h1, .lgtext h2, .lgtext h3 { color: #fff; }
.lgbtns { display: flex; justify-content: flex-end; gap: 12px; margin-top: 14px; flex: none; }
.lgbtn { padding: 12px 26px; border-radius: 10px; background: #1A2E4C; font-weight: 700; font-size: 16px; }
.lgbtn.main { background: #5AA0FF; color: #0E1A2E; }
.lgbtn:hover, .lgbtn:focus { box-shadow: 0 0 0 3px #fff; }
.lgdeclined { margin: auto; max-width: 520px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lgdeclined img { width: 76px; height: 76px; border-radius: 18px; }
.lgdeclined p { color: #DCE6F2; line-height: 1.5; }
@media (max-width: 760px) { .legalpage { padding: 12px; } .lgtext { padding: 12px; font-size: 15px; } }

/* ---------- VOD hero and title page as BrowseView / DetailView (replaces the first version's hero) */
.vod .hero, .vod .herobg { display: none; }
.vbrowse { position: relative; display: block; flex: 1; min-height: 0; }
.heropic, .dpic { position: absolute; top: 0; right: 0; left: 30%; height: 66%; background: #000; opacity: 0; transition: opacity .25s; overflow: hidden; }
.heropic.shown, .dpic.shown { opacity: 1; }
.hpblur, .hpmain { position: absolute; inset: 0; background-size: cover; background-position: center top; background-repeat: no-repeat; }
.portrait .hpblur { filter: blur(40px); opacity: .45; transform: scale(1.15); }
.portrait .hpmain { background-size: contain; background-position: right center; }
/* Browse hero: the whole poster stays above the rows (they start at 52% of the screen, 79% of this box). */
.heropic.portrait .hpmain { top: 4%; bottom: 21%; right: 3%; }
.dpic.portrait .hpmain { background-size: auto 86%; background-position: right 6% center; }
.dpic.portrait.bluronly .hpmain { display: none; }
.dpic.portrait.shown { opacity: .8; }
.dpic.portrait .hpblur { opacity: .35; }
.herofade { position: absolute; top: 0; left: 30%; right: 0; height: 66%; pointer-events: none;
  background: linear-gradient(90deg, var(--vbg) 0, rgba(14,15,17,.7) 16%, rgba(14,15,17,0) 34%), linear-gradient(180deg, rgba(14,15,17,0) 60%, var(--vbg) 100%); }
.vbrowse::before { content: ""; position: absolute; top: 0; left: 0; width: 30%; height: 66%; background: var(--vbg); }
.herotext { position: absolute; top: 7%; left: 44px; width: min(620px, 52%); padding: 0; max-width: none; z-index: 1; }
.herokind { letter-spacing: .2em; }
.heroplot { margin-top: 2px; }
.herobtns { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.hbtn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 6px; background: rgba(109,109,110,.7); color: #fff; font-weight: 700; font-size: 18px; }
.hbtn .ic { width: 20px; height: 20px; }
.hbtn.primary { background: #fff; color: #000; }
.hbtn:hover, .hbtn:focus { box-shadow: 0 0 0 3px #9B7BFF; }
.vbrowse .vrows { position: absolute; top: 52%; bottom: 0; left: 0; right: 0; z-index: 1; }
/* title page */
.detail .dbg, .detail .dshade { display: none; }
.dpic { left: 300px; height: 100%; opacity: 0; }
.dpic.shown { opacity: .55; }
.detail::before { content: ""; position: fixed; top: 0; bottom: 0; left: 300px; width: 320px; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--vbg), rgba(14,15,17,.7), rgba(14,15,17,0)); }
.detail::after { content: ""; position: fixed; top: 0; bottom: 0; left: 0; width: 300px; background: var(--vbg); z-index: 0; }
.dpic { position: fixed; z-index: 0; }
.dbody { position: relative; z-index: 2; display: flex; gap: 24px; padding: 80px 24px 24px 40px; max-width: none; height: 100%; box-sizing: border-box; }
.dinfo { width: 440px; flex: none; overflow-y: auto; padding-bottom: 24px; }
.dtitle2 { font-size: 38px; margin: 4px 0 6px; }
.dmeta { font-size: 15px; display: block; white-space: pre-wrap; }
.dbuttons { flex-direction: column; align-items: flex-start; gap: 8px; margin: 14px 0; }
.vbtn { font-size: 16px; padding: 10px 20px; text-decoration: none; color: #fff; }
.vbtn .ic { width: 18px; height: 18px; }
.vbtn.primary { color: #000; }
.vbtn:focus, .vbtn:hover { box-shadow: 0 0 0 3px #9B7BFF; }
.dplot { font-size: 15px; }
.dsmall.cast { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dsmall.dir { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dpane { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.dpane .seasons { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0 0 8px; flex: none; }
.stab { border-radius: 4px; background: rgba(109,109,110,.7); opacity: .7; white-space: nowrap; font-size: 15px; padding: 8px 18px; }
.stab.on { background: #2F6FE0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); opacity: 1; color: #fff; }
.stab:hover, .stab:focus { background: #fff; color: #000; opacity: 1; box-shadow: none; }
.dpane .episodes { overflow-y: auto; flex: 1; min-height: 0; max-width: none; padding: 2px 4px 24px; }
.ep { gap: 14px; }
.ep:hover, .ep:focus { background: rgba(255,255,255,.2); box-shadow: 0 0 0 2px #fff; }
.epimg { width: 160px; }
.epbadge { position: absolute; top: 6px; left: 6px; background: var(--vaccent); color: #000; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; z-index: 2; }
.eptitle { font-size: 15px; }
.epdur, .epplot { font-size: 15px; }
@media (max-width: 760px) {
  .vbrowse { display: flex; flex-direction: column; }
  .vbrowse::before { display: none; }
  .heropic { left: 0; height: 34vh; }
  .herofade { left: 0; height: 34vh; background: linear-gradient(180deg, rgba(14,15,17,.2), var(--vbg)); }
  .herotext { position: relative; top: auto; left: auto; width: auto; padding: 18vh 16px 6px; }
  .herobtns { margin-top: 10px; }
  .hbtn { padding: 8px 14px; font-size: 15px; }
  .vbrowse .vrows { position: relative; top: auto; flex: 1; min-height: 0; overflow-y: auto; }
  .dpic { left: 0; height: 42vh; }
  .detail::before, .detail::after { display: none; }
  .dbody { flex-direction: column; padding: 30vh 16px 90px; height: auto; }
  .dinfo { width: auto; overflow: visible; }
  .dpane .episodes { overflow: visible; }
}
.herometa { white-space: pre-wrap; display: block; }

/* Rounded cells and logos (owner: the rounded look of the Roku guide), live guide and catch-up grid alike */
.guide .gch, .catchupgrid .gch { border-radius: 6px; }
.gcell { border-radius: 6px; border-right: 0; background-clip: border-box; }
.gprogs .gcell { box-sizing: border-box; }
.gprogs { --cellgap: var(--gap); }
.gprogs .gcell { clip-path: inset(0 var(--cellgap) 0 0 round 6px); }
.glogo img, .cglogo img, .culogo img, .stblogo img, .ilogo img, .blogo img { border-radius: 6px; }
.catpill .pcat { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
@media (max-width: 760px) { .catpill .pcat { display: none; } }
.grow, .stbrow { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* Logos always whole: contained in their box (catch-up rows and info included), rounded picture only */
.glogo img, .cglogo img, .stblogo img, .ilogo img, .blogo img, .culogo img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.glogo, .cglogo { overflow: visible; }
/* Owner 2026-11-24: square logos (MS NOW, FRANCE 24) came out of the STB rows. In an auto-sized grid track the
   image's max-height:100% is ignored, so the track is fixed to the box and the logo is held inside it. */
.glogo, .cglogo, .stblogo, .ilogo, .blogo, .culogo { grid-template-rows: 100%; grid-template-columns: 100%; }

/* Title page: back button fully visible and clickable above the backdrop layers; buttons one column, same width */
.detail > .backbtn { position: fixed; top: 16px; left: 16px; z-index: 5; }
.dbody { padding-top: 72px; }
.dbuttons { display: flex; flex-direction: column; align-items: stretch; width: 280px; max-width: 100%; }
.dbuttons .vbtn { width: 100%; justify-content: flex-start; box-sizing: border-box; padding: 11px 20px; border-radius: 6px; }
.dbuttons .vbtn:focus, .dbuttons .vbtn:hover { box-shadow: 0 0 0 3px #fff; outline: none; }
.dbuttons .vbtn.primary:focus, .dbuttons .vbtn.primary:hover { box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(0,0,0,.6); }
.dpane { background: rgba(14,15,17,.6); border-radius: 10px; padding: 8px; }

/* Preview video behind a mask with softly rounded corners (APK / Fire Stick / Roku preview) */
.preview, .stbpreview { border-radius: 14px; overflow: hidden; isolation: isolate; }
.preview .vid, .stbpreview .vid { border-radius: inherit; }

/* Title page: the info column keeps the Mac DetailView's left margin; focus rings are never clipped */
.dbody { padding-left: 56px; }
.dinfo { padding: 6px; margin-left: -6px; }
@media (max-width: 760px) { .dbody { padding-left: 16px; padding-right: 16px; } .dinfo { margin-left: 0; } }

/* Trailer modal */
.trailer { position: fixed; inset: 0; z-index: 85; background: rgba(0,0,0,.82); display: grid; place-items: center; padding: 24px; }
.trbox { position: relative; width: min(1100px, 100%, calc((100vh - 48px) * 16 / 9)); aspect-ratio: 16 / 9; }
.trframe { width: 100%; height: 100%; border: 0; border-radius: 16px; background: #000; display: block; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
/* Same look as the app's round back buttons (owner 2026-11-18: no white circle). */
.trclose { position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(40,44,52,.92); color: #F4F7FB; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.trclose .ic { width: 22px; height: 22px; }
.trclose:hover, .trclose:focus { background: rgba(70,76,88,.95); color: #F4F7FB; box-shadow: 0 0 0 2px var(--focus), 0 4px 14px rgba(0,0,0,.5); }
@media (max-width: 760px) { .trailer { padding: 12px; } .trclose { top: -52px; right: 0; } }

/* ---------- multiscreen: each picture in its own rounded box of its own shape, even gaps */
.multi { display: block; }
.mgrid { position: absolute; top: 80px; bottom: 56px; left: 20px; right: 20px; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.mgrid[data-n="3"], .mgrid[data-n="4"] { grid-template-rows: 1fr 1fr; }
.mcell { position: relative; min-width: 0; min-height: 0; container-type: size; display: grid; place-items: center; }
.mtile { --ar: 1.7778; position: relative; aspect-ratio: var(--ar); width: min(100cqw, calc(100cqh * var(--ar))); height: auto;
  border-radius: 14px; overflow: hidden; isolation: isolate; background: #000; cursor: pointer; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.mtile .vid { width: 100%; height: 100%; object-fit: cover; display: block; }
.mtile.on { box-shadow: 0 0 0 3px rgba(76,217,100,.85); }
.mlabel { position: absolute; left: 10px; top: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.45); font-size: 13px; text-shadow: none; opacity: .75; z-index: 2; }
.mtile.on .mlabel { opacity: 1; }
.mhint { bottom: 18px; }
@media (max-width: 760px) {
  .mgrid, .mgrid[data-n] { top: 72px; bottom: 12px; left: 8px; right: 8px; gap: 8px; grid-template-columns: 1fr; grid-template-rows: repeat(var(--rows, 2), 1fr); }
  .mgrid[data-n="3"] { --rows: 3; } .mgrid[data-n="4"] { --rows: 4; }
}
.mtop { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; padding: 20px; z-index: 3; }
.mcount { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.15); font-weight: 600; font-size: 16px; }
.mcount:hover, .mcount:focus { background: #fff; color: #0E1829; }
.mhint { position: absolute; bottom: 18px; left: 16px; right: 16px; text-align: center; color: var(--dim); font-size: 15px; }
.mpicker { text-align: left; width: min(440px, 100%); height: min(560px, 90vh); display: flex; flex-direction: column; gap: 10px; }
.mpicker .plist { overflow-y: auto; flex: 1; }
@media (max-width: 760px) { .mhint { display: none; } }

/* Quality + sound bar over the guide preview (all skins), shown while the mouse is over the picture. */
.minibar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 22px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0)); opacity: 0; transition: opacity .18s; pointer-events: none; cursor: default; z-index: 3; }
.preview:hover .minibar, .stbpreview:hover .minibar, .minibar:focus-within { opacity: 1; pointer-events: auto; }
.mbgap { flex: 1; }
.mbqual { font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 2px 7px; border-radius: 5px; border: 1px solid rgba(244,247,251,.55); color: #F4F7FB; }
.mbmute { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #F4F7FB; background: rgba(255,255,255,.12); }
.mbmute:hover { background: rgba(255,255,255,.24); }
.mbmute svg { width: 18px; height: 18px; }
.mbvol { -webkit-appearance: none; appearance: none; width: 96px; height: 4px; border-radius: 2px; cursor: pointer;
  background: linear-gradient(to right, #F4F7FB var(--fill, 100%), rgba(255,255,255,.3) var(--fill, 100%)); }
.mbvol::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #F4F7FB; }
.mbvol::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #F4F7FB; }
@media (hover: none) { .minibar { opacity: 1; pointer-events: auto; } }
.preview .pmute, .stbpreview .pmute { top: 8px; bottom: auto; z-index: 4; }
.mbqual { white-space: nowrap; flex: none; }
.cable .minibar { gap: 6px; padding: 16px 8px 6px; }
.cable .mbvol { width: 64px; }
.cable .mbmute { width: 26px; height: 26px; }
.cable .mbqual { font-size: 10px; padding: 1px 5px; }

/* Season chips with a previous / next stepper at the top right (many seasons). */
.dpane .shead { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; flex: none; min-width: 0; }
.dpane .shead .seasons { flex: 1; min-width: 0; margin: 0; }
.snav { display: flex; align-items: center; gap: 6px; flex: none; }
.snavlbl { font-size: 13px; font-weight: 600; color: rgba(244,247,251,.75); min-width: 64px; text-align: center; white-space: nowrap; }
.snavbtn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #F4F7FB; transition: background .15s, transform .15s; }
.snavbtn svg { width: 18px; height: 18px; }
.snavbtn:hover:not(:disabled), .snavbtn:focus-visible { background: rgba(255,255,255,.28); }
.snavbtn:focus-visible { outline: 2px solid #F4F7FB; outline-offset: 2px; transform: scale(1.06); }
.snavbtn:disabled { opacity: .3; cursor: default; }
.snav { padding: 4px 6px 4px 0; }
.snavlbl { min-width: 52px; font-variant-numeric: tabular-nums; }
.snavbtn:focus-visible { outline-offset: 1px; transform: none; }

/* Login field checks (as the apps): a mark inside the field and a line under it. */
.lwrap { position: relative; display: block; }
.lwrap .linput { padding-right: 42px; }
.lmark { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: 19px; pointer-events: none; }
.lmark.ok, .lcheck.ok { color: #3ECF8E; }
.lmark.warn, .lcheck.warn { color: #F5B84A; }
.lmark.error, .lcheck.error { color: #FF6B6B; }
.lmark.busy, .lcheck.busy { color: #9FB1C9; }
.lcheck { margin: 2px 4px 0; font-size: 13px; line-height: 1.35; }
.linput.lbad { border-color: #FF6B6B; }
.ldisclaimer { color: var(--dim); font-size: 12.5px; line-height: 1.45; margin: 18px 0 0; }
.ldisclaimer + .lnote { margin-top: 8px; }

/* Phones (owner's phone test 2026-11-18): the six round buttons and the brand did not fit, and overlapped the clock.
   The buttons keep their size; the left side gives way (brand first). */
.topbar .tleft { flex: 1 1 auto; overflow: hidden; }
.topbar .tright { flex: none; }
@media (max-width: 480px) {
  .topbar .tbrand { display: none; }
}

/* Multiscreen: an empty screen shows only a "+" in the middle (owner 2026-11-18). */
.mplus { display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%;
  place-items: center; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.35); color: #F4F7FB; z-index: 3; transition: background .15s, transform .15s; }
.mplus .ic { width: 34px; height: 34px; }
.mtile.empty { background: rgba(255,255,255,.04); border: 2px dashed rgba(255,255,255,.18); }
.mtile.empty .vid, .mtile.empty .mlabel { visibility: hidden; }
.mtile.empty .mplus { display: grid; }
.mplus:hover, .mplus:focus-visible, .mtile.on .mplus { background: rgba(255,255,255,.22); transform: translate(-50%, -50%) scale(1.06); }
.llegal { margin: 10px auto 0; display: block; background: none; color: var(--dim); font-size: 12.5px; text-decoration: underline; padding: 4px 8px; border-radius: 6px; }
.llegal:hover, .llegal:focus-visible { color: var(--text); }
