/* SuperTube landing. Self-contained: system fonts, no external requests. */
:root {
  --bg: #0e0c12;
  --bg2: #16131b;
  --card: rgba(255, 255, 255, .045);
  --card2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .1);
  --text: #f6f0f3;
  --muted: #bdb2ba;
  --red: #ff3d2e;
  --mag: #c2185b;
  --grad: linear-gradient(115deg, #ff5a3c 0%, #ff3d2e 30%, #e5245e 65%, #c2185b 100%);
  --radius: 22px;
  --wrap: 1180px;
  --font: "Avenir Next", "Segoe UI", Roboto, "Helvetica Neue", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
/* clip (not hidden): no horizontal panning on mobile, and no new scroll container that would break the sticky header */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font);
  overflow-x: hidden; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin: 0 auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.i { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 3px solid #ff8a7a; outline-offset: 3px; border-radius: 8px; }

/* Ambient light behind everything: slow drifting brand-colored blobs */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .32; will-change: transform; }
.aurora i:nth-child(1) { width: 56vw; height: 56vw; right: -12vw; top: -22vw; background: #ff3d2e; animation: drift1 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 46vw; height: 46vw; right: -16vw; top: 18vh; background: #c2185b; animation: drift2 32s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 38vw; height: 38vw; left: -14vw; top: -10vw; background: #5a2a8c; opacity: .22; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-8vw, 10vh) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-12vw, -8vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(10vw, 12vh) scale(1.15); } }

/* Header */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(14, 12, 18, .62); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.22rem; }
.brand b span, .foot .brand b span { color: var(--red); }
.brand img { border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 600; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--muted); }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: #1c1822;
  border: 1px solid var(--line); border-radius: 14px; min-width: 160px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.lang li a { display: block; padding: 8px 12px; border-radius: 9px; text-decoration: none; }
.lang li a:hover, .lang li a[aria-current] { background: var(--card2); }
.lang li a[aria-current] { color: #ff8a7a; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 1px solid var(--line); transition: transform .2s, box-shadow .3s, background .2s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { position: relative; background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 30px rgba(229, 36, 94, .35); isolation: isolate; }
.btn.primary::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1; background: var(--grad); filter: blur(14px); opacity: .55; transition: opacity .3s; }
.btn.primary:hover::after { opacity: .9; }
.btn.big { padding: 14px 26px 14px 22px; }
.btn.big .i { width: 1.5em; height: 1.5em; }
.btn.big span { display: flex; flex-direction: column; line-height: 1.2; text-align: left; min-width: 0; }
.btn.big small { font-weight: 500; opacity: .85; font-size: .78rem; overflow-wrap: anywhere; }
.btn.small { padding: 8px 16px; font-size: .88rem; }
.btn.ghost { background: var(--card); }
.btn.ghost:hover { background: var(--card2); }

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 60px; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto auto; width: 70%; height: 100%; z-index: -1;
  background: url(../img/ambient.webp) right top / cover no-repeat; opacity: .55;
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent), linear-gradient(to bottom, #000 60%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to left, #000 30%, transparent); }
.hero .wrap { display: grid; grid-template-columns: .92fr 1.28fr; gap: 44px; align-items: center; }
.hero .wrap { width: min(1320px, 100% - 32px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: #ffb4a8; font-size: .92rem; padding: 6px 14px;
  border: 1px solid rgba(255, 90, 60, .35); border-radius: 999px; background: rgba(255, 61, 46, .08); }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255, 61, 46, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 61, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 61, 46, 0); } }
