#sticky-audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    background: rgb(217 100 198 / 85%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 25px;
    height: 80px; /* Altura confortável para a barra */
    box-shadow: 0 -3px 15px rgba(0,0,0,0.5);
}

/* Coluna 1: Info */
.player-left-side {
    display: flex;
    align-items: center;
    width: 25%;
    min-width: 200px;
}

.song-cover {
    width: 55px;
    height: 55px;
    border-radius: 4px;
    margin-right: 15px;
    margin-left: 50px;
    object-fit: cover;
    background: #222;
}

.player-info .song-name {
    display: block;
    font-weight: bold;
    font-size: 16px;
    color: white;
}

/* Coluna 2: Slider (Ocupa o centro) */
.player-center {
    display: flex;
    align-items: center;
    flex-grow: 1;
    padding: 0 40px;
    gap: 15px;
}

.amplitude-song-slider {
    flex-grow: 1;
    cursor: pointer;
    accent-color: #ff4500;
}

/* Coluna 3: Botões */
.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 20%;
    justify-content: flex-end;
}

.player-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

/* --- PLAYLIST DRAWER --- */
#player-playlist-container {
    position: absolute;
    bottom: 80px; /* Aparece logo acima da barra */
    right: 25px;
    width: 350px;
    max-height: 400px;
    background: #1a1a1a;
    border-radius: 8px 8px 0 0;
    overflow-y: auto;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.4);
    z-index: -1; /* Fica atrás da barra principal se necessário */
}

.playlist-hidden {
    display: none;
}

.playlist-header {
    padding: 15px;
    background: #000;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.amplitude-song-container {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #222;
    cursor: pointer;
}

.amplitude-song-container:hover { background: #222; }
.amplitude-active-song-container { border-left: 4px solid #ff4500; background: #222; }

.playlist-song-img { width: 35px; height: 35px; margin-right: 12px; border-radius: 2px; }
.playlist-song-name { font-size: 13px; display: block; }
.playlist-song-artist { font-size: 11px; opacity: 0.6; }
.amplitude-prev::before { content: "⏮"; }
.amplitude-play-pause.amplitude-paused::before { content: "▶"; }
.amplitude-play-pause.amplitude-playing::before { content: "⏸"; }
.amplitude-next::before { content: "⏭"; }


@media screen and (max-width: 768px) {
    .player-center,
    .song-cover {
        display: none;
    }
    
    .player-info {
        margin-left: 45px;
    }
}