:root {
  --night: #15100D; --canvas: #1C1613; --surface: #2A211C; --surface-hi: #362A23;
  --text: #FFF6EC; --text2: rgba(255,246,236,.8); --text3: rgba(255,246,236,.62);
  --glass: rgba(255,255,255,.07); --glass-hi: rgba(255,255,255,.12); --stroke: rgba(255,255,255,.2);
  --cyan: #FFB066; --warm: #FF8A5C; --cyan-deep: #F07A45; --lake: #C2410C; --lake-deep: #6B1F0A; --live: #FF453A; --pine: #30D158; --amber: #FFD60A;
  --radius: 22px; --ease: cubic-bezier(.23,1,.32,1); --ease-in-out: cubic-bezier(.77,0,.175,1); --ease-drawer: cubic-bezier(.32,.72,0,1);
  --motion-fast: 220ms; --motion-med: 300ms; --motion-slow: 700ms;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 16px/1.6 Quicksand, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:is(a, button, summary, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; text-align: center; }
h3 { font-size: 19px; font-weight: 600; }
.center { text-align: center; }

/* moving light behind everything, like the TV's wallpaper */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.aurora span { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .45; animation: drift 24s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { background: var(--lake); left: -15vmax; top: -20vmax; }
.aurora span:nth-child(2) { background: var(--cyan-deep); right: -20vmax; top: 10vmax; animation-duration: 30s; animation-direction: alternate-reverse; }
.aurora span:nth-child(3) { background: var(--lake-deep); left: 20vmax; bottom: -35vmax; opacity: .25; animation-duration: 36s; }
@keyframes drift { to { transform: translate(8vmax, -6vmax) scale(1.1); } }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(21,16,13,.65); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; }
.nav .links { display: flex; gap: 18px; margin-inline-start: 12px; }
.nav .links a { text-decoration: none; color: var(--text2); font-size: 15px; transition: color .2s; }
.nav .links a:hover { color: var(--text); }
.nav-right { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.lang { display: flex; background: var(--glass); border: 1px solid var(--stroke); border-radius: 99px; padding: 3px; }
.lang button { background: none; border: 0; color: var(--text2); font: 600 13px Quicksand, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; padding: 5px 10px; border-radius: 99px; cursor: pointer; }
.lang button.on { background: var(--text); color: var(--night); }
.gh, .nav-pill { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: var(--glass); border: 1px solid var(--stroke); border-radius: 99px; padding: 6px 12px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.nav-pill:hover, .gh:hover { background: var(--glass-hi); }
@media (max-width: 960px) { .nav .links { display: none; } }
.brand { white-space: nowrap; }
@media (max-width: 420px) { .nav { gap: 10px; } .nav .brand span { display: none; } }

/* notice bar + live telemetry ribbon */
.live-notice { background: linear-gradient(90deg, rgba(255,176,102,.16), rgba(194,65,12,.28)); border-bottom: 1px solid rgba(255,176,102,.28);
  padding: 10px clamp(16px, 4vw, 48px); display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 14px; flex-wrap: wrap; text-align: center; }
.live-notice b { color: var(--cyan); }
.live-notice button { background: rgba(255,255,255,.14); border: 1px solid var(--stroke); color: var(--text); border-radius: 99px; padding: 3px 10px; cursor: pointer; font: 600 12px inherit; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 99px; font: 600 15px inherit; text-decoration: none; transition: transform .25s var(--ease), background .25s, box-shadow .25s; border: 1px solid transparent; cursor: pointer; color: var(--text); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); transition-duration: 120ms; }
.btn.primary { background: var(--text); color: var(--night); box-shadow: 0 10px 40px rgba(255,176,102,.25); }
.btn.primary small { opacity: .65; font-weight: 500; }
.btn.cyan { background: var(--cyan); color: #2A1204; box-shadow: 0 10px 30px rgba(255,176,102,.28); }
.btn.cyan small { opacity: .7; font-weight: 500; }
.btn.warm { background: var(--warm); color: #1A0A03; }
.btn.ghost { background: var(--glass); border-color: var(--stroke); color: var(--text); }
.btn.ghost:hover { background: var(--glass-hi); }
.btn.danger { background: rgba(255,69,58,.18); border-color: rgba(255,69,58,.45); color: #ff8e86; }
.btn.small { padding: 9px 16px; font-size: 14px; }

/* hero (Figma 13:183 centered hero + 7-tile wavy showcase) */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; padding: clamp(40px, 7vw, 88px) clamp(16px, 4vw, 48px) 36px; max-width: 1400px; margin: 0 auto; }
.hero.hero-centered { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 36px; }
.hero.hero-centered .hero-text { display: flex; flex-direction: column; align-items: center; max-width: 820px; }
.hero.hero-centered .lead { max-width: 42em; }
.hero.hero-centered .cta, .hero.hero-centered .works { justify-content: center; }
.hero.hero-centered .stats { justify-content: center; }
.wave-showcase { display: grid; grid-template-columns: repeat(7, minmax(0, 176px)); gap: 14px; align-items: center; justify-content: center; width: 100%; max-width: 1320px; padding: 12px 0; }
.wave-tile { display: block; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: var(--surface); box-shadow: 0 24px 60px rgba(0,0,0,.55); transition: transform var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease); }
.wave-tile img { width: 100%; height: 100%; object-fit: cover; }
.wave-tile.t1, .wave-tile.t7 { height: 196px; }
.wave-tile.t2, .wave-tile.t6 { height: 248px; }
.wave-tile.t3, .wave-tile.t5 { height: 288px; }
.wave-tile.t4 { height: 320px; border-color: rgba(255,176,102,.45); }
.wave-tile:hover { transform: translateY(-6px); border-color: var(--cyan); }
@media (max-width: 980px) { .wave-showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); } .wave-tile.t1, .wave-tile.t2, .wave-tile.t6, .wave-tile.t7 { display: none; } .wave-tile.t3, .wave-tile.t4, .wave-tile.t5 { height: 220px; } }

/* 200+ countries 4 category cards (Figma 13:183: 265x340) */
.world-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 265px)); gap: 18px; justify-content: center; }
.world-card { position: relative; min-height: 340px; padding: 22px; border-radius: 26px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; border: 1px solid rgba(255,255,255,.16); overflow: hidden; transition: transform var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease); }
.world-card:hover { transform: translateY(-4px); border-color: var(--cyan); }
.world-card h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.world-card p { font-size: 14px; color: rgba(255,255,255,.82); margin: 0; }
.wc-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 4px 10px; border-radius: 99px; background: rgba(21,16,13,.55); border: 1px solid rgba(255,255,255,.22); color: #fff; }
.wc-news { background: linear-gradient(155deg, rgba(194,65,12,.92), rgba(107,31,10,.96)); }
.wc-sports { background: linear-gradient(155deg, rgba(240,122,69,.88), rgba(28,22,19,.96)); }
.wc-family { background: linear-gradient(155deg, rgba(48,209,88,.72), rgba(28,22,19,.96)); }
.wc-culture { background: linear-gradient(155deg, rgba(255,138,92,.82), rgba(28,22,19,.96)); }
@media (max-width: 960px) { .world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .world-card { min-height: 240px; } }
@media (max-width: 560px) { .world-grid { grid-template-columns: 1fr; } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--glass); border: 1px solid var(--stroke); font-size: 14px; text-decoration: none; color: var(--text2); }
.pill b { color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pine); box-shadow: 0 0 0 0 rgba(48,209,88,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(48,209,88,0); } 100% { box-shadow: 0 0 0 0 rgba(48,209,88,0); } }
.hero h1 { font-size: clamp(42px, 6.4vw, 82px); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; margin: 20px 0 16px; background: linear-gradient(100deg, #fff 35%, var(--cyan) 75%, var(--warm)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text2); max-width: 34em; margin: 0 0 26px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, minmax(100px, auto)); gap: 20px; justify-content: start; }
.stats b { display: block; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats li:first-child b { color: var(--warm); }
.stats span { color: var(--text3); font-size: 13px; }
.works { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--text3); font-size: 14px; }
.works b { font-weight: 600; color: var(--text2); background: var(--glass); border: 1px solid rgba(255,255,255,.1); border-radius: 99px; padding: 3px 10px; font-size: 13px; }
.hero-art { position: relative; padding: 0 0 8% 0; }
.hero-art .glow { position: absolute; inset: 10% 5% 0; background: radial-gradient(closest-side, rgba(255,176,102,.35), transparent), radial-gradient(closest-side at 80% 80%, rgba(255,138,92,.28), transparent); filter: blur(30px); }
.stage-tv { position: relative; border-radius: 22px; overflow: hidden; border: 8px solid #201915; box-shadow: 0 0 0 1px #3A2E27, 0 40px 120px rgba(0,0,0,.6); aspect-ratio: 16/9; }
.stage-tv img { width: 100%; height: 100%; object-fit: cover; }
.stage-phone { position: absolute; width: 19%; bottom: 0; inset-inline-end: -1%; border-radius: 26px; overflow: hidden; border: 6px solid #201915; box-shadow: 0 0 0 1px #3A2E27, 0 30px 80px rgba(0,0,0,.7); transform: rotate(4deg); }
[dir="rtl"] .stage-phone { transform: rotate(-4deg); }
.stage-phone img { width: 100%; height: auto; }
@media (max-width: 980px) { .hero { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, auto); } }

/* telemetry pulse bar */
.telemetry-bar { max-width: 1200px; margin: 16px auto 0; padding: 0 clamp(16px, 4vw, 48px); }
.telemetry-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; padding: 18px 22px; border-radius: var(--radius);
  background: rgba(255,255,255,.045); border: 1px solid var(--stroke); }
.metric-item small { display: block; color: var(--text3); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.metric-item strong { display: block; font-size: 24px; font-weight: 700; margin-top: 2px; color: var(--text); }
.metric-item span { font-size: 13px; color: var(--cyan); }

/* international / release banner */
.intl { padding: 0 clamp(16px, 4vw, 48px); max-width: 1100px; margin: 24px auto 0; }
.intl-card { display: flex; gap: 18px; align-items: center; padding: 20px 24px; border-radius: var(--radius); background: linear-gradient(120deg, rgba(194,65,12,.35), rgba(214,90,120,.25)); border: 1px solid var(--stroke); }
.intl-card p { margin: 4px 0 0; color: var(--text2); font-size: 15px; }
.intl-card .btn { margin-inline-start: auto; flex-shrink: 0; background: var(--glass-hi); }
.globe { font-size: 34px; animation: spin 12s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .intl-card { flex-direction: column; align-items: flex-start; } .intl-card .btn { margin-inline-start: 0; } }

/* sections */
.section { padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px) 0; max-width: 1200px; margin: 0 auto; }
.section.narrow { max-width: 820px; }
.sub { text-align: center; color: var(--text2); font-size: 18px; max-width: 42em; margin: 14px auto 34px; }
.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { position: relative; padding: 26px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(54,42,35,.72), rgba(42,33,28,.84)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.14); transition: transform var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease); overflow: hidden; }
.card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.10), transparent 40%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.26); }
.card:hover::after { opacity: 1; }
.card i { font-style: normal; font-size: 28px; display: block; margin-bottom: 14px; }
.card p { color: var(--text2); margin: 8px 0 0; font-size: 15px; }
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.tabs button { background: var(--glass); border: 1px solid var(--stroke); color: var(--text2); padding: 10px 20px; border-radius: 99px; font: 600 15px Quicksand, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; cursor: pointer; transition: all .25s; }
.tabs button.on { background: var(--text); color: var(--night); }

