/* Music Player Overlay */
#music-player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2500;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

#music-player-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.music-player {
    width: 400px;
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.98), rgba(10, 15, 25, 0.98));
    border: 2px solid var(--primary-neon);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(100, 255, 218, 0.3);
    overflow: hidden;
    animation: playerSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes playerSlideIn {
    from {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.player-header {
    background: rgba(100, 255, 218, 0.1);
    border-bottom: 1px solid var(--primary-neon);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    color: var(--primary-neon);
    font-size: 1rem;
}

.player-header button {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.player-header button:hover {
    color: var(--primary-neon);
}

.player-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.album-art {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), rgba(100, 255, 218, 0.05));
    border: 2px solid var(--primary-neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary-neon);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.2);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.album-art.paused {
    animation-play-state: paused;
}

.track-info {
    text-align: center;
}

.track-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.track-artist {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dim);
}

.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-current,
.time-total {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-dim);
    min-width: 40px;
}

#progress-bar {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary-neon);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-neon);
}

#progress-bar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--primary-neon);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-neon);
    border: none;
}

.controls {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-neon);
    background: rgba(100, 255, 218, 0.1);
    color: var(--primary-neon);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--primary-neon);
    color: var(--bg-dark);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-neon);
}

.control-btn:active {
    transform: scale(0.95);
}

.volume-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.volume-container i {
    color: var(--text-dim);
    font-size: 1.2rem;
}

#volume-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary-neon);
    border-radius: 50%;
    cursor: pointer;
}

#volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--primary-neon);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}