:root {
  --bg: #0f0f10;
  --panel: #18191c;
  --text: #f4f4f5;
  --muted: #98999e;
  --red: #f20d20;
  --yellow: #ffd21c;
  --line: #292a2e;
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.navbar { position: fixed; inset: 0 0 auto; z-index: 20; height: 66px; padding: 0 max(18px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; gap: 28px; background: rgba(15, 15, 16, .96); border-bottom: 1px solid #202125; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; font-size: 25px; font-weight: 950; letter-spacing: -1px; }
.brand-mark { width: 31px; height: 31px; flex: 0 0 auto; color: var(--red); filter: drop-shadow(0 4px 8px rgba(242, 13, 32, .24)); transition: transform .2s ease; }
.brand:hover .brand-mark { transform: rotate(-5deg) scale(1.06); }
.brand-name > span { color: var(--red); }
footer .brand::before { content: '\25B6'; width: 31px; height: 31px; display: inline-grid; place-items: center; border-radius: 11px; background: var(--red); color: #fff; font-size: 13px; letter-spacing: 0; filter: drop-shadow(0 4px 8px rgba(242, 13, 32, .24)); }
footer .brand > span { color: var(--red); }
nav { display: flex; align-items: center; gap: 23px; min-width: 0; overflow: visible; }
nav a { position: relative; color: #c9c9cc; font-size: 14px; font-weight: 700; white-space: nowrap; }
nav a.active, nav a:hover { color: #fff; }
nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -21px; height: 3px; background: var(--red); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.lang-btn { width: 36px; height: 31px; border: 0; background: transparent; color: #84858b; font-size: 12px; font-weight: 900; cursor: pointer; }
.lang-btn.is-active { background: var(--red); color: #fff; }
.nav-download { min-height: 36px; padding: 0 14px; border: 0; background: var(--red); color: #fff; font-size: 12px; font-weight: 900; cursor: pointer; }

.hero { position: relative; min-height: 480px; padding: 136px max(18px, calc((100vw - var(--max)) / 2)) 70px; display: flex; align-items: center; overflow: hidden; background: radial-gradient(circle at 80% 44%, rgba(242, 13, 32, .22), transparent 32%), linear-gradient(105deg, #121214 0%, #121214 45%, #1a1618 100%); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0f0f10 0%, rgba(15, 15, 16, .88) 38%, rgba(15, 15, 16, .12) 80%); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; width: min(680px, 100%); }
.eyebrow { margin: 0 0 12px; color: var(--red); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.hero h1 { max-width: 700px; margin: 0; font-size: clamp(42px, 7vw, 88px); line-height: .95; letter-spacing: -2px; }
.hero-copy > p:not(.eyebrow) { max-width: 560px; margin: 24px 0 0; color: #c5c5c8; font-size: 19px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.primary-btn, .ghost-btn { min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 900; }
.primary-btn { background: var(--red); }
.ghost-btn { border: 1px solid #5b5c62; }
.hero-note { display: flex; gap: 8px; margin-top: 28px; color: #8e8f95; font-size: 12px; }
.hero-note span:first-child { color: #4bd875; font-size: 16px; line-height: 10px; }
.hero-mosaic { position: absolute; z-index: 1; right: max(2vw, calc((100vw - var(--max)) / 2)); bottom: 0; width: min(520px, 43vw); height: 390px; display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: 1fr 1fr; gap: 8px; opacity: .78; transform: rotate(-3deg) translateY(18px); }
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.hero-mosaic img:first-child { grid-row: 1 / 3; }

.value-section { padding: 68px max(18px, calc((100vw - var(--max)) / 2)) 28px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; border-bottom: 1px solid var(--line); }
.value-intro h2 { max-width: 600px; margin: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.02; }
.value-intro > p:not(.eyebrow) { max-width: 570px; margin: 22px 0 0; color: #b9bac0; font-size: 17px; line-height: 1.55; }
.value-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.value-list article { min-width: 0; padding: 19px 0 22px; display: flex; gap: 14px; border-top: 1px solid #36373c; }
.value-list article > span { flex: 0 0 auto; color: var(--yellow); font-size: 12px; font-weight: 900; }
.value-list h3 { margin: 0; font-size: 18px; }
.value-list p { margin: 8px 0 0; color: #9fa0a6; font-size: 14px; line-height: 1.5; }
.value-status { grid-column: 1 / -1; margin: -12px 0 0; color: #77787e; font-size: 11px; }
.value-section { content-visibility: auto; contain-intrinsic-size: auto 700px; }

.content-section { position: relative; padding: 42px max(18px, calc((100vw - var(--max)) / 2)) 0; scroll-margin-top: 80px; }
.content-section { content-visibility: auto; contain-intrinsic-size: auto 390px; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-header h2 { margin: 0; font-size: 25px; letter-spacing: -.5px; }
.section-header a { color: #a3a4aa; font-size: 12px; }
.rail-wrap { position: relative; }
.poster-row, .channel-row { display: flex; gap: 9px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 0 0 10px; }
.poster-row::-webkit-scrollbar, .channel-row::-webkit-scrollbar { display: none; }
.poster-card, .channel-card { position: relative; flex: 0 0 178px; min-width: 0; overflow: hidden; background: var(--panel); border: 0; color: #fff; text-align: left; cursor: pointer; }
.poster-card { aspect-ratio: 2 / 3; }
.poster-card img, .channel-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .24s ease; }
.poster-card:hover img, .channel-card:hover img { transform: scale(1.035); }
.poster-card::after, .channel-card::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .9)); }
.poster-card .card-info, .channel-card .card-info { position: absolute; z-index: 2; inset: auto 10px 10px; }
.card-info h3 { margin: 0; font-size: 15px; line-height: 1.15; }
.card-info p { margin: 4px 0 0; color: #d0d0d3; font-size: 11px; }
.card-badge { position: absolute; z-index: 3; top: 10px; left: 10px; padding: 5px 7px; background: var(--red); color: #fff; font-size: 10px; font-weight: 900; }
.channel-card { flex-basis: 190px; aspect-ratio: 4 / 5; }
.channel-card .card-info h3 { font-size: 17px; }
.channel-card .card-info p { color: #ff555f; font-weight: 900; }
.rail-btn { position: absolute; z-index: 5; top: 42%; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .72); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.rail-prev { left: -5px; }
.rail-next { right: -5px; }

.app-banner { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; margin: 76px max(18px, calc((100vw - var(--max)) / 2)) 0; padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.app-banner { content-visibility: auto; contain-intrinsic-size: auto 260px; }
.app-banner h2 { max-width: 680px; margin: 0; font-size: clamp(32px, 5vw, 62px); line-height: 1; }
.app-banner > div > p:not(.eyebrow) { max-width: 550px; color: #b6b7bc; line-height: 1.5; }
.app-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.store-btn { min-height: 52px; padding: 0 18px; display: flex; gap: 10px; align-items: center; border: 1px solid var(--red); background: var(--red); color: #fff; cursor: pointer; }
.store-btn:hover { background: #d90b1d; }
.store-btn span { font-size: 22px; color: #fff; }
.store-btn b { font-size: 13px; }
.app-actions small { color: #787980; font-size: 11px; }
footer { margin-top: 62px; padding: 35px max(18px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; gap: 24px; border-top: 1px solid var(--line); color: #8d8e95; }
footer p { margin: 0; font-size: 12px; }
footer > div { margin-left: auto; display: flex; gap: 16px; font-size: 12px; }

.download-modal { width: min(440px, calc(100% - 30px)); padding: 30px; border: 1px solid #45464b; background: #18191c; color: #fff; }
.download-modal::backdrop { background: rgba(0, 0, 0, .75); }
.download-modal h2 { margin: 8px 0 12px; font-size: 32px; }
.download-modal p:not(.eyebrow) { color: #c0c1c6; line-height: 1.5; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; background: #2b2c31; color: #fff; font-size: 22px; cursor: pointer; }
.modal-disabled { min-height: 44px; padding: 0 16px; border: 0; background: #2f3035; color: #888990; font-weight: 900; cursor: not-allowed; }
.modal-download { min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; border: 0; background: var(--red); color: #fff; font-weight: 900; }
.modal-download:hover { background: #d90b1d; }
.store-btn.is-loading, .modal-download.is-loading { opacity: .72; pointer-events: none; cursor: wait; }
.store-btn.is-loading span { animation: download-pulse .7s ease-in-out infinite alternate; }
@keyframes download-pulse { to { transform: translateY(3px); opacity: .55; } }
.event-toast { position: fixed; z-index: 40; right: 20px; bottom: 20px; max-width: min(390px, calc(100% - 40px)); padding: 14px 16px; border-left: 4px solid var(--yellow); background: #242529; color: #fff; font-size: 13px; line-height: 1.45; box-shadow: 0 12px 34px rgba(0, 0, 0, .42); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.event-toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .navbar { height: 58px; padding: 0 14px; }
  .brand { gap: 6px; font-size: 21px; }
  .brand-mark { width: 27px; height: 27px; }
  footer .brand::before { width: 27px; height: 27px; border-radius: 9px; font-size: 11px; }
  nav { display: none; }
  .nav-actions { gap: 3px; }
  .lang-btn { width: 30px; }
  .nav-download { padding: 0 10px; font-size: 11px; }
  .hero { min-height: 650px; padding: 120px 18px 38px; align-items: flex-start; }
  .hero::after { background: linear-gradient(90deg, #0f0f10 0%, rgba(15, 15, 16, .82) 62%, rgba(15, 15, 16, .28)); }
  .hero-mosaic { right: -54px; bottom: 20px; width: 300px; height: 300px; opacity: .55; }
  .hero-copy > p:not(.eyebrow) { font-size: 17px; }
  .value-section { padding-top: 46px; grid-template-columns: 1fr; gap: 34px; }
  .value-list { grid-template-columns: 1fr; }
  .value-status { margin-top: -8px; }
  .content-section { padding-top: 32px; }
  .section-header h2 { font-size: 21px; }
  .poster-card { flex-basis: 146px; }
  .channel-card { flex-basis: 156px; }
  .rail-btn { display: none; }
  .app-banner { display: block; margin-top: 50px; padding: 36px 18px; }
  .app-actions { align-items: flex-start; margin-top: 22px; }
  footer { display: grid; gap: 13px; margin-top: 40px; }
  footer > div { margin-left: 0; }
}

@media (min-width: 1100px) {
  .poster-card { flex-basis: 190px; }
  .channel-card { flex-basis: 205px; }
}
