:root {
  --bg: #09090c;
  --surface: #121218;
  --surface-2: #19191f;
  --ink: #f5f2e9;
  --muted: #a8a5a0;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #ffcc33;
  --accent-2: #ff7043;
  --page: min(1200px, calc(100% - 48px));
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -8%, rgba(255, 112, 67, 0.11), transparent 27rem),
    var(--bg);
}

body.has-dialog {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  color: #08080a;
  background: var(--accent);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: var(--page);
  min-height: 84px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.brand__mark::before,
.brand__mark::after {
  position: absolute;
  width: 3px;
  height: 3px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
}

.brand__mark::before { top: 4px; left: 7px; }
.brand__mark::after { top: 3px; right: 7px; }

.brand__mark span {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--accent);
  transform: translateX(1px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.header-cta {
  justify-self: end;
  padding: 10px 16px;
  border: 1px solid rgba(255, 204, 51, 0.45);
  color: var(--accent);
  background: rgba(255, 204, 51, 0.06);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  transition: background 160ms ease, color 160ms ease;
}

.header-cta:hover {
  color: #111;
  background: var(--accent);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(440px, 1.14fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
  width: var(--page);
  min-height: calc(100svh - 84px);
  margin: 0 auto;
  padding: 72px 0 86px;
}

.hero__glow {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  filter: blur(2px);
  border-radius: 50%;
}

.hero__glow--one {
  top: 17%;
  right: 14%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 204, 51, 0.12), transparent 67%);
}

.hero__glow--two {
  bottom: 4%;
  left: -18%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 112, 67, 0.07), transparent 65%);
}

.eyebrow,
.section-kicker,
.section-index {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow span {
  display: inline-grid;
  width: 33px;
  height: 22px;
  place-items: center;
  color: #09090c;
  background: var(--accent);
  border-radius: 5px;
  font-size: 10px;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 600px;
  margin: 24px 0 20px;
  font-size: clamp(60px, 7.3vw, 112px);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.hero h1 span {
  position: relative;
  color: var(--accent);
}

.hero h1 span::after {
  position: absolute;
  right: -0.12em;
  bottom: -0.05em;
  left: -0.03em;
  height: 0.08em;
  content: "";
  background: var(--accent-2);
  border-radius: 999px;
  transform: rotate(-2deg);
}

.hero__lead {
  max-width: 480px;
  margin: 0;
  color: #bbb7b0;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.85;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.025em;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #0b0b0d;
  background: var(--accent);
  box-shadow: 0 14px 44px rgba(255, 204, 51, 0.18);
}

.button--primary:hover {
  background: #ffda61;
}

.button--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
}

.button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.button__play {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.hero__facts {
  display: flex;
  gap: 28px;
  margin: 42px 0 0;
}

.hero__facts div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 27px;
  border-right: 1px solid var(--line);
}

.hero__facts div:last-child {
  padding-right: 0;
  border-right: 0;
}

.hero__facts dt {
  font-size: 18px;
  font-weight: 850;
}

.hero__facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.screen-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.screen-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px 7px;
  color: #8e8b86;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.11em;
}

.screen-label span {
  width: 6px;
  height: 6px;
  background: #ff5a4d;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 90, 77, 0.09);
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  50% { opacity: 0.38; }
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #15151a;
  border-radius: var(--radius);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.55);
}

.video-shell::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
}

#trailer {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #1f1e23, #08080b);
}

.video-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(5, 5, 7, 0.86) 100%);
}

.sound-callout {
  position: absolute;
  z-index: 6;
  top: 43px;
  left: 50%;
  transform: translateX(-50%);
}

.sound-button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.27);
  color: #fff;
  background: rgba(8, 8, 10, 0.77);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

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

.sound-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sound-button__slash {
  fill: none;
  stroke: var(--accent-2);
  stroke-linecap: round;
  stroke-width: 2;
}

.sound-button[aria-pressed="true"] .sound-button__slash {
  display: none;
}