/* screenshots */
.tv-frame { max-width: 980px; margin: 0 auto; }
.tv-screen { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #000; border: 10px solid #201915; box-shadow: 0 0 0 1px #3A2E27, 0 50px 120px rgba(0,0,0,.7); }
.tv-screen .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .9s var(--ease), transform 6s linear; }
.tv-screen .slide.on { opacity: 1; transform: scale(1); }
.tv-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 35%); pointer-events: none; }
.tv-stand { width: 200px; height: 26px; margin: 0 auto; background: linear-gradient(#231B17, #17110E); clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.round { width: 44px; height: 44px; border-radius: 50%; background: var(--glass); border: 1px solid var(--stroke); color: var(--text); font: 600 24px/1 Quicksand, sans-serif; cursor: pointer; transition: background var(--motion-fast) var(--ease), transform 120ms var(--ease); }
.round:hover { background: var(--glass-hi); }
.round:active { transform: scale(.97); }
[dir="rtl"] .round span { display: inline-block; transform: scaleX(-1); }
.dots { display: flex; justify-content: center; gap: 8px; }
.dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: var(--text3); cursor: pointer; transition: width .3s, background .3s; padding: 0; }
.dots button.on { width: 26px; background: var(--cyan); }
.caption { text-align: center; color: var(--text2); min-height: 1.6em; margin: 12px 0 0; }
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 64px; }
.phone { margin: 0; text-align: center; }
.phone img { border-radius: 34px; border: 8px solid #201915; box-shadow: 0 0 0 1px #3A2E27, 0 30px 70px rgba(0,0,0,.6); transition: transform .5s var(--ease); }
.phone:nth-child(even) { transform: translateY(28px); }
.phone:hover img { transform: translateY(-8px) rotate(-1deg); }
.phone figcaption { color: var(--text2); margin-top: 14px; font-weight: 500; }
@media (max-width: 760px) { .phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 36px; } .phone { flex: 0 0 62%; scroll-snap-align: center; } .phone:nth-child(even) { transform: none; } }

