/* Built-N-AI video additions (v1). Additive only: nothing here overrides
   existing main.v6.css rules except where a new class is introduced. */

/* 1. Homepage hero ambient loop (desktop only, injected by video.v1.js) */
.hero-bgvideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}
.hero-bgvideo.is-ready { opacity: 0.7; }

/* 2. "Watch the overview" button + dialog */
.btn--play { display: inline-flex; align-items: center; gap: 10px; }
.btn--play .play-dot {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime);
  flex: none;
}
.btn--play .play-dot::after {
  content: "";
  margin-left: 3px;
  border-left: 9px solid #06101c;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.video-dialog {
  width: min(1200px, 94vw);
  max-width: none;
  padding: 0;
  border: 1px solid rgba(167, 240, 74, 0.35);
  border-radius: var(--radius);
  background: #01050e;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 80px rgba(167, 240, 74, 0.12);
  overflow: visible;
}
.video-dialog::backdrop { background: rgba(1, 5, 14, 0.82); backdrop-filter: blur(4px); }
.video-dialog video { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.video-dialog__close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0c1b2e;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.video-dialog__close:hover { border-color: var(--lime); color: var(--lime); }
@media (max-width: 700px) {
  .video-dialog__close { top: -54px; right: 0; }
}

/* 3. Page clips (band directly under each page head) */
.video-band { padding-block: clamp(28px, 4vw, 56px); }
.video-frame {
  position: relative;
  max-width: 1120px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  background: #01050e;
  aspect-ratio: 16 / 9;
}
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-frame__cta {
  position: absolute;
  right: 16px;
  bottom: 16px;
  font-size: 0.9rem;
  padding: 10px 16px;
}
@media (max-width: 600px) {
  .video-frame__cta { position: static; display: flex; margin: 12px auto 0; width: max-content; }
  .video-frame { border-radius: var(--radius); }
}
