.product-video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    opacity: 0;
    visibility: hidden;
    transition: 0.35s ease;
    z-index: 2147483645 !important;
}
.product-video-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.product-video-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: scale(.9);
    transition: 0.35s ease;
    z-index: 2147483646 !important;
}
.product-video-modal.is-open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.product-video-inner {
    position: relative;
    max-width: 94vw;
    max-height: 94vh;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,.7);
}

.product-video-inner video {
    width: 100%;
    height: auto;
    max-height: 94vh;
    object-fit: contain;
}

.product-video-inner .plyr {
    --plyr-color-main: #ff0000;
    border-radius: 0 !important;
    position: relative;
}

.plyr__controls {
    background: rgba(0,0,0,0.55) !important;
    backdrop-filter: none !important;
}

.plyr__progress input[type=range] {
    height: 6px !important;
}

.plyr--hide-controls .plyr__controls {
    opacity: 1 !important;
    visibility: visible !important;
}

.product-video-close {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    background: none;
    padding: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 60;
    opacity: 0.55;
    transition: 0.2s ease;
}

.product-video-close:hover {
    opacity: 1;
}

.product-video-close svg,
.product-video-close svg path {
    margin-top: 5px;
    width: 26px;
    height: 26px;
    fill: #fff !important;
}

.single-product .product-video-trigger {
    display: inline-flex !important;
}