/* device picker + downloads */
.downloads { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.dl ol { padding-inline-start: 20px; color: var(--text2); font-size: 15px; margin: 14px 0 18px; }
.dl ol li { margin-bottom: 6px; }
.dl { --accent: var(--cyan); border-top: 3px solid var(--accent); }
.dl[data-kind="phone"] { --accent: var(--pine); }
.dl[data-kind="desktop"] { --accent: var(--warm); }
.dl h3 { font-size: 21px; }
.dl.mine::before { content: ""; position: absolute; top: 18px; inset-inline-end: 20px; width: 18px; height: 18px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 6.9 7.5.7-5.7 5 1.7 7.4L12 18l-6.5 4 1.7-7.4-5.7-5 7.5-.7z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 6.9 7.5.7-5.7 5 1.7 7.4L12 18l-6.5 4 1.7-7.4-5.7-5 7.5-.7z'/%3E%3C/svg%3E") center/contain no-repeat; }
/* inline icons (replace emoji): one stroke style, coloured by the text around them */
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; flex: none; }
.card i .ic, .way i .ic { width: 28px; height: 28px; }
.dl.mine { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 20px 60px rgba(255,176,102,.18); }
.dl .row { display: flex; gap: 8px; flex-wrap: wrap; }
.role-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; background: rgba(255,176,102,.15); color: var(--cyan); border: 1px solid rgba(255,176,102,.32); }
.role-tag.green { background: rgba(48,209,88,.14); color: var(--pine); border-color: rgba(48,209,88,.32); }
.role-tag.amber { background: rgba(255,214,10,.14); color: var(--amber); border-color: rgba(255,214,10,.3); }
.dl-sub { font-size: 13px; color: var(--text3); margin-top: 10px; line-height: 1.45; }
.dl-sub code { color: var(--text2); background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 6px; font-size: 12px; word-break: break-all; }
.compare-box { margin-top: 24px; padding: 20px 24px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid var(--stroke); }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 12px; }
.compare-item { background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 16px; }
.compare-item strong { color: var(--cyan); display: block; margin-bottom: 4px; }
.note { text-align: center; color: var(--text2); margin-top: 26px; }
.note a { color: var(--cyan); }

