/* Target the video inside the builder media/video block */
.builder-video,
.builder-video video,
.media-preview video,
[data-video-background] video,
.page-video video,
.video-background video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border: none !important;
  outline: none !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Hide native controls on background videos */
.builder-video video::-webkit-media-controls,
.builder-video video::-webkit-media-controls-enclosure {
  display: none !important;
}

/* Make sure the parent container is positioned */
.builder-video,
.media-preview,
[data-video-background] {
  position: relative !important;
  overflow: hidden !important;
  border: none !important;
}

/* Push text above the video */
.builder-video + *,
.media-preview + *,
[data-video-background] + * {
  position: relative;
  z-index: 2;
}