:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #090a0f;
  color: #f5f7fb;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #090a0f;
}

button,
input {
  font: inherit;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  background: #090a0f;
}

.video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05060a;
}

.shade {
  position: absolute;
  inset: auto 0 0;
  height: 42vh;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 6, 10, 0), rgba(5, 6, 10, 0.74) 45%, rgba(5, 6, 10, 0.96));
}

.controls {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: clamp(18px, 4vw, 48px);
  left: clamp(18px, 4vw, 56px);
  display: grid;
  gap: 18px;
  padding: 0;
}

.meta {
  max-width: 760px;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #98f4d1;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 6.8rem);
  line-height: 0.92;
  font-weight: 850;
}

.timeline {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  width: min(880px, 100%);
  color: rgba(245, 247, 251, 0.76);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
  accent-color: #98f4d1;
  cursor: pointer;
}

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

.icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #f5f7fb;
  background: rgba(14, 17, 25, 0.68);
  cursor: pointer;
  backdrop-filter: blur(18px);
}

.icon span {
  overflow: hidden;
  max-width: 34px;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 800;
}

.icon:hover,
.icon:focus-visible {
  border-color: rgba(152, 244, 209, 0.78);
  outline: none;
}

.primary {
  background: #98f4d1;
  color: #07100d;
  border-color: #98f4d1;
}

.volume {
  width: min(150px, 28vw);
}

.gate {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 0;
  color: #f5f7fb;
  background: rgba(5, 6, 10, 0.34);
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.gate[hidden] {
  display: none;
}

.gate span {
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(14, 17, 25, 0.74);
  font-size: 1rem;
  font-weight: 800;
}

@media (max-width: 680px) {
  .stage {
    min-height: 100svh;
  }

  .controls {
    gap: 14px;
  }

  .timeline {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .icon {
    width: 42px;
    height: 42px;
  }
}
