/* ─── WP Video Ads ─── */

/* Pre-roll overlay — covers entire video */
.wpva-preroll-overlay {
  position: absolute;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.wpva-preroll-overlay video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Skip button */
.wpva-skip-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 8px 20px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.2s, opacity 0.2s;
  backdrop-filter: blur(4px);
}
.wpva-skip-btn:hover {
  background: rgba(229,9,20,0.9);
  border-color: transparent;
}
.wpva-skip-btn.wpva-skip-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* Ad badge */
.wpva-ad-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  background: rgba(229,9,20,0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 3px;
  z-index: 10000;
  text-transform: uppercase;
}

/* Timer text */
.wpva-timer {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  border-radius: 3px;
  z-index: 10000;
}

/* ─── Mid-Overlap Ad ─── */
.wpva-overlap-container {
  position: absolute;
  z-index: 9998;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.wpva-overlap-container.wpva-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Position classes */
.wpva-overlap-container.wpva-pos-bottom-right { bottom: 12px; right: 12px; }
.wpva-overlap-container.wpva-pos-bottom-left { bottom: 12px; left: 12px; }
.wpva-overlap-container.wpva-pos-bottom-center { bottom: 12px; left: 50%; transform: translateX(-50%); }
.wpva-overlap-container.wpva-pos-bottom-center.wpva-visible { transform: translateX(-50%) translateY(0); }
.wpva-overlap-container.wpva-pos-top-right { top: 12px; right: 12px; }

.wpva-overlap-container video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Overlap close button */
.wpva-overlap-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  z-index: 10001;
  transition: background 0.2s;
}
.wpva-overlap-close:hover {
  background: rgba(229,9,20,0.9);
}

/* ─── Logo Watermark ─── */
.wpva-logo-watermark {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 9997;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}
.wpva-logo-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}
.wpva-logo-watermark a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Ensure video container is relative for overlay positioning */
.wpva-video-wrapper {
  position: relative !important;
}

/* Responsive */
@media (max-width: 768px) {
  .wpva-skip-btn {
    bottom: 10px;
    right: 10px;
    padding: 6px 14px;
    font-size: 12px;
  }
  .wpva-ad-badge {
    top: 8px;
    left: 8px;
    font-size: 10px;
  }
  .wpva-overlap-container {
    border-radius: 4px;
  }
}
