﻿/* Music Player Styling */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.music-player-container {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 50px;
    padding: 12px 16px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    transition: all 0.3s ease;
}

    .music-player-container:hover {
        box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
        transform: translateY(-2px);
    }

/* Player Info */
.player-info {
    flex: 1;
    min-width: 0;
}

.now-playing {
    color: white;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .now-playing i {
        font-size: 14px;
    }

/* Player Controls */
.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-control {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .btn-control:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

    .btn-control:active {
        transform: scale(0.95);
    }

    .btn-control.playing {
        background: rgba(255, 255, 255, 0.25);
    }

/* Volume Slider */
.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

    .volume-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: white;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .volume-slider::-moz-range-thumb {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: white;
        cursor: pointer;
        border: none;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

/* Close Button */
.btn-close-player {
    width: 28px;
    height: 28px;
}

/* Responsive Design */
@media (max-width: 576px) {
    .music-player {
        bottom: 15px;
        right: 15px;
    }

    .music-player-container {
        min-width: 250px;
        padding: 10px 14px;
        gap: 10px;
    }

    .now-playing {
        font-size: 12px;
    }

    .btn-control {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .volume-slider {
        width: 60px;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

/* Hidden state */
.music-player.hidden {
    display: none !important;
}
