/* Hide all controls by default in popup */
.video-popup-modal .vjs-control-bar .vjs-control {
    display: none !important;
}

/* Show only the required controls in popup */
.video-popup-modal .vjs-control-bar .vjs-play-control,
.video-popup-modal .vjs-control-bar .vjs-volume-panel,
.video-popup-modal .vjs-control-bar .vjs-current-time,
.video-popup-modal .vjs-control-bar .vjs-duration,
.video-popup-modal .vjs-control-bar .vjs-time-divider,
.video-popup-modal .vjs-control-bar .vjs-fullscreen-control,
.video-popup-modal .vjs-control-bar .vjs-progress-control {
    display: flex !important;
}
.video-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.video-popup-content {
    position: relative;
    width: 967px;
    height: 538px;
    max-width: 100vw;
    max-height: 100vh;
    background: transparent;
}

.video-popup-player {
    width: 100%;
}

.video-popup-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
    transition: opacity 0.2s;
}

.video-popup-close:hover {
    opacity: 0.7;
}

.video-popup-close p {
    font-size: 54px;
    color: #fff;
    margin: 0;
    padding: 0;
    font-weight: 200;
    line-height: 1;
    text-shadow: 0 0 2px #fff;
}

.video-popup-modal .video-card-one {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.video-popup-modal video-js {
    width: 100%;
    height: auto;
}

/* Ensure Brightcove controls are always visible in popup */
.video-popup-modal .vjs-control-bar {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.video-popup-modal video-js .vjs-control {
    display: block !important;
    visibility: visible !important;
}

.video-popup-modal video-js:not(.vjs-has-started) .vjs-control-bar {
    display: flex !important;
}

/* Hide the original video to prevent double display */
.video-image-container .video-card-one {
    display: none !important;
    visibility: hidden !important;
}  

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .video-popup-content {
        width: 700px;
        height: 390px;
        max-width: 90vw;
        max-height: 90vh;
    }
    
    .video-popup-close {
        top: -45px;
    }
    
    .video-popup-close p {
        font-size: 52px;
    }
}

/* Mobile responsive styles */
@media (max-width: 767px) {
    .video-popup-modal {
        align-items: flex-start;
        padding-top: 60px;
    }
    
    .video-popup-content {
        max-width: 322px;
        width: 100%;
        height: 182px;
    }
    
    .video-popup-close {
        top: -40px;
    }
    
    .video-popup-close p {
        font-size: 36px;
    }
}  