:root {
  --bg: #0a0a0c;
  --surface: #111116;
  --surface-2: #17171f;
  --ink: #ece8df;
  --ink-muted: #98938a;
  --ink-dim: #6e6a62;
  --line: rgba(236, 232, 223, 0.11);
  --line-strong: rgba(236, 232, 223, 0.22);
  --accent: #c8442f;
  --accent-bright: #e05a42;
  --accent-soft: rgba(200, 68, 47, 0.14);
  --ok: #6ca97a;
  --radius: 12px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-serif: ui-serif, Georgia, "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background:
    radial-gradient(900px 520px at 50% -120px, rgba(200, 68, 47, 0.12), transparent 68%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

img, video {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: 8px;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
}

.mono-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 10, 12, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--accent);
  color: #faf7f0;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.nav-link {
  font-size: 13.5px;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 7px;
  white-space: nowrap;
  transition: color 140ms ease, background-color 140ms ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(236, 232, 223, 0.06);
}

.btn-subtle,
.btn-outline,
.btn-primary-copy,
.reel-tab,
.install-tab,
.chapter-chip,
.tr-pill {
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.btn-subtle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-subtle:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.btn-outline {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: var(--accent-bright);
  color: #fff;
}

/* Hero Cinema Screen */
.hero {
  padding: 24px 0 48px;
}

.hero-copy {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 18px;
}

.eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.1vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #f7f3ea;
}

.lead {
  margin: 0 auto;
  max-width: 680px;
  font-size: clamp(14px, 1.5vw, 16.5px);
  color: var(--ink-muted);
}

.status-banner {
  margin: 0 auto 18px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(200, 68, 47, 0.45);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14px;
}

.cinema-shell {
  max-width: 980px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
}

.cinema-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050507;
  overflow: hidden;
}

.hero-poster,
.teaser-video,
.main-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.teaser-video {
  opacity: 0;
  transition: opacity 420ms ease;
  pointer-events: none;
}

.teaser-video.is-ready {
  opacity: 1;
}

.main-video {
  object-fit: contain;
  background: #050507;
  z-index: 4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 24px 20px 26px;
  gap: 16px;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.08) 0%, rgba(10, 10, 12, 0.28) 54%, rgba(10, 10, 12, 0.86) 100%);
}

.hero-overlay[hidden] {
  display: none;
}

.btn-play-cinema {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(200, 68, 47, 0.94);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(200, 68, 47, 0.42);
  transition: transform 150ms ease, background-color 150ms ease;
}

.btn-play-cinema:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
}

.play-tri {
  font-size: 13px;
}

.hero-overlay-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  color: rgba(236, 232, 223, 0.86);
}

.hero-install-jump {
  color: #f3c6a8;
  text-decoration: none;
  font-weight: 600;
}

.hero-install-jump:hover {
  text-decoration: underline;
}

.timeline-strip {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  background: #0d0d11;
}

.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.timeline-kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
}

.chapters-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.chapter-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chapter-chip:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.chapter-chip.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.chapter-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-bright);
}

.chapter-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-bar {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-item {
  padding: 20px 14px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  color: #f7f3ea;
}

.stat-item span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-compact {
  padding: 28px 0 48px;
}

.section-divider {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.2;
  color: #f7f3ea;
}

.section-sub {
  margin: 0;
  font-size: 15px;
  color: var(--ink-muted);
}

/* Dual Reel & Aspect Stage */
.reel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.reel-tab {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-muted);
  padding: 9px 15px;
  font-size: 13.5px;
  font-weight: 600;
}

.reel-tab:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.reel-tab.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #fff;
}

.reel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: start;
}

.reel-stage-wrap {
  min-width: 0;
}

.reel-frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #060608;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reel-frame.is-landscape video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

.reel-frame.is-portrait {
  padding: 22px 16px;
  background: radial-gradient(circle at 50% 15%, rgba(200, 68, 47, 0.12), #070709 68%);
}

.reel-frame.is-portrait video {
  width: min(300px, 100%);
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  border: 6px solid #26262f;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.7);
  display: block;
}

.reel-caption-bar {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.reel-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #f3c6a8;
}

.reel-notes {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.reel-notes h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 20px;
  color: #f7f3ea;
}

.reel-summary {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ink-muted);
}

.contrast-table {
  border-top: 1px solid var(--line);
}

.contrast-head,
.contrast-row {
  display: grid;
  grid-template-columns: 0.78fr 1fr 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  align-items: baseline;
}

.contrast-head {
  color: var(--ink-dim);
  font-weight: 600;
}

.contrast-row span {
  color: var(--ink-muted);
}

.contrast-row strong {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.portrait-callout {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-muted);
}

/* A24 Film-Festival Style Index */
.index-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: start;
}

.index-stage {
  position: sticky;
  top: 78px;
  min-width: 0;
}

.index-frame-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #060608;
  cursor: pointer;
}

.index-frame-btn img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.76);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 11.5px;
  backdrop-filter: blur(6px);
}

