.opsim-product-video-wrapper {
    width: 100%;
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.opsim-product-video-wrapper.ratio-16-9 { aspect-ratio: 16 / 9; padding-bottom: 0; }
.opsim-product-video-wrapper.ratio-1-1 { aspect-ratio: 1 / 1; padding-bottom: 0; }
.opsim-product-video-wrapper.ratio-9-16 { aspect-ratio: 9 / 16; max-width: 400px; margin-left: auto; margin-right: auto; padding-bottom: 0; }

/* Fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 16/9) {
    .opsim-product-video-wrapper.ratio-16-9 { padding-bottom: 56.25%; }
    .opsim-product-video-wrapper.ratio-1-1 { padding-bottom: 100%; }
    .opsim-product-video-wrapper.ratio-9-16 { padding-bottom: 177.77%; }
}

.opsim-video-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.opsim-ugc-video,
.opsim-video-inner iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    display: block;
}

.opsim-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.opsim-video-play-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.opsim-video-play-btn svg {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

/* Simply hide button when playing */
.is-playing .opsim-video-play-btn {
    opacity: 0;
}

.is-playing .opsim-video-overlay {
    background: transparent;
}

@media (max-width: 767px) {
    .opsim-video-play-btn {
        width: 36px;
        height: 36px;
    }
}