/* release inspector, channel explorer, m3u inspector */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.input, select.input, textarea.input { background: rgba(255,255,255,.07); border: 1px solid var(--stroke); color: var(--text); border-radius: 12px; padding: 10px 14px; font: 400 14px inherit; }
.input::placeholder { color: var(--text3); }
.input.grow { flex: 1; min-width: 220px; }
textarea.input { width: 100%; min-height: 110px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.pills-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; }
.chip-btn { background: var(--glass); border: 1px solid var(--stroke); color: var(--text2); border-radius: 99px; padding: 6px 14px; font: 500 13px inherit; cursor: pointer; white-space: nowrap; }
.chip-btn.on { background: var(--cyan); color: #2A1204; border-color: var(--cyan); font-weight: 700; }
.channel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ch-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid rgba(255,255,255,.08); transition: border-color var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease); }
a.ch-card { text-decoration: none; }
.play-ic { color: var(--cyan); font-size: 14px; }
[dir="rtl"] .play-ic { transform: scaleX(-1); }
.ch-card:hover { border-color: rgba(255,176,102,.5); transform: translateY(-2px); }
.ch-logo { width: 48px; height: 48px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; font-weight: 700; color: var(--cyan); }
.ch-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; }
.ch-meta { min-width: 0; flex: 1; }
.ch-meta b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-meta small { color: var(--text3); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; margin-inline-start: 4px; background: rgba(255,176,102,.16); color: var(--cyan); }
.tag.drm { background: rgba(255,214,10,.16); color: var(--amber); }

/* checksum table & admin tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--stroke); border-radius: 16px; background: rgba(255,255,255,.035); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; text-align: start; }
table.data th, table.data td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: middle; }
table.data th { color: var(--text3); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
table.data code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--cyan); word-break: break-all; }

/* modal dialog (update & push modal) */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(18,12,9,.76); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 20px; }
.modal-box { width: min(560px, 100%); background: #1A1411; border: 1px solid rgba(255,255,255,.22); border-radius: 26px; padding: 28px; box-shadow: 0 30px 90px rgba(0,0,0,.75); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.modal-body { color: var(--text2); font-size: 15px; max-height: 55vh; overflow-y: auto; white-space: pre-wrap; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 22px; }
.progress-track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--lake), var(--cyan)); }