.video-meta {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.video-meta > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.video-meta__kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.video-meta strong {
  overflow: hidden;
  font-size: clamp(16px, 2vw, 23px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-meta__time {
  flex: 0 0 auto;
  color: #d4d1cb;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.video-progress {
  position: absolute;
  right: 22px;
  bottom: 12px;
  left: 22px;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 99px;
}

.video-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 160ms linear;
}

.video-status {
  min-height: 18px;
  margin: 10px 4px 0;
  color: #77746f;
  font-size: 11px;
}

.video-retry {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  padding: 11px 15px;
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(8, 8, 10, 0.86);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.catalog {
  padding: 104px max(24px, calc((100vw - 1200px) / 2)) 132px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 14rem),
    #0c0c10;
  border-top: 1px solid var(--line);
}

.catalog__intro {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 80px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.catalog__intro > p:last-child {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
}

.content-section + .content-section {
  margin-top: 120px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-kicker {
  color: var(--accent-2);
}

.section-heading h2,
.final-cta h2,
.countdown-panel h2 {
  margin: 9px 0 0;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-count {
  padding-bottom: 6px;
  color: #77746e;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 20px;
}

.movie-card {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.movie-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #17171d;
  border-radius: 16px;
}

.movie-card__image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 47%, rgba(5, 5, 7, 0.74));
  opacity: 0.8;
  transition: opacity 220ms ease;
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.2, 0.75, 0.2, 1), filter 220ms ease;
}

.movie-card:hover img,
.movie-card:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.movie-card:hover .movie-card__image::after {
  opacity: 0.38;
}

.movie-card__rank {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: #0c0c0e;
  background: var(--accent);
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 900;
}

.movie-card__watch {
  position: absolute;
  z-index: 2;
  right: 13px;
  bottom: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.movie-card__watch::before {
  width: 0;
  height: 0;
  content: "";
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid var(--accent);
}

.movie-card__body {
  padding: 15px 2px 0;
}

.movie-card__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.movie-card h3 {
  overflow: hidden;
  margin: 0;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card__arrow {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 18px;
  transition: transform 180ms ease;
}

.movie-card:hover .movie-card__arrow {
  transform: translate(3px, -2px);
}

.movie-card__intro {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.3em;
  margin: 8px 0 0;
  color: #94918c;
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.loading-card {
  aspect-ratio: 1.45 / 1;
  background: linear-gradient(105deg, #15151a 20%, #202027 36%, #15151a 52%);
  background-size: 200% 100%;
  border-radius: 16px;
  animation: skeleton 1.3s linear infinite;
}

@keyframes skeleton {
  to { background-position-x: -200%; }
}

.content-error {
  display: grid;
  gap: 6px;
  margin-top: 36px;
  padding: 28px;
  border: 1px solid rgba(255, 112, 67, 0.32);
  background: rgba(255, 112, 67, 0.06);
  border-radius: 14px;
}

.content-error[hidden] { display: none; }
.content-error span { color: var(--muted); font-size: 13px; }
.content-error button { width: fit-content; margin-top: 10px; padding: 8px 12px; border: 1px solid var(--line); background: transparent; border-radius: 99px; cursor: pointer; }

.final-cta {
  display: grid;
  min-height: 540px;
  place-content: center;
  justify-items: center;
  padding: 90px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 204, 51, 0.13), transparent 34rem),
    linear-gradient(180deg, #0c0c10, #09090c);
  border-top: 1px solid var(--line);
}

.final-cta h2 {
  margin-bottom: 34px;
  font-size: clamp(48px, 7vw, 96px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: var(--page);
  margin: 0 auto;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: #77746f;
  font-size: 10px;
  letter-spacing: 0.05em;
}

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

.countdown-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.countdown-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.88);
  backdrop-filter: blur(16px);
}

.countdown-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(520px, 100%);
  justify-items: center;
  padding: 48px 42px 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 204, 51, 0.16), transparent 55%),
    #121218;
  border-radius: 24px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.65);
  text-align: center;
}

