/* ================= VÍDEO ================= */

.video-box-right,
.video-box-left {
  position: absolute;
  top: 0;
  width: 40%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* vídeo direita (agentes) */
.video-box-right {
  right: -3vh;
}

/* vídeo esquerda (armas) */
.video-box-left {
  left: -12vh;
}

.video-inner {
  position: absolute;
  top: 15%;
  width: 70%;
  height: 65vh;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.8);
}

/* posição interna */
.video-box-right .video-inner {
  left: 0;
}

.video-box-left .video-inner {
  right: 0;
}

.video-inner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.8s ease;
  opacity: 0;
  background: #000;
}

.video-inner .video-a {
  opacity: 1;
}




/* ===================================================== */
/* GAMEPLAY VIDEO – BLOCO ISOLADO (NÃO AFETA OUTRAS SECTIONS) */
/* ===================================================== */

.video-frame-section {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* moldura do vídeo */
.video-frame {
  position: relative;
  width: 70%;
  max-width: 1100px;
  aspect-ratio: 16/9;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 15px 60px rgba(0,0,0,0.9);
  border: 3px solid rgba(255,255,255,0.15);
  background: #000;
  z-index: 3;
}

/* vídeo real */
.gameplay-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  background: #000;
}

/* imagem antes do play */
.video-poster {
  position: absolute;
  inset: 0;
  z-index: 3;
}


.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* botão play */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: none;
  font-size: 40px;
  background: rgba(0,0,0,0.6);
  color: white;
  cursor: pointer;
  transition: 0.3s;
   z-index: 4;
}

.play-button:hover {
  background: rgba(255,255,255,0.9);
  color: black;
  transform: translate(-50%, -50%) scale(1.1);
   z-index: 4;
}

/* loader do vídeo */
.video-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top: 4px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 0.8s linear infinite;
  display: none;
  z-index: 5;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

