/* Scroll-TV — public pages (features, channels, subreddits, blog, FAQ…). The player has its own tv.css. */
:root {
  --bg: #07070a;
  --bg-2: #0e0d12;
  --card: #131219;
  --card-2: #1a1820;
  --ink: #f6f3ec;
  --muted: #a7a2b2;
  --dim: #6f6a7a;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --accent: #ff5b24;
  --accent-2: #ffb03a;
  --accent-ink: #1c0700;
  --green: #2fd27a;
  --font: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: -20vh -10vw auto; height: 70vh; background: radial-gradient(ellipse at 30% 0%, rgba(255, 91, 36, .16), transparent 62%); pointer-events: none; z-index: -1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(7, 7, 10, .78); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.045em; flex: none; }
.logo b { color: var(--accent); font-weight: 800; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font: 600 14px/1 var(--font); color: var(--muted); transition: color .15s, background .15s; }
.menu a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.menu a[aria-current="page"] { color: var(--ink); background: rgba(255, 91, 36, .14); box-shadow: inset 0 0 0 1px rgba(255, 91, 36, .35); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px 0 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 800 17px/1 var(--font); letter-spacing: -.01em; text-decoration: none; border: 0; cursor: pointer; box-shadow: 0 10px 32px rgba(255, 91, 36, .28); transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(255, 91, 36, .38); background: #ff6a37; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-sm { height: 40px; padding: 0 18px 0 15px; font-size: 14px; box-shadow: none; }
.btn-sm svg { width: 14px; height: 14px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 30px 0 0; }
.cta-note { font: 500 13px/1.5 var(--mono); color: var(--dim); }

/* type */
.main { padding: 34px 0 80px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 700 12px/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ''; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.kicker.plain::before { display: none; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; margin: 0; }
h1 { font-size: clamp(38px, 6.2vw, 70px); font-weight: 800; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin: 64px 0 16px; text-wrap: balance; }
h3 { font-size: 21px; font-weight: 750; margin: 0 0 8px; letter-spacing: -.02em; }
.lead { max-width: 760px; margin: 20px 0 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.6; color: #d9d4cc; }
.hint { color: var(--muted); font-size: 15px; }
.count { font: 600 .55em/1 var(--mono); color: var(--dim); letter-spacing: 0; vertical-align: middle; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font: 500 12.5px/1.4 var(--mono); color: var(--dim); }
.crumbs li + li::before { content: '›'; margin-right: 8px; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* prose (articles, FAQ answers, legal pages) */
.prose { max-width: 760px; }
.prose p, .prose li { color: #dcd7cf; }
.prose p { margin: 0 0 18px; }
.prose h2 { margin-top: 52px; }
.prose h3 { margin-top: 30px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 20px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose a, .link { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(255, 91, 36, .7); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover, .link:hover { color: var(--accent-2); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose blockquote { margin: 24px 0; padding: 14px 20px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 12px 12px 0; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 700 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.prose td:last-child { white-space: nowrap; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.tablewrap { overflow-x: auto; }
kbd { display: inline-block; min-width: 26px; padding: 2px 7px; border-radius: 7px; background: var(--card-2); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .5), 0 0 0 1px var(--line-2); font: 700 13px/1.5 var(--mono); text-align: center; color: var(--ink); }
.note { padding: 16px 20px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 15.5px; }
.note strong { color: var(--ink); }

/* hero */
.hero { padding-top: 20px; padding-bottom: 8px; }
.hero.center { text-align: center; }
.hero.center .lead { margin-left: auto; margin-right: auto; }
.hero.center .cta-row { justify-content: center; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.stats li { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); min-width: 120px; }
.stats b { font: 800 22px/1.1 var(--font); letter-spacing: -.02em; }
.stats span { font: 500 11.5px/1.3 var(--mono); color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }

/* channel cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 22px 0 0; }
.cat-card { --c: var(--accent); position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 150px; padding: 20px; border-radius: 20px; text-decoration: none; overflow: hidden; background: linear-gradient(150deg, color-mix(in srgb, var(--c) 30%, var(--card)) 0%, var(--card) 62%); box-shadow: inset 0 0 0 1px var(--line); transition: transform .18s, box-shadow .18s; }
.cat-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--c); opacity: .18; filter: blur(30px); }
.cat-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 16px 40px rgba(0, 0, 0, .4); }
.cat-card h3 { font-size: 22px; margin: 0; }
.cat-card p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.cat-card .meta { margin-top: auto; padding-top: 10px; font: 600 12px/1.2 var(--mono); color: color-mix(in srgb, var(--c) 70%, white); letter-spacing: .04em; }
.cat-card.small { min-height: 0; padding: 14px 16px; border-radius: 14px; }
.cat-card.small h3 { font-size: 17px; }

/* subreddit cards and chips */
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 20px 0 0; }
.sub-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: background .15s, box-shadow .15s; }
.sub-card:hover { background: var(--card-2); box-shadow: inset 0 0 0 1px rgba(255, 91, 36, .4); }
.sub-card .nm { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; font-weight: 750; font-size: 17px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.sub-card .nm span { font: 600 12px/1 var(--mono); color: var(--accent-2); white-space: nowrap; }
.sub-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 600 13.5px/1 var(--font); text-decoration: none; transition: background .15s, box-shadow .15s; }
.chip small { font: 600 11px/1 var(--mono); color: var(--dim); }
.chip:hover { background: var(--card-2); box-shadow: inset 0 0 0 1px rgba(255, 91, 36, .45); }

/* video cards */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 20px 0 0; padding: 0; list-style: none; }
.vid { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.vid .th { position: relative; display: block; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #24202c, #111016); overflow: hidden; }
.vid .th img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.vid:hover .th img { transform: scale(1.04); }
.vid.noimg .th { aspect-ratio: auto; height: 84px; background: linear-gradient(135deg, rgba(255, 91, 36, .35), #15131b 70%); }
.vid.noimg .th img { display: none; }
.vid .th::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .65)); }
.vid .dur { position: absolute; right: 8px; bottom: 8px; z-index: 1; padding: 3px 7px; border-radius: 7px; background: rgba(0, 0, 0, .7); font: 700 11px/1.2 var(--mono); }
.vid .play { position: absolute; left: 8px; bottom: 8px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); }
.vid .play svg { width: 12px; height: 12px; fill: var(--accent-ink); margin-left: 2px; }
.vid .bd { display: flex; flex-direction: column; gap: 6px; padding: 12px 13px 13px; }
.vid .tt { font-size: 14.5px; line-height: 1.38; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vid .mt { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 500 11.5px/1.4 var(--mono); color: var(--dim); }
.vid .mt a { color: var(--muted); text-decoration: none; }
.vid .mt a:hover { color: var(--accent-2); }
.vid-list { margin: 16px 0 0; padding: 0; list-style: none; }
.vid-list li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.vid-list .tt { flex: 1; font-weight: 600; font-size: 15.5px; }
.vid-list .mt { font: 500 12px/1.3 var(--mono); color: var(--dim); white-space: nowrap; }
.vid-list a { text-decoration: none; }
.vid-list a:hover { color: var(--accent-2); }

/* two-column page (sub page) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 14px; }
.panel { padding: 20px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.panel h3 { font-size: 15px; font: 700 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.panel ul { margin: 0; padding: 0; list-style: none; }
.panel li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.panel li:last-child { border-bottom: 0; }
.panel li a { text-decoration: none; font-weight: 600; }
.panel li a:hover { color: var(--accent-2); }
.panel li span { font: 500 12px/1.6 var(--mono); color: var(--dim); }

/* screenshots */
.shot-hero { margin: 36px 0 0; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--line); background: #000; }
.shot-hero img { width: 100%; height: auto; }
.shot-hero figcaption { padding: 12px 16px; font: 500 12.5px/1.5 var(--mono); color: var(--dim); background: var(--card); }
.screens { display: flex; flex-direction: column; gap: 70px; margin: 70px 0 0; }
.screen { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 54px; align-items: center; }
.screen.flip { grid-template-columns: minmax(0, 1fr) 300px; }
.screen.flip .phone { order: 2; }
.phone { padding: 9px; border-radius: 40px; background: linear-gradient(160deg, #26201d, #0b0908 45%); box-shadow: 0 30px 70px rgba(0, 0, 0, .65), 0 0 60px rgba(255, 91, 36, .14), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.phone img { width: 100%; height: auto; border-radius: 32px; }
.screen h2 { margin: 0 0 14px; }
.screen p { color: #dcd7cf; margin: 0 0 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 22px 0 0; }
.feature { padding: 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.feature h3 { margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }
.feature .ic { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 12px; background: rgba(255, 91, 36, .14); color: var(--accent); }
.feature .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; }
.keys li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.keys li span { display: flex; gap: 4px; min-width: 70px; }

/* FAQ */
.faq { max-width: 820px; margin: 30px 0 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 19px; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--card-2); color: var(--accent); font: 700 18px/1 var(--mono); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 22px; color: #dcd7cf; max-width: 720px; }
.faq .ans p { margin: 0; }

/* A–Z list */
.az-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0 0; }
.search { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.search input { width: 100%; height: 48px; padding: 0 16px 0 44px; border-radius: 14px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font: 500 16px/1 var(--font); }
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.search svg { position: absolute; left: 15px; top: 14px; width: 20px; height: 20px; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; }
.az { columns: 4 200px; column-gap: 26px; margin: 22px 0 0; padding: 0; list-style: none; }
.az li { break-inside: avoid; display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 15px; }
.az a { text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az a:hover { color: var(--accent-2); }
.az span { font: 500 11.5px/1.9 var(--mono); color: var(--dim); }
.az-empty { margin-top: 18px; color: var(--muted); }

/* blog */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin: 30px 0 0; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: transform .18s, box-shadow .18s; }
.post-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 91, 36, .45), 0 16px 40px rgba(0, 0, 0, .35); }
.post-card .tag { font: 700 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.post-card h2 { margin: 0; font-size: 23px; line-height: 1.18; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; }
.post-card .by { margin-top: auto; font: 500 12px/1.4 var(--mono); color: var(--dim); }
.post-head { max-width: 800px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 0; font: 500 13px/1.4 var(--mono); color: var(--dim); }
.article { margin-top: 34px; }
.article .lead { margin-bottom: 26px; }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 34px 0; padding: 22px 24px; border-radius: 18px; background: linear-gradient(130deg, rgba(255, 91, 36, .2), var(--card) 70%); box-shadow: inset 0 0 0 1px rgba(255, 91, 36, .3); }
.callout p { margin: 0; font-weight: 700; font-size: 18px; color: var(--ink); max-width: 480px; }
.toc { margin: 0 0 30px; padding: 18px 22px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.toc p { margin: 0 0 8px; font: 700 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc a { text-decoration: none; color: #dcd7cf; }
.toc a:hover { color: var(--accent-2); }
.rank, .prose .rank { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 26px; padding: 0; list-style: none; counter-reset: rank; }
.rank > li { position: relative; padding: 18px 20px 18px 66px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); counter-increment: rank; margin: 0; }
.rank > li::before { content: counter(rank); position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 91, 36, .16); color: var(--accent); font: 800 15px/1 var(--mono); }
.rank h3 { margin: 0 0 6px; font-size: 19px; }
.rank h3 small { font: 600 12px/1 var(--mono); color: var(--accent-2); margin-left: 6px; letter-spacing: 0; }
.rank p { margin: 0; font-size: 15.5px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); padding: 50px 0 40px; }
.foot-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 0 0 40px; border-bottom: 1px solid var(--line); }
.foot-title { margin: 0; font-weight: 800; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; padding: 36px 0 30px; }
.foot-h { margin: 0 0 12px; font: 700 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot-cols ul { margin: 0; padding: 0; list-style: none; }
.foot-cols li { margin: 0 0 8px; font-size: 14.5px; }
.foot-cols a { color: #cfcac2; text-decoration: none; }
.foot-cols a:hover { color: var(--accent-2); }
.foot-legal { margin: 0; padding-top: 22px; border-top: 1px solid var(--line); font: 500 12.5px/1.6 var(--mono); color: var(--dim); max-width: 900px; }

/* responsive */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .side { position: static; }
  .screen, .screen.flip { grid-template-columns: 1fr; gap: 28px; }
  .screen.flip .phone { order: 0; }
  .phone { max-width: 300px; margin: 0 auto; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .bar { gap: 12px; height: auto; min-height: 58px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 6px; }
  .menu { order: 3; width: 100%; margin: 0 -6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .menu::-webkit-scrollbar { display: none; }
  .bar .btn-sm { margin-left: auto; }
  .main { padding-top: 22px; }
  h2 { margin-top: 48px; }
  .vid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vid .bd { padding: 10px; }
  .vid .tt { font-size: 13.5px; }
  .stats li { min-width: 0; flex: 1 1 40%; }
  .rank > li { padding: 56px 16px 16px; }
  .rank > li::before { top: 14px; left: 16px; }
  .btn { height: 50px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* /app — install Scroll-TV on the home screen */
.btn[data-install] svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.menu a.menu-app { color: var(--accent-2); }
.app-top { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: center; }
.app-phone { width: 280px; }
.app-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.app-facts li { padding: 7px 12px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 600 12.5px/1 var(--mono); color: var(--muted); }
.app-done { display: none; align-items: center; gap: 10px; margin: 26px 0 0; font-weight: 700; color: var(--green); }
.app-done svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
html.standalone .app-done { display: flex; }
html.standalone .app-cta, html.standalone .callout [data-install] { display: none; }
.install-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.install-box { padding: 24px 22px 10px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.install-box h3 { margin: 0 0 14px; }
html.ios #install-ios, html.android #install-android, html.desktop #install-desktop { order: -1; box-shadow: inset 0 0 0 1.5px rgba(255, 91, 36, .55), 0 18px 50px rgba(255, 91, 36, .12); }
html.ios #install-ios h3::after, html.android #install-android h3::after, html.desktop #install-desktop h3::after { content: 'Your device'; margin-left: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(255, 91, 36, .16); color: var(--accent); font: 700 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; vertical-align: 4px; }
.install-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; }
.install-steps li { position: relative; padding: 0 0 18px 44px; color: #dcd7cf; font-size: 15.5px; line-height: 1.55; counter-increment: st; }
.install-steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--accent); font: 700 14px/1 var(--mono); }
.install-steps b { color: var(--ink); }
.inl { display: inline-block; width: 20px; height: 20px; margin: 0 2px; vertical-align: -4px; fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.install-steps .inl circle { fill: var(--accent-2); stroke: none; }
@media (max-width: 900px) {
  .app-top { grid-template-columns: 1fr; gap: 34px; }
  .app-phone { width: min(280px, 80%); margin: 0 auto; }
  .install-cols { grid-template-columns: 1fr; }
}

/* /tv — the Android TV app */
.tv-top { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
.tv-short { margin: 18px 0 0; font: 500 13.5px/1.6 var(--mono); color: var(--muted); }
.tv-short b { color: var(--ink); }
.tv-frame { position: relative; padding: 12px 12px 18px; border-radius: 18px; background: #111; box-shadow: 0 40px 80px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.tv-frame img { display: block; width: 100%; height: auto; border-radius: 6px; }
.tv-frame::after { content: ''; position: absolute; left: 50%; bottom: -26px; width: 34%; height: 14px; border-radius: 0 0 10px 10px; background: #1a1a1f; transform: translateX(-50%); }
.tv-remote { position: absolute; right: -18px; bottom: -40px; display: grid; grid-template-columns: repeat(3, 34px); grid-template-rows: repeat(3, 34px); gap: 4px; padding: 14px 12px; border-radius: 28px; background: #1d1d24; box-shadow: 0 20px 40px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.tv-remote .k { display: grid; place-items: center; border-radius: 50%; background: #2a2a33; color: var(--ink); font: 700 12px/1 var(--mono); }
.tv-remote .up { grid-area: 1 / 2; } .tv-remote .left { grid-area: 2 / 1; } .tv-remote .ok { grid-area: 2 / 2; background: var(--accent); color: #160600; } .tv-remote .right { grid-area: 2 / 3; } .tv-remote .down { grid-area: 3 / 2; }
.tv-keys .feature h3 { font-size: 17px; }
@media (max-width: 900px) {
  .tv-top { grid-template-columns: 1fr; }
  .tv-remote { right: 4px; transform: scale(.8); transform-origin: bottom right; }
}
