:root {
  --demo-line: rgba(214, 238, 255, 0.22);
}

html,
body {
  overflow: hidden;
}

.cinematic-page {
  min-height: 100dvh;
  overflow: hidden;
  padding: 10px 12px 12px;
  background: #02070c;
}

.cinematic-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    repeating-linear-gradient(180deg, rgba(239, 250, 255, 0.24) 0 1px, transparent 1px 4px),
    linear-gradient(rgba(85, 199, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 199, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 58px 58px, 58px 58px;
  mix-blend-mode: screen;
}

.demo-video-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(85, 199, 255, 0.08), transparent 42%),
    #02070c;
}

.demo-video-stage::before,
.demo-video-stage::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.demo-video-stage::before {
  background:
    linear-gradient(180deg, rgba(2, 7, 12, 0.72), transparent 18%, transparent 74%, rgba(2, 7, 12, 0.64)),
    linear-gradient(90deg, rgba(2, 7, 12, 0.22), transparent 24% 76%, rgba(2, 7, 12, 0.22));
}

.demo-video-stage::after {
  opacity: 0.48;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 45%, rgba(2, 7, 12, 0.34) 78%, rgba(2, 7, 12, 0.72) 100%);
}

.demo-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100vw;
  height: 100dvh;
  object-fit: contain;
  object-position: center;
  background: #02070c;
  filter: brightness(0.98) contrast(1.04) saturate(0.98);
}

.demo-topbar {
  position: relative;
  z-index: 30;
  margin-bottom: 0;
  background: rgba(6, 7, 7, 0.82);
}

.top-actions .is-current {
  border-color: rgba(255, 188, 97, 0.5);
  color: rgba(255, 242, 214, 0.98);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .cinematic-page {
    padding: 8px;
  }

  .cinematic-page .topbar {
    height: auto;
    min-height: 66px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
  }

  .cinematic-page .top-actions {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .cinematic-page .nav-button {
    flex: 1 1 0;
    min-width: auto;
    height: 44px;
    padding: 0 11px;
    font-size: 12px;
  }

  .demo-video {
    object-fit: cover;
  }
}

@media (max-width: 360px) {
  .cinematic-page .nav-button {
    padding: 0 9px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
