.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 250px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    color: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    user-select: none;
}

.mini-player-content {
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.time {
    min-width: 34px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    position: relative;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-slider {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 18px;
    transform: translateY(-50%);
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    z-index: 5;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}
.progress-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.progress-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.player-controls {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.control-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.play-btn {
    background: white;
    color: #d32f2f;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
}
.control-btn:hover, .play-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transform: scale(1.06);
}

@media (max-width: 480px) {
    .music-player {
        width: 200px;
        bottom: 10px;
        right: 10px;
    }
    .mini-player-content {
        padding: 10px 5px;
    }
    .player-controls .control-btn, .player-controls .play-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .play-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}