.mhv-target {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate;
}

.mhv-target > .mhv-video,
.mhv-target > .mhv-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mhv-target > .mhv-video {
    z-index: 0;
    display: block;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

.mhv-target > .mhv-video.mhv-video--ready {
    opacity: 1;
}

.mhv-target > .mhv-overlay {
    z-index: 1;
    background: #000;
    pointer-events: none;
}

.mhv-target > *:not(.mhv-video):not(.mhv-overlay):not(.mhv-toggle) {
    position: relative;
    z-index: 2;
}

.mhv-toggle {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 4;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    color: #fff;
    background: rgba(20, 30, 25, .58);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
}

.mhv-toggle:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.mhv-toggle__icon {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
    .mhv-video,
    .mhv-toggle {
        display: none !important;
    }
}
