:root {
  color-scheme: dark;
  --bg: #071018;
  --bg-2: #0c1722;
  --bg-3: #12202e;
  --ink: #f4f8fb;
  --muted: #c5d2e0;
  --faint: #9aafc2;
  --line: rgba(122, 196, 232, 0.24);
  --accent: #3ec1ff;
  --accent-2: #8fe2ff;
  --accent-ink: #062033;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: Outfit, "Segoe UI", Helvetica, sans-serif;
}

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

html, body { overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(62, 193, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 193, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
}

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

:focus-visible {
  outline: 3px solid #f4fbff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #062033;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 30;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus { top: 12px; }

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

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.9);
  backdrop-filter: blur(12px);
}

.top-inner,
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  gap: 6px;
  align-items: center;
  text-decoration: none;
}

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  background: #101a26;
  color: var(--ink);
  border: 1px solid rgba(180, 210, 230, 0.28);
  border-bottom-width: 3px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.key-on {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent-2);
  border-bottom-color: #0d7eab;
}

.tag, .foot p { margin: 0; color: var(--muted); }

.foot {
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

.foot a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.foot a:hover { text-decoration: underline; }

main.wrap { padding-top: 28px; padding-bottom: 56px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1,
.copy h1,
.stats-page h1,
.panel h2,
.shelf h2,
dialog h2 {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.9;
  margin: 0;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
  max-width: 12ch;
}

.lede, .stats-lead, .copy p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 340px));
  gap: 18px;
  margin-top: 28px;
}

.card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  min-height: 100%;
}

.card:hover { border-color: var(--accent); }

.thumb { position: relative; display: block; aspect-ratio: 16/9; background: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.len {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(4, 10, 16, 0.82);
  color: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
}

.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; }
.card-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.6rem;
  line-height: 0.95;
}
.card-desc { color: var(--muted); }

.watch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  grid-template-areas:
    "main side"
    "reviews reviews"
    "form form";
  gap: 22px 24px;
  align-items: start;
}

.main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.side { grid-area: side; display: flex; flex-direction: column; gap: 16px; }
.reviews { grid-area: reviews; }
.review-form { grid-area: form; }
.copy h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); margin: 4px 0 10px; }

.theater { min-width: 0; }

.screen {
  position: relative;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 0 0 1px rgba(62, 193, 255, 0.35), 0 22px 50px rgba(0, 0, 0, 0.38);
}

.screen video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.bracket {
  position: absolute;
  width: 26px;
  height: 26px;
  z-index: 2;
  pointer-events: none;
}
.b-tl { top: 10px; left: 10px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.b-tr { top: 10px; right: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.b-bl { bottom: 10px; left: 10px; border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.b-br { bottom: 10px; right: 10px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }

.gate {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  place-items: center;
  background: linear-gradient(180deg, rgba(5, 10, 16, 0.08) 10%, rgba(5, 10, 16, 0.72));
}
.theater[data-mode="idle"] .gate,
.theater[data-mode="ended"] .gate { display: grid; }

.play-gate {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-ink);
  min-width: 132px;
  min-height: 84px;
  padding: 14px 22px 12px;
  border-radius: 16px;
  border-bottom: 4px solid #0d7eab;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: grid;
  justify-items: center;
  gap: 2px;
}
.play-gate svg { display: block; }

.ad-label,
.ad-bar { display: none; }

.ad-label {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(6, 14, 22, 0.86);
  border: 1px solid rgba(62, 193, 255, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.theater[data-mode="ad"] .ad-label { display: inline-flex; }

.ad-bar {
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.theater[data-mode="ad"] .ad-bar { display: flex; }

.cta {
  margin-right: auto;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid #0d7eab;
}
.cta:hover, .buy:hover, .play-gate:hover { background: var(--accent-2); }

.skip {
  min-height: 44px;
  min-width: 148px;
  border-radius: 10px;
  border: 0;
  font: inherit;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  background: #f4f8fb;
  color: #062033;
}
.skip:disabled {
  cursor: default;
  background: rgba(8, 16, 26, 0.9);
  color: #e7eef6;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.skip[hidden] { display: none !important; }

.deck {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.deck-tools { display: flex; gap: 6px; }

.time {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}
.time .slash { opacity: 0.6; margin: 0 2px; }

.icon-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--ink);
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  border-bottom-width: 3px;
  font-weight: 700;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 8px;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn:disabled { opacity: 0.45; cursor: default; }
.icon-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent-2);
}
#play-toggle {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent-2);
  border-bottom-color: #0d7eab;
}
#play-toggle[data-state="pause"] .icon-play,
#play-toggle[data-state="play"] .icon-pause,
#mute-btn[data-state="on"] .icon-muted,
#mute-btn[data-state="muted"] .icon-sound { display: none; }

.seek {
  --p: 0%;
  flex: 1;
  min-width: 0;
  appearance: none;
  height: 28px;
  background: transparent;
  margin: 0;
  cursor: pointer;
}
.seek:disabled { cursor: default; }
.seek::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) var(--p), #24364a var(--p));
}
.seek::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border-radius: 4px;
  background: #f4f8fb;
  border: 0;
}
.seek::-moz-range-track {
  height: 6px;
  border-radius: 99px;
  background: #24364a;
}
.seek::-moz-range-progress {
  height: 6px;
  border-radius: 99px;
  background: var(--accent);
}
.seek::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 4px;
  background: #f4f8fb;
}

