:root {
  color-scheme: dark;
  --background: #080b12;
  --surface: #111621;
  --surface-strong: #171e2c;
  --text: #f7f8fb;
  --muted: #9ba6ba;
  --accent: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(86, 106, 150, 0.18), transparent 35%),
    radial-gradient(circle at 85% 90%, rgba(77, 99, 143, 0.12), transparent 30%),
    var(--background);
}

button {
  font: inherit;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(24px, 5vw, 72px);
}

.video-section {
  width: min(1120px, 100%);
}

.heading-block {
  margin-bottom: clamp(20px, 3vw, 34px);
}

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

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: clamp(14px, 2vw, 24px);
  background: #000;
  box-shadow: var(--shadow);
}

.video-frame iframe,
#player {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-ended {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 7, 11, 0.96);
  backdrop-filter: blur(8px);
}

.video-ended[hidden] {
  display: none;
}

.ended-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.ended-card p {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
}

.ended-card button {
  min-width: 150px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  color: #080b12;
  background: var(--accent);
  cursor: pointer;
  font-weight: 750;
  transition: transform 160ms ease, opacity 160ms ease;
}

.ended-card button:hover {
  transform: translateY(-1px);
}

.ended-card button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
}

.notice {
  color: var(--muted);
}

@media (max-width: 640px) {
  .page-shell {
    padding: 20px;
  }

  .video-frame {
    border-radius: 12px;
  }
}
