/* Modal Popup Player Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-player {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(139, 92, 246, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    min-width: 350px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-player {
    transform: scale(1);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    color: white;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.modal-song-info {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.modal-song-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    min-height: 30px;
}

.modal-song-artist {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    min-height: 25px;
}

.modal-audio-controls {
    margin-bottom: 25px;
}

.modal-audio-controls audio {
    width: 100%;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.modal-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.modal-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.modal-btn.close-btn {
    background: rgba(239, 68, 68, 0.8);
}

.modal-btn.close-btn:hover {
    background: rgba(239, 68, 68, 1);
}

.modal-btn.minimize-btn {
    background: rgba(59, 130, 246, 0.8);
}

.modal-btn.minimize-btn:hover {
    background: rgba(59, 130, 246, 1);
}

.modal-status {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-player {
        margin: 20px;
        padding: 20px;
        min-width: auto;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .modal-song-title {
        font-size: 18px;
    }
    
    .modal-song-artist {
        font-size: 14px;
    }
    
    .modal-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Minimized Modal */
.modal-overlay.minimized {
    background: transparent;
    pointer-events: none;
}

.modal-overlay.minimized .modal-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    top: auto;
    left: auto;
    transform: scale(0.8);
    margin: 0;
    min-width: 300px;
    max-width: 300px;
    pointer-events: auto;
}

.modal-overlay.minimized .modal-header,
.modal-overlay.minimized .modal-audio-controls {
    display: none;
}

.modal-overlay.minimized .modal-player {
    padding: 15px;
}

.modal-overlay.minimized .modal-song-info {
    margin-bottom: 0;
    padding: 10px;
}

.modal-overlay.minimized .modal-controls {
    margin-top: 10px;
    justify-content: space-between;
}
