/* Video Player Enhancements */
.play-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.play_button-image {
    width: 80px !important;
    height: 80px !important;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.play-button:hover .play_button-image {
    transform: scale(1.1);
}

/* Video overlay improvements */
.black-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.black-overlay:hover {
    background-color: rgba(0, 0, 0, 0.3) !important;
}

.black-overlay:active {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

/* Ensure overlay stays on top */
.hero-video-wrapper .black-overlay {
    z-index: 20;
}

/* Video interaction feedback */
.black-overlay.clicking {
    opacity: 0.2;
    pointer-events: none;
}

.black-overlay.playing {
    opacity: 0;
    pointer-events: none;
}

/* Video wrapper enhancements */
.hero-video-wrapper,
.hero-video-wrapper.mobile {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.video-embed-hero iframe {
    border-radius: 12px;
}

/* Loading state for videos */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    z-index: 10;
}

/* Mobile video improvements */
@media (max-width: 991px) {
    .play_button-image {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Video error state */
.video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff6b6b;
    text-align: center;
    z-index: 10;
}

.video-error p {
    margin: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
}