.panel, .shelf, .reviews, .review-form, .review-admin, .admin-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.shelf { padding: 14px 14px 8px; }
.panel-body { padding: 14px 16px 16px; }
.kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.panel h2 { font-size: clamp(1.8rem, 2vw, 2.3rem); }
.preview { background: #071018; }
.preview video,
.cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: #071018;
}
.preview video[hidden],
.cover[hidden] { display: none !important; }
.benefit { margin: 8px 0 0; color: var(--muted); }
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 0;
}
.amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: 3rem;
  color: var(--accent);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.note { font-weight: 700; }
.sub { margin: 4px 0 0; color: var(--muted); }
.sub s { color: var(--faint); }
.buy {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  border-bottom: 4px solid #0d7eab;
}

.shelf h2 { font-size: 1.45rem; margin-bottom: 8px; }
.shelf ul { list-style: none; margin: 0; padding: 0; }
#others > li { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 12px 0; }
.other {
  display: grid;
  grid-template-columns: 144px 1fr;
  grid-template-areas: "img copy" "img go";
  gap: 4px 12px;
  text-decoration: none;
  color: inherit;
}
.other img {
  grid-area: img;
  width: 144px;
  height: 81px;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
}
.other-copy { grid-area: copy; display: flex; flex-direction: column; min-width: 0; }
.other-name { font-weight: 700; font-size: 1.05rem; }
.other-price { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.other-go { grid-area: go; color: var(--accent); font-weight: 700; font-size: 0.88rem; }
.other:hover .other-name { color: var(--accent-2); }
.empty { color: var(--muted); }
.trust { list-style: none; margin: 10px 0 0; padding: 0; color: var(--muted); font-size: 0.88rem; }
.trust li { margin: 2px 0; }
.guarantee { margin: 8px 0 0; font-weight: 700; }
.reviews[hidden],
.review-form[hidden] { display: none !important; }
.reviews, .review-form, .review-admin { padding: 16px; }
.reviews h2, .review-form h2, .review-admin h1, .admin-card h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.review-form label, .review-admin label { display: block; margin: 10px 0; font-weight: 600; }
.review-form input, .review-form select, .review-form textarea, .review-admin input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.review-form fieldset.stars {
  border: 0;
  margin: 12px 0;
  padding: 0;
}
.review-form fieldset.stars legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.star-row { display: flex; gap: 4px; align-items: center; }
.review-form .star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0;
  cursor: pointer;
}
.review-form .star input {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.star-glyph {
  font-size: 1.8rem;
  line-height: 1;
  color: #6d7f90;
  pointer-events: none;
}
.star.is-on .star-glyph { color: var(--accent); }
.star:focus-within {
  outline: 3px solid #f4fbff;
  outline-offset: 2px;
  border-radius: 8px;
}
.review-open {
  width: 100%;
  text-align: left;
}
.review-form button, .review-open, .review-admin button, .admin-actions button {
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  cursor: pointer;
}
.admin-actions { display: flex; gap: 8px; }
.admin-card { margin-top: 12px; padding: 12px; }
.review-tag { color: var(--accent); font-size: 0.88rem; font-weight: 700; }
.form-error { color: #ffb4b4; font-weight: 700; }

.stats-page h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 8px; }
.table-scroll { overflow-x: auto; margin: 18px 0 8px; }
table.stats {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-2);
  border: 1px solid var(--line);
  min-width: 640px;
}
table.stats caption {
  caption-side: top;
  text-align: left;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  padding: 0 0 8px;
}
table.stats th,
table.stats td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  white-space: nowrap;
}
table.stats th {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
table.stats td.num,
table.stats th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.fine { color: var(--faint); font-size: 0.92rem; max-width: 70ch; }

dialog {
  width: min(440px, calc(100% - 32px));
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.66); }
dialog ul { padding-left: 18px; }
dialog li { margin: 8px 0; }
dialog kbd {
  font-family: var(--display);
  font-size: 0.95rem;
  background: #101a26;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 6px;
  padding: 0 6px;
}
#help-close {
  margin-top: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  cursor: pointer;
}

.theater:fullscreen {
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
}
.theater:fullscreen .screen { flex: 1; aspect-ratio: auto; border-radius: 0; }

video::cue {
  background: rgba(4, 10, 16, 0.82);
  color: #fff;
  font-family: Outfit, "Segoe UI", sans-serif;
}

@media (max-width: 900px) {
  .watch {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main"
      "side"
      "reviews"
      "form";
  }
}

@media (max-width: 700px) {
  .deck { flex-wrap: wrap; }
  .seek { flex: 1 1 auto; min-width: 72px; }
  .deck-tools { flex: 1 0 100%; }
  .ad-bar { flex-wrap: wrap; }
  .cta { margin-right: 0; }
  .cta, .skip { flex: 1 1 auto; justify-content: center; border-radius: 999px; }
  .tag { display: none; }
  .hero h1 { max-width: none; }
}

@media (max-width: 420px) {
  .wrap { width: min(1180px, calc(100% - 24px)); }
  .key { min-width: 0; height: 36px; padding: 0 8px; font-size: 16px; }
  .top-inner, .foot-inner { min-height: 60px; }
  .amount { font-size: 2.6rem; }
}

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