h1 { font-size: clamp(2.4rem, 4.6vw, 4.1rem); margin: 22px 0 18px; font-weight: 800; letter-spacing: -.03em; }
h1 span { display: block; }
.grad { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 8s ease-in-out infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 600; }
.chips .i, .ticks .i { color: #ff6b57; }

/* Devices */
.stage { position: relative; perspective: 1400px; padding-bottom: 4%; }
.tilt { transition: transform .5s cubic-bezier(.2, .7, .2, 1); transform: rotateY(calc(var(--rx, 0) * 1deg)) rotateX(calc(var(--ry, 0) * -1deg)); transform-style: preserve-3d; }
.dev-tv { position: relative; width: 86%; }
.stand { display: block; width: 32%; height: 14px; margin: 8px auto 0; border-radius: 10px; background: linear-gradient(#2a2630, #19161e); }
.dev-phone { position: absolute; right: 0; top: 9%; width: 21%; pointer-events: none; border-radius: 26px; padding: 6px; background: #121016;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px rgba(0, 0, 0, .65); }
.dev-phone img { border-radius: 20px; }
.deep { --depth: 1.6; transform: translateZ(40px) rotateY(calc(var(--rx, 0) * 1.6deg)) rotateX(calc(var(--ry, 0) * -1.6deg)); }

/* Sections */
section { padding: clamp(56px, 8vw, 100px) 0; }
.head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.head p { color: var(--muted); font-size: 1.08rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.apps { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; }
.app { overflow: hidden; display: flex; flex-direction: column; }
.app-media { position: relative; overflow: hidden; background: radial-gradient(circle at 60% 30%, rgba(229, 36, 94, .35), transparent 65%), #120f17; }
.phone-media { padding: 34px 0 0; height: 300px; }
.phone-media img { width: 62%; margin: 0 auto; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); }
.tv-media { height: 300px; display: flex; align-items: center; padding: 24px; }
.tv-media img { border-radius: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.app-copy { padding: 26px 28px 30px; }
.app-copy h3 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; flex-wrap: wrap; }
.app-copy h3 .i { color: #ff6b57; }
.app-copy > p { color: var(--muted); }
.badge { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: rgba(255, 61, 46, .16);
  color: #ffb4a8; border: 1px solid rgba(255, 90, 60, .4); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .i { margin-top: .25em; }
.ticks.inline { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 6px 0 16px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { padding: 28px; transition: transform .3s, border-color .3s, background .3s; position: relative; overflow: hidden; }
.feat::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 61, 46, .14), transparent 45%);
  opacity: 0; transition: opacity .3s; pointer-events: none; }
.feat:hover { transform: translateY(-4px); border-color: rgba(255, 90, 60, .35); }
.feat:hover::before { opacity: 1; }
.feat p { color: var(--muted); margin: 0; }
.ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(229, 36, 94, .35); }
.ic .i { width: 24px; height: 24px; }
.ic.big { width: 72px; height: 72px; border-radius: 22px; flex: none; }
.ic.big .i { width: 36px; height: 36px; }

/* Gallery */
.tabs { display: flex; justify-content: center; gap: 8px; margin: -16px auto 28px; padding: 5px; width: max-content; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.tabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--muted); font: 600 .95rem var(--font);
  padding: 9px 20px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--grad); color: #fff; }
.rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 26px; scrollbar-width: thin; scrollbar-color: #3a3340 transparent; }
.shot { margin: 0; scroll-snap-align: center; flex: none; }
.shot.phone { width: 240px; }
.shot.tv { width: min(640px, 82vw); }
.shot button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px rgba(0, 0, 0, .45); transition: transform .3s, box-shadow .3s; }
.shot button:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 0 0 1px rgba(255, 90, 60, .5), 0 30px 60px rgba(0, 0, 0, .55); }
.shot.tv button { border-radius: 12px; }
.shot figcaption { color: var(--muted); font-size: .9rem; text-align: center; margin-top: 12px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; color: var(--text); overflow: visible; }
.lightbox::backdrop { background: rgba(8, 6, 10, .88); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.lightbox figcaption { text-align: center; margin-top: 12px; color: var(--muted); }
.lightbox button { position: fixed; border: 1px solid var(--line); background: rgba(30, 26, 36, .85); color: #fff; width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; }
.lb-next { right: 18px; top: 50%; }

/* Privacy, install, FAQ, final */
.privacy { display: flex; gap: 28px; padding: clamp(26px, 4vw, 44px); align-items: flex-start;
  background: radial-gradient(600px circle at 0 0, rgba(255, 61, 46, .12), transparent 60%), var(--card); }
.privacy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.privacy p { color: var(--muted); }
.more { color: #ff8a7a; font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }
.note { display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--muted); margin-top: 26px; text-align: center; }
.faqs details { border-bottom: 1px solid var(--line); }
.faqs summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: #ff6b57; transition: transform .3s; }
.faqs details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faqs p { color: var(--muted); padding-bottom: 18px; margin: 0; }
.final-card { text-align: center; padding: clamp(40px, 6vw, 70px) 24px; border-radius: 30px; position: relative; overflow: hidden;
  background: radial-gradient(800px circle at 50% 120%, rgba(229, 36, 94, .45), transparent 60%), radial-gradient(500px circle at 80% -20%, rgba(255, 61, 46, .3), transparent 60%), #17131c;
  border: 1px solid var(--line); }
.final-card img { margin: 0 auto 22px; border-radius: 22px; box-shadow: 0 16px 50px rgba(229, 36, 94, .45); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.final-card p { color: var(--muted); font-size: 1.1rem; }

/* Footer and documents */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: .9rem; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot nav a { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot .brand { color: var(--text); font-size: 1.05rem; }
.fine { font-size: .82rem; opacity: .8; }
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 1.8em; }
.doc p, .doc li { color: #ddd3d9; }
.doc a { color: #ff8a7a; }
.doc code { background: var(--card2); padding: 1px 6px; border-radius: 6px; font-size: .9em; overflow-wrap: anywhere; }
.doc .updated { color: var(--muted); }
.doc .license { white-space: pre-wrap; background: #120f17; border: 1px solid var(--line); border-radius: 14px; padding: 18px; font-size: .82rem; line-height: 1.5; overflow-x: auto; }
.doc .libs { columns: 2; column-gap: 32px; }
.doc .libs li { break-inside: avoid; margin-bottom: 4px; }

/* Language suggestion */
.suggest { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%); z-index: 30; display: flex; gap: 12px; align-items: center;
  background: #1f1a25; border: 1px solid var(--line); padding: 10px 10px 10px 18px; border-radius: 999px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); transition: transform .5s; }
.suggest.show { transform: translate(-50%, 0); }
.suggest a { color: #fff; font-weight: 700; }
.suggest button { border: 0; background: var(--card2); color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }

/* Scroll reveal (only with JS) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .apps { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { max-width: 560px; width: 100%; margin: 10px auto 0; }
  .nav { display: none; }
  .lang { margin-left: auto; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .privacy { flex-direction: column; }
  .doc .libs { columns: 1; }
  .shot.phone { width: 62vw; }
  .ctas .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Hero simulator: the TV app in miniature (sizes in container units) ---------- */
.sim { position: relative; aspect-ratio: 16 / 9; container-type: inline-size; overflow: hidden; border-radius: 14px; border: 7px solid #121016;
  background: #0c0b10; color: #fff; user-select: none; -webkit-user-select: none; touch-action: pan-y; outline: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px rgba(0, 0, 0, .6), 0 0 120px rgba(229, 36, 94, .25); }
.sim:focus-visible { box-shadow: 0 0 0 3px #ff8a7a, 0 40px 80px rgba(0, 0, 0, .6); }
.sim-bg { position: absolute; inset: 0; }
.sim-bg::before { content: ""; position: absolute; inset: 0; background: url(../img/ambient.webp) center / cover; opacity: .8; transition: opacity .9s; }
.sim.has-bd .sim-bg::before { opacity: 0; }
.sim-bg img { position: absolute; right: 0; top: 0; width: 72%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.sim-bg img.on { opacity: .5; }
.sim-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0c0b10 27%, rgba(12, 11, 16, .6) 42%, transparent 72%),
              linear-gradient(0deg, #0c0b10 42%, rgba(12, 11, 16, .65) 52%, transparent 72%),
              linear-gradient(180deg, rgba(12, 11, 16, .75), transparent 26%); }
.sim.lite .sim-bg::before, .sim.lite .sim-bg img { display: none; }
.sim.lite *, .sim.lite *::before { transition: none !important; animation: none !important; }
.sim-top { position: absolute; top: 4cqw; left: 5.5cqw; right: 5.5cqw; display: flex; align-items: center; gap: 2cqw; }
.orb { width: 4.6cqw; height: 4.6cqw; border-radius: 50%; background: #2b2830; }
.orb.red { background: #e53935; }
.sim-clock { margin-left: auto; font-size: 3cqw; font-weight: 700; letter-spacing: -.02em; }
.sim-top img { width: 4.8cqw; height: 4.8cqw; border-radius: 1cqw; }
.sim-row-title { position: absolute; top: 12.5cqw; left: 5.8cqw; margin: 0; font-size: 2.1cqw; color: #cfc8cd; }
.sim-row { position: absolute; top: 16.5cqw; left: 0; right: 0; }
.sim-row.ghost { top: 41cqw; opacity: .9; pointer-events: none; }
.sim-track { display: flex; gap: 1.6cqw; padding-left: 5.5cqw; transition: transform .45s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.sim-card { flex: none; width: 22cqw; padding: 0; border: 0; border-radius: 1.1cqw; overflow: hidden; background: #1c1a21; color: #fff; text-align: left;
  font: inherit; cursor: pointer; transition: transform .3s, background .3s, box-shadow .3s; transform-origin: 50% 40%; }
.sim-card .th { display: block; position: relative; }
.sim-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sim-card b { position: absolute; right: .6cqw; bottom: .6cqw; font-size: 1.25cqw; background: rgba(0, 0, 0, .8); padding: .1cqw .5cqw; border-radius: .4cqw; }
.sim-card .tt { display: block; padding: 1cqw 1.2cqw 0; font-size: 1.65cqw; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-card .mt { display: block; padding: .3cqw 1.2cqw 1.2cqw; font-size: 1.3cqw; color: #a9a2a8; }
.sim-card.focus { transform: scale(1.1); background: #fff; color: #111; box-shadow: 0 1.6cqw 3.2cqw rgba(0, 0, 0, .6); position: relative; z-index: 2; }
.sim-card.focus .mt { color: #555; }
.sim-card:focus-visible { outline: none; }
.sim-player { position: absolute; inset: 0; z-index: 5; background: #000; animation: simOpen .35s ease; }
@keyframes simOpen { from { opacity: 0; transform: scale(1.04); } }
.sim-player > img { width: 100%; height: 100%; object-fit: cover; }
.sim-player::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent 45%); pointer-events: none; }
.sim-info { position: absolute; left: 5cqw; right: 5cqw; bottom: 4cqw; z-index: 1; }
.sim-info b { display: block; font-size: 2.6cqw; }
.sim-info small { font-size: 1.5cqw; color: #ccc; }
.sim-progress { position: relative; height: .7cqw; margin-top: 2cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .25); }
.sim-progress .seg { z-index: 1; position: absolute; left: 24%; width: 16%; top: 0; bottom: 0; background: #00d400; border-radius: 1cqw; }
.sim-progress .done { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: #ff3d2e; border-radius: 1cqw; }
.sim-progress .head { z-index: 2; position: absolute; left: var(--p, 0%); top: 50%; width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #ff3d2e;
  transform: translate(-50%, -50%); box-shadow: 0 0 0 .5cqw rgba(255, 61, 46, .3); }
.sim-badge, .sim-toast { position: absolute; top: 4cqw; z-index: 1; display: inline-flex; align-items: center; gap: .8cqw; font-size: 1.7cqw; font-weight: 700;
  padding: .8cqw 1.6cqw; border-radius: 99px; }
.sim-badge { left: 5cqw; background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .25); }
.sim-toast { right: 5cqw; background: #00d400; color: #062006; opacity: 0; transform: translateY(-40%); transition: opacity .3s, transform .3s; }
.sim-toast.show { opacity: 1; transform: none; }
.sim-badge .i, .sim-toast .i { width: 2cqw; height: 2cqw; }
.sim-back { position: absolute; right: 3cqw; bottom: 3.4cqw; z-index: 2; width: 5cqw; height: 5cqw; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 3cqw; line-height: 1; cursor: pointer; display: none; }
.sim.user .sim-back { display: block; }
.sim-bar { width: 86%; display: flex; justify-content: space-between; align-items: center; gap: 10px 18px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: .86rem; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; color: var(--text); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { width: 40px; height: 22px; border-radius: 99px; background: #3a3440; position: relative; transition: background .25s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s; }
.switch input:checked + i { background: var(--grad); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 3px solid #ff8a7a; outline-offset: 2px; }
@media (max-width: 700px) {
  .dev-phone { display: none; }
  .dev-tv, .sim-bar { width: 100%; }
  .sim { border-width: 4px; border-radius: 10px; }
}

/* Downloads: one button per app (phone and TV are different APKs) */
.dl-pair { display: flex; flex-wrap: wrap; gap: 12px; }
.final-card .dl-pair, .solo .dl-pair { justify-content: center; }
.btn.small span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn.small small { font-weight: 500; opacity: .85; font-size: .72rem; }
.soon-btn { opacity: .65; cursor: default; }
.soon-btn:hover { transform: none; }
.app-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; }
.file { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: .8rem; min-width: 0; }
.file code { color: var(--text); font-size: .78rem; overflow-wrap: anywhere; }
.file .i { width: 1em; height: 1em; flex: none; }
.steps-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.2rem; margin: 34px 0 14px; }
.steps-h .i { color: #ff6b57; width: 1.3em; height: 1.3em; }
.solo main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.solo main img { border-radius: 22px; margin-bottom: 14px; }
.solo main p { color: var(--muted); }
@media (max-width: 620px) {
  .dl-pair { width: 100%; }
  .dl-pair .btn { width: 100%; justify-content: center; }
}
.steps .url { color: var(--text); white-space: nowrap; }

/* Install warnings (Chrome, Play Protect) and how to go ahead */
.warn { margin-top: 34px; padding: clamp(22px, 3.5vw, 36px); border-color: rgba(255, 176, 64, .35);
  background: radial-gradient(520px circle at 0 0, rgba(255, 176, 64, .1), transparent 60%), var(--card); }
.warn h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.warn h3 .i { color: #ffb040; width: 1.4em; height: 1.4em; flex: none; }
.w-why { color: var(--muted); max-width: 72ch; }
.w-list { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.w-list li { background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.w-list p { margin: 0; }
.w-src { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #ffb040; margin-bottom: 6px; }
.w-msg { color: var(--muted); font-style: italic; margin-bottom: 8px !important; }
.w-list b { color: var(--text); }
.w-fp { color: var(--muted); font-size: .85rem; margin: 0; }
.w-fp code { color: var(--text); font-size: .8rem; overflow-wrap: anywhere; }
@media (max-width: 760px) { .w-list { grid-template-columns: 1fr; } }
