:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --card: #121216;
  --yellow: #ffc82c;
  --yellow-hover: #ffe066;
  --border: #22222a;
  --muted: #8e8e9a;
  --red: #ff4d4d;
  --shell: 1200px;
  --side: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 2%, rgba(255, 200, 44, .07), transparent 25rem),
    var(--bg);
  color: #f8f8fa;
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; }
.shell { width: min(calc(100% - (var(--side) * 2)), var(--shell)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(10, 10, 12, .9);
  backdrop-filter: blur(18px);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 11px; border: 0; padding: 0; background: none; font-size: 20px; font-weight: 900; cursor: pointer; letter-spacing: -.02em; }
.brand-mark, .redirect-logo {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 28px rgba(255,200,44,.24);
}
.brand-mark::before, .redirect-logo::before { content: ""; position: absolute; top: -4px; right: 3px; width: 12px; height: 7px; border-radius: 100% 0 100% 0; background: #9be42a; transform: rotate(-25deg); }
.brand-mark span, .redirect-logo span { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid #0a0a0c; margin-left: 2px; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: 22px; color: #b7b7c0; font-size: 14px; font-weight: 700; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: var(--yellow); }
.header-cta { margin-left: auto; min-height: 40px; padding: 0 19px; border: 1px solid var(--yellow); border-radius: 999px; background: transparent; color: var(--yellow); font-size: 14px; font-weight: 900; cursor: pointer; transition: .2s ease; }
.header-cta:hover { background: var(--yellow); color: #0b0b0d; box-shadow: 0 10px 35px rgba(255,200,44,.18); }

.hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(480px, 1.12fr); gap: clamp(48px, 7vw, 104px); align-items: center; min-height: 620px; padding-block: 76px 88px; border-bottom: 1px solid var(--border); }
.trailer-panel { grid-column: 2; grid-row: 1; position: relative; }
.hero-copy { grid-column: 1; grid-row: 1; }
.now-playing { display: flex; align-items: center; gap: 9px; margin: 0 0 13px 2px; color: var(--yellow); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.now-playing i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(255,77,77,.1); }
.trailer-frame { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16/9; padding: 0; border: 1px solid #2b2b32; border-radius: 16px; background: #000; cursor: pointer; box-shadow: 0 28px 80px rgba(0,0,0,.44); }
.hero-video { height: 100%; object-fit: cover; }
.trailer-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(0,0,0,.84)); pointer-events: none; }
.trailer-meta { position: absolute; left: 22px; bottom: 18px; display: grid; gap: 2px; text-align: left; }
.trailer-meta small { color: var(--yellow); font-weight: 900; letter-spacing: .11em; }
.trailer-meta strong { font-size: 22px; line-height: 1.25; }
.play-disc { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(0,0,0,.38); backdrop-filter: blur(6px); opacity: 0; transform: scale(.85); transition: .2s ease; }
.play-disc span { width: 0; height: 0; margin-left: 4px; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 14px solid #fff; }
.trailer-frame:hover .play-disc { opacity: 1; transform: scale(1); }
.sound-toggle { position: absolute; right: 14px; top: 42px; z-index: 4; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(0,0,0,.6); font-size: 12px; font-weight: 800; cursor: pointer; backdrop-filter: blur(8px); }
.sound-toggle[aria-pressed="true"] { background: var(--yellow); color: #08080a; border-color: var(--yellow); }
.trailer-hint { margin: 11px 2px 0; color: var(--muted); font-size: 12px; text-align: right; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 19px; color: #b7b7c0; font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.eyebrow span { padding: 4px 10px; border-radius: 999px; background: var(--yellow); color: #111; font-size: 12px; letter-spacing: 0; }
.hero h1 { margin: 0; font-size: clamp(58px, 6vw, 90px); line-height: .98; letter-spacing: -.07em; font-weight: 950; }
.hero h1 span { position: relative; display: inline-block; color: var(--yellow); margin-left: .08em; }
.hero h1 span::after { content: ""; position: absolute; left: 2%; right: -2%; bottom: -.08em; height: .09em; background: var(--yellow); transform: rotate(-2deg); }
.hero-copy > p { max-width: 520px; margin: 28px 0 0; color: #aaaab4; font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; margin-top: 31px; }
.primary-button, .secondary-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 23px; border-radius: 999px; font-size: 14px; font-weight: 900; cursor: pointer; transition: .2s ease; }
.primary-button { border: 1px solid var(--yellow); background: var(--yellow); color: #0a0a0c; box-shadow: 0 12px 38px rgba(255,200,44,.14); }
.primary-button:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); transform: translateY(-1px); }
.secondary-button { border: 1px solid #303038; background: #101014; color: #d3d3da; }
.secondary-button:hover { border-color: #5d5d66; color: #fff; }
.button-play { margin-right: 9px; font-size: 11px; }
.stats { display: flex; gap: 0; margin: 42px 0 0; padding: 0; list-style: none; }
.stats li { display: grid; gap: 2px; min-width: 106px; padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--border); }
.stats li:last-child { border: 0; margin: 0; padding: 0; }
.stats strong { color: var(--yellow); font-size: 23px; line-height: 1; }
.stats span { color: var(--muted); font-size: 12px; }

.movie-list { padding-block: 78px 12px; scroll-margin-top: 76px; }
.list-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.list-heading h2 { position: relative; margin: 0; padding-left: 17px; font-size: 28px; letter-spacing: -.04em; }
.list-heading h2::before { content: ""; position: absolute; left: 0; top: 10%; width: 4px; height: 80%; border-radius: 4px; background: var(--yellow); }
.list-heading > span { color: var(--yellow); font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.movie-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.movie { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: var(--card); transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.movie:hover { transform: translateY(-5px); border-color: #48484f; box-shadow: 0 22px 55px rgba(0,0,0,.32); }
.movie-picture { position: relative; overflow: hidden; aspect-ratio: 16/10; background: #09090a; }
.movie-picture img, .movie-picture video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .25s ease; }
.movie-picture video { opacity: 0; }
.movie.video-ready:hover .movie-picture video { opacity: 1; }
.movie:hover .movie-picture img, .movie:hover .movie-picture video { transform: scale(1.035); }
.movie-picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 54%, rgba(0,0,0,.56)); pointer-events: none; }
.rank { position: absolute; z-index: 3; left: 13px; top: 13px; min-width: 35px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(255,200,44,.6); border-radius: 5px; background: rgba(0,0,0,.76); color: var(--yellow); font-size: 12px; font-weight: 950; }
.watch-label { position: absolute; z-index: 3; right: 13px; bottom: 12px; padding: 5px 9px; border-radius: 4px; background: var(--yellow); color: #0a0a0c; font-size: 10px; font-weight: 950; letter-spacing: .04em; }
.movie-copy { min-height: 112px; padding: 18px 18px 20px; }
.movie-copy > div { display: flex; align-items: center; gap: 12px; }
.movie-copy h3 { overflow: hidden; margin: 0; color: #f3f3f6; font-size: 18px; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; letter-spacing: -.02em; }
.arrow { margin-left: auto; color: var(--yellow); font-size: 20px; }
.movie-copy p { overflow: hidden; margin: 8px 0 0; color: var(--muted); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.movie-action { position: absolute; z-index: 5; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; }
.latest-grid .movie-picture img { object-position: center 31%; }
.site-footer { width: min(calc(100% - (var(--side) * 2)), var(--shell)); margin: 72px auto 0; padding: 27px 0 34px; border-top: 1px solid var(--border); color: #696972; font-size: 12px; text-align: center; }

dialog { color: #fff; }
dialog::backdrop { background: rgba(0,0,0,.86); backdrop-filter: blur(9px); }
.player-dialog { width: min(92vw, 1100px); max-width: none; padding: 0; border: 0; background: transparent; }
.dialog-inner { position: relative; }
.dialog-inner video { max-height: 82vh; border-radius: 13px; background: #000; box-shadow: 0 30px 90px #000; }
.dialog-close, .redirect-close { position: absolute; z-index: 4; top: -47px; right: 0; width: 38px; height: 38px; padding: 0; border: 1px solid #4a4a50; border-radius: 50%; background: #151519; color: #fff; font-size: 25px; line-height: 1; cursor: pointer; }
.redirect-dialog { width: min(92vw, 450px); max-width: none; padding: 0; border: 1px solid #33333a; border-radius: 18px; background: #141418; box-shadow: 0 35px 100px rgba(0,0,0,.65); }
.redirect-card { position: relative; padding: 34px; text-align: center; }
.redirect-close { top: 14px; right: 14px; border: 0; background: transparent; color: #8e8e96; }
.redirect-logo { width: 58px; height: 58px; margin: 0 auto 20px; }
.redirect-kicker { margin: 0; color: var(--yellow); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.redirect-card h2 { margin: 9px 0 10px; font-size: 26px; }
.redirect-copy { margin: 0; color: #9b9ba3; font-size: 14px; }
.countdown { display: grid; margin: 25px 0 20px; }
.countdown strong { color: var(--yellow); font-size: 42px; line-height: 1; }
.countdown span { margin-top: 6px; color: #777780; font-size: 12px; }
.redirect-now { width: 100%; }

@media (max-width: 900px) {
  :root { --side: 18px; }
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 38px; min-height: 0; padding-block: 38px 58px; }
  .trailer-panel, .hero-copy { grid-column: 1; }
  .trailer-panel { grid-row: 1; }
  .hero-copy { grid-row: 2; }
  .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  :root { --side: 14px; }
  .site-header { height: 64px; }
  .header-inner { gap: 12px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 31px; height: 31px; }
  .header-cta { min-height: 37px; padding-inline: 14px; font-size: 12px; }
  .hero { padding-top: 24px; }
  .now-playing { font-size: 10px; }
  .trailer-frame { border-radius: 11px; }
  .trailer-meta { left: 14px; bottom: 13px; }
  .trailer-meta strong { font-size: 17px; }
  .sound-toggle { top: 35px; right: 9px; height: 30px; padding-inline: 9px; font-size: 10px; }
  .trailer-hint { font-size: 10px; }
  .hero h1 { font-size: clamp(53px, 18vw, 76px); }
  .hero-copy > p { font-size: 15px; line-height: 1.8; }
  .hero-actions { display: grid; }
  .primary-button, .secondary-button { width: 100%; min-height: 53px; }
  .stats { justify-content: space-between; margin-top: 34px; }
  .stats li { min-width: 0; margin-right: 0; padding: 0 14px 0 0; }
  .stats strong { font-size: 21px; }
  .movie-list { padding-top: 58px; }
  .list-heading { margin-bottom: 18px; }
  .list-heading h2 { font-size: 23px; }
  .movie-grid { grid-template-columns: 1fr; gap: 16px; }
  .movie-picture { aspect-ratio: 16/9; }
  .movie-copy { min-height: 98px; padding: 15px 15px 17px; }
  .movie-copy h3 { font-size: 17px; }
  .movie:hover { transform: none; }
  .movie.video-ready:hover .movie-picture video { opacity: 0; }
  .redirect-card { padding: 31px 23px 25px; }
}

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