:root {
  --bg: #090a0d; --panel: #12141a; --panel2: #1a1e27; --line: rgba(228, 197, 138, 0.22);
  --text: #f6f1e7; --muted: #b1a89a; --accent: #e4c58a; --accent-ink: #2a2112; --gold: #e4c58a; --danger: #e39b8f;
  --rail: 94px; --r: 14px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html.lite * { animation: none !important; transition: none !important; }
/* Loading spinners keep turning even on low-power screens, so nobody thinks it froze. */
html.lite .spinner { animation: spin .9s linear infinite !important; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--text); overflow: hidden;
  font: 18px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overscroll-behavior: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
h1 { font-size: 30px; margin: 0 0 12px; } h2 { font-size: 21px; margin: 22px 0 12px; } p { margin: 8px 0; }
small { display: block; color: var(--muted); font-size: 15px; font-weight: 400; }
.hidden { display: none !important; } .grow { flex: 1; min-width: 0; } .muted { color: var(--muted); }
.ic { display: inline-flex; width: 28px; height: 28px; flex: none; } .ic svg { width: 100%; height: 100%; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #2c3446; border-radius: 6px; }

body.home-theater { font-size: 20px; }
body.home-theater .nav:focus, body.home-theater .btn:focus, body.home-theater .bigtile:focus { outline: 3px solid var(--gold); outline-offset: 2px; }
.v-watch { display: flex; flex-direction: column; height: 100%; }
.watch-tabs { padding: 14px 18px 0; }
.watch-body { flex: 1; min-height: 0; display: flex; }
.watch-body .col { min-width: 0; }
#app { display: flex; height: 100vh; height: 100dvh; }
#rail { width: var(--rail); flex: none; background: var(--panel); display: flex; flex-direction: column; padding: 8px 0; gap: 2px; border-right: 1px solid var(--line); overflow-y: auto; }
.nav { position: relative; height: auto; flex: 1 1 68px; min-height: 44px; max-height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 12.5px; border-left: 4px solid transparent; }
/* A calmer left bar: smaller icons and labels. */
#rail .nav .ic { width: 22px; height: 22px; }
.nav.on { color: var(--text); border-left-color: var(--accent); background: var(--panel2); }
.nav:active { background: var(--panel2); }
.badge { position: absolute; top: 12px; right: 22px; background: var(--accent); color: var(--accent-ink); font: 700 12px/20px system-ui; min-width: 20px; border-radius: 10px; text-align: center; }
.clock { flex: none; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.15; padding: 4px 0 0; }
.nav-ver { flex: none; text-align: center; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; line-height: 1.1; padding: 1px 0 4px; font-variant-numeric: tabular-nums; }
.nav span { white-space: nowrap; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
a.nav { text-decoration: none; color: var(--muted); }
.dock-sep { flex: none; height: 1px; margin: 6px 22px; background: var(--line); }
.nav.nav-app { flex: 0 1 50px; min-height: 40px; max-height: 52px; }
.nav-app .app-ic { width: 36px; height: 36px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #1d2029, #111318); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 6px 14px -8px rgba(0,0,0,.8); font: 700 13px/1 system-ui; color: var(--muted); }
.nav-app .app-ic img { width: 62%; height: 62%; object-fit: contain; display: block; }
.nav-app .app-ic.full img { width: 100%; height: 100%; object-fit: cover; }
.nav-app .app-ic.light img { filter: brightness(0) invert(1); opacity: .92; }
.nav-app.pinned::after { content: ""; position: absolute; top: 6px; right: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--panel); }
.dock-sep ~ .nav-app ~ .nav-app ~ .nav-app ~ .nav-app ~ .nav-app { display: none; }
@media (max-height: 860px) { .dock-sep ~ .nav-app ~ .nav-app ~ .nav-app ~ .nav-app { display: none; } .nav-app .app-ic { width: 38px; height: 38px; border-radius: 10px; } }
@media (max-height: 700px) { .dock-sep ~ .nav-app ~ .nav-app ~ .nav-app { display: none; } }
#main { flex: 1; min-width: 0; height: 100%; overflow-y: auto; }

.page { padding: 28px 32px 60px; max-width: 1500px; } .page.narrow, .card.narrow { max-width: 820px; margin: 0 auto; }
.v-center, .v-gate { display: flex; align-items: center; justify-content: center; }
.loading { text-align: center; } .loading .spinner { position: static; margin: 0 auto 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin: 18px 0; }
.card h2:first-child { margin-top: 0; } .card label { display: block; color: var(--muted); font-size: 15px; margin: 18px 0 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } .two .card { margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 22px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); font-weight: 600; }
.btn:active { filter: brightness(1.3); } .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.on { color: var(--gold); } .btn.on svg { fill: currentColor; } .btn.small { min-height: 40px; padding: 0 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.input { width: 100%; height: 60px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; outline: none; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 48px; background: var(--panel2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23e4c58a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 20px; cursor: pointer; }
select.input option { background: #12141a; color: #f6f1e7; }
.input:focus { border-color: var(--accent); } .input.big { height: 68px; font-size: 21px; }
.fields { display: grid; gap: 12px; margin: 16px 0; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { min-height: 50px; padding: 0 18px; border-radius: 9px; color: var(--muted); font-weight: 600; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.opt { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.opt .grow small + small { margin-top: 4px; }
/* Game Day */
.gd { max-width: 1000px; }
.gd-find { display: flex; gap: 10px; margin: 6px 0 12px; } .gd-find .input { flex: 1; }
.gd-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.gd-chips .chip { min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.gd-chips .chip { display: inline-flex; align-items: center; } .gd-chips .chip small { display: inline; margin-left: 8px; opacity: .7; font-weight: 700; }
.gd-chips .chip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.gd-chips .chip.ghost { background: none; color: var(--muted); }
.gd-status { min-height: 0; margin: 4px 0; font-size: 14px; } .gd-status:empty { display: none; }
.gd-status.busy::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; animation: gdpulse 1.2s ease-in-out infinite; }
@keyframes gdpulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
/* Sports event cards */
.watch-body > .gd, .favs-body > .gd { flex: 1; width: 100%; min-width: 0; overflow-y: auto; }
.gd { max-width: 1400px; } .gd .gd-list { display: block; }
.gd-find { max-width: 560px; } .gd-find .input { height: 50px; } .gd-find .btn { min-height: 50px; width: 50px; }
.gdc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.gdc { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 16px 14px 20px; border-radius: 18px; cursor: pointer; overflow: hidden; color: var(--text); background: linear-gradient(140deg, hsl(var(--tint) 45% 22% / .55), var(--panel) 62%); border: 1px solid hsl(var(--tint) 40% 45% / .35); }
.gdc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: hsl(var(--tint) 70% 55%); }
.gdc:active { transform: scale(.99); }
.gdc-top { display: flex; align-items: center; gap: 10px; min-height: 26px; }
.gdc-live { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 7px; background: #e5484d; color: #fff; font: 800 12px/1 system-ui; letter-spacing: .08em; }
.gdc-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: gdpulse 1.2s ease-in-out infinite; }
.gdc-until { color: var(--muted); font-size: 13px; }
.gdc-time { font: 800 20px/1 var(--display, system-ui); font-variant-numeric: tabular-nums; color: hsl(var(--tint) 75% 72%); }
.gdc-title { font: 700 20px/1.2 var(--display, system-ui); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gdc-fix { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 4px 0; }
.gdc-fix b { font: 700 19px/1.2 var(--display, system-ui); } .gdc-fix b:last-child { text-align: right; }
.gdc-fix span { color: var(--muted); font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.07); }
.gdc-line { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gdc-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); margin: 4px 0 2px; } .gdc-bar i { display: block; height: 100%; border-radius: 2px; background: hsl(var(--tint) 70% 60%); }
.gdc-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.gdc-chans { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.gdc-chans button, .gdc-chans span { flex: none; min-height: 36px; padding: 0 10px; border-radius: 9px; background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; }
.gdc-watch { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.gdc-watch .ic { width: 16px; height: 16px; }
.gd-h { margin: 14px 0 8px; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.gd-chips .chip .ic { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; color: #e5484d; }
.gd-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.gd, .gd-ev { min-width: 0; } .gd { overflow-x: hidden; }
.gd-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .gd-chips .chip { flex: none; white-space: nowrap; }
@media (max-width: 720px) { .gd-ev { gap: 10px; padding: 12px; } .gd-when { width: 64px; } .gd-ev small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .gd-play { width: 46px; height: 46px; } .gd-find .input { min-width: 0; } }
.gd-ev { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 84px; padding: 12px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); text-align: left; color: var(--text); }
.gd-ev.live { border-color: rgba(229,72,77,.45); background: linear-gradient(90deg, rgba(229,72,77,.12), var(--panel) 40%); }
.gd-ev b { display: block; font-size: 18px; } .gd-ev small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-when { width: 92px; flex: none; } .gd-when .gd-live { position: static; display: inline-block; font-size: 13px; padding: 6px 10px; } .gd-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.gd-chans { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .gd-chans span { font-size: 13px; padding: 3px 8px; border-radius: 8px; background: var(--panel2); color: var(--muted); }
.gd-play { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.gd-play .ic { width: 22px; height: 22px; }
/* Ask CineDrive */
.ask-row { display: flex; gap: 10px; align-items: center; } .ask-row .input { flex: 1; min-width: 0; }
.ask-sheet h3 { margin: 18px 0 10px; } .ask-sheet .hrow { padding-bottom: 6px; }
/* Stopped for a while? and Previously on */
.fit-card { margin: 6px 0 26px; padding: 18px 20px 20px; border-radius: 20px; background: linear-gradient(135deg, rgba(228,197,138,.14), rgba(255,255,255,.03) 55%); border: 1px solid rgba(228,197,138,.28); }
.fit-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.fit-head b { display: block; font: 700 21px/1.2 var(--display, system-ui); }
.fit-head small { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.fit-icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.fit-icon .ic { width: 28px; height: 28px; }
.fit-times { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.fit-time { min-height: 54px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 17px; font-weight: 700; }
.fit-time.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.fit-section h3 { margin: 18px 0 10px; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fit-note:empty { display: none; } .fit-note { margin: 14px 0 0; }
.fit-badge { position: absolute; right: 8px; top: 8px; padding: 5px 9px; border-radius: 8px; background: rgba(9,10,13,.82); color: #fff; font: 700 13px/1 system-ui; }
.fit-card .poster, .fit-card .chc-art { position: relative; }
@media (max-width: 720px) { .fit-times { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tp-sheet h3 { margin: 18px 0 8px; }
.tp-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 8px 10px; border-radius: 12px; text-align: left; color: var(--text); }
.tp-row:active { background: var(--panel2); } .tp-row b { display: block; } .tp-row small { color: var(--muted); }
.tp-logo { width: 56px; height: 40px; flex: none; object-fit: contain; }
.recap { font-size: 18px; line-height: 1.55; max-width: 60ch; }
/* AI sub-groups above a big channel list */
.sub-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; }
.sub-chips[hidden] { display: none; }
.sub-chips .chip { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); font-weight: 600; white-space: nowrap; }
.sub-chips .chip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.sub-chips .chip small { display: inline; margin-left: 8px; opacity: .7; font-weight: 700; }
.opt-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-weight: 600; }
.opt-link .ic { width: 18px; height: 18px; }
.empty { color: var(--muted); padding: 28px 12px; text-align: center; }
[data-empty]::after { content: attr(data-empty); display: block; color: var(--muted); padding: 40px; text-align: center; }

.profiles { display: grid; gap: 12px; }
.profile { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.pbtn { width: 60px; height: 60px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.pbtn:active { background: rgba(255,255,255,.16); }

.v-live, .v-vod, .v-series { display: grid; overflow: hidden !important; }
.v-live { grid-template-columns: 240px minmax(0, 1fr) minmax(380px, 38%); }
.v-vod, .v-series { grid-template-columns: 280px minmax(0, 1fr); }
.col { min-height: 0; min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.cats { overflow-y: auto; padding: 8px; flex: 1; }
.cat { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; padding: 7px 8px 7px 14px; border-radius: 10px; color: var(--muted); font-size: 15px; line-height: 1.25; }
/* Long group names wrap onto two lines instead of being cut off. */
.cat span { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow-wrap: anywhere; text-wrap: balance; }
.cat small { flex: none; min-width: 30px; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); color: var(--muted); font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.cat.on small { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.cat.on { background: var(--panel2); color: var(--text); box-shadow: inset 4px 0 var(--accent); }
.toolbar { display: flex; gap: 12px; padding: 12px; align-items: center; flex-wrap: wrap; } .toolbar .input { flex: 1; min-width: 200px; height: 54px; }
.list-body, .grid-body { flex: 1; min-height: 0; }
.vlist { overflow-y: auto; position: relative; } .vlist-inner { position: relative; width: 100%; }

.row { display: flex; align-items: center; gap: 14px; padding: 0 12px 0 16px; border-bottom: 1px solid #1a1f2b; cursor: pointer; }
.row.sel { background: var(--panel2); box-shadow: inset 4px 0 var(--accent); } .row:active { background: var(--panel2); }
.row .num { width: 52px; flex: none; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.logo { width: 60px; height: 44px; flex: none; object-fit: contain; }
.row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tag { flex: none; font-size: 12px; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; padding: 1px 6px; }
.star { width: 60px; height: 60px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #4a5368; }
.star.on { color: var(--gold); } .star.on svg { fill: currentColor; }

.pane { border-right: 0; padding: 12px; }
.dock { aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); padding: 20px; font-size: 16px; flex: none; }
.pane-title { margin: 14px 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.epg { flex: 1; min-height: 0; overflow-y: auto; }
.prog-row { display: flex; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid #1a1f2b; }
.prog-row .when { width: 96px; flex: none; color: var(--muted); font-size: 15px; } .prog-row.past { opacity: .6; }
.prog-row.now { background: var(--panel); border-radius: 10px; } .prog-row.now .when { color: var(--accent); }
.prog { height: 5px; background: rgba(255,255,255,.18); border-radius: 3px; overflow: hidden; margin-top: 8px; } .prog i { display: block; height: 100%; background: var(--accent); }

.cell { padding: 10px; } .hrow .cell { width: 190px; flex: none; padding: 0; }
.card-poster { display: block; width: 100%; text-align: left; }
.poster { position: relative; aspect-ratio: 2 / 3; background: var(--panel2); border-radius: 12px; overflow: hidden; }
.poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; color: var(--muted); font-size: 15px; overflow: hidden; }
.poster-art .poster-fallback { color: #f6f1e7; font-family: Georgia, serif; font-size: 18px; }
.preview-flag { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #f6f1e7; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; }
.poster .rate { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.72); color: var(--gold); font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.hero-banner { width: 100%; min-height: 300px; border-radius: 24px; border: 0; text-align: left; margin: 8px 0 22px; position: relative; overflow: hidden; background: #0d0f14; display: block; padding: 0; }
.hero-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(30px) brightness(.42) saturate(1.25); transform: scale(1.1); }
.hero-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,10,13,.85) 0%, rgba(9,10,13,.35) 60%, rgba(9,10,13,.1) 100%); }
.hero-poster { position: absolute; right: 32px; top: 22px; bottom: 22px; height: calc(100% - 44px); aspect-ratio: 2 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.8); z-index: 1; }
.hero-copy { position: absolute; left: 32px; bottom: 28px; right: 260px; z-index: 1; }
.hero-copy small { color: var(--gold); font-weight: 600; letter-spacing: .02em; }
.hero-copy h1 { margin: 6px 0 14px; font-family: var(--display, Georgia, serif); font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; }
.hero-go { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--accent-ink); font-weight: 700; padding: 10px 18px; border-radius: 999px; }
.hero-go svg { width: 18px; height: 18px; }
/* Channel tiles with a picture */
.chc { flex: none; width: 260px; min-width: 260px; padding: 0; border: 0; background: none; text-align: left; border-radius: 16px; }
.chc-art { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background-size: cover; background-position: center 25%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 14px 26px -18px rgba(0,0,0,.9); }
.chc-art { width: 100%; }
.chc-art.logo { background: radial-gradient(circle at 50% 35%, #2a2f3b, #12141a 70%); }
.chc-art.logo img { position: absolute; left: 21%; top: 14%; width: 58%; height: 46%; object-fit: contain; }
.chc-live { position: absolute; top: 10px; left: 10px; background: #e5484d; color: #fff; font: 800 11px/1 system-ui; letter-spacing: .08em; padding: 5px 8px; border-radius: 6px; }
.chc-text { position: absolute; left: 12px; right: 12px; bottom: 10px; }
.chc-text b { display: block; font: 700 17px/1.2 var(--display, system-ui); color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chc-now { display: block; color: rgba(255,255,255,.78); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.2em; }
.chc:active .chc-art { transform: scale(.98); }
.ch-chip { flex: none; width: 190px; height: 64px; padding: 8px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; text-align: left; }
.ch-chip span { font-size: 14px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.hero-flag, .hero-rate { display: inline-block; margin-right: 8px; background: rgba(0,0,0,.45); color: var(--gold); border-radius: 999px; padding: 2px 8px; font-size: 13px; }
.hero-flag { color: #f6f1e7; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.home-tools { display: flex; justify-content: flex-end; }
.btn.icon-only { width: 52px; padding: 0; justify-content: center; } .btn.icon-only svg { width: 24px; height: 24px; }
.watch-tabs { display: flex; align-items: center; gap: 16px; padding: 18px 22px 8px; }
.watch-tabs h1 { margin: 0; font-family: Georgia, serif; font-weight: 500; font-size: 32px; }
.poster .prog { position: absolute; left: 8px; right: 8px; bottom: 8px; margin: 0; }
.ttl { margin-top: 8px; font-size: 15px; font-weight: 600; line-height: 1.25; height: 38px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ttl-sub { font-size: 13px; color: var(--muted); }
.hrow { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; } .hrow.wrap { flex-wrap: wrap; overflow: visible; }
.tile { width: 200px; height: 124px; flex: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px; }
.tile span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; }
.tile-logo { width: 110px; height: 60px; object-fit: contain; }
.home-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; } .home-head h1 { margin: 0; }
.bigtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bigtile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 22px; }
.bigtile .ic { width: 40px; height: 40px; color: var(--accent); }

#sheet { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; padding: 20px; }
.sheet-panel { position: relative; width: min(1150px, 100%); max-height: 100%; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.sheet-close { position: sticky; float: right; top: 0; width: 60px; height: 60px; border-radius: 50%; background: var(--panel2); display: flex; align-items: center; justify-content: center; z-index: 2; }
/* Film and series page: one big Play, then the other actions as even tiles. */
.detail .actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.detail .actions .btn { width: 100%; min-height: 56px; justify-content: center; white-space: nowrap; }
.detail .actions .btn.primary { grid-column: 1 / -1; min-height: 64px; font-size: 19px; }
.detail { display: flex; gap: 28px; } .detail-poster { width: 260px; flex: none; align-self: flex-start; } .detail-main { flex: 1; min-width: 0; }
.meta { color: var(--muted); } .plot { color: #cfd5e1; max-width: 70ch; }
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 8px 0 12px; }
.chip { flex: none; min-height: 50px; padding: 0 18px; border-radius: 25px; background: var(--panel2); border: 1px solid var(--line); font-weight: 600; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.ep { width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; padding: 14px 10px; min-height: 68px; border-bottom: 1px solid var(--line); }
.ep .num { width: 40px; color: var(--muted); font-weight: 700; } .ep:active { background: var(--panel2); }

.code { font: 700 54px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 6px; margin: 6px 0 10px; }
.code.entry { color: var(--accent); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 360px; }
.keypad button { height: 68px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); font-size: 26px; font-weight: 600; } .keypad button:active { background: var(--accent); color: var(--accent-ink); }
.remote { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .remote .btn { padding: 0 16px; }

#toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; background: #f1f4f9; color: #10141c; padding: 14px 20px; border-radius: 14px; font-weight: 600; display: flex; gap: 16px; align-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.5); max-width: 90vw; }
.toast .btn { background: #10141c; color: #fff; }

.spinner { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; border: 5px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin .9s linear infinite; pointer-events: none; z-index: 2; }
@keyframes spin { to { transform: rotate(360deg); } }

#player { position: fixed; background: #000; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; }
#player[data-free="1"]::after { content: "CineDrive"; position: absolute; right: 14px; bottom: 12px; z-index: 6; pointer-events: none; color: rgba(228, 197, 138, .9); font-size: 13px; letter-spacing: .12em; }
.nav.upgrade { color: #e4c58a; }
#player[data-mode="full"] { inset: 0; z-index: 50; }
#player[data-mode="dock"] { z-index: 5; border-radius: var(--r); cursor: pointer; }
#player[data-mode="mini"] { right: 24px; bottom: 24px; width: min(440px, 46vw); aspect-ratio: 16 / 9; z-index: 40; border-radius: var(--r); box-shadow: 0 10px 40px rgba(0,0,0,.7); border: 1px solid var(--line); cursor: pointer; }
#player .p-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000; z-index: 1; pointer-events: none; visibility: hidden; object-fit: contain; }
#player[data-aspect="cover"] .p-canvas { object-fit: cover; }
#player[data-aspect="fill"] .p-canvas { object-fit: fill; }
#player.canvas-live .p-canvas { visibility: visible; }
#player .p-video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; z-index: 1; pointer-events: none; object-fit: contain; }
#player[data-aspect="cover"] .p-video { object-fit: cover; }
#player[data-aspect="fill"] .p-video { object-fit: fill; }
#player.native-on .p-canvas { visibility: hidden; }
#player .p-gl { display: none; }
#player.gl-on .p-gl { display: block; }
#player.gl-on .p-canvas:not(.p-gl) { visibility: hidden; }
.p-debug { position: absolute; left: 12px; top: 12px; z-index: 7; max-width: min(420px, 70%); padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.72); color: #d5f5d5; font: 13px/1.35 ui-monospace, monospace; white-space: pre-wrap; pointer-events: none; }
.p-log { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 8; width: min(640px, 92%); max-height: 80%; display: flex; flex-direction: column; gap: 10px; background: rgba(16,20,28,.96); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.p-log.hidden { display: none; }
.p-log p { margin: 0; }
.p-log-text { width: 100%; min-height: 220px; box-sizing: border-box; background: #0b0d12; color: #eef1f6; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: 12px/1.4 ui-monospace, monospace; text-align: left; user-select: text; -webkit-user-select: text; resize: vertical; }
.p-ui { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; pointer-events: none; transition: opacity .2s;
  background: linear-gradient(rgba(0,0,0,.75), transparent 26%, transparent 68%, rgba(0,0,0,.85)); }
#player.show-ui[data-mode="full"] .p-ui { opacity: 1; pointer-events: auto; }
#player:not([data-mode="full"]) .p-ui, #player:not([data-mode="full"]) .p-menu, #player:not([data-mode="full"]) .p-drawer, #player:not([data-mode="full"]) .p-osd { display: none; }
.p-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.p-logo { width: 72px; height: 48px; object-fit: contain; flex: none; }
.p-titles { flex: 1; min-width: 0; } .p-title { font-size: 24px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-sub { color: #cdd3df; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-mid { display: flex; align-items: center; justify-content: center; gap: 4vw; }
.pbtn.big { width: 84px; height: 84px; } .pbtn.big .ic { width: 40px; height: 40px; } .pbtn.txt { font-size: 22px; font-weight: 700; }
.pbtn.huge { width: 116px; height: 116px; background: rgba(255,255,255,.14); } .pbtn.huge .ic { width: 56px; height: 56px; }
.pbtn.fav.on { color: var(--gold); } .pbtn.fav.on svg { fill: currentColor; }
.p-bot { padding: 0 18px 12px; } .p-row { display: flex; align-items: center; gap: 6px; }
.p-time { font-variant-numeric: tabular-nums; padding: 0 8px; }
.p-live { background: var(--danger); color: #fff; font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 6px; margin: 0 8px; }
.seek { height: 48px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.seek .track { position: relative; width: 100%; height: 8px; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; }
.seek .buf, .seek .fill { position: absolute; left: 0; top: 0; bottom: 0; } .seek .buf { background: rgba(255,255,255,.35); } .seek .fill { background: var(--accent); }
.p-osd { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); background: rgba(0,0,0,.7); padding: 10px 22px; border-radius: 12px; font-size: 24px; font-weight: 700; pointer-events: none; max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 3; }
.p-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(16,20,28,.94); border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; text-align: center; max-width: min(620px, 86%); z-index: 4; }
.p-msg-actions { display: flex; gap: 12px; justify-content: center; margin-top: 14px; }
#player:not([data-mode="full"]) .p-msg { font-size: 13px; padding: 8px 12px; } #player:not([data-mode="full"]) .p-msg-actions { display: none; }
.p-menu { position: absolute; right: 18px; bottom: 96px; width: 340px; max-height: 70%; overflow-y: auto; background: rgba(16,20,28,.96); border: 1px solid var(--line); border-radius: 16px; padding: 10px; z-index: 5; }
.p-menu-title { font-weight: 700; padding: 8px 12px; } .p-menu-label { color: var(--muted); font-size: 14px; padding: 10px 12px 2px; }
.p-opt { display: block; width: 100%; text-align: left; min-height: 54px; padding: 8px 12px; border-radius: 10px; } .p-opt.on { color: var(--accent); font-weight: 700; } .p-opt:active { background: var(--panel2); }
.p-drawer { position: absolute; left: 0; top: 0; bottom: 0; width: min(440px, 80%); background: rgba(12,15,21,.95); border-right: 1px solid var(--line); z-index: 5; display: flex; }
.p-drawer-list { flex: 1; }
.p-miniclose { display: none; position: absolute; top: 6px; right: 6px; width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,.7); align-items: center; justify-content: center; z-index: 6; }
#player[data-mode="mini"] .p-miniclose { display: flex; }

.page.signin { --qr: clamp(120px, min(24vh, 15vw), 230px); max-width: 1400px; margin: 0 auto; padding: 22px 32px 32px; min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.signin-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.signin-head p { margin: 0; flex: 1; min-width: 240px; }
.brand { display: flex; align-items: center; gap: 12px; } .brand h1 { margin: 0; font-size: 30px; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; }
.brand-mark .ic { width: 22px; height: 22px; }
.btn.ghost { background: transparent; } .btn.small .ic { width: 22px; height: 22px; }
.saved { margin-bottom: 18px; } .saved h2 { margin: 0 0 10px; } .saved .profiles { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.signin-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.signin-grid > .card { margin: 0; }
.qr-card { display: flex; flex-direction: column; gap: 18px; } .qr-card h2 { margin: 0; }
.qr-head { display: flex; align-items: center; gap: 12px; }
.chip-tag { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 20px; padding: 3px 10px; }
.qr-body { display: flex; gap: 28px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 19px; line-height: 1.35; }
.step-n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--panel2); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.qr-state { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 14px 16px; border-radius: 12px; background: var(--panel2); color: var(--muted); font-size: 16px; }
.qr-state b { color: var(--text); } .qr-code-num { letter-spacing: .08em; }
.qr-state .dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: #e0a100; animation: blink 1.2s ease-in-out infinite; }
.qr-card.linked { border-color: #2fbf71; } .qr-card.linked .qr-state { color: var(--text); } .qr-card.linked .qr-state .dot { background: #2fbf71; animation: none; }
.signin-form { display: flex; flex-direction: column; } .signin-form h2 { margin-top: 0; }
.signin-form .fields { gap: 10px; margin: 14px 0; } .signin-form .submit { margin-top: auto; }

@media (max-height: 820px) and (min-width: 721px) {
  .page.signin { padding: 12px 24px; justify-content: flex-start; }
  .signin-head { margin-bottom: 10px; } .brand h1 { font-size: 24px; } .brand-mark { width: 36px; height: 36px; }
  .signin-grid { gap: 14px; } .signin-grid > .card { padding: 16px 18px; }
  .qr-card { gap: 10px; } .qr-card h2, .signin-form h2 { font-size: 19px; }
  .steps { gap: 10px; } .steps li { font-size: 16px; } .step-n { width: 30px; height: 30px; font-size: 15px; }
  .qr-state { padding: 10px 12px; font-size: 14px; }
  .signin-form .fields { gap: 8px; margin: 10px 0; } .signin-form .input { height: 48px; } .signin-form .seg button { min-height: 42px; }
  .signin-form .btn { min-height: 50px; } .saved { margin-bottom: 10px; } .saved .profile { padding: 10px 14px; }
}

.p-msg-facts { font-size: 13px; color: #97a0b3; margin-top: 4px; }
.p-report { display: block; width: 100%; margin-top: 12px; min-height: 140px; box-sizing: border-box; background: #0b0d12; color: #eef1f6; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: 12px/1.4 ui-monospace, monospace; text-align: left; }

@media (max-height: 860px) and (min-width: 721px) {
  :root { --rail: 92px; }
  .nav { font-size: 12px; gap: 1px; } .nav .ic { width: 22px; height: 22px; }
  #rail { padding: 3px 0 2px; gap: 0; overflow: hidden; } #rail > .grow { flex: 1 1 8px; min-height: 0; }
  .clock { font-size: 13px; padding: 1px 0 0; }
  .nav-ver { font-size: 11px; padding: 0 0 2px; }
}

.qr-box { flex: none; width: var(--qr); height: var(--qr); padding: 8px; background: #fff; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #333; }
.qr-box svg { display: block; width: 100%; height: 100%; } .qr-card.linked { border-color: var(--accent); } .qr-card.linked .qr-state { color: var(--accent); }
.setup-status { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 14px 0; border-radius: 12px; background: var(--panel2); color: var(--muted); font-size: 16px; }
.setup-status .dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: #e0a100; animation: blink 1.2s ease-in-out infinite; }
.setup-status.on { color: var(--text); } .setup-status.on .dot { background: #2fbf71; animation: none; }
@keyframes blink { 50% { opacity: .3; } }
form.card .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
form.card .seg button { padding: 0 8px; }
form.card .submit { width: 100%; }

.grip { width: 56px; height: 56px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); cursor: grab; touch-action: none; border-radius: 12px; }
.grip:active { background: var(--panel2); color: var(--text); cursor: grabbing; }
.cat .grip { width: 44px; height: 44px; margin: 0 -4px 0 -10px; } .cat .grip + span { flex: 1; }
.row.ch.editing { cursor: default; } .row.ch.editing:active { background: none; }
/* Combined channels: versions badge and picker */
.vers { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 10px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; }
.vers .ic { width: 16px; height: 16px; }
.ver-list { display: grid; gap: 4px; margin: 10px 0; }
.ver-row { gap: 10px; border-radius: 12px; padding: 4px 6px; } .ver-row.on { background: rgba(228,197,138,.1); }
.ver-pick { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 60px; text-align: left; padding: 6px; min-width: 0; }
.ver-pick b { display: block; } .ver-pick small { display: block; color: var(--muted); }
.radio { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--muted); }
.radio.on { border-color: var(--accent); box-shadow: inset 0 0 0 5px var(--panel), inset 0 0 0 11px var(--accent); }
/* Profiles */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 28%; overflow: hidden; color: #fff; font-weight: 700; font-family: var(--display, system-ui); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.add { background: var(--panel2); color: var(--gold); } .avatar.add svg { width: 44px; height: 44px; }
.nav-me { flex: 0 1 66px; gap: 4px; } .nav-me span { font-size: 11.5px; max-width: 90px; }
.who-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(8,9,12,.97); display: grid; place-items: center; padding: 24px; overflow-y: auto; }
.who-wrap { text-align: center; }
.who-wrap h1 { font-family: var(--display, Georgia, serif); font-weight: 600; font-size: 38px; margin: 0 0 28px; }
.who-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.who { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px; border-radius: 20px; min-width: 150px; }
.who:active, .who:focus { background: var(--panel2); }
.who b { font-size: 19px; } .who small { color: var(--gold); }
.who-card { width: min(760px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: grid; gap: 14px; justify-items: stretch; }
.who-card h1, .who-card h2 { margin: 0; } .who-card h1 { font-family: var(--display, Georgia, serif); font-weight: 600; }
.setup-top { display: flex; gap: 22px; align-items: center; }
.colours { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.colour { width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; border: 3px solid transparent; }
.colour.on { border-color: #fff; }
.likes { display: flex; flex-wrap: wrap; gap: 8px; }
.like { min-height: 50px; padding: 0 18px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); font-weight: 600; }
.like.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.kids-switch { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.kids-switch input { width: 28px; height: 28px; accent-color: var(--accent); flex: none; }
.cam video { width: 100%; max-height: 50vh; border-radius: 14px; background: #000; transform: scaleX(-1); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 84px); gap: 8px; justify-content: center; } .pin-pad button { min-height: 64px; font-size: 24px; }
.person small { display: block; color: var(--muted); }
@media (max-width: 720px) { .setup-top { flex-direction: column; } .who-wrap h1 { font-size: 28px; } }
/* Signal bars: how fast a channel starts on this screen */
.sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; flex: none; }
.sig i { width: 4px; border-radius: 1px; background: rgba(255,255,255,.18); }
.sig i:nth-child(1) { height: 6px; } .sig i:nth-child(2) { height: 11px; } .sig i:nth-child(3) { height: 16px; }
.sig3 i { background: #69db7c; } .sig2 i:nth-child(-n+2) { background: #ffd43b; } .sig1 i:nth-child(1) { background: #ff922b; } .sig0 i:nth-child(1) { background: #fa5252; }
.pane-q { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: -4px 0 10px; color: var(--muted); font-size: 14px; }
.fast-row small { display: block; color: var(--muted); }
.fast-row.best b { color: var(--gold); }
/* Screen button menu: full screen or Theatre, beside the left bar */
.mode-pop { position: fixed; z-index: 40; width: 340px; display: grid; gap: 6px; padding: 8px; background: rgba(16,20,28,.98); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.8); }
.mode-opt { display: flex; align-items: center; gap: 14px; min-height: 70px; padding: 10px 14px; border-radius: 12px; text-align: left; }
.mode-opt:active { background: var(--panel2); }
.mode-opt svg { width: 28px; height: 28px; flex: none; color: var(--gold); }
.mode-opt b { display: block; font-size: 17px; }
.mode-opt small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; margin-top: 2px; }
.nav-full.on { color: var(--gold); }
.rear-hint { position: fixed; left: 50%; top: 24px; transform: translateX(-50%); z-index: 80; display: flex; gap: 14px; align-items: center; padding: 16px 22px; border-radius: 18px; background: rgba(16,20,28,.96); border: 1px solid var(--gold); box-shadow: 0 20px 40px -12px rgba(0,0,0,.8); transition: opacity .7s; }
.rear-hint .ic { width: 34px; height: 34px; color: var(--gold); } .rear-hint b { display: block; font-size: 19px; } .rear-hint small { color: var(--muted); } .rear-hint.out { opacity: 0; }
/* Show / hide groups */
.grp-sheet h2 { margin-top: 0; }
.grp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.grp-chip { min-height: 48px; padding: 0 16px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.grp-chip small { color: var(--muted); font-weight: 400; }
.grp-chip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; } .grp-chip.on small { color: var(--accent-ink); }
.grp-sum { margin: 12px 0 6px; }
.grp-h { margin: 14px 0 0; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.grp-chip.hid { opacity: .55; text-decoration: line-through; }
.grp-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; } .grp-tools .input { flex: 1; min-width: 220px; height: 54px; }
.grp-also { margin-top: 10px; } .grip.ghost { width: 40px; }
.grp-list { max-height: 46vh; overflow-y: auto; border-top: 1px solid var(--line); }
.grp-row { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 6px; border-bottom: 1px solid #1a1f2b; cursor: pointer; }
.grp-row .grip { width: 40px; height: 48px; }
.grp-row .grp-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-row small { color: var(--muted); font-variant-numeric: tabular-nums; }
.grp-row input { width: 28px; height: 28px; accent-color: var(--accent); flex: none; }
.grp-row.off .grp-name, .grp-row.off small { opacity: .45; }
.grp-save { position: sticky; bottom: -28px; background: var(--panel); padding: 14px 0 4px; }
/* While reordering, the groups column gets the room the preview had, and the drag
   dots stay small, so group names stay readable. */
.v-live.editing { grid-template-columns: minmax(300px, 36%) minmax(0, 1fr); } .v-live.editing .pane { display: none; }
.editing .cat { padding-left: 4px; } .cat span.grip { flex: none; display: inline-flex; overflow: visible; -webkit-line-clamp: unset; } .editing .cat .grip { width: 36px; height: 44px; margin: 0 2px 0 0; } .editing .cat .grip svg { width: 18px; height: 18px; }
.editing .cat span { text-align: left; text-wrap: wrap; -webkit-line-clamp: 2; }
.edit-hint small { font-size: 14px; }
.drag-ghost { z-index: 80; pointer-events: none; margin: 0; background: var(--panel2); border: 1px solid var(--accent); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.6); opacity: .96; color: var(--text); }
.drag-src { opacity: .3; }
.drop-line { position: fixed; z-index: 81; height: 4px; border-radius: 2px; background: var(--accent); pointer-events: none; }

.v-favs { display: flex; flex-direction: column; overflow: hidden !important; }
.favs-bar h2 { margin: 0 8px 0 4px; } .favs-bar .seg button { white-space: pre; }
.favs-body { flex: 1; min-height: 0; border-top: 1px solid var(--line); }
.v-live.fav-only { grid-template-columns: minmax(0, 1fr) minmax(380px, 42%); }
.favs-grid { display: flex; flex-direction: column; }
.row .name.two { display: flex; flex-direction: column; justify-content: center; white-space: normal; }
.name.two span, .name.two small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .name.two small { font-size: 14px; font-weight: 400; }
/* Live channel rows: no logo column; the name wraps to two lines with now / next underneath. */
.row.ch .name.two { gap: 3px; }
.row.ch .name.two .ch-title { font-size: 16px; line-height: 1.2; white-space: normal; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row.ch .name.two .ch-now { font-size: 13px; line-height: 1.3; color: var(--muted); }
.row.ch .name.two .ch-now[hidden] { display: none; }
.row.ch .ch-now b { color: var(--accent); font-weight: 600; }
.row.ch .ch-now .ch-next { white-space: nowrap; }
.row.ch .num { width: 44px; font-size: 14px; }

.diag { display: grid; gap: 2px; margin-top: 10px; }
.diag-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; padding: 9px 12px; border-radius: 8px; background: var(--panel2); font-size: 16px; }
.diag-v { color: var(--muted); overflow-wrap: anywhere; } .diag-v.good { color: #2fbf71; } .diag-v.bad { color: var(--danger); font-weight: 600; }

.v-guide { display: flex; flex-direction: column; overflow: hidden !important; }
.guide-group { max-width: min(520px, 60%); } .guide-group span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guide-body { flex: 1; min-height: 0; overflow: auto; position: relative; overscroll-behavior: contain; border-top: 1px solid var(--line); }
.guide-inner { position: relative; }
.guide-head { position: sticky; top: 0; z-index: 4; background: var(--panel); border-bottom: 1px solid var(--line); }
.guide-corner { position: sticky; left: 0; z-index: 1; width: var(--gch); height: 100%; background: var(--panel); display: flex; align-items: center; padding: 0 16px; color: var(--muted); font-size: 15px; border-right: 1px solid var(--line); }
.guide-tick { position: absolute; top: 0; height: 100%; display: flex; align-items: center; padding-left: 10px; border-left: 1px solid var(--line); color: var(--muted); font-size: 15px; white-space: nowrap; }
.guide-row { position: absolute; left: 0; width: 100%; display: flex; border-bottom: 1px solid #1a1f2b; }
.guide-ch { position: sticky; left: 0; z-index: 3; width: var(--gch); flex: none; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: var(--bg); border-right: 1px solid var(--line); text-align: left; }
.guide-ch:active { background: var(--panel2); } .guide-ch .logo { width: 52px; height: 40px; }
.guide-ch span { font-size: 15px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.guide-progs { position: relative; flex: 1; min-width: 0; }
.guide-prog { position: absolute; top: 6px; bottom: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; overflow: hidden; overflow: clip; }
.guide-prog:active { filter: brightness(1.35); }
.guide-prog.now { background: #17324a; border-color: var(--accent); } .guide-prog.past { opacity: .55; }
.gp-in { position: sticky; left: calc(var(--gch) + 4px); display: inline-flex; flex-direction: column; justify-content: center; height: 100%; max-width: 100%; padding: 0 12px; vertical-align: top; }
.gp-in b, .gp-in small { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .gp-in b { font-size: 16px; } .gp-in small { font-size: 13px; }
.guide-wait { position: sticky; left: calc(var(--gch) + 16px); display: inline-flex; align-items: center; height: 100%; color: var(--muted); font-size: 15px; }
.guide-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); z-index: 2; pointer-events: none; }
.guide-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px; } .guide-groups .cat { background: var(--panel2); }

@media (max-width: 1000px) {
  .v-live { grid-template-columns: 196px minmax(0, 1fr); } .v-live .pane { display: none; } .v-live.fav-only { grid-template-columns: minmax(0, 1fr); }
  .v-vod, .v-series { grid-template-columns: 196px minmax(0, 1fr); }
  .cat { font-size: 14px; min-height: 50px; padding: 6px 6px 6px 12px; } .cats { padding: 6px; }
  .two { grid-template-columns: 1fr; } .detail-poster { width: 180px; }
  .steps li { font-size: 15px; } .qr-body { gap: 16px; } .page.signin { padding: 10px 14px; } .signin-head p { display: none; }
}
@media (max-width: 720px) {
  .hero-poster { display: none; } .hero-copy { right: 24px; left: 24px; } .hero-banner { min-height: 220px; }
  #app { flex-direction: column-reverse; }
  #rail { width: 100%; height: 72px; flex-direction: row; padding: 0; border-right: 0; border-top: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; }
  #rail .grow, .clock, .nav-ver, .nav-full { display: none; }
  .nav { height: 100%; min-width: 76px; flex: 1; border-left: 0; border-top: 3px solid transparent; font-size: 12px; } .nav.on { border-top-color: var(--accent); }
  #main { height: auto; min-height: 0; }
  .v-live, .v-vod, .v-series { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .v-live.fav-only { grid-template-rows: minmax(0, 1fr); } .diag-row { grid-template-columns: 1fr; gap: 2px; } .favs-bar h2 { display: none; }
  .cats-col { border-right: 0; } .cats { display: flex; overflow-x: auto; overflow-y: hidden; gap: 6px; } .cat { width: auto; flex: none; min-height: 48px; } .cat.on { box-shadow: inset 0 -3px var(--accent); }
  .cat span { display: block; white-space: nowrap; -webkit-line-clamp: unset; }
  .page { padding: 18px 16px 40px; } .bigtiles { grid-template-columns: 1fr; } .detail { flex-direction: column; } .sheet-panel { padding: 18px; }
  .code { font-size: 40px; } .p-mid { gap: 2vw; } .pbtn.huge { width: 88px; height: 88px; } .pbtn.big { width: 64px; height: 64px; }
  .editing .cats { display: block; overflow-x: hidden; overflow-y: auto; max-height: 38vh; } .editing .cat { width: 100%; }
  .v-guide .toolbar .btn span { display: none; } .v-guide .toolbar .guide-group span { display: block; } .guide-ch .logo { display: none; }
  .signin-grid { grid-template-columns: 1fr; } .qr-body { flex-direction: column; } .page.signin { --qr: 200px; }
  .page.signin { padding: 16px; } .signin-head .btn { display: none; }
  form.card { padding: 16px; } form.card .seg button { font-size: 15px; min-height: 46px; } .input { height: 54px; font-size: 16px; }
  .setup-page h1 { font-size: 26px; } .btn { font-size: 16px; }
  .p-menu { right: 8px; left: 8px; width: auto; } #player[data-mode="mini"] { bottom: 88px; right: 12px; }
}

/* Phones: everything fits the width, nothing scrolls sideways unless it is a row of cards. */
@media (max-width: 720px) {
  #rail { height: 62px; overflow: hidden; }
  .nav { min-width: 0; padding: 0 1px; font-size: 10px; gap: 2px; overflow: hidden; }
  .nav > span:not(.ic), .nav > small, .nav > b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #rail .nav .ic { width: 21px; height: 21px; }
  .watch-tabs { padding: 10px 12px 4px; gap: 8px; }
  .watch-tabs .seg { display: flex; flex-wrap: nowrap; width: 100%; }
  .watch-tabs .seg button { flex: 1 1 0; min-width: 0; padding: 0 4px; min-height: 44px; font-size: 15px; }
  .seg { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; } .seg::-webkit-scrollbar { display: none; }
  .seg button { flex: none; white-space: nowrap; min-height: 44px; padding: 0 14px; }
  .toolbar { gap: 8px; padding: 8px 12px; } .toolbar .input { min-width: 0; flex: 1 1 0; height: 48px; }
  .toolbar .edit-order { order: 2; } .toolbar .seg { order: 3; width: 100%; } .toolbar .seg button { flex: 1 0 auto; }
  .v-guide .toolbar .btn span.ic { display: block; }
  #toasts { bottom: 74px; width: calc(100vw - 24px); } .toast { max-width: 100%; padding: 10px 14px; font-size: 14px; }
  .opt { gap: 10px; } .opt > .grow { flex: 1 1 100%; }
  .fit-card { padding: 14px; margin-bottom: 20px; } .fit-head { gap: 12px; margin-bottom: 12px; } .fit-head b { font-size: 18px; } .fit-head small { font-size: 13.5px; }
  .fit-icon { width: 44px; height: 44px; border-radius: 13px; } .fit-icon .ic { width: 24px; height: 24px; }
  .fit-times { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; } .fit-time { min-height: 46px; font-size: 13px; border-radius: 12px; white-space: nowrap; }
}
@media (max-width: 720px) {
  .hrow { gap: 12px; scrollbar-width: none; } .hrow::-webkit-scrollbar { display: none; }
  .hrow .cell { width: 132px; } .chc { width: 216px; min-width: 216px; } .ttl { font-size: 14px; }
}
@media (max-width: 720px) {
  .v-guide .toolbar { flex-wrap: nowrap; } .v-guide .toolbar .grow { display: none; }
  .v-guide .toolbar .guide-group { flex: 1 1 0; min-width: 0; justify-content: space-between; } .v-guide .toolbar .guide-group span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .v-guide .toolbar .btn:not(.guide-group) { flex: none; width: 48px; padding: 0; justify-content: center; }
}
@media (max-width: 720px) { .nav-me { flex: 0 0 46px; } .nav-me span:not(.avatar) { display: none; } }
@media (max-width: 720px) {
  .v-live.editing { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .toolbar .edit-hint { flex: 1 1 100%; } .toolbar .edit-hint small { display: block; }
  .editing .toolbar .btn { flex: 1 1 auto; min-height: 46px; padding: 0 12px; font-size: 14px; }
}
@media (max-width: 720px) {
  .p-top { gap: 4px; padding: 10px 8px; } .p-top .pbtn { width: 46px; height: 46px; } .p-title { font-size: 18px; } .p-sub { font-size: 13px; } .p-logo { display: none; }
  .p-bot { padding: 0 8px 10px; } .p-row { gap: 0; justify-content: space-between; } .p-row .pbtn { width: 38px; height: 46px; flex: 0 1 38px; } .p-row .pbtn .ic { width: 22px; height: 22px; } .p-live { margin: 0 4px; }
}
/* Phones: pinned apps live on the Apps page, so the bottom bar keeps room for its labels. */
@media (max-width: 720px) { #rail .nav-app, #rail .dock-sep { display: none; } .fit-time { font-size: 12.5px; letter-spacing: -.01em; } .fit-card { padding: 14px 12px; } }
@media (max-width: 720px) { .detail { gap: 14px; } .detail-poster { width: 132px; } .detail-main h1 { font-size: 24px; margin: 0 0 6px; } }
@media (max-width: 720px) { .detail-main { width: 100%; } .detail .actions { grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; } .detail .actions .btn { min-height: 50px; padding: 0 8px; font-size: 14px; gap: 6px; } .detail .actions .btn.primary { min-height: 56px; font-size: 18px; } }
/* Radio and Apps open inside the app, in a frame beside the bar. */
.inside { flex: 1; min-width: 0; min-height: 0; width: 100%; height: 100%; border: 0; display: block; background: var(--bg); }
.inside[hidden], #main[hidden] { display: none !important; }
/* A channel with no logo or poster: a drawing that fits it, large and soft behind the name. */
.chc-art.themed { box-shadow: inset 0 0 0 1px hsl(var(--tint, 220) 50% 60% / .22), 0 14px 26px -18px rgba(0,0,0,.9); }
.chc-icon { position: absolute; right: 4%; top: 46%; transform: translateY(-50%) rotate(-8deg); width: 46%; aspect-ratio: 1; color: hsl(var(--tint, 220) 80% 78% / .5); pointer-events: none; }
.chc-icon svg { width: 100%; height: 100%; display: block; }
.chc-art.poster .chc-icon { display: none; }
.loading h2 { font-family: var(--display, system-ui); font-size: 24px; margin: 0 0 8px; } .loading p { color: var(--muted); margin: 0; }

/* The profile picture fills its place in the bar. */
.nav-me { flex: 0 0 74px; max-height: none; padding: 6px 0 2px; } .nav-me .avatar { border-radius: 16px; }
@media (max-width: 720px) { .nav-me { flex: 0 0 50px; padding: 0; } .nav-me .avatar { width: 40px !important; height: 40px !important; font-size: 18px !important; border-radius: 12px; } }
@media (max-height: 760px) and (min-width: 721px) { .nav-me { flex: 0 0 58px; } .nav-me .avatar { width: 44px !important; height: 44px !important; font-size: 20px !important; } }

/* Films and Series as rows of posters, with the collections across the top. */
.watch-body.shelved { display: block; }
.sh-page { height: 100%; border-right: 0; }
.sh-bar { display: flex; align-items: center; gap: 12px; padding: 12px 22px 10px; }
.sh-chips { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.sh-chips::-webkit-scrollbar { display: none; }
.sh-chips .chip { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 16px; white-space: nowrap; }
.sh-chips .chip .ic { width: 17px; height: 17px; color: var(--gold); }
.sh-chips .chip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; } .sh-chips .chip.on .ic { color: inherit; }
.sh-chips .chip.ghost { background: none; color: var(--muted); margin-right: 30px; }
.sh-tools { flex: none; display: flex; align-items: center; gap: 8px; }
.sh-tools .sh-find { width: 230px; height: 48px; } .sh-tools .btn { min-height: 48px; }
.sh-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 22px 10px; flex-wrap: wrap; }
.sh-head[hidden], .sh-rows[hidden], .grid-body[hidden] { display: none; }
.sh-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; } .sh-title h2 { margin: 0; font: 600 26px/1.2 var(--display, Georgia, serif); } .sh-title small { color: var(--muted); font-size: 15px; white-space: nowrap; }
.sh-head .seg button { min-height: 42px; padding: 0 14px; font-size: 15px; }
.sh-page .sub-chips.parts { padding: 0 22px 10px; }
.sh-rows { flex: 1; min-height: 0; overflow-y: auto; padding: 0 22px 60px; }
.sh-hero { min-height: 320px; margin: 4px 0 26px; } .sh-hero .hero-rate { margin-bottom: 12px; }
.sh-shelf { margin: 0 0 26px; }
.sh-shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.sh-shelf-head h2 { margin: 0; font: 600 22px/1.25 var(--display, system-ui); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.sh-ai { display: inline-flex; align-items: center; gap: 5px; font: 600 12px/1 system-ui; color: var(--gold); border: 1px solid rgba(228,197,138,.35); border-radius: 999px; padding: 5px 9px; white-space: nowrap; } .sh-ai .ic { width: 13px; height: 13px; }
.sh-see { flex: none; color: var(--gold); font-weight: 600; font-size: 15px; min-height: 40px; padding: 0 6px; }
.sh-shelf .hrow { gap: 14px; padding-bottom: 6px; scrollbar-width: none; scroll-snap-type: x proximity; } .sh-shelf .hrow::-webkit-scrollbar { display: none; }
.sh-shelf .hrow .cell { scroll-snap-align: start; }
.sh-shelf .hrow.waiting { min-height: 351px; border-radius: 16px; background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.06), rgba(255,255,255,.03)); }
.sh-more { flex: none; width: 150px; align-self: stretch; margin-bottom: 46px; border-radius: var(--r); border: 1px dashed var(--line); color: var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-weight: 600; }
.sh-more .ic { width: 26px; height: 26px; }
.sh-all h2 { margin: 0 0 14px; } .sh-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; max-height: 62vh; overflow-y: auto; padding: 2px; }
.sh-tile { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 0 16px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); text-align: left; }
.sh-tile b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sh-tile small { color: var(--muted); flex: none; }
.sh-tile.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
@media (max-width: 1000px) { .sh-tools .sh-find { width: 170px; } }
@media (max-width: 720px) {
  .sh-bar { flex-wrap: wrap; gap: 8px; padding: 8px 12px 6px; } .sh-chips { flex: 1 1 100%; order: 2; } .sh-tools { flex: 1 1 100%; order: 1; } .sh-tools .sh-find { flex: 1; width: auto; min-width: 0; height: 46px; }
  .sh-chips .chip { min-height: 42px; padding: 0 14px; font-size: 14.5px; }
  .sh-head { padding: 2px 12px 8px; } .sh-title h2 { font-size: 21px; } .sh-page .sub-chips.parts { padding: 0 12px 8px; }
  .sh-rows { padding: 0 12px 40px; } .sh-hero { min-height: 210px; margin-bottom: 18px; } .sh-shelf { margin-bottom: 18px; } .sh-shelf-head h2 { font-size: 18px; }
  .sh-shelf .hrow.waiting { min-height: 264px; } .sh-more { width: 104px; margin-bottom: 44px; font-size: 14px; }
  .sh-tiles { grid-template-columns: 1fr 1fr; } .sh-tile { min-height: 52px; padding: 0 12px; font-size: 14.5px; }
}

/* A channel card showing a logo is a full card: the small channel-list logo size must not apply to it. */
.chc-art.logo { height: auto; }

/* Favourites, when empty: the offer to build the list for you. */
.fav-starter { display: flex; align-items: center; gap: 14px; margin: 6px 12px 10px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(228,197,138,.14), rgba(255,255,255,.03) 55%); border: 1px solid rgba(228,197,138,.28); flex-wrap: wrap; }
.fav-starter[hidden] { display: none; } .fav-starter .grow { flex: 1 1 220px; min-width: 0; }
.fav-starter b { display: block; font: 700 18px/1.25 var(--display, system-ui); } .fav-starter small { display: block; color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.fav-starter .btn.busy { opacity: .6; }

/* Favourites being built: a spinner and words, so it never looks stuck. */
.fav-starter.working { align-items: center; } .spinner.small { position: static; width: 34px; height: 34px; margin: 4px 6px; flex: none; }

/* TV: the country picker above the groups, and a calmer channel row. */
.lands { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 8px 4px; flex: none; } .lands::-webkit-scrollbar { display: none; } .lands[hidden] { display: none; }
.lands .chip { flex: none; min-height: 40px; min-width: 46px; padding: 0 12px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 14px; }
.lands .chip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.cat span { -webkit-line-clamp: 1; text-wrap: nowrap; white-space: nowrap; text-overflow: ellipsis; display: block; }
.row.ch .ch-title { text-transform: none; }
.tag.arc { display: inline-flex; align-items: center; gap: 6px; } .tag.arc .ic { width: 15px; height: 15px; }
@media (max-width: 1280px) { .tag.arc > span:not(.ic) { display: none; } .tag.arc { padding: 6px; border-radius: 50%; } .row.ch .vers { padding: 0 8px; min-height: 36px; } }
@media (max-width: 720px) { .lands { padding: 6px 12px 0; } }
/* Home rows share the look of the Films and Series rows. */
.home-discover .sh-shelf { margin-bottom: 26px; } .home-discover .sh-hero { margin-top: 0; }

/* Search at the top of Home. */
.home-search { margin-bottom: 18px; } .ask-field { position: relative; flex: 1; min-width: 0; display: flex; } .ask-field .input { flex: 1; min-width: 0; padding-right: 52px; }
.ask-field .input::-webkit-search-cancel-button { display: none; }
.ask-clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; } .ask-clear[hidden] { display: none; }
.home-discover .results[hidden], .home-discover > div[hidden] { display: none; }
@media (max-width: 720px) { .home-search { gap: 6px; } .home-search .ask-btn span:not(.ic) { display: none; } .home-search .ask-btn { padding: 0 14px; } .home-search .input.big { font-size: 16px; min-height: 48px; } }
@media (max-width: 720px) { .home-discover .results .hrow.wrap:has(.tile) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .home-discover .results .tile { width: auto; min-width: 0; } }
@media (max-width: 720px) { .confirm .seg { display: flex; width: 100%; } .confirm .seg button { flex: 1 1 0; min-width: 0; padding: 0 4px; white-space: nowrap; } }
/* Channel rows: versions and catch-up are the same round size; the count sits on the corner of the versions icon. */
.row.ch .vers { position: relative; width: 36px; height: 36px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; overflow: visible; }
.row.ch .vers .ic { width: 17px; height: 17px; }
.row.ch .vers > span:not(.ic) { position: absolute; top: -5px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; line-height: 17px; text-align: center; box-sizing: border-box; }
@media (max-width: 1280px) { .row.ch .tag.arc { width: 36px; height: 36px; padding: 0; justify-content: center; box-sizing: border-box; } .row.ch .tag.arc .ic { width: 17px; height: 17px; } .row.ch .vers { padding: 0; min-height: 0; } }

/* The profile picture sits on Home, beside the search box. */
.home-me { flex: none; padding: 0; border: 0; background: none; min-height: 0; border-radius: 16px; line-height: 0; } .home-me .avatar { border-radius: 16px; }
@media (max-width: 720px) { .home-me .avatar { width: 48px !important; height: 48px !important; font-size: 20px !important; border-radius: 14px; } }