.index-stage-meta {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.index-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.index-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-bright);
  font-weight: 700;
}

.index-title-row h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  color: #f7f3ea;
}

.style-slug {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
}

.index-desc {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.style-index-list {
  min-width: 0;
  border-top: 1px solid var(--line);
}

.style-row {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  border: none;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.style-row:hover {
  color: var(--ink);
  background: rgba(236, 232, 223, 0.035);
}

.style-row.is-active {
  color: #fff;
  background: var(--accent-soft);
  border-left-color: var(--accent-bright);
}

.style-row-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.style-row-idx {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-dim);
  flex-shrink: 0;
}

.style-row.is-active .style-row-idx {
  color: var(--accent-bright);
}

.style-row-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.style-row-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  flex-shrink: 0;
}

.transitions-bar {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.transitions-bar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 14px;
}

.transitions-hint {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.transitions-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tr-pill {
  padding: 5px 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.tr-pill.is-playable {
  border-color: rgba(200, 68, 47, 0.45);
  color: #f3c6a8;
}

.tr-pill.is-playable:hover {
  border-color: var(--accent-bright);
  background: var(--accent-soft);
  color: #fff;
}

.tr-pill.is-static {
  cursor: default;
  opacity: 0.72;
}

/* Install Box */
.install-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.install-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: #0d0d11;
  overflow-x: auto;
}

.install-tab {
  border: none;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  padding: 13px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.install-tab:hover {
  color: var(--ink);
}

.install-tab.is-active {
  color: #fff;
  border-bottom-color: var(--accent-bright);
  background: rgba(200, 68, 47, 0.08);
}

.install-panel {
  padding: 20px;
}

.install-cmd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #060608;
  border: 1px solid var(--line);
}

.install-cmd-row pre {
  margin: 0;
  min-width: 0;
  flex: 1;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
  color: #f6f2e8;
}

.btn-primary-copy {
  flex-shrink: 0;
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
}

.btn-primary-copy:hover {
  background: var(--accent-bright);
}

.install-foot {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-muted);
}

.host-line {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-dim);
}

.honest-prereq {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink-dim);
}

/* Collapsible Engineering Evidence */
.evidence-details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.evidence-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  font-size: 14px;
}

.evidence-summary::-webkit-details-marker {
  display: none;
}

.evidence-summary-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
}

.evidence-chevron {
  font-size: 12.5px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.evidence-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
}

.ev-metrics {
  margin: 16px 0 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ev-metrics div {
  padding: 10px 12px;
  border-radius: 9px;
  background: #0c0c10;
  border: 1px solid var(--line);
}

.ev-metrics dt {
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ev-metrics dd {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.gate-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.gate-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(108, 169, 122, 0.36);
  background: rgba(108, 169, 122, 0.12);
  color: #9dd4aa;
}

.gate-chip.is-fail {
  border-color: rgba(200, 68, 47, 0.5);
  background: var(--accent-soft);
  color: #f3a89a;
}

.ev-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.inline-link {
  font-size: 13px;
  color: #f3c6a8;
  text-decoration: none;
  font-weight: 600;
}

.inline-link:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 46px;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-attr {
  max-width: 680px;
}

.footer-attr p {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--ink-dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 600;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-muted);
}

.footer-links a:hover {
  color: var(--ink);
}

/* Lightbox */
.lightbox {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 0;
  width: min(1080px, calc(100% - 24px));
  background: #101014;
  color: var(--ink);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.85);
}

.lightbox::backdrop {
  background: rgba(5, 5, 8, 0.86);
  backdrop-filter: blur(8px);
}

.lightbox-inner {
  padding: 14px;
}

.lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.lightbox-controls {
  display: flex;
  gap: 6px;
}

.lightbox img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  padding: 10px 18px;
  border-radius: 999px;
  background: #1c1c24;
  border: 1px solid var(--accent-bright);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

/* Responsive */
@media (max-width: 960px) {
  .chapters-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .reel-grid,
  .index-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .index-stage {
    position: static;
  }
  .style-index-list {
    display: flex;
    overflow-x: auto;
    border-top: none;
    gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .style-row {
    flex: 0 0 auto;
    width: auto;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 8px 12px;
  }
  .style-row-sub {
    display: none;
  }
  .ev-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 24px);
  }
  .nav-link {
    display: none;
  }
  .hero {
    padding: 20px 0 36px;
  }
  .hero-overlay {
    justify-content: center;
    padding: 12px;
    gap: 0;
  }
  .btn-play-cinema {
    padding: 9px 18px;
    font-size: 13.5px;
  }
  .hero-overlay-meta {
    display: none;
  }
  .chapters-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-item:nth-child(2n) {
    border-right: none;
  }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .install-cmd-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary-copy {
    width: 100%;
  }
  .index-stage-meta {
    flex-direction: column;
  }
  .contrast-head,
  .contrast-row {
    font-size: 11.5px;
    gap: 6px;
  }
}
