:root {
  color-scheme: dark;
  --bg: #0e0f12;
  --surface: #17191f;
  --surface-2: #1e2129;
  --line: #2c303a;
  --text: #f3f0e8;
  --muted: #a3a8b4;
  --gold: #e4c36a;
  --gold-ink: #1a1408;
  --danger-soft: #c9b49a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 system-ui, "Segoe UI", sans-serif;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 8px;
}

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

.brand {
  margin: 2px 0 0;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.plan {
  max-width: 340px;
  text-align: right;
}

.plan p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.sub, .restore {
  appearance: none;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.sub {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.sub:hover, .sub:focus-visible, .restore:hover, .restore:focus-visible, .play:hover, .play:focus-visible, .skip:hover, .skip:focus-visible, .back:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.restore {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 20px 48px;
}

.section-title {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.film-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.poster {
  min-height: 280px;
  background:
    radial-gradient(circle at 30% 20%, rgba(228, 195, 106, 0.28), transparent 42%),
    linear-gradient(160deg, #2a2418, #12141a 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}

.poster-kicker {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.poster-title {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 28px;
  line-height: 1.15;
}

.film-copy {
  padding: 22px 22px 22px 0;
}

.film-copy h3 {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 32px;
  font-weight: 600;
}

.runtime {
  color: var(--muted);
  margin: 6px 0 10px;
}

.play, .skip {
  appearance: none;
  border: 0;
  background: var(--text);
  color: #14151a;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.player h2 {
  margin: 8px 0 4px;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 28px;
}

.player-note, .back {
  color: var(--muted);
}

.back {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stage {
  position: relative;
  margin-top: 14px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  max-height: 80vh;
  object-fit: contain;
}

.stage.vertical {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.stage.vertical video {
  width: auto;
  max-width: 100%;
  height: 80vh;
}

.ad {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 12, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ad[hidden] { display: none; }

.ad-card {
  width: min(420px, 100%);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.ad-kicker {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.ad-card h3 {
  margin: 6px 0 8px;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 28px;
}

.ad-card p { margin: 0 0 12px; color: var(--danger-soft); }

.countdown { color: var(--muted) !important; font-size: 14px; }

.skip { margin-top: 4px; }

.status-on {
  display: inline-block;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #243024;
  color: #d5ecd4;
  font-size: 14px;
}

@media (max-width: 700px) {
  .top { flex-direction: column; align-items: flex-start; }
  .plan { text-align: left; max-width: none; }
  .film-card { grid-template-columns: 1fr; }
  .poster { min-height: 180px; }
  .film-copy { padding: 0 18px 18px; }
}

.cards { display: grid; gap: 18px; }

.ad { padding: 0; background: #000; }
.ad-video { width: 100%; height: 100%; max-height: none; object-fit: contain; aspect-ratio: auto; }
.ad-label { position: absolute; top: 12px; left: 14px; margin: 0; color: var(--gold); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.ad .countdown { color: var(--muted) !important; text-transform: none; }
.ad .skip { position: absolute; right: 14px; bottom: 14px; margin: 0; }
