/* Video Modal Styles */

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    opacity: 1;
}

.video-modal-content {
    width: 90%;
    max-width: 1200px;
    background: rgba(0, 20, 40, 0.95);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(0, 153, 255, 0.3);
    position: relative;
    display: flex;
    gap: 30px;
}

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

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

.video-container {
    flex: 1;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalVideo {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-info {
    width: 300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#videoTitle {
    color: #00ffcc;
    font-size: 1.5rem;
    margin: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
}

.video-playlist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.playlist-item {
    padding: 15px;
    background: rgba(0, 40, 80, 0.5);
    border: 1px solid rgba(0, 153, 255, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.playlist-item:hover {
    background: rgba(0, 153, 255, 0.2);
    border-color: #00ffcc;
    transform: translateX(5px);
}

.playlist-item.active {
    background: rgba(0, 153, 255, 0.3);
    border-color: #00ffcc;
    color: #00ffcc;
    font-weight: 600;
}

.playlist-item.active::before {
    content: '▶ ';
    color: #00ffcc;
}

/* Playlist number styling */
.playlist-number {
    width: 24px;
    height: 24px;
    background: rgba(0, 153, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #00ffcc;
    margin-right: 10px;
}

.playlist-item.active .playlist-number {
    background: #00ffcc;
    color: #000;
}

.playlist-title {
    flex: 1;
    font-size: 0.9rem;
}

/* Scrollbar styling */
.video-playlist::-webkit-scrollbar {
    width: 6px;
}

.video-playlist::-webkit-scrollbar-track {
    background: rgba(0, 20, 40, 0.3);
    border-radius: 3px;
}

.video-playlist::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 204, 0.3);
    border-radius: 3px;
}

.video-playlist::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 204, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-modal-content {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .video-info {
        width: 100%;
    }

    .video-playlist {
        max-height: 200px;
    }
}

@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        padding: 15px;
    }

    #videoTitle {
        font-size: 1.2rem;
    }

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

    #modalVideo {
        max-height: 50vh;
    }
}