:root {
  color-scheme: dark;
  --bg: #08090d;
  --panel: #14161d;
  --panel-strong: #1d2029;
  --text: #f7f5ee;
  --muted: #b6b1a7;
  --line: rgba(255, 255, 255, 0.12);
  --red: #e50914;
  --gold: #e2b45a;
  --green: #20b486;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input {
  font: inherit;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(8, 9, 13, 0.94), rgba(8, 9, 13, 0.48), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  display: block;
  width: 58px;
  height: auto;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #fff;
  line-height: 1;
}

.brand-text strong {
  color: #fb842b;
  font-size: 24px;
  letter-spacing: 0;
}

.brand-text em {
  color: #fff;
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: clamp(12px, 3vw, 30px);
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.nav a:hover {
  color: #fff;
}

.hero {
  position: relative;
  padding: 92px clamp(18px, 5vw, 72px) 34px;
  background: #050507;
}

.hero-player {
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.hero-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(650px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow:empty {
  display: none;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.primary-btn {
  background: var(--red);
  color: #fff;
}

.primary-btn:hover {
  background: #ff1924;
}

.secondary-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.section,
.release-band,
.footer {
  padding-inline: clamp(18px, 5vw, 72px);
}

.section {
  padding-block: 14px 54px;
}

.film-strip {
  background: #08090d;
}

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

.section-heading p:last-child,
.contact p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

.film-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.film-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.film-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 220ms ease;
}

.poster-button {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: #000;
  cursor: pointer;
}

.film-card:hover img {
  transform: scale(1.035);
}

.film-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 12px;
  padding: 120px 18px 18px;
  background: linear-gradient(0deg, rgba(8, 9, 13, 0.98) 0%, rgba(8, 9, 13, 0.82) 45%, transparent 100%);
}

.film-info h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: 0;
}

.film-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
}

.film-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.film-controls .primary-btn,
.film-controls .secondary-btn {
  width: 100%;
  min-height: 40px;
  padding-inline: 10px;
}

.release-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: start;
  padding-block: 48px;
  background: #101116;
  border-block: 1px solid var(--line);
}

.release-list {
  display: grid;
  gap: 10px;
}

.release-list article {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--panel);
}

.release-list span {
  color: var(--green);
  font-weight: 800;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-block: 24px;
  color: rgba(255, 255, 255, 0.56);
  border-top: 1px solid var(--line);
}

.modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.78);
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(1060px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.buy-panel {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 42px);
}

.buy-panel h2 {
  margin-bottom: 14px;
}

.buy-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.purchase-options {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.buy-code-form {
  margin-block: 18px 6px;
}

.icon-btn {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  cursor: pointer;
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
}

.modal-poster {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: contain;
  background: #000;
}

.modal-content {
  padding: clamp(22px, 4vw, 42px);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.credits {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.credits strong {
  color: #fff;
}

.access-form {
  display: grid;
  gap: 9px;
  margin: 20px 0;
}

.access-form label {
  font-weight: 800;
}

.code-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.code-line input {
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #0b0d12;
  color: #fff;
  text-transform: uppercase;
}

.error {
  min-height: 22px;
  margin: 0;
  color: #ff858b;
  font-weight: 700;
}

.player-wrap {
  margin: 18px 0;
}

.player-wrap video,
.player-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  border: 0;
  border-radius: 8px;
  background: #000;
}

@media (max-width: 860px) {
  .topbar {
    position: absolute;
  }

  .nav {
    display: none;
  }

  .hero {
    padding: 82px 0 24px;
  }

  .brand-logo {
    width: 46px;
  }

  .brand-text strong,
  .brand-text em {
    font-size: 19px;
  }

  .section-heading,
  .contact,
  .footer {
    align-items: start;
    flex-direction: column;
  }

  .film-row,
  .release-band,
  .modal-layout {
    grid-template-columns: 1fr;
  }

  .film-card {
    display: grid;
    min-height: auto;
    aspect-ratio: auto;
    background: #0b0d12;
  }

  .poster-button {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .film-card img {
    transform: none;
  }

  .film-card:hover img {
    transform: none;
  }

  .film-info {
    position: static;
    gap: 10px;
    padding: 14px;
    background: #11131a;
  }

  .film-info h3 {
    font-size: clamp(22px, 6vw, 32px);
  }

  .film-info p {
    font-size: 15px;
  }

  .film-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .film-controls .primary-btn,
  .film-controls .secondary-btn {
    min-height: 38px;
    padding-inline: 8px;
    font-size: 13px;
    line-height: 1.15;
  }

  .modal-poster {
    min-height: 360px;
    max-height: 440px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-bottom: 44px;
  }

  .code-line,
  .release-list article {
    grid-template-columns: 1fr;
  }

  .film-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .film-controls .primary-btn:first-child {
    grid-column: 1 / -1;
  }
}

.payment-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 22px;
  background: #08090d;
}

.payment-shell {
  width: min(680px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 48px);
  text-align: center;
}

.payment-shell h1 {
  margin-bottom: 16px;
  font-size: clamp(32px, 6vw, 58px);
}

.payment-shell p {
  color: var(--muted);
  line-height: 1.7;
}

.payment-shell .primary-btn,
.payment-shell .secondary-btn {
  width: min(360px, 100%);
  margin: 8px auto 0;
}

.payment-logo {
  width: 92px;
  margin-bottom: 18px;
}

.watch-page {
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.watch-shell {
  position: relative;
  min-height: 100vh;
  background: #000;
}

.watch-frame {
  width: 100vw;
  height: 100vh;
  height: 100svh;
  background: #000;
}

.watch-frame iframe,
.watch-frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: contain;
}

.watch-frame:fullscreen,
.watch-frame:-webkit-full-screen,
.watch-frame iframe:fullscreen,
.watch-frame video:fullscreen,
.watch-frame iframe:-webkit-full-screen,
.watch-frame video:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  height: 100svh;
  background: #000;
}

.watch-frame:fullscreen iframe,
.watch-frame:-webkit-full-screen iframe,
.watch-frame:fullscreen video,
.watch-frame:-webkit-full-screen video {
  width: 100%;
  height: 100%;
}

.watch-buy {
  position: fixed;
  z-index: 10;
  right: 18px;
  bottom: 18px;
  box-shadow: var(--shadow);
}

.episode-panel {
  position: fixed;
  z-index: 9;
  left: 18px;
  bottom: 18px;
  width: min(360px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 9, 13, 0.86);
  padding: 16px;
  box-shadow: var(--shadow);
}

.episode-panel h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.episode-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.episode-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.episode-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.episode-button.active {
  background: var(--red);
  border-color: var(--red);
}

.watch-message {
  display: grid;
  min-height: 100vh;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 22px;
  color: #fff;
  text-align: center;
}

.watch-message h1 {
  margin-bottom: 0;
}

.watch-message p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 700px) {
  .episode-panel {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    padding: 12px;
  }

  .episode-panel h2 {
    font-size: 18px;
  }

  .episode-panel p:not(.eyebrow) {
    font-size: 13px;
  }
}
