/* Background Audio Player Enhanced Styles */
.bap-player-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    padding: 15px;
    z-index: 9999;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    max-width: 400px;
    min-width: 300px;
}

.bap-player-container:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: translateY(-3px);
}

.bap-track-title {
    font-size: 14px;
    color: #fff;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 350px;
    font-weight: 500;
}

.bap-playlist-info {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 10px;
    text-align: center;
}

.bap-player-controls {
    display: grid;
    grid-template-columns: auto auto auto 1fr auto auto auto auto;
    align-items: center;
    gap: 8px;
    color: white;
}

.bap-control-btn {
    background: #555;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 14px;
}

.bap-control-btn:hover {
    background: #007cba;
    transform: scale(1.05);
}

.bap-shuffle-btn.active {
    background: #007cba;
    color: #fff;
}

.bap-play-pause-btn {
    background: #007cba;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 16px;
}

.bap-play-pause-btn:hover {
    background: #005a87;
    transform: scale(1.1);
}

.bap-progress-bar {
    grid-column: span 8;
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    margin: 5px 0;
}

.bap-progress-bar::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007cba;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 124, 186, 0.3);
}

.bap-progress-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007cba;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 124, 186, 0.3);
}

.bap-time-display {
    grid-column: span 2;
    font-size: 11px;
    color: #ccc;
    text-align: center;
    min-width: 60px;
}

.bap-volume-control {
    width: 70px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.bap-volume-control::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #007cba;
    cursor: pointer;
}

.bap-volume-control::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #007cba;
    cursor: pointer;
    border: none;
}

.bap-minimize-btn {
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.bap-minimize-btn:hover {
    color: white;
    background: #555;
}

.bap-player-minimized {
    padding: 8px 12px;
    max-width: 150px;
}

.bap-player-minimized .bap-player-controls {
    display: none;
}

.bap-player-minimized .bap-playlist-info {
    display: none;
}

/* Responsivo mejorado */
@media (max-width: 768px) {
    .bap-player-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
    
    .bap-player-controls {
        grid-template-columns: auto auto auto 1fr auto auto;
        gap: 6px;
    }
    
    .bap-control-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .bap-volume-control {
        width: 50px;
    }
    
    .bap-track-title {
        font-size: 12px;
        max-width: 250px;
    }
}

/* Animaciones */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.bap-play-pause-btn.playing {
    animation: pulse 2s infinite;
}