/* how it works */
.flow { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 36px 0 10px; }
.node { padding: 18px 24px; border-radius: 18px; background: var(--glass); border: 1px solid var(--stroke); text-align: center; min-width: 180px; }
.node small { display: block; color: var(--text3); font-size: 13px; margin-top: 4px; }
.node.core { background: linear-gradient(135deg, rgba(255,176,102,.22), rgba(194,65,12,.25)); border-color: rgba(255,176,102,.4); }
.arrow { color: var(--text3); font-size: 26px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }

/* community */
.ways { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 56px; }
.way { text-decoration: none; }
.contributors { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 22px 0; }
.contributors .person { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-size: 13px; color: var(--text2); width: 84px; }
.contributors .person img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--stroke); transition: transform .3s var(--ease); }
.contributors .person:hover img { transform: scale(1.08); border-color: var(--cyan); }

/* faq */
details { border-bottom: 1px solid var(--stroke); padding: 18px 4px; }
details:first-of-type { margin-top: 30px; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text3); font-size: 24px; line-height: 1; transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--text2); margin: 10px 0 0; }

/* footer */
.footer { margin-top: 110px; padding: 56px clamp(16px, 4vw, 48px) 40px; color: var(--text3); font-size: 14px; border-top: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(42,33,28,.6), transparent); }
.foot-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-brand .brand { color: var(--text); margin-bottom: 12px; }
.foot-brand p { margin: 0 0 6px; }
.footer h4 { margin: 0 0 12px; color: var(--text); font-size: 15px; font-weight: 600; }
.footer nav a { display: block; color: var(--text2); text-decoration: none; padding: 5px 0; }
.footer nav a:hover { color: var(--cyan); }
.footer .fine { font-size: 12px; max-width: 1200px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* web player (/watch) */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; max-width: 1400px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px) 0; align-items: start; }
.screen { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--night); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.screen video { width: 100%; height: 100%; background: var(--night); display: block; }
.screen:fullscreen { border-radius: 0; border: 0; }
.screen-msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; color: var(--text2); font-size: 17px;
  background: radial-gradient(closest-side, rgba(255,176,102,.14), transparent), var(--night); }
.screen-msg p { margin: 0; max-width: 30em; }
.now { display: flex; align-items: center; gap: 16px; margin: 18px 0 8px; }
.now .ch-logo { width: 64px; height: 64px; border-radius: 16px; font-size: 22px; }
.now-meta { flex: 1; min-width: 0; }
.now .ch-logo, .now-actions { flex-shrink: 0; }
.now-meta h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin: 4px 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-meta p { margin: 0; color: var(--text3); font-size: 15px; }
.now-actions { display: flex; gap: 10px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font: 700 12px Quicksand, sans-serif; letter-spacing: .08em; color: var(--live); }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse-live 2s infinite; }
@keyframes pulse-live { 50% { opacity: .35; } }
.guide { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 96px); }
.guide .input { width: 100%; }
.guide .pills-row { margin-bottom: 0; }
.w-list { list-style: none; margin: 0; padding: 0 4px 0 0; overflow-y: auto; display: grid; gap: 6px; }
.w-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: transparent; border: 1px solid transparent; color: var(--text); text-align: start; font: inherit; cursor: pointer;
  transition: background var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease); }
.w-row:hover { background: var(--surface); }
.w-row.on { background: var(--surface-hi); border-color: rgba(255,176,102,.55); }
.w-row.off { opacity: .55; }
.w-row:active { transform: scale(.97); transition-duration: 120ms; }
.watch-page .footer { margin-top: 60px; padding-top: 24px; }
@media (max-width: 960px) { .watch { grid-template-columns: minmax(0, 1fr); } .guide { position: static; max-height: none; } .w-list { max-height: 60vh; } }

/* admin layout */
.admin-wrap { max-width: 1260px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 48px) 80px; }
.admin-login { max-width: 430px; margin: 80px auto; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 20px 0; }
.kpi-card { padding: 20px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid var(--stroke); }
.kpi-card small { color: var(--text3); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.kpi-card b { display: block; font-size: 32px; margin-top: 6px; }
.split-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; margin-top: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 6px; font-weight: 500; }
.field .input { width: 100%; }
.bar-row { margin-bottom: 10px; }
.bar-row .top { display: flex; justify-content: space-between; font-size: 13px; color: var(--text2); }

/* scroll reveal */
.js .reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal:not(.in) { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
