/* Music Player Styles */
.music-player {
    width: 90%;
    max-width: 900px;
    margin: 0 auto 24px auto;
    display: grid;
    grid-template-columns: 280px 1fr 180px;
    align-items: center;
    gap: 20px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

.player-left {
    min-width: 0;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.np-art {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(74,144,226,0.2), rgba(114,137,218,0.2));
    border-radius: 8px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.np-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.track-title, .track-artist {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.track-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.track-artist {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.player-center {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.player-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

#play-btn {
    font-size: 18px;
    width: 42px;
    height: 42px;
    background: rgba(74, 144, 226, 0.2);
}

#play-btn:hover {
    background: rgba(74, 144, 226, 0.3);
}

.progress-wrap {
    width: 100%;
    padding: 0;
    position: relative;
}

#progress {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
    outline: none;
    margin: 0;
    cursor: pointer;
}

#progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #4a90e2;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

#progress::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #5aa0f2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

#progress::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #4a90e2;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

#progress::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #5aa0f2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

#progress::-moz-range-track {
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
}

.player-right {
    justify-self: end;
}

.volume-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

#mute-btn {
    color: rgba(255, 255, 255, 0.8);
}

#volume {
    width: 100px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

#volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #4a90e2;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

#volume::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #5aa0f2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

#volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #4a90e2;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

#volume::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #5aa0f2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .music-player {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 16px;
        padding: 16px;
    }
    
    .player-right {
        justify-self: center;
    }
    
    .volume-wrap {
        width: 100%;
        justify-content: center;
    }
    
    #volume {
        width: 120px;
    }

    .controls {
        gap: 32px;
    }

    .player-btn {
        width: 40px;
        height: 40px;
    }

    #play-btn {
        width: 48px;
        height: 48px;
    }
}