/* Nava TV — оболочка.
   Сцена нарисована в пикселях 1920×1080 и масштабируется под экран.
   Размеры крупнее настольных: телевизор смотрят с трёх метров. */
/* Inter 3.19 (SIL OFL, shell/fonts/LICENSE.txt). WOFF, а не WOFF2: его читает и WebKit старых LG. */
@font-face { font-family: "Inter"; font-weight: 300; src: local("Inter Light"), local("Inter-Light"), url("../fonts/Inter-Light.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 400; src: local("Inter Regular"), local("Inter-Regular"), url("../fonts/Inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; src: local("Inter Medium"), local("Inter-Medium"), url("../fonts/Inter-Medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; src: local("Inter SemiBold"), local("Inter-SemiBold"), url("../fonts/Inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700; src: local("Inter Bold"), local("Inter-Bold"), url("../fonts/Inter-Bold.woff") format("woff"); }
:root {
  --text: #171c26; --text-2: #454f61; --text-3: #6f798b;
  --accent: #4a60d8; --accent-2: #7c93ff;
  --glass: rgba(232, 240, 250, .62);
  --raised: rgba(242, 247, 253, .86);
  --track: #0f1217; --fill: #eaf2ff;
  --danger: #c94a5c;
  --glide: cubic-bezier(.16, 1, .3, 1);
  --silk: cubic-bezier(.45, 0, .1, 1);
  --flow: cubic-bezier(.65, 0, .35, 1);
  --away: cubic-bezier(.55, 0, .9, .4);
  --ring: 0 0 0 3px rgba(255,255,255,.95), 0 0 0 6px var(--accent);
  --ui: "Inter", "Inter Variable", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #0d0f1c; overflow: hidden; font-family: var(--ui); color: var(--text); cursor: default;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
body.nocursor, body.nocursor * { cursor: none !important; }
#stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden; transform-origin: 0 0; background: #cfc8ec; user-select: none; }
.layer { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
svg.ic { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 24px 60px -24px rgba(60, 56, 120, .35);
}
kbd { font: 600 15px var(--ui); color: var(--text-2); padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,.7); border: 1px solid rgba(23,28,38,.08); }

/* ── обои и герой ────────────────────────────────── */
#tint { transition: background 900ms var(--flow); mix-blend-mode: soft-light; }
.hero-art { position: absolute; right: 0; top: 0; width: 1280px; height: 780px; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 700ms var(--flow);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%), linear-gradient(180deg, #000 52%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 42%), linear-gradient(180deg, #000 52%, transparent 100%); mask-composite: intersect; }
.hero-art.show { opacity: 1; }
.hero-art .glyph { position: absolute; right: 150px; top: 140px; color: rgba(255,255,255,.62); filter: drop-shadow(0 20px 50px rgba(40,30,110,.18)); }
.hero-art .mono { position: absolute; right: 200px; top: 190px; font-size: 300px; font-weight: 700; letter-spacing: -.06em; color: rgba(255,255,255,.55); line-height: 1; }
#heroWrap { transition: opacity 460ms var(--glide); }
#heroWrap.dim { opacity: .28; }

/* ── верхняя строка ───────────────────────────────── */
#top { position: absolute; left: 120px; right: 120px; top: 44px; height: 64px; display: flex; align-items: center; justify-content: space-between; z-index: 5; }
.brand { font-size: 34px; font-weight: 600; letter-spacing: -.04em; color: var(--text); display: flex; align-items: baseline; gap: 10px; min-width: 300px; }
.brand small { font-size: 15px; font-weight: 600; letter-spacing: .18em; color: var(--accent); text-transform: uppercase; }
.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; }
.tab { height: 48px; padding: 0 26px; border-radius: 999px; display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; color: var(--text-2);
  transition: background 160ms var(--glide), color 160ms var(--glide), box-shadow 160ms var(--glide); }
.tab.sel { color: var(--text); background: rgba(255, 255, 255, .55); }
.tab.on { color: #fff; background: var(--accent); box-shadow: 0 10px 24px -8px rgba(74, 96, 216, .7); }
.status { display: flex; align-items: center; justify-content: flex-end; gap: 18px; font-size: 22px; font-weight: 500; color: var(--text); min-width: 300px; }
.status .date { color: var(--text-2); font-size: 18px; }
.status #cursorPill { display: flex; gap: 10px; }
.status .pill { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--accent); padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.6); }

/* ── прокрутка содержимого ────────────────────────── */
#view { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 96px, #000 180px); mask-image: linear-gradient(180deg, transparent 96px, #000 180px); }
#scroller { position: absolute; left: 0; top: 0; width: 1920px; transition: transform 520ms var(--glide); }

.hero-text { padding: 228px 120px 0; height: 640px; transition: opacity 260ms var(--glide), transform 260ms var(--glide); }
.hero-text.out { opacity: 0; transform: translateY(12px); transition-duration: 120ms; transition-timing-function: var(--away); }
.eyebrow { font-size: 17px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.h-title { margin-top: 14px; font-size: 76px; line-height: 1.02; font-weight: 650; letter-spacing: -.04em; max-width: 900px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h-meta { margin-top: 18px; font-size: 20px; color: var(--text-2); display: flex; gap: 14px; align-items: center; }
.h-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.h-meta .badge { padding: 3px 10px; border-radius: 8px; border: 1.5px solid var(--text-3); font-size: 15px; font-weight: 600; color: var(--text-2); }
.h-desc { margin-top: 18px; font-size: 22px; line-height: 1.45; color: var(--text-2); max-width: 760px; min-height: 64px; }
.h-btns { margin-top: 34px; display: flex; gap: 16px; }
.btn { height: 64px; padding: 0 34px 0 28px; border-radius: 999px; display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 600;
  transition: transform 240ms var(--glide), box-shadow 240ms var(--glide), background 160ms var(--glide), color 160ms var(--glide); }
.btn.primary { background: var(--text); color: #fff; }
.btn.secondary { color: var(--text); }
.btn.on { transform: scale(1.06); }
.btn.primary.on { background: var(--accent); box-shadow: var(--ring), 0 18px 40px -12px rgba(74,96,216,.7); }
.btn.secondary.on { background: #fff; box-shadow: var(--ring), 0 18px 40px -12px rgba(60,56,120,.45); }

.row { padding: 0 0 56px; }
.row h2 { padding: 0 120px; font-size: 27px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 22px; display: flex; align-items: baseline; gap: 14px; }
.row h2 span { font-size: 18px; font-weight: 500; color: var(--text-3); }
.track { display: flex; gap: 32px; padding: 0 120px; transition: transform 460ms var(--glide); }

.item { flex: none; transition: transform 280ms var(--glide); }
.item .ring { position: relative; overflow: hidden; border-radius: 22px; background-size: cover; background-position: center;
  box-shadow: 0 14px 34px -18px rgba(60, 56, 120, .5); transition: box-shadow 280ms var(--glide); }
.item .ring::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); pointer-events: none; }
.item.on { transform: translateY(-8px) scale(1.07); }
.item.on .ring { box-shadow: var(--ring), 0 30px 60px -18px rgba(50, 46, 110, .6); }
.item .sheen { position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); opacity: 0; pointer-events: none; }
.item.on .sheen { animation: sheen 900ms var(--silk) 120ms; }
@keyframes sheen { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 1; } }
.cap { margin-top: 16px; padding: 0 4px; }
.cap b { display: block; font-size: 21px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap i { display: block; font-style: normal; margin-top: 4px; font-size: 17px; color: var(--text-3); transition: color 160ms; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item.on .cap i { color: var(--text-2); }

.wide .ring { width: 448px; height: 252px; }
.wide .cap { width: 448px; }
.prog { position: absolute; left: 18px; right: 18px; bottom: 16px; height: 6px; border-radius: 3px; background: rgba(15, 18, 23, .35); overflow: hidden; }
.prog > div { height: 100%; border-radius: 3px; background: var(--fill); box-shadow: 0 0 10px rgba(234, 242, 255, .9); }
.left { position: absolute; left: 18px; bottom: 32px; padding: 5px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--text); background: rgba(242,247,253,.8); }

/* плитка приложения: монограмма и значок категории — без чужих логотипов */
.app .ring { width: 172px; height: 172px; border-radius: 46px; display: flex; align-items: center; justify-content: center; color: #fff; }
.app .ring::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit; background: radial-gradient(120% 80% at 30% 0%, rgba(255,255,255,.45), transparent 55%); }
.app .ring svg { position: relative; filter: drop-shadow(0 4px 10px rgba(0,0,0,.18)); }
.app .mono { position: relative; font-size: 62px; font-weight: 650; letter-spacing: -.05em; text-shadow: 0 4px 16px rgba(0,0,0,.15); }
.app .cat { position: absolute; right: 18px; bottom: 16px; opacity: .85; }
.app .fav { position: absolute; left: 18px; top: 16px; color: #fff; opacity: .95; }
.app .cap { width: 172px; text-align: center; }

.poster .ring { width: 244px; height: 352px; }
.poster .cap { width: 244px; }
.poster .ring .ext { position: absolute; left: 16px; top: 16px; padding: 4px 10px; border-radius: 8px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); background: rgba(242,247,253,.8); }

.chan .ring { width: 300px; height: 169px; }
.chan .cap { width: 300px; }
.chan .num { position: absolute; left: 16px; top: 14px; font-size: 18px; font-weight: 700; color: rgba(255,255,255,.95); text-shadow: 0 2px 10px rgba(0,0,0,.25); font-variant-numeric: tabular-nums; }
.chan .cn { position: absolute; left: 18px; right: 18px; bottom: 14px; font-size: 30px; font-weight: 650; letter-spacing: -.03em; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.25);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more .ring { display: flex; align-items: center; justify-content: center; color: var(--text); background: rgba(255,255,255,.5); }
.more .ring b { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; }

/* ── оверлеи: приложение, канал, плеер ───────────── */
.ov { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 20; overflow: hidden; transition: clip-path 560ms var(--glide); background-size: cover; background-position: center; }
.ov.closing { transition: clip-path 380ms var(--silk), opacity 380ms var(--away); }
.ov .art { position: absolute; top: -4%; right: -4%; bottom: -4%; left: -4%; background-size: cover; background-position: center; animation: drift 40s linear infinite alternate; }
.ov.paused .art { animation-play-state: paused; }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -1.5%); } }
.ov .shade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(23,28,38,.18) 0%, transparent 30%, transparent 55%, rgba(23,28,38,.45) 100%); }
.ov video { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.ov .ui { transition: opacity 300ms var(--glide), transform 300ms var(--glide); }
.ov.idle .ui { opacity: 0; transform: translateY(16px); }
.ov.idle .ui.top { transform: translateY(-16px); }
.ov.idle { cursor: none; }
.pl-top { position: absolute; left: 120px; top: 92px; color: #fff; text-shadow: 0 2px 24px rgba(23,28,38,.35); }
.pl-top .eyebrow { color: rgba(255,255,255,.85); }
.pl-top .t { margin-top: 10px; font-size: 56px; font-weight: 650; letter-spacing: -.035em; }
.pl-top .m { margin-top: 8px; font-size: 20px; opacity: .9; }
.pl-bar { position: absolute; left: 120px; right: 120px; bottom: 72px; height: 104px; border-radius: 34px; display: flex; align-items: center; gap: 28px; padding: 0 34px 0 22px; }
.pl-btn { width: 64px; height: 64px; border-radius: 50%; background: var(--text); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: var(--ring); }
.pl-time { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); min-width: 76px; }
.pl-time.r { text-align: right; color: var(--text-2); }
.pl-track { position: relative; flex: 1; height: 14px; border-radius: 7px; background: var(--track); }
.pl-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: var(--fill); box-shadow: 0 0 16px rgba(234,242,255,.9); transition: width 250ms linear; }
.pl-knob { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.35); transition: left 250ms linear; }
.pl-wait { position: absolute; left: 50%; top: 50%; margin: -17px 0 0 -17px; }
.seek { position: absolute; top: 50%; left: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 650; color: var(--text); opacity: 0; transform: scale(.85); pointer-events: none; }
.seek.go { animation: pop 620ms var(--glide); }
@keyframes pop { 0% { opacity: 0; transform: scale(.8); } 25% { opacity: 1; transform: scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: scale(1.05); } }

.app-ov { display: flex; align-items: center; justify-content: center; color: #fff; }
.app-ov::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: radial-gradient(70% 60% at 30% 10%, rgba(255,255,255,.4), transparent 60%); }
.app-ov .c { position: relative; text-align: center; transition: opacity 400ms var(--glide) 160ms, transform 500ms var(--glide) 160ms; }
.app-ov.pre .c { opacity: 0; transform: scale(.9); }
.app-ov .c .tile { width: 196px; height: 196px; margin: 0 auto; border-radius: 54px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 30px 70px -20px rgba(0,0,0,.35);
  font-size: 76px; font-weight: 650; letter-spacing: -.05em; }
.app-ov .c h1 { margin-top: 36px; font-size: 64px; font-weight: 650; letter-spacing: -.035em; }
.app-ov .c p { margin-top: 12px; font-size: 22px; opacity: .85; }
.app-ov .c .note { margin-top: 34px; font-size: 19px; opacity: .8; }
.spin { width: 34px; height: 34px; margin: 34px auto 0; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── поиск ───────────────────────────────────────── */
.modal { z-index: 30; pointer-events: none; }
.modal .scrim { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(23, 28, 38, .28); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 0; transition: opacity 300ms var(--glide); }
.modal.open { pointer-events: auto; }
.modal.open .scrim { opacity: 1; }
.sbox { position: absolute; left: 50%; top: 110px; width: 1040px; margin-left: -520px; height: 96px; border-radius: 32px; display: flex; align-items: center; gap: 22px; padding: 0 30px;
  background: rgba(242, 247, 253, .86); opacity: 0; transform: translateY(-24px) scale(.97); transition: opacity 300ms var(--glide), transform 300ms var(--glide), box-shadow 160ms; }
.sbox.on { box-shadow: var(--ring); }
.sbox input { flex: 1; border: 0; outline: 0; background: transparent; font: 500 34px var(--ui); color: var(--text); letter-spacing: -.01em; caret-color: var(--accent); min-width: 0; }
.sbox input::placeholder { color: var(--text-3); }
.sbox .ttl { font-size: 20px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.sres { position: absolute; left: 50%; top: 222px; width: 1040px; margin-left: -520px; border-radius: 32px; padding: 14px; max-height: 404px; overflow: hidden;
  background: rgba(242, 247, 253, .82); opacity: 0; transform: translateY(-16px); transition: opacity 300ms var(--glide) 40ms, transform 300ms var(--glide) 40ms; }
.modal.open .sbox, .modal.open .sres, .modal.open .osk { opacity: 1; transform: none; }
.sres .lbl { padding: 10px 18px 8px; font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.res { display: flex; align-items: center; gap: 22px; height: 84px; padding: 0 18px 0 12px; border-radius: 22px; transition: background 120ms var(--glide); }
.res .th { width: 112px; height: 60px; border-radius: 14px; background-size: cover; background-position: center; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; font-weight: 650; letter-spacing: -.04em; }
.res .tx { min-width: 0; }
.res .tx b { display: block; font-size: 23px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res .tx i { display: block; font-style: normal; font-size: 17px; color: var(--text-3); margin-top: 2px; }
.res .go { margin-left: auto; opacity: 0; color: var(--accent); }
.res.on { background: #fff; box-shadow: 0 0 0 3px var(--accent), 0 16px 34px -16px rgba(60,56,120,.45); }
.res.on .go { opacity: 1; }
.res mark { background: rgba(74, 96, 216, .16); color: var(--accent); border-radius: 4px; padding: 0 2px; }
.none { padding: 26px 18px; font-size: 21px; color: var(--text-3); }

/* ── экранная клавиатура ─────────────────────────── */
.osk { position: absolute; left: 50%; bottom: 48px; width: 1040px; margin-left: -520px; border-radius: 32px; padding: 18px; display: flex; flex-direction: column; gap: 10px;
  background: rgba(242, 247, 253, .86); opacity: 0; transform: translateY(24px); transition: opacity 300ms var(--glide) 60ms, transform 300ms var(--glide) 60ms; }
.osk-row { display: flex; gap: 10px; justify-content: center; }
.osk-k { height: 62px; min-width: 0; max-width: 220px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 550; background: rgba(255,255,255,.7);
  transition: background 100ms, color 100ms, transform 160ms var(--glide), box-shadow 160ms var(--glide); }
.osk-k.sp { font-size: 19px; font-weight: 600; color: var(--text-2); background: rgba(255,255,255,.45); }
.osk-k.sp-done { background: var(--text); color: #fff; }
.osk-k.act { background: var(--accent-2); color: #fff; }
.osk-k.on { background: var(--accent); color: #fff; transform: scale(1.08); box-shadow: var(--ring); z-index: 1; }
.osk.idle .osk-k.on { background: rgba(255,255,255,.7); color: var(--text); transform: none; box-shadow: none; }

/* ── список (Wi-Fi, регион, питание, все каналы) ── */
.sheet { position: absolute; left: 50%; top: 50%; width: 820px; margin-left: -410px; border-radius: 36px; padding: 30px 22px 22px;
  background: rgba(242, 247, 253, .88); opacity: 0; transform: translateY(-46%) scale(.96); transition: opacity 280ms var(--glide), transform 280ms var(--glide); }
.modal.open .sheet { opacity: 1; transform: translateY(-50%); }
.sheet h3 { padding: 0 18px; font-size: 32px; font-weight: 650; letter-spacing: -.03em; }
.sheet .sub { padding: 6px 18px 0; font-size: 18px; color: var(--text-3); }
.sheet .items { margin-top: 18px; max-height: 600px; overflow: hidden; position: relative; }
.sheet .inner { transition: transform 300ms var(--glide); }
.sheet .res .th { width: 60px; height: 60px; border-radius: 18px; background: rgba(255,255,255,.75); color: var(--text-2); }
.sheet .res.cur .th { background: var(--accent); color: #fff; }
.sheet .res .side { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 18px; color: var(--text-3); }
.sheet .res.danger .tx b { color: var(--danger); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.bars span { width: 5px; border-radius: 2px; background: rgba(23,28,38,.18); }
.bars span.f { background: var(--text-2); }

/* ── быстрые настройки ───────────────────────────── */
#panel { position: absolute; z-index: 25; top: 36px; right: 36px; bottom: 36px; width: 560px; border-radius: 40px; padding: 40px 36px;
  background: rgba(232, 240, 250, .78); transform: translateX(620px); opacity: .4; transition: transform 280ms var(--away), opacity 280ms var(--away); }
#panel.open { transform: none; opacity: 1; transition: transform 460ms var(--glide), opacity 300ms var(--glide); }
.pn-time { font-size: 72px; font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.pn-date { margin-top: 8px; font-size: 20px; color: var(--text-2); }
.pn-grid { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; }
.pn-grid .tg { width: calc(50% - 8px); margin-bottom: 12px; }
.tg { height: 100px; border-radius: 26px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255,255,255,.55);
  transition: background 160ms var(--glide), color 160ms var(--glide), transform 240ms var(--glide), box-shadow 240ms var(--glide); }
.tg b { display: block; font-size: 20px; font-weight: 600; }
.tg i { display: block; margin-top: 2px; font-style: normal; font-size: 16px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg.act { background: var(--accent); color: #fff; }
.tg.act i { color: rgba(255,255,255,.8); }
.tg.on, .sl.on { transform: scale(1.04); box-shadow: var(--ring), 0 18px 34px -14px rgba(60,56,120,.45); }
.sl { margin-top: 26px; height: 96px; border-radius: 26px; padding: 0 24px; display: flex; align-items: center; gap: 18px; background: rgba(255,255,255,.55);
  transition: transform 240ms var(--glide), box-shadow 240ms var(--glide); }
.sl .bar { position: relative; flex: 1; height: 14px; border-radius: 7px; background: var(--track); }
.sl .bar > div { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: var(--fill); box-shadow: 0 0 14px rgba(234,242,255,.95); transition: width 160ms var(--glide); }
.sl .v { width: 56px; text-align: right; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-2); }
.pn-foot { position: absolute; left: 36px; right: 36px; bottom: 36px; display: flex; justify-content: space-between; font-size: 16px; color: var(--text-3); }

/* ── громкость поверх ────────────────────────────── */
#osd { position: absolute; z-index: 46; right: 60px; top: 40px; height: 64px; width: 360px; padding: 0 22px; border-radius: 999px; display: flex; align-items: center; gap: 16px;
  background: rgba(242,247,253,.9); opacity: 0; transform: translateY(-20px); transition: opacity 240ms var(--glide), transform 240ms var(--glide); }
#osd.show { opacity: 1; transform: none; }
#osd .bar { position: relative; flex: 1; height: 12px; border-radius: 6px; background: var(--track); }
#osd .bar > div { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--fill); transition: width 120ms; }
#osd .v { width: 40px; text-align: right; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-2); }

/* ── заставка, загрузка ──────────────────────────── */
#saver { z-index: 40; opacity: 0; pointer-events: none; transition: opacity 900ms var(--flow); overflow: hidden; }
#saver.on { opacity: 1; pointer-events: auto; }
#saver .w { position: absolute; top: -6%; right: -6%; bottom: -6%; left: -6%; animation: drift 60s ease-in-out infinite alternate; }
#saver .clock { position: absolute; left: 140px; bottom: 150px; color: #fff; text-shadow: 0 4px 40px rgba(60,56,120,.35); }
#saver .clock b { display: block; font-size: 200px; font-weight: 250; letter-spacing: -.05em; line-height: .9; }
#saver .clock i { display: block; font-style: normal; margin-top: 18px; font-size: 30px; font-weight: 500; opacity: .92; }
#saver .mark { position: absolute; right: 140px; bottom: 160px; font-size: 28px; font-weight: 600; letter-spacing: -.03em; color: rgba(255,255,255,.85); }

#boot { z-index: 50; display: flex; align-items: center; justify-content: center; transition: opacity 500ms var(--flow); }
#boot .c { position: relative; text-align: center; color: #fff; text-shadow: 0 6px 40px rgba(60,56,120,.4); }
#boot .c b { display: block; font-size: 150px; font-weight: 600; letter-spacing: -.055em; animation: rise 900ms var(--glide) both 150ms; }
#boot .c i { display: block; font-style: normal; font-size: 28px; font-weight: 500; letter-spacing: .02em; opacity: .9; animation: rise 900ms var(--glide) both 380ms; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(12px); } to { opacity: 1; transform: none; filter: blur(0); } }
#boot.gone { opacity: 0; pointer-events: none; }
.enter { animation: rise 760ms var(--glide) both; }
#blank { z-index: 70; background: #000; opacity: 0; pointer-events: none; transition: opacity 600ms var(--flow); }
#blank.on { opacity: 1; pointer-events: auto; }

#hint { position: absolute; z-index: 15; left: 50%; bottom: 34px; transform: translateX(-50%); height: 52px; padding: 0 22px; border-radius: 999px;
  display: flex; align-items: center; gap: 20px; font-size: 16px; color: var(--text-2); white-space: nowrap; transition: opacity 600ms var(--glide); }
#hint span { display: flex; align-items: center; gap: 8px; }
#hint.hide { opacity: 0; }
#toast { position: absolute; z-index: 45; left: 50%; top: 124px;   /* под шапкой: не закрывает вкладки */ height: 60px; max-width: 1400px; padding: 0 26px 0 20px; border-radius: 999px; display: flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 600; background: rgba(242,247,253,.9); transform: translate(-50%, -230px); opacity: 0; transition: transform 360ms var(--glide), opacity 200ms; white-space: nowrap; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#toast .ok { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
#toast.err .ok { background: var(--danger); }
#toast span:last-child { overflow: hidden; text-overflow: ellipsis; }

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

/* ── прямой эфир во встроенном плеере ────────────── */
.ov.live .art { transition: opacity 400ms var(--flow); }
.pl-hint { flex: 1; font-size: 18px; color: var(--text-2); text-align: center; }

/* ── курсор Magic Remote (webOS) ─────────────────── */
/* Курсором наводятся крупные цели: подсветка наведения — та же обводка фокуса. */
body.pointer .res:hover, body.pointer .tg:hover { background: #fff; }
body.pointer .osk-k:hover { background: rgba(255,255,255,.95); }

/* ── облегчённый режим: старые и слабые телевизоры (нет размытия за стеклом) ──
   Телевизор 4K рисует страницу с двойной плотностью: каждый кадр — 3840×2160.
   Убираем всё, что перерисовывает большие площади: маски, смешивание цветов,
   SVG-обои, размытые тени, масштабирование и анимации сдвига. */
.lite #wall, .lite #boot .w, .lite #saver .w { background: linear-gradient(160deg, #dcdaf4, #cfc8ec 45%, #e2cfe6) !important; }
.lite #tint { display: none; }
.lite #view { -webkit-mask-image: none; mask-image: none; top: 150px; }  /* обрезка вместо маски: дёшево */
.lite #scroller { margin-top: -150px; }
.lite .hero-art { -webkit-mask-image: none; mask-image: none; -webkit-transition: none; transition: none; background: none !important; }
.lite #heroB { display: none; }
.lite .hero-art .glyph { right: 170px; top: 170px; color: rgba(255,255,255,.75); -webkit-filter: none; filter: none; }
.lite .hero-art .logo { position: absolute; right: 190px; top: 170px; width: 380px; height: 380px; border-radius: 96px; }
.lite #heroWrap, .lite #scroller, .lite .track, .lite .item, .lite .item .ring, .lite .hero-text,
.lite .tab, .lite .btn, .lite .tg, .lite .sl, .lite .res, .lite .osk-k { -webkit-transition: none; transition: none; }
.lite .item.on, .lite .btn.on, .lite .tg.on, .lite .sl.on, .lite .osk-k.on { -webkit-transform: none; transform: none; }
.lite .item .ring, .lite .item.on .ring, .lite .glass, .lite .btn.primary.on, .lite .btn.secondary.on, .lite .tab.on, .lite #toast, .lite .res.on,
.lite .tg.on, .lite .sl.on, .lite .osk-k.on { box-shadow: none; }
/* Рамка фокуса нарисована заранее и только показывается (visibility). На старом WebKit
   смена box-shadow, opacity или transform пересчитывает раскладку всей страницы — ~110 мс
   на каждое нажатие стрелки; visibility перерисовывает только саму рамку. */
.lite .btn, .lite .tg, .lite .sl, .lite .osk-k, .lite .res { position: relative; }
.lite .osk-k { z-index: 1; }
.lite .btn::after, .lite .tg::after, .lite .sl::after, .lite .osk-k::after, .lite .res::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #4a60d8; visibility: hidden; }
.lite .res::after { box-shadow: 0 0 0 3px #4a60d8; }
.lite .item .ring::after { display: block; box-shadow: inset 0 0 0 5px #4a60d8, inset 0 0 0 8px #fff; visibility: hidden; }
.lite .item.on .ring::after, .lite .btn.on::after, .lite .tg.on::after, .lite .sl.on::after, .lite .osk-k.on::after, .lite .res.on::after { visibility: visible; }
.lite .osk.idle .osk-k.on::after { visibility: hidden; }
.lite .app .ring::before { display: none; }
.lite .app .ring svg { -webkit-filter: none; filter: none; }
.lite .glass, .lite .sbox, .lite .sres, .lite .osk, .lite .sheet, .lite #panel, .lite #toast, .lite #osd {
  background: rgba(238, 243, 252, .96); -webkit-backdrop-filter: none; backdrop-filter: none; }
.lite .modal .scrim { background: rgba(23, 28, 38, .55); -webkit-backdrop-filter: none; backdrop-filter: none; -webkit-transition: none; transition: none; }
.lite .modal .sbox, .lite .modal .sres, .lite .modal .osk, .lite .modal .sheet, .lite #panel { -webkit-transition: none; transition: none; }
.lite .ov { -webkit-transition: opacity 160ms linear; transition: opacity 160ms linear; }
.lite .ov .art, .lite #saver .w { -webkit-animation: none; animation: none; }
.lite .item.on .sheen, .lite .sheen { display: none; }
.lite .enter { -webkit-animation: none; animation: none; }

/* ── иконки сервисов (shell/logos) ───────────────── */
.ring .logo, .th .logo, .tile .logo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: inherit; }
.ring .logo.cover, .th .logo.cover, .tile .logo.cover { object-fit: cover; }
.ring .logo.contain, .th .logo.contain, .tile .logo.contain { object-fit: contain; padding: 18%; background: #fff; }
.th .logo.contain { padding: 10%; }
.app .ring .logo ~ .fav { z-index: 1; }
.res .th, .app-ov .c .tile { position: relative; overflow: hidden; }
.hero-art .logo { position: absolute; right: 190px; top: 170px; width: 380px; height: 380px; border-radius: 96px; object-fit: cover;
  box-shadow: 0 40px 90px -30px rgba(40, 30, 110, .45); }
.hero-art .logo.contain { object-fit: contain; padding: 70px; background: #fff; }
.hero-art .logo + .glyph { display: none; }
/* иконка загружена — рисованный значок под ней не нужен (не загрузилась — img удаляется, значок виден) */
.logo + svg.ic { display: none; }
.ring .logo, .th .logo, .tile .logo { background: #fff; }
.lite .hero-art .logo { box-shadow: none; }

/* ── тёмное оформление (класс dark на <html>) ───────
   Переменные меняют текст и стекло; светлые подложки ниже заданы явно. */
.dark {
  --text: #eef1fa; --text-2: #b6bdd8; --text-3: #8890b0;
  --glass: rgba(30, 34, 66, .58); --raised: rgba(36, 40, 74, .88);
  --track: #05060c; --fill: #eaf2ff;
  --ring: 0 0 0 3px rgba(16, 18, 38, .95), 0 0 0 6px var(--accent-2);
}
.dark #stage { background: #1b1c3f; }
.dark .glass { border-color: rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 24px 60px -24px rgba(0,0,0,.6); }
.dark kbd { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.12); }
.dark .tab.sel, .dark .status .pill { background: rgba(255,255,255,.12); }
.dark .status .pill { color: var(--accent-2); }
.dark .eyebrow, .dark .brand small { color: var(--accent-2); }
.dark .btn.primary, .dark .pl-btn, .dark .osk-k.sp-done { background: #eef1fa; color: #161a2c; }
.dark .btn.primary.on { background: var(--accent); color: #fff; }
.dark .btn.secondary.on { background: rgba(255,255,255,.16); }
.dark .item .ring { box-shadow: 0 14px 34px -18px rgba(0,0,0,.7); }
.dark .item .ring::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.dark .item.on .ring { box-shadow: var(--ring), 0 30px 60px -18px rgba(0,0,0,.75); }
.dark .left, .dark .poster .ring .ext { background: rgba(20, 22, 46, .8); }
.dark .more .ring { background: rgba(255,255,255,.08); }
.dark .sbox, .dark .sres, .dark .osk, .dark .sheet, .dark #osd, .dark #toast { background: rgba(30, 33, 64, .88); }
.dark #panel { background: rgba(26, 29, 58, .82); }
.dark .res.on { background: rgba(255,255,255,.12); box-shadow: 0 0 0 3px var(--accent-2), 0 16px 34px -16px rgba(0,0,0,.6); }
.dark .res .go, .dark .res mark { color: var(--accent-2); }
.dark .osk-k { background: rgba(255,255,255,.1); }
.dark .osk-k.sp { background: rgba(255,255,255,.06); }
.dark .osk.idle .osk-k.on { background: rgba(255,255,255,.1); }
.dark .sheet .res .th { background: rgba(255,255,255,.1); }
.dark .bars span { background: rgba(255,255,255,.2); }
.dark .tg, .dark .sl { background: rgba(255,255,255,.08); }
.dark .tg.act { background: var(--accent); }
.dark .tg.on, .dark .sl.on { box-shadow: var(--ring), 0 18px 34px -14px rgba(0,0,0,.6); }
.dark .hero-art .glyph, .dark .hero-art .mono { color: rgba(255,255,255,.4); }
.dark .hero-art .logo { box-shadow: 0 40px 90px -30px rgba(0,0,0,.7); }
.dark .modal .scrim { background: rgba(6, 8, 20, .45); }
.dark body.pointer .res:hover, .dark body.pointer .tg:hover, .dark body.pointer .osk-k:hover { background: rgba(255,255,255,.14); }
.lite.dark #wall, .lite.dark #boot .w, .lite.dark #saver .w { background: linear-gradient(160deg, #141833, #1b1c3f 45%, #24193a) !important; }
.lite.dark .glass, .lite.dark .sbox, .lite.dark .sres, .lite.dark .osk, .lite.dark .sheet, .lite.dark #panel, .lite.dark #toast, .lite.dark #osd { background: rgba(30, 33, 64, .97); }
.lite.dark .btn::after, .lite.dark .tg::after, .lite.dark .sl::after, .lite.dark .osk-k::after { box-shadow: 0 0 0 3px #10122a, 0 0 0 6px #7c93ff; }
.lite.dark .item .ring::after { box-shadow: inset 0 0 0 5px #7c93ff, inset 0 0 0 8px #10122a; }
.dark .hero-art { box-shadow: inset 0 0 0 2000px rgba(22, 24, 54, .62); }  /* тень над фоном, под иконкой */
.dark #tint { opacity: .18; }

/* ── богатый режим: графика как в трейлере (мощные ТВ и мини-ПК) ──
   Живые обои: ленты и пятна света — отдельные слои, их медленно качает видеокарта
   (только transform). Проявление текста героя — как подписи трейлера. */
#wall .rw { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; pointer-events: none; }
.rich .rl { position: absolute; left: -96px; top: -64px; width: 2112px; height: 1208px; background-size: cover; background-position: center;
  will-change: transform; animation: ribbonA 46s ease-in-out infinite alternate; }
.rich .rl.l1 { animation-duration: 58s; animation-delay: -14s; }
.rich .rl.l2 { animation-name: ribbonB; animation-duration: 38s; animation-delay: -22s; }
.rich .rl.l3 { animation-name: ribbonB; animation-duration: 64s; animation-delay: -31s; }
@keyframes ribbonA { 0% { transform: translate3d(-28px, 14px, 0) rotate(-.5deg); } 50% { transform: translate3d(18px, -20px, 0) rotate(.35deg) scaleY(1.05); } 100% { transform: translate3d(40px, 12px, 0) rotate(.7deg) scaleY(.97); } }
@keyframes ribbonB { 0% { transform: translate3d(30px, -14px, 0) rotate(.45deg); } 50% { transform: translate3d(-16px, 24px, 0) rotate(-.4deg) scaleY(1.07); } 100% { transform: translate3d(-38px, -8px, 0) rotate(-.8deg); } }
.rich .ro { position: absolute; width: 1300px; height: 1300px; margin: -650px 0 0 -650px; border-radius: 50%; will-change: transform; }
.rich .ro.o1 { left: 300px; top: 220px; background: radial-gradient(circle, rgba(166,200,238,.55), rgba(166,200,238,0) 62%); animation: orbA 34s ease-in-out infinite alternate; }
.rich .ro.o2 { left: 1650px; top: 160px; background: radial-gradient(circle, rgba(239,207,220,.6), rgba(239,207,220,0) 62%); animation: orbB 41s ease-in-out infinite alternate; }
.rich .ro.o3 { left: 1400px; top: 1000px; background: radial-gradient(circle, rgba(246,220,198,.55), rgba(246,220,198,0) 62%); animation: orbA 47s ease-in-out infinite alternate-reverse; }
.rich.dark .ro.o1 { background: radial-gradient(circle, rgba(124,147,255,.4), rgba(124,147,255,0) 62%); }
.rich.dark .ro.o2 { background: radial-gradient(circle, rgba(229,143,176,.28), rgba(229,143,176,0) 62%); }
.rich.dark .ro.o3 { background: radial-gradient(circle, rgba(90,160,230,.3), rgba(90,160,230,0) 62%); }
@keyframes orbA { from { transform: translate3d(-80px, -40px, 0) scale(.95); } to { transform: translate3d(120px, 70px, 0) scale(1.08); } }
@keyframes orbB { from { transform: translate3d(60px, 50px, 0) scale(1.05); } to { transform: translate3d(-140px, -60px, 0) scale(.92); } }

/* герой: кикер выезжает, заголовок поднимается из маски, остальное — следом */
.rich .h-title .mk { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.rich .h-title .mk > span { display: inline-block; }
.rich .hero-text.reveal .eyebrow { animation: capK 700ms var(--glide) both; }
.rich .hero-text.reveal .h-title .mk > span { animation: capUp 900ms var(--glide) both 60ms; }
.rich .hero-text.reveal .h-meta { animation: capIn 700ms var(--glide) both 180ms; }
.rich .hero-text.reveal .h-desc { animation: capIn 700ms var(--glide) both 240ms; }
.rich .hero-text.reveal .h-btns { animation: capIn 700ms var(--glide) both 300ms; }
@keyframes capK { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes capUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes capIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* обложка героя мягко наплывает — как камера в трейлере */
.rich .hero-art.show { animation: heroIn 1200ms var(--glide) both; }
@keyframes heroIn { from { transform: scale(1.06); } to { transform: none; } }

/* заставка запуска — как финал трейлера: буквы из размытия, «Yours.» градиентом */
.rich #boot .c b, .rich #boot .c i { animation: none; }
.rich #boot .ch { display: inline-block; animation: chIn 1100ms var(--glide) both; }
@keyframes chIn { from { opacity: 0; transform: translateY(70px); filter: blur(16px); } to { opacity: 1; transform: none; filter: blur(0); } }
.rich #boot .grad { background: linear-gradient(100deg, #4a60d8 0%, #9a7fe0 35%, #e58fb0 65%, #f0a878 100%); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  animation: chIn 1000ms var(--glide) both, shimmer 2600ms var(--flow) both; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* смена оформления: ночь расходится кругом от плитки — переход страницы (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@media (prefers-reduced-motion: reduce) { .rich .rl, .rich .ro { animation: none; } }

/* ── Nava Store: свой магазин приложений ── */
.store { z-index: 30; overflow: hidden; opacity: 0; transition: opacity 260ms var(--glide);
  background: rgba(238,240,250,.84); -webkit-backdrop-filter: blur(40px) saturate(1.4); backdrop-filter: blur(40px) saturate(1.4); }
.store.open { opacity: 1; }
.dark .store { background: rgba(16,18,42,.86); }
.st-top { position: absolute; left: 120px; right: 120px; top: 54px; display: flex; align-items: center; justify-content: space-between; }
.st-brand { display: flex; align-items: center; gap: 16px; font-size: 36px; font-weight: 650; letter-spacing: -.03em; color: var(--text); }
.st-brand .ic { color: var(--accent); }
.st-brand span { margin-left: 4px; font-size: 20px; font-weight: 500; letter-spacing: 0; color: var(--text-3); }
.st-hint { font-size: 18px; color: var(--text-3); }
.st-hero { position: absolute; left: 120px; right: 120px; top: 150px; height: 250px; display: flex; align-items: center; }
.st-art { position: relative; width: 220px; height: 220px; margin-right: 48px; border-radius: 56px; overflow: hidden; flex: none;
  display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 30px 60px -24px rgba(50,46,110,.5); }
.st-art .logo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.st-art .logo.contain { object-fit: contain; padding: 18%; background: #fff; }
.st-name { margin-top: 10px; font-size: 64px; font-weight: 650; letter-spacing: -.04em; line-height: 1.04; color: var(--text); }
.st-about { margin-top: 12px; max-width: 1050px; font-size: 24px; line-height: 1.35; color: var(--text-2); }
.st-pills { margin-top: 20px; display: flex; align-items: center; }
.st-pill { display: inline-flex; align-items: center; height: 44px; padding: 0 20px 0 16px; border-radius: 22px; font-size: 19px; font-weight: 600;
  background: rgba(74,96,216,.12); color: var(--accent); }
.st-pill .ic { margin-right: 8px; }
.st-pill.got { background: var(--accent); color: #fff; }
.st-with { margin-left: 18px; font-size: 19px; color: var(--text-3); }
.st-view { position: absolute; left: 0; right: 0; top: 440px; bottom: 0; overflow: hidden; }
.st-scroll { transition: transform 460ms var(--glide); }
.st-row { padding-bottom: 34px; }
.st-row h3 { padding: 0 120px; margin-bottom: 20px; font-size: 26px; font-weight: 600; letter-spacing: -.015em; color: var(--text); }
.st-row h3 span { margin-left: 12px; font-size: 18px; font-weight: 500; color: var(--text-3); }
.ring .got { position: absolute; right: 12px; top: 12px; z-index: 2; width: 32px; height: 32px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; background: #fff; color: var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,.22); }
.lite .store { background: #e9e8f6; -webkit-backdrop-filter: none; backdrop-filter: none; transition: none; }
.lite.dark .store { background: #171a36; }
.lite .st-scroll, .lite .st-art { -webkit-transition: none; transition: none; box-shadow: none; }
.rich .store.open .st-name, .rich .store.open .st-art { animation: capIn 500ms var(--glide) both; }
