:root {
  --bg: #0c0b10;
  --panel: #14131b;
  --accent: #f4b860;
  --link: #ffd9a6;
  --text: #f6f5f2;
  --muted: #b0a9a0;
  --stroke: #2a2836;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Spectral", "Georgia", serif;
  background: radial-gradient(circle at top, #1c1a26 0%, #0b0a0f 60%);
  color: var(--text);
  min-height: 100vh;
}

.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.hero {
  margin-bottom: 24px;
}

.eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 10px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 900px;
  line-height: 1.5;
}

.subtitle a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.player {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.video-stage {
  position: relative;
  background: #050507;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  aspect-ratio: 16 / 9;
}

.video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  left: 0;
  right: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.overlay.top {
  top: 0;
  height: 50%;
}

.overlay.bottom {
  bottom: 0;
  height: 50%;
}

.controls {
  background: var(--panel);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 18px;
  border: 1px solid var(--stroke);
}

.primary {
  background: var(--accent);
  color: #140f0a;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  align-self: start;
}

.control-block {
  display: grid;
  gap: 10px;
}

.control-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border: 1px solid var(--stroke);
  background: transparent;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}

.pill.active {
  border-color: var(--accent);
  color: var(--accent);
}

.pill.secondary {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.radio {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
}

.checkbox {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.slider {
  width: 100%;
  accent-color: var(--accent);
}

.slider:disabled {
  opacity: 0.5;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.footer {
  margin: 40px auto 24px;
  max-width: 1100px;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.footer-link {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (min-width: 900px) {
  .controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .controls .control-block:nth-child(2) {
    grid-column: span 2;
  }
}