.countdown-number {
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  margin: 30px 0 14px;
  border: 1px solid rgba(255, 204, 51, 0.34);
  color: var(--accent);
  background: rgba(255, 204, 51, 0.055);
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 64px;
  font-weight: 850;
  line-height: 1;
  box-shadow: inset 0 0 35px rgba(255, 204, 51, 0.08);
}

.countdown-panel h2 {
  font-size: clamp(30px, 6vw, 46px);
}

.countdown-panel > p:not(.section-kicker) {
  margin: 14px 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.countdown-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  font-size: 25px;
}

.button--wide {
  width: min(300px, 100%);
}

.countdown-cancel {
  margin-top: 16px;
  padding: 7px 10px;
  border: 0;
  color: #86837e;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.noscript {
  position: fixed;
  z-index: 200;
  right: 12px;
  bottom: 12px;
  left: 12px;
  margin: 0;
  padding: 14px;
  color: #111;
  background: var(--accent);
  border-radius: 10px;
  text-align: center;
}

@media (max-width: 1020px) {
  :root { --page: min(100% - 40px, 820px); }
  .hero {
    grid-template-columns: 1fr;
    gap: 58px;
    min-height: 0;
    padding-top: 84px;
  }
  .hero__copy { max-width: 660px; }
  .hero h1 { font-size: clamp(74px, 13vw, 112px); }
  .screen-wrap { max-width: 820px; }
  .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --page: calc(100% - 32px); --radius: 16px; }
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 70px;
  }
  .site-nav { display: none; }
  .header-cta { padding: 9px 12px; font-size: 11px; }
  .brand__name { font-size: 14px; }
  .hero { gap: 42px; padding: 54px 0 72px; }
  .hero__glow--one,
  .hero__glow--two { width: 100vw; height: 100vw; }
  .hero h1 { margin-top: 20px; font-size: clamp(55px, 18vw, 82px); }
  .hero__lead { font-size: 14px; line-height: 1.75; }
  .hero__actions { margin-top: 28px; }
  .hero__facts { gap: 15px; margin-top: 34px; }
  .hero__facts div { padding-right: 15px; }
  .video-shell { aspect-ratio: 16 / 11; }
  .sound-callout { top: 40px; }
  .video-meta { right: 16px; bottom: 19px; left: 16px; }
  .video-progress { right: 16px; bottom: 10px; left: 16px; }
  .catalog { padding: 78px 16px 96px; }
  .catalog__intro { display: block; margin-bottom: 64px; }
  .catalog__intro > p:last-child { margin-top: 16px; text-align: left; }
  .content-section + .content-section { margin-top: 92px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h2 { font-size: 46px; }
  .movie-grid { gap: 28px 12px; }
  .movie-card__image { aspect-ratio: 4 / 3; border-radius: 12px; }
  .movie-card h3 { font-size: 15px; }
  .movie-card__intro { font-size: 11px; }
  .site-footer { flex-direction: column; gap: 8px; }
  .final-cta { min-height: 460px; }
}

@media (max-width: 430px) {
  .hero h1 { letter-spacing: -0.07em; }
  .hero__actions { display: grid; }
  .button { width: 100%; }
  .hero__facts { justify-content: space-between; }
  .hero__facts dt { font-size: 16px; }
  .hero__facts dd { font-size: 9px; }
  .screen-label { margin-left: 2px; }
  .sound-button { padding: 9px 13px; }
  .video-meta__kicker { font-size: 9px; }
  .video-meta strong { font-size: 15px; }
  .section-count { display: none; }
  .movie-grid { grid-template-columns: 1fr; gap: 28px; }
  .movie-card__image { aspect-ratio: 16 / 10; }
  .movie-card h3 { font-size: 18px; }
  .movie-card__intro { font-size: 12px; }
  .countdown-panel { padding: 42px 22px 30px; }
  .countdown-number { width: 104px; height: 104px; font-size: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
