/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0); */
    backdrop-filter: blur(5px);
}

.video-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 850px;
    height: 70%;
    max-height: 550px;
    background: #1a1a1a85;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

.video-modal-title-wrapper {
    display: flex;
    align-items: right;
    gap: 10px;
}

.video-dropdown {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.video-dropdown option {
    background-color: rgba(0, 0, 0, 0.589);
}

.video-modal-title-wrapper select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    padding: 8px 35px 8px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    min-width: 150px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}


@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    backdrop-filter: blur(6px);
    background-size: 100% 1px;
    background-position: 0px 0px, 0px 100%;
    background-repeat: no-repeat;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 10%, rgb(255, 255, 255) 50%, rgb(255, 255, 255) 50%, rgba(255, 255, 255, 0) 90%), linear-gradient(90deg, rgba(255, 255, 255, 0) 10%, rgb(255, 255, 255) 50%, rgb(255, 255, 255) 50%, rgba(255, 255, 255, 0) 90%);

}

.video-modal-title {
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    font-family: "Open Sans", sans-serif;
}

.video-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.video-iframe-container {
    width: 100%;
    height: calc(100% - 70px);
    position: relative;
}

.video-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        height: 60%;
        max-height: 300px;
    }

    .video-modal-header {
        padding: 12px 15px;
    }

    .video-modal-title {
        font-size: 16px;
    }

    .video-modal-close {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .video-modal-content {
        width: 98%;
        height: 50%;
        max-height: 250px;
    }

    .video-modal-header {
        padding: 10px 12px;
    }

    .video-modal-title {
        font-size: 14px;
    }
}

/* Landscape mobile adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .video-modal-content {
        height: 85%;
        max-height: none;
    }
}