:root {
  --bg: #07080c;
  --bg2: #0d0f16;
  --surface: rgba(255, 255, 255, .045);
  --surface2: rgba(255, 255, 255, .075);
  --surface3: rgba(255, 255, 255, .11);
  --line: rgba(255, 255, 255, .08);
  --text: #eef0f6;
  --muted: #9aa0b4;
  --dim: #646a80;
  --a1: #8b5cf6;
  --a2: #22d3ee;
  --grad: linear-gradient(135deg, var(--a1), var(--a2));
  --live: #ff3d6e;
  --gold: #fbbf24;
  --ok: #34d399;
  --r: 14px;
  --top: 64px;
  /* notch / home indicator; --gap is set by app.js for the iOS home-screen viewport bug */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --gap: 0px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.45 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::selection { background: rgba(139, 92, 246, .45); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .2); }
[hidden] { display: none !important; }
.h { font-family: Sora, Inter, sans-serif; letter-spacing: -.02em; }

.aurora { position: fixed; inset: -20% -10% auto; height: 70vh; pointer-events: none; z-index: 0; filter: blur(80px); opacity: .35;
  background: radial-gradient(40% 50% at 20% 30%, rgba(139, 92, 246, .55), transparent 70%), radial-gradient(35% 45% at 80% 20%, rgba(34, 211, 238, .35), transparent 70%); }

/* ---------- top bar ---------- */
.topbar { position: relative; z-index: 20; height: var(--top); display: flex; align-items: center; gap: 18px; padding: 0 20px;
  background: linear-gradient(to bottom, rgba(7, 8, 12, .92), rgba(7, 8, 12, .7)); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px Sora, sans-serif; letter-spacing: -.03em; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 2px; }
.tabs { display: flex; gap: 4px; margin-left: 8px; }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 11px; color: var(--muted); font-weight: 500; transition: .2s; }
.tabs a svg { width: 18px; height: 18px; }
.tabs a:hover { color: var(--text); background: var(--surface); }
.tabs a.active { color: #fff; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); }
.tabs a.active svg { stroke: url(#lg); color: var(--a2); }
.search { margin-left: auto; position: relative; display: flex; align-items: center; width: min(360px, 32vw); }
.search svg { position: absolute; left: 12px; width: 17px; color: var(--dim); }
.search input { width: 100%; height: 40px; padding: 0 40px 0 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); outline: none; transition: .2s; }
.search input:focus { border-color: rgba(139, 92, 246, .6); background: var(--surface2); box-shadow: 0 0 0 4px rgba(139, 92, 246, .15); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { position: absolute; right: 10px; font: 600 11px Inter; color: var(--dim); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); transition: .2s; }
.icon-btn:hover { background: var(--surface2); color: #fff; }
.icon-btn.on { color: var(--gold); }
.icon-btn.on svg { fill: var(--gold); }

main { position: relative; z-index: 1; height: calc(100% - var(--top) - var(--sat)); overflow: hidden; }
.view { height: 100%; overflow-y: auto; overflow-x: hidden; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 600; background: var(--surface2); border: 1px solid var(--line); transition: .2s; white-space: nowrap; }
.btn:hover { background: var(--surface3); }
.btn.primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 8px 30px rgba(139, 92, 246, .35); }
.btn.primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn.white { background: #fff; color: #0a0a0f; border: 0; }
.btn.white:hover { background: #e9e9f1; }
.btn svg { width: 18px; height: 18px; }
.btn.white svg.play, .btn.primary svg.play { fill: currentColor; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--surface2); color: var(--muted); font-size: 12px; font-weight: 500; }
.chip.onair { background: rgba(255, 61, 110, .15); color: var(--live); font-weight: 700; letter-spacing: .04em; }
.chip.onair::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; }
.chip.gold { color: var(--gold); background: rgba(251, 191, 36, .12); }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }

/* ---------- layout with categories ---------- */
.split { display: grid; grid-template-columns: 250px 1fr; height: 100%; }
.cats { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: rgba(255, 255, 255, .012); }
.cats-head { padding: 14px 14px 8px; }
.cats-head input { width: 100%; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px; outline: none; }
.cats-head input:focus { border-color: rgba(139, 92, 246, .5); }
.cats-list { overflow-y: auto; padding: 4px 8px 20px; flex: 1; }
.cat { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; transition: background .15s, color .15s; }
.cat span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat small { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.cat:hover { background: var(--surface); color: var(--text); }
.cat.active { background: linear-gradient(90deg, rgba(139, 92, 246, .22), rgba(34, 211, 238, .06)); color: #fff; box-shadow: inset 2px 0 0 var(--a1); }
.cat.active small { color: #c4b5fd; }
.cat-sep { height: 1px; background: var(--line); margin: 8px 12px; }

/* ---------- live ---------- */
.live { display: grid; grid-template-columns: 250px 360px 1fr; height: 100%; }
.chlist-wrap { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.chlist-head { padding: 14px 16px 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.chlist-head h3 { margin: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chlist-head small { color: var(--dim); white-space: nowrap; }
.vlist { position: relative; overflow-y: auto; flex: 1; outline: none; }
.vlist-inner { position: relative; }
.ch { position: absolute; left: 8px; right: 8px; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 10px; border-radius: 12px; cursor: pointer; transition: background .12s; }
.ch:hover { background: var(--surface); }
.ch.active { background: linear-gradient(90deg, rgba(139, 92, 246, .25), rgba(34, 211, 238, .08)); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .35); }
.ch .num { width: 30px; text-align: right; color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.logo { width: 46px; height: 46px; border-radius: 10px; background: #fff1 center/contain no-repeat; display: grid; place-items: center; overflow: hidden; flex: none; position: relative; }
.logo img { width: 84%; height: 84%; object-fit: contain; }
.logo[data-i]::after { content: attr(data-i); font: 700 14px Sora; color: #c4b5fd; position: absolute; }
.logo:has(img:not(.broken))::after { content: none; }
.logo img.broken { display: none; }
.ch .meta { flex: 1; min-width: 0; }
.ch .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch .sub { font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch .star { opacity: 0; width: 32px; height: 32px; }
.ch:hover .star, .ch .star.on { opacity: 1; }
.eq { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--a2); border-radius: 2px; animation: eq 1s infinite ease-in-out; }
.eq i:nth-child(2) { animation-delay: -.3s } .eq i:nth-child(3) { animation-delay: -.6s }
@keyframes eq { 0%, 100% { height: 4px } 50% { height: 14px } }

.stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow-y: auto; padding: 18px 22px 30px; gap: 18px; }
.screen { position: relative; aspect-ratio: 16/9; width: 100%; max-height: 72vh; border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--shadow), 0 0 0 1px var(--line); flex: 0 0 auto; }
.screen video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
.screen:fullscreen, .screen:-webkit-full-screen { width: 100vw; height: 100vh; max-height: none; border-radius: 0; aspect-ratio: auto; align-self: stretch; }
.screen:fullscreen video, .screen:-webkit-full-screen video { width: 100%; height: 100%; object-fit: contain; }
.screen .hud { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; opacity: 0; transition: opacity .3s; background: linear-gradient(to bottom, rgba(0, 0, 0, .65), transparent 25%, transparent 70%, rgba(0, 0, 0, .75)); }
.screen.show-hud .hud, .screen.paused .hud { opacity: 1; }
.screen:not(.show-hud):not(.paused) { cursor: none; }
.hud-top, .hud-bot { display: flex; align-items: center; gap: 12px; padding: 16px 18px; pointer-events: auto; }
.hud-top .logo { width: 40px; height: 40px; }
.hud-title { font: 700 17px Sora; }
.hud-sub { color: #cfd3e1; font-size: 12.5px; }
.hud-bot { justify-content: flex-start; }
.hud-bot .spacer { flex: 1; }
.hud .icon-btn { color: #fff; background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); }
.hud .icon-btn:hover { background: rgba(255, 255, 255, .2); }
.vol { display: flex; align-items: center; gap: 6px; }
.vol input { width: 90px; accent-color: var(--a1); }
.screen-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); background: radial-gradient(60% 60% at 50% 40%, rgba(139, 92, 246, .18), transparent), #050509; }
.screen-empty .big { font: 700 22px Sora; color: var(--text); margin: 14px 0 6px; }
.state { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.state .box { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; max-width: 420px; padding: 20px; pointer-events: auto; }
.state .box.err { background: rgba(10, 10, 16, .85); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(10px); }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--a2); border-right-color: var(--a1); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.zap { position: absolute; top: 18px; right: 18px; font: 800 44px Sora; color: #fff; text-shadow: 0 4px 30px #000; pointer-events: none; }

.nowcard { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.nowcard .logo { width: 64px; height: 64px; border-radius: 14px; }
.nowcard h2 { margin: 0 0 2px; font-size: 20px; }
.nowcard .actions { display: flex; gap: 6px; }
.epg { display: grid; gap: 8px; }
.epg h4 { margin: 4px 0; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.prog { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid transparent; }
.prog.now { border-color: rgba(139, 92, 246, .35); background: linear-gradient(90deg, rgba(139, 92, 246, .14), rgba(255, 255, 255, .03)); }
.prog time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.prog .t { font-weight: 600; }
.prog .d { color: var(--muted); font-size: 12.5px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 4px; }

/* ---------- grids ---------- */
.content { padding: 22px 26px 40px; min-width: 0; overflow-y: auto; height: 100%; }
.content-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.content-head h1 { margin: 0; font-size: 26px; }
.content-head .count { color: var(--dim); }
.content-head select { margin-left: auto; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); padding: 0 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 22px 16px; }
.card { position: relative; cursor: pointer; border-radius: 14px; outline: none; }
.poster { position: relative; aspect-ratio: 2/3; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #1b1d2a, #0e0f17); box-shadow: 0 0 0 1px var(--line); transition: transform .25s, box-shadow .25s; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .4s; }
.poster img.ok { opacity: 1; }
.poster img.broken { display: none; }
.poster .ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; font: 700 15px Sora; color: #8b8fa6; }
.poster .badge { position: absolute; top: 8px; left: 8px; z-index: 2; }
.poster .rate { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 3px 7px; border-radius: 8px; background: rgba(0, 0, 0, .65); backdrop-filter: blur(6px); font: 700 11.5px Inter; color: var(--gold); }
.poster .pbar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); z-index: 2; }
.poster .pbar i { display: block; height: 100%; background: var(--grad); border-radius: 4px; }
.poster .hover { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, .1)); opacity: 0; transition: .25s; z-index: 1; }
.poster .hover span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: #000; transform: scale(.8); transition: .25s; }
.poster .hover svg { fill: #000; stroke: none; width: 22px; height: 22px; margin-left: 3px; }
.card:hover .poster, .card:focus-visible .poster { transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 40px rgba(0, 0, 0, .6), 0 0 0 2px rgba(139, 92, 246, .6); }
.card:hover .hover, .card:focus-visible .hover { opacity: 1; }
.card:hover .hover span { transform: scale(1); }
.card .ct { margin-top: 9px; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .cs { font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.wide .poster { aspect-ratio: 16/9; }
.card.chan .poster { aspect-ratio: 16/10; display: grid; place-items: center; background: linear-gradient(160deg, #1b1d2a, #10111a); }
.card.chan .poster img { width: 60%; height: 60%; object-fit: contain; }
.sentinel { height: 60px; }
.empty { display: grid; place-items: center; text-align: center; padding: 80px 20px; color: var(--muted); }
.empty .big { font: 700 20px Sora; color: var(--text); margin: 14px 0 6px; }
.empty svg { width: 54px; height: 54px; color: var(--dim); stroke-width: 1.3; }

/* ---------- home ---------- */
.hero { position: relative; min-height: 440px; height: 58vh; max-height: 620px; display: flex; align-items: flex-end; padding: 0 44px 56px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: center 20%/cover no-repeat; transform: scale(1.06); animation: kenburns 30s ease-in-out infinite alternate; }
.hero-bg.blur { filter: blur(28px) saturate(1.3); transform: scale(1.3); opacity: .7; }
@keyframes kenburns { to { transform: scale(1.14) translate(-1%, -1%); } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 2%, rgba(7, 8, 12, .55) 45%, rgba(7, 8, 12, .15)), linear-gradient(to right, rgba(7, 8, 12, .9), transparent 65%); }
.hero-poster { position: absolute; right: 8%; bottom: 50px; width: 220px; aspect-ratio: 2/3; border-radius: 16px; background: center/cover; box-shadow: var(--shadow); z-index: 1; transform: rotate(3deg); }
.hero-c { position: relative; z-index: 2; max-width: 640px; }
.hero-c .kicker { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.hero-c h1 { margin: 0 0 12px; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.02; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.hero-c p { margin: 0 0 22px; color: #c9cddb; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-c .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rows { padding: 0 0 40px; margin-top: -10px; position: relative; z-index: 2; }
.row { margin: 0 0 30px; }
.row-h { display: flex; align-items: baseline; gap: 12px; padding: 0 44px; margin-bottom: 12px; }
.row-h h2 { margin: 0; font-size: 19px; }
.row-h a { color: var(--muted); font-size: 13px; margin-left: auto; }
.row-h a:hover { color: #fff; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 158px; gap: 16px; overflow-x: auto; padding: 6px 44px 14px; scroll-snap-type: x proximity; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { scroll-snap-align: start; }
.rail.wide { grid-auto-columns: 280px; }
.rail.chans { grid-auto-columns: 190px; }
.stats { display: flex; gap: 12px; padding: 0 44px; margin: 0 0 30px; flex-wrap: wrap; }
.stat { flex: 1; min-width: 160px; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font: 700 24px Sora; }
.stat span { color: var(--muted); font-size: 12.5px; }

/* ---------- modal / detail ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 30px 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 3, 6, .72); backdrop-filter: blur(10px); animation: fade .2s; }
.modal-card { position: relative; width: min(960px, 100%); max-height: 100%; overflow-y: auto; border-radius: 22px; background: #0e1018; border: 1px solid var(--line); box-shadow: var(--shadow); animation: pop .25s cubic-bezier(.2, .9, .3, 1.2); }
.modal-card.sm { width: min(560px, 100%); }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98) } }
.modal-x { position: absolute; top: 14px; right: 14px; z-index: 5; background: rgba(0, 0, 0, .5); color: #fff; }
.d-hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; padding: 28px; overflow: hidden; }
.d-hero .bg { position: absolute; inset: 0; background: center 25%/cover; }
.d-hero .bg.blur { filter: blur(24px); transform: scale(1.2); opacity: .6; }
.d-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, #0e1018 5%, rgba(14, 16, 24, .4) 60%, rgba(14, 16, 24, .2)); }
.d-top { position: relative; z-index: 1; display: flex; gap: 24px; align-items: flex-end; }
.d-top .pst { width: 150px; aspect-ratio: 2/3; border-radius: 14px; background: #1b1d2a center/cover; flex: none; box-shadow: var(--shadow); }
.d-top h1 { margin: 0 0 10px; font-size: 32px; line-height: 1.08; }
.d-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.d-body { padding: 4px 28px 28px; display: grid; gap: 18px; }
.d-body p { margin: 0; color: #c9cddb; line-height: 1.65; }
.d-facts { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; font-size: 13px; }
.d-facts dt { color: var(--dim); }
.d-facts dd { margin: 0; color: var(--muted); }
.seasons { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.seasons button { padding: 8px 16px; border-radius: 10px; background: var(--surface); color: var(--muted); font-weight: 600; white-space: nowrap; }
.seasons button.active { background: #fff; color: #000; }
.eps { display: grid; gap: 8px; }
.ep { display: grid; grid-template-columns: 34px 168px 1fr; gap: 16px; align-items: center; padding: 10px; border-radius: 14px; cursor: pointer; transition: .15s; }
.ep:hover { background: var(--surface); }
.ep .n { font: 700 20px Sora; color: var(--dim); text-align: center; }
.ep .th { position: relative; aspect-ratio: 16/9; border-radius: 10px; background: #1b1d2a center/cover; overflow: hidden; }
.ep .th .pbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .2); }
.ep .th .pbar i { display: block; height: 100%; background: var(--grad); }
.ep .t { font-weight: 600; }
.ep .s { color: var(--dim); font-size: 12px; }
.ep .p { color: var(--muted); font-size: 12.5px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* forms */
.form { padding: 28px; display: grid; gap: 14px; }
.form h2 { margin: 0; font-size: 22px; }
.form .lead { margin: -6px 0 4px; color: var(--muted); }
.field { display: grid; gap: 6px; }
.field label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.field input, .field select { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px; outline: none; }
.field input:focus, .field select:focus { border-color: rgba(139, 92, 246, .6); box-shadow: 0 0 0 4px rgba(139, 92, 246, .15); }
.field .hint { font-size: 12px; color: var(--dim); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; flex-wrap: wrap; }
.acct { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.acct div { padding: 12px; border-radius: 12px; background: var(--surface); }
.acct b { display: block; font-size: 15px; }
.acct span { font-size: 11.5px; color: var(--dim); }
.alert { padding: 12px 14px; border-radius: 12px; background: rgba(255, 61, 110, .1); border: 1px solid rgba(255, 61, 110, .3); color: #ffc2d1; font-size: 13px; }
.alert.ok { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .3); color: #b7f5dc; }
details.adv summary { cursor: pointer; color: var(--muted); font-size: 13px; }
details.adv[open] summary { margin-bottom: 12px; }

/* onboarding */
.onb { min-height: 100%; display: grid; place-items: center; padding: 30px 16px; }
.onb .modal-card { animation: pop .4s; }

/* ---------- VOD player overlay ---------- */
.player-overlay { position: fixed; inset: 0; z-index: 60; background: #000; display: grid; animation: fade .2s; }
.player-overlay video { width: 100%; height: 100%; background: #000; outline: none; }
.vp-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent); transition: opacity .35s; }
.vp-top .icon-btn { color: #fff; background: rgba(255, 255, 255, .1); }
.vp-titles { flex: 1; min-width: 0; }
.vp-title { font: 700 18px Sora; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-sub { color: #c9cddb; font-size: 13px; }
.player-overlay.idle .vp-top, .player-overlay.idle .vp-controls { opacity: 0; transform: translateY(8px); }
.player-overlay.idle { cursor: none; }
.vp-state { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 1; }
.vp-state .btn { pointer-events: auto; }
.vp-state .box { text-align: center; color: #fff; display: grid; gap: 12px; justify-items: center; }
.vp-state .big { font: 700 18px Sora; }
.vp-state p { margin: 0; color: #c9cddb; max-width: 380px; }
/* custom controls */
.vp-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 30px 22px 18px; background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent); transition: opacity .3s, transform .3s; }
.vp-controls ::selection { background: none; }
.vp-seek { position: relative; height: 16px; display: flex; align-items: center; cursor: pointer; margin-bottom: 4px; }
.vp-seek::before { content: ''; position: absolute; left: 0; right: 0; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.vp-buf { position: absolute; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .35); }
.vp-played { position: absolute; height: 5px; border-radius: 4px; background: var(--grad); }
.vp-thumb { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); transform: translateX(-50%); transition: transform .1s; }
.vp-seek:hover .vp-thumb { transform: translateX(-50%) scale(1.25); }
.vp-bar { display: flex; align-items: center; gap: 6px; }
.vp-bar .icon-btn { color: #fff; width: 42px; height: 42px; }
.vp-bar .icon-btn:hover { background: rgba(255, 255, 255, .15); }
.vp-time { color: #e8eaf2; font-size: 13px; font-variant-numeric: tabular-nums; margin-left: 4px; white-space: nowrap; }
.vp-spacer { flex: 1; }
.vp-bar .vol { margin: 0 4px; }
.vp-bar .vol input { width: 84px; accent-color: var(--a1); }
.vp-menu-wrap { position: relative; }
.vp-menu { position: absolute; bottom: 52px; right: 0; min-width: 220px; max-height: 320px; overflow-y: auto; background: rgba(16, 18, 26, .97); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); z-index: 5; }
.vp-menu h5 { margin: 4px 10px 6px; font: 600 11px Inter; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.vp-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; color: var(--muted); font-size: 13px; text-align: left; }
.vp-opt:hover { background: var(--surface2); color: #fff; }
.vp-opt.active { color: #fff; }
.vp-opt .tick { width: 16px; color: var(--a2); opacity: 0; }
.vp-opt.active .tick { opacity: 1; }
.vp-opt .ol { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-opt .flag { font-size: 11px; color: var(--dim); }
video::cue { background: rgba(0, 0, 0, .6); color: #fff; font-size: 1.1em; line-height: 1.35; }
/* custom subtitle layer (progressive, in sync with transcode offset) */
.vp-subs { position: absolute; left: 0; right: 0; bottom: 92px; z-index: 2; text-align: center; pointer-events: none; padding: 0 8%; transition: bottom .3s; }
.player-overlay.idle .vp-subs { bottom: 40px; }
.vp-subs span { display: inline-block; background: rgba(0, 0, 0, .66); color: #fff; padding: 3px 12px; border-radius: 6px; font: 600 clamp(16px, 2.4vw, 26px)/1.4 Inter, sans-serif; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); white-space: pre-wrap; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.vp-subs i { font-style: italic; }
.sub-prep { display: inline-flex; align-items: center; gap: 7px; }
.sub-prep .mini { width: 13px; height: 13px; border: 2px solid rgba(255, 255, 255, .25); border-top-color: var(--a2); border-radius: 50%; animation: spin .8s linear infinite; }
.vp-opt .mini { width: 13px; height: 13px; border: 2px solid rgba(255, 255, 255, .25); border-top-color: var(--a2); border-radius: 50%; animation: spin .8s linear infinite; margin-left: auto; }
@media (max-width: 960px) {
  .vp-controls { padding: 24px 12px 14px; }
  .vp-bar .vol input { width: 60px; }
  .vp-bar #vpBack, .vp-bar #vpFwd { display: none; }
  .vp-time { font-size: 12px; }
}

/* toasts */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { padding: 11px 18px; border-radius: 12px; background: rgba(22, 24, 34, .95); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 500; animation: pop .25s; }

.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, .04) 25%, rgba(255, 255, 255, .09) 50%, rgba(255, 255, 255, .04) 75%); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: 14px; }
@keyframes sh { to { background-position: -200% 0 } }
.loading-screen { height: 100%; display: grid; place-items: center; text-align: center; color: var(--muted); }
.loading-screen .spinner { margin: 0 auto 16px; }

.mobile-cat { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .live { grid-template-columns: 220px 300px 1fr; }
  .split { grid-template-columns: 220px 1fr; }
}
@media (max-width: 960px) {
  :root { --top: 58px; }
  body { overflow: auto; }
  .topbar { gap: 10px; padding: 0 12px; }
  .tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; margin: 0; justify-content: space-around; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(10, 11, 16, .95); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .tabs a { flex-direction: column; gap: 3px; font-size: 10.5px; padding: 6px 8px; }
  .tabs a.active { background: none; box-shadow: none; color: #fff; }
  .search { width: auto; flex: 1; }
  .search kbd { display: none; }
  main { height: calc(100% - var(--top) - 64px); }
  .live, .split { display: flex; flex-direction: column; height: 100%; overflow-y: auto; }
  .cats { display: none; }
  .mobile-cat { display: block; padding: 10px 14px 0; }
  .mobile-cat select { width: 100%; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); padding: 0 12px; }
  .live .stage { order: -1; padding: 0; gap: 10px; overflow: visible; flex: none; }
  .live .screen { border-radius: 0; max-height: none; }
  .live .nowcard, .live .epg { margin: 0 14px; }
  .live .epg { display: none; }
  .chlist-wrap { border: 0; flex: 1; min-height: 60vh; }
  .content { padding: 14px 14px 30px; height: auto; overflow: visible; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 16px 10px; }
  .hero { padding: 0 18px 40px; min-height: 380px; }
  .hero-poster { display: none; }
  .row-h, .stats { padding: 0 16px; }
  .rail { padding: 6px 16px 12px; grid-auto-columns: 120px; gap: 10px; }
  .rail.wide { grid-auto-columns: 240px; }
  .rail.chans { grid-auto-columns: 150px; }
  .d-top .pst { width: 100px; }
  .d-top h1 { font-size: 24px; }
  .ep { grid-template-columns: 120px 1fr; }
  .ep .n { display: none; }
  .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand span { display: none; }
}

.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: #8b5cf6; }
.check small { color: var(--dim); }
.search-view { padding-top: 28px; }
/* remove button on "continue watching" cards: on hover (always visible on touch screens) */
.card-x { position: absolute; top: 8px; left: 8px; z-index: 3; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .72); color: #fff; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; }
.card-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.card-x:hover { background: #e5484d; }
.card:hover .card-x, .card:focus-within .card-x { opacity: 1; }
@media (hover: none) { .card-x { opacity: 1; } }
/* room for the hover lift + glow so the card's top edge isn't clipped by the scrolling rail */
.rail { padding-top: 16px; margin-top: -10px; }

/* =====================================================================
   2026-10 redesign pass
   ===================================================================== */

/* poster placeholder title only while the image is missing */
.poster .ph { transition: opacity .3s; }
.poster img.ok ~ .ph { opacity: 0; }

/* glass buttons (on top of artwork) */
.btn.glass, .icon-btn.glass { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; }
.btn.glass:hover, .icon-btn.glass:hover { background: rgba(255, 255, 255, .2); }
.icon-btn.glass { width: 42px; height: 42px; }
.btn.on { color: var(--gold); }
.btn.on svg { fill: var(--gold); stroke: var(--gold); }
.dim { color: var(--dim); }

/* ---------- featured carousel ---------- */
.hero { min-height: 480px; height: 70vh; max-height: 760px; padding: 0 44px 72px; }
.hero-bg { opacity: 0; transition: opacity 1s ease; background-position: center 25%; }
.hero-bg.on { opacity: 1; }
.hero-bg.blurred { filter: blur(34px) saturate(1.25); transform: scale(1.25); animation: none; }
.hero::after { background: linear-gradient(to top, var(--bg) 0%, rgba(7, 8, 12, .6) 38%, rgba(7, 8, 12, .05) 75%), linear-gradient(to right, rgba(7, 8, 12, .92) 0%, rgba(7, 8, 12, .45) 45%, transparent 75%); }
.hero-c { max-width: 680px; }
.hero-c h1 { font-size: clamp(30px, 4.6vw, 60px); }
.hero-c p { min-height: 0; max-width: 560px; }
.hero-c .kicker { min-height: 26px; }
.hero-dots { position: absolute; right: 44px; bottom: 78px; z-index: 3; display: flex; gap: 8px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .35); transition: width .35s, background .35s; padding: 0; }
.hero-dots button.active { width: 28px; background: #fff; }
.rows { margin-top: -28px; }

/* ---------- segmented language switch ---------- */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin: -6px 0 18px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { padding: 7px 14px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; transition: .2s; }
.seg button:hover { color: #fff; }
.seg button.active { background: #fff; color: #0a0a0f; }
.content-head select { cursor: pointer; }

/* ---------- detail ---------- */
.modal-card.detail { width: min(1000px, 100%); }
.d-hero { min-height: 400px; padding: 32px; }
.d-hero .bg.blurred { filter: blur(30px) saturate(1.2); transform: scale(1.2); opacity: .7; }
.d-hero::after { background: linear-gradient(to top, #0e1018 3%, rgba(14, 16, 24, .55) 55%, rgba(14, 16, 24, .15)), linear-gradient(to right, rgba(14, 16, 24, .85), transparent 70%); }
.d-info { min-width: 0; }
.d-top .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.d-prog { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.d-prog .bar { flex: 1; margin: 0; }
.ep { grid-template-columns: 34px 176px 1fr; }
.ep .th .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .35); opacity: 0; transition: .2s; }
.ep .th .play svg { width: 30px; height: 30px; fill: #fff; stroke: none; }
.ep:hover .th .play { opacity: 1; }
.ep .th .tick { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #05130d; font: 800 12px Inter; }
.ep.done .t { color: var(--muted); }
.ep.next { background: linear-gradient(90deg, rgba(139, 92, 246, .16), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .3); }

/* ---------- phones & small tablets ---------- */
@media (max-width: 960px) {
  /* a backdrop-filter here would trap the fixed tab bar inside the header (it covered search + settings) */
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(7, 8, 12, .97); padding: 0 12px calc(0px); }
  .tabs { padding-top: 8px; }
  .tabs a { min-width: 58px; }
  main { height: calc(100% + var(--gap) - var(--top) - var(--sat) - 62px - var(--sab)); }

  .hero { height: 64vh; min-height: 440px; padding: 0 18px 54px; }
  .hero-c h1 { font-size: clamp(28px, 8vw, 40px); }
  .hero-c p { font-size: 14px; -webkit-line-clamp: 3; }
  .hero-dots { right: auto; left: 18px; bottom: 24px; }
  .rows { margin-top: -14px; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 14px 9px; }
  .card .ct { font-size: 12.5px; margin-top: 7px; }
  .card .cs { font-size: 11px; }
  .content-head { margin-bottom: 12px; }
  .content-head h1 { font-size: 22px; }
  .seg { margin: 0 0 12px; }
  .mobile-cat { padding: 0 0 14px; }

  /* detail opens as a full-screen page */
  .modal:has(.modal-card.detail) { padding: 0; }
  .modal-card.detail { width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; padding-bottom: env(safe-area-inset-bottom); }
  .modal-card.detail .modal-x { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; }
  .d-hero { min-height: 0; padding: 0; display: block; }
  .d-hero .bg { position: relative; height: 240px; inset: auto; display: block; }
  .d-hero::after { inset: 0 0 auto; height: 240px; background: linear-gradient(to top, #0e1018 2%, rgba(14, 16, 24, .3) 60%, rgba(14, 16, 24, .5)); }
  .d-top { display: block; padding: 0 18px; margin-top: -54px; }
  .d-top .pst { display: none; }
  .d-top h1 { font-size: 26px; }
  .d-top .actions .btn.white { flex: 1 1 100%; justify-content: center; height: 48px; }
  .d-top .actions .btn.glass { flex: 1; justify-content: center; }
  .d-body { padding: 18px; }
  .d-facts { grid-template-columns: 90px 1fr; }
  .ep { grid-template-columns: 128px 1fr; gap: 12px; padding: 8px 0; }
  .ep .p { -webkit-line-clamp: 2; }

  /* live: phones have hardware volume keys; keep the overlay controls on one line */
  .hud .vol input { display: none; }
  .hud-bot { gap: 8px; padding: 10px 12px; }
  .hud-top { padding: 12px; }
  .hud .icon-btn { width: 36px; height: 36px; }
}
/* snapping must respect the rail's side padding (first card was glued to the edge) */
.rail { scroll-padding-inline: 44px; }
@media (max-width: 960px) { .rail { scroll-padding-inline: 16px; } }
@media (max-width: 960px) { .content-head .count { display: none; } .content-head select { margin-left: auto; } }
/* seek bar: time under the pointer */
.vp-tip { position: absolute; bottom: 22px; transform: translateX(-50%); padding: 4px 8px; border-radius: 7px; background: rgba(10, 10, 16, .92); border: 1px solid var(--line); color: #fff; font: 600 12px Inter; font-variant-numeric: tabular-nums; pointer-events: none; white-space: nowrap; }
.vp-seek { touch-action: none; }
@media (max-width: 960px) { .vp-seek { height: 26px; } }
/* grids without a category list (favorites, +18): full width */
.split.nocats { grid-template-columns: 1fr; }
.split.nocats .cats, .split.nocats .mobile-cat { display: none; }
.content-head .btn { margin-left: 8px; }
/* the +18 tab stays low-key */
.tabs a.tab-adult { color: var(--dim); }
.tabs a.tab-adult.active { color: #fff; }
/* adult section: videos / live switch */
.adult-seg { display: inline-flex; margin: 0 0 16px; }
.adult-seg a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: .2s; }
.adult-seg a svg { width: 16px; height: 16px; }
.adult-seg a small { color: var(--dim); font-weight: 600; font-variant-numeric: tabular-nums; }
.adult-seg a:hover { color: #fff; }
.adult-seg a.active { background: #fff; color: #0a0a0f; }
.adult-seg a.active small { color: #6b6f80; }
.adult-top { padding: 14px 14px 0; }
.adult-top .adult-seg { margin: 0; width: 100%; }
.adult-top .adult-seg a { flex: 1; justify-content: center; }
.live.nocats { grid-template-columns: 360px 1fr; }
.live.nocats .cats, .live.nocats .mobile-cat { display: none; }
@media (max-width: 1200px) { .live.nocats { grid-template-columns: 300px 1fr; } }
@media (max-width: 960px) { .adult-top { order: -2; padding: 12px 14px; } }
/* phone tab bar with 6 items: labels on one line */
@media (max-width: 960px) {
  .tabs a { flex: 1; min-width: 0; padding: 6px 2px; }
  .tabs a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tabs a.tab-adult { flex: 0 0 44px; }
}
/* adult section PIN */
.adult-set { display: grid; gap: 10px; }
.pin-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-left: 28px; }
.pin-row[hidden] { display: none; }
.pin-state { font-size: 13px; color: var(--muted); margin-right: 4px; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.pin-ov { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(3, 3, 6, .78); backdrop-filter: blur(12px); animation: fade .2s; }
.pin-card { width: min(320px, 100%); padding: 26px 22px 20px; border-radius: 22px; background: #0e1018; border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; animation: pop .25s; }
.pin-card.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pin-lock { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: var(--surface2); }
.pin-lock svg { width: 24px; height: 24px; }
.pin-card h3 { margin: 0; font-size: 18px; }
.pin-msg { margin: 6px 0 14px; font-size: 13px; color: var(--muted); min-height: 18px; }
.pin-msg.bad { color: #ff8fa3; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin-bottom: 20px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); transition: .15s; }
.pin-dots i.on { background: #fff; border-color: #fff; transform: scale(1.1); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pin-pad button { height: 58px; border-radius: 16px; background: var(--surface2); font: 600 22px Inter; color: #fff; transition: background .15s, transform .1s; }
.pin-pad button:hover { background: var(--surface3); }
.pin-pad button:active { transform: scale(.95); }
.pin-pad button.pin-sm { font-size: 14px; color: var(--muted); background: transparent; }

/* status bar / notch (home-screen app draws under it) + iOS home-screen viewport bug (--gap) */
.topbar { height: calc(var(--top) + var(--sat)); padding-top: var(--sat); padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
@media (min-width: 961px) { .topbar { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); } }
@media (max-width: 960px) { .tabs { bottom: calc(-1 * var(--gap)); } }
.player-overlay, .modal, .pin-ov { inset: 0 0 calc(-1 * var(--gap)); }
.vp-top { padding-top: calc(16px + var(--sat)); padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.vp-controls { padding-bottom: calc(18px + var(--sab)); padding-left: max(22px, env(safe-area-inset-left)); padding-right: max(22px, env(safe-area-inset-right)); }
.toasts { bottom: calc(22px + var(--sab) - var(--gap)); }
@media (max-width: 960px) { .toasts { bottom: calc(84px + var(--sab) - var(--gap)); } }
.modal { padding-top: max(30px, calc(var(--sat) + 12px)); padding-bottom: max(30px, calc(var(--sab) + 12px)); }
