#persistent-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #6a11cb 0%, #8e44ad 100%);
    color: white;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.player-container {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.player-hidden {
    transform: translateY(calc(100% - 50px));
}

.player-song-info {
    display: flex;
    align-items: center;
    width: 30%;
    min-width: 200px;
}

.player-cover {
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 6px;
    margin-right: 15px;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-details {
    overflow: hidden;
}

.player-details h4 {
    margin: 0;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-details p {
    margin: 3px 0 0;
    font-size: 0.8rem;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20%;
}

.control-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin: 0 10px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.control-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.control-main {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-main:hover {
    background: rgba(255, 255, 255, 0.3);
}

.player-progress {
    display: flex;
    align-items: center;
    width: 40%;
    padding: 0 20px;
}

#player-current-time, #player-duration {
    font-size: 0.8rem;
    width: 40px;
    text-align: center;
}

.progress-bar {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 10px;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-current {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 0%;
}

.player-volume {
    display: flex;
    align-items: center;
    width: 10%;
    min-width: 120px;
}

.volume-slider-container {
    width: 80px;
}

#volume-slider {
    width: 100%;
    margin: 0;
    background: rgba(255, 255, 255, 0.2);
    height: 4px;
    -webkit-appearance: none;
    border-radius: 2px;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.player-minimize-btn {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #6a11cb;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.player-hidden .player-minimize-btn {
    transform: rotate(180deg);
}

/* Responsive styles */
@media (max-width: 768px) {
    .player-container {
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .player-song-info {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .player-controls {
        width: 30%;
        order: 1;
    }
    
    .player-progress {
        width: 70%;
        order: 2;
        padding: 0;
    }
    
    .player-volume {
        display: none; /* Hide volume on mobile */
    }
}