.mpdvm-video-bg-wrapper {
  position: relative;
  overflow: hidden;
}

.mpdvm-video-bg-wrapper .mpdvm-video-bg-fallback-layer,
.mpdvm-video-bg-wrapper .mpdvm-video-bg-video-layer,
.mpdvm-video-bg-wrapper .mpdvm-video-bg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mpdvm-video-bg-wrapper .mpdvm-video-bg-fallback-layer {
  background-size: cover;
  background-position: center center;
  transform: scale(1.02);
  z-index: 1;
}

.mpdvm-video-bg-wrapper .mpdvm-video-bg-video-layer {
  z-index: 2;
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}

.mpdvm-video-bg-wrapper.mpdvm-video-ready .mpdvm-video-bg-video-layer {
  opacity: 1;
}

.mpdvm-video-bg-wrapper .mpdvm-video-bg-overlay {
  z-index: 3;
  pointer-events: none;
}

.mpdvm-video-bg-wrapper .mpdvm-video-bg-content {
  position: relative;
  z-index: 4;
}

/* Consent overlay */
.mpdvm-video-bg-wrapper .mpdvm-video-bg-consent {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.mpdvm-video-bg-wrapper .mpdvm-video-bg-consent__button {
  pointer-events: auto;
  border: 0;
  border-radius: 999px;
  padding: 0.75em 1.5em;
  font-size: 0.875rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  line-height: 1.2;
}

.mpdvm-video-bg-wrapper.mpdvm-consent-required .mpdvm-video-bg-video-layer {
  display: none;
}

/* Blur presets */
.mpdvm-video-bg-wrapper.mpdvm-blur-soft .mpdvm-video-bg-content {
  backdrop-filter: blur(4px);
}

.mpdvm-video-bg-wrapper.mpdvm-blur-medium .mpdvm-video-bg-content {
  backdrop-filter: blur(8px);
}

.mpdvm-video-bg-wrapper.mpdvm-blur-strong .mpdvm-video-bg-content {
  backdrop-filter: blur(12px);
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
  .mpdvm-video-bg-wrapper .mpdvm-video-bg-video-layer {
    transition: none;
  }
}
