.video-autoplay-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.video-autoplay-wrapper .video-autoplay-iframe,
.video-autoplay-wrapper .video-autoplay-hosted {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-autoplay-wrapper .video-autoplay-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.video-autoplay-wrapper .video-autoplay-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-autoplay-wrapper .video-autoplay-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    transition: all 0.3s ease;
}

.video-autoplay-wrapper .video-autoplay-play-button svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.video-autoplay-wrapper .video-autoplay-overlay:hover .video-autoplay-play-button {
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-autoplay-wrapper .video-autoplay-unmute-button {
    position: absolute;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-autoplay-wrapper.is-muted .video-autoplay-unmute-button {
    opacity: 1;
    visibility: visible;
}

.video-autoplay-wrapper .video-autoplay-unmute-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.video-autoplay-wrapper .video-autoplay-unmute-button.top-right {
    top: 15px;
    right: 15px;
}

.video-autoplay-wrapper .video-autoplay-unmute-button.top-left {
    top: 15px;
    left: 15px;
}

.video-autoplay-wrapper .video-autoplay-unmute-button.bottom-right {
    bottom: 15px;
    right: 15px;
}

.video-autoplay-wrapper .video-autoplay-unmute-button.bottom-left {
    bottom: 15px;
    left: 15px;
}

/* Aspect ratio handling */
.video-autoplay-wrapper {
    aspect-ratio: 16 / 9;
}

@supports not (aspect-ratio: 16 / 9) {
    .video-autoplay-wrapper {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 */
        height: 0;
    }
}

/* Mobile specific styles */
.video-autoplay-wrapper.is-mobile.mobile-no-autoplay .video-autoplay-overlay {
    display: block !important;
}

.video-autoplay-wrapper.is-mobile.mobile-no-autoplay .video-autoplay-unmute-button {
    display: none !important;
}

/* Editor styles */
.elementor-editor-active .video-autoplay-wrapper {
    min-height: 300px;
    background: #f5f5f5;
}

.elementor-editor-active .video-autoplay-wrapper:before {
    content: "Video Autoplay Widget";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 16px;
}