.glass-effect {
            backdrop-filter: blur(16px) saturate(180%);
            background-color: rgba(17, 17, 17, 92%);
            border: 1px solid rgba(255, 255, 255, 0.125);
        }

        .volume-slider {
            display: flex !important;
            -webkit-appearance: none !important;
            width: 100px !important;
            height: 4px !important;
            border-radius: 2px !important;
            outline: none !important;
        }

        .volume-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 12px;
            height: 12px;
            background: white;
            border-radius: 50%;
            cursor: pointer;
            transition: transform 0.1s ease;
        }

        .volume-slider::-webkit-slider-thumb:hover {
            transform: scale(1.2);
        }

        .waveform-container {
            position: relative;
            height: 56px;
            border-radius: 0.5rem;
            overflow: hidden;
            cursor: pointer;
        }

        canvas {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
        }

        #waveformProgress {
            opacity: 1;
            clip-path: inset(0 100% 0 0);
            transition: clip-path 0.1s linear;
        }

        #waveformBase {
            opacity: 0.3;
        }

        .volume-control {
            position: relative;
        }

        .volume-popup {
            position: absolute;
            bottom: 100%;
            right: -8px;
            margin-bottom: 10px;
            padding: 15px 9px;
            background-color: #1f2937;
            border: 1px solid #374151;
            border-radius: 8px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.2s ease, transform 0.2s ease;
        }

        .volume-popup.active {

            opacity: 1;
            transform: translateY(0);
        }

        .volume-popup::after {
            content: '';
            position: absolute;
            bottom: -6px;
            right: 10px;
            width: 12px;
            height: 12px;
            background-color: #1f2937;
            border-right: 1px solid #374151;
            border-bottom: 1px solid #374151;
            transform: rotate(45deg);
        }

        /* NOVOS ESTILOS PARA PLAYLIST */

        .playlist-control {
            position: relative;
            /* Oculto por padrão, JS irá exibir se a playlist tiver > 1 item */
            display: none; 
        }

        .playlist-popup {
            position: absolute;
            bottom: -600px;
            right: -8px;
            margin-bottom: 10px;
            width: 360px; /* Largura aumentada */
            /* CORREÇÃO: Cores ajustadas para 'zinc' */
            background-color: #18181b; /* zinc-900 */
            border: 1px solid #3f3f46; /* zinc-700 */
            border-radius: 8px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.2s ease, transform 0.2s ease;
        }

        .playlist-popup.active {
            bottom: 100%;
            opacity: 1;
            transform: translateY(0);
        }

        .playlist-popup::after {
            content: '';
            position: absolute;
            bottom: -6px;
            right: 10px;
            width: 12px;
            height: 12px;
            /* CORREÇÃO: Cores da seta ajustadas */
            background-color: #18181b; /* zinc-900 */
            border-right: 1px solid #3f3f46;
            border-bottom: 1px solid #3f3f46;
            transform: rotate(45deg);
            z-index: -1;
        }

        #sticky-playlist-list {
            list-style: none;
            padding: 0;
            margin: 0;
            font-size: 12px;
            color: #d1d5db;
            /* NOVO: Altura aumentada e scrollbar oculta */
            max-height: 450px;
            overflow-y: auto;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none;  /* IE and Edge */
        }
        
        /* NOVO: Ocultar scrollbar para Webkit (Chrome, Safari) */
        #sticky-playlist-list::-webkit-scrollbar {
            display: none;
        }


        .playlist-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 12px;
            /* CORREÇÃO: Cor da borda */
            border-bottom: 1px solid #27272a; /* zinc-800 */
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .playlist-item:last-child {
            border-bottom: none;
        }

        .playlist-item:hover {
            /* CORREÇÃO: Cor do hover */
            background-color: #27272a; /* zinc-800 */
        }
        
        .playlist-item-image-container {
            position: relative;
            width: 40px;
            height: 40px;
            flex-shrink: 0;
            border-radius: 4px;
            overflow: hidden; 
        }
        
        .playlist-item-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            /* CORREÇÃO: Cor de fundo do placeholder */
            background-color: #27272a; /* zinc-800 */
        }
        
        .playlist-item-image-overlay {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: rgba(0, 0, 0, 0.5);
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .playlist-item-icon {
            font-size: 14px;
            color: white;
        }
        
        .playlist-item:hover .playlist-item-image-overlay {
            opacity: 1;
        }

        .playlist-item.playing .playlist-item-image-overlay {
            opacity: 1;
        }


        .playlist-item-info {
            flex-grow: 1;
            min-width: 0;
            flex: 1; /* Garante que a info ocupe o espaço e empurre as tags para a direita */
        }

        /* .playlist-item-duration {  <-- REMOVIDO
            font-size: 11px;
            color: #9ca3af;
            flex-shrink: 0;
        }
        */


        .playlist-item .playlist-title {
            font-weight: 600;
            color: #f3f4f6;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: block; 
        }
        
        .playlist-item .playlist-genre {
            font-size: 10px;
            color: #9ca3af;
            text-transform: uppercase;
        }

        /* ================================== */
        /* INÍCIO - CSS ADICIONADO PARA TAGS  */
        /* ================================== */

        .playlist-item-tags {
            display: flex;
            gap: 4px; /* Espaço entre as tags */
            margin-left: 10px; /* Espaço entre a info e as tags */
            align-items: flex-end; /* Alinha as tags à direita */
            flex-shrink: 0; /* Impede que as tags encolham */
        }
        
        .playlist-item-tag {
            background-color: rgba(107, 114, 128, 0.2); /* bg-gray-500/20 */
            color: #D1D5DB; /* text-gray-300 */
            font-size: 9px;
            font-weight: 600;
            padding: 2px 5px;
            border-radius: 4px;
            white-space: nowrap;
            text-transform: uppercase;
            line-height: 1.2;
        }

        /* ================================ */
        /* FIM - CSS ADICIONADO PARA TAGS   */
        /* ================================ */


        .playlist-item.playing {
            /* CORREÇÃO: Cor do item tocando (azul do waveform) */
            background-color: #3b82f6; 
            color: white;
        }
        
        .playlist-item.playing .playlist-title {
            color: white;
        }
        
        .playlist-item.playing .playlist-genre {
            color: #dbeafe;
        }
        
        /* .playlist-item.playing .playlist-item-duration { <-- REMOVIDO
            color: #dbeafe;
        }
        */

        /* Cor da tag quando o item está tocando */
        .playlist-item.playing .playlist-item-tag {
             background-color: rgba(255, 255, 255, 0.2);
             color: #ffffff;
        }
        
        .playlist-loading {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 80px;
            color: #9ca3af;
        }

        /* FIM DOS NOVOS ESTILOS */


        @keyframes slideTextLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-20px);
        opacity: 0;
    }
}

@keyframes slideIconIn {
    0% {
        transform: translateX(20px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideIconRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(20px);
        opacity: 0;
    }
}

@keyframes slideTextBack {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-text-left {
    animation: slideTextLeft 0.3s forwards;
}

.slide-icon-in {
    animation: slideIconIn 0.3s forwards;
}

.slide-icon-right {
    animation: slideIconRight 0.3s forwards;
}

.slide-text-back {
    animation: slideTextBack 0.3s forwards;
}

#waveform-container-mobile {
    align-content: center;
    bottom: 25px;
    position: relative;
}

#addToCartBtnMobile {
    position: relative;
    bottom: 0px;
}

.button-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.button-text, .button-icon {
    position: absolute;
    font-size: 12px !important;
}

/* Adicione estas regras ao final do arquivo stickyplayer.css */

#sticky-player {
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    position: fixed; /* Garante que está fixo */
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

#sticky-player.visible {
    transform: translateY(0);
}

/* NOVO: Espaço reservado para o player e footer */
body.sticky-player-visible {
    padding-bottom: var(--player-height, 97px); /* Valor padrão para mobile */
}

@media (min-width: 768px) {
    body.sticky-player-visible {
        padding-bottom: var(--player-height, 68px); /* Valor padrão para desktop */
    }
}

#waveform-container {
    align-content: center;
}



#sticky-player {
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}


/* --- AJUSTE DE VISIBILIDADE DO BOTÃO FECHAR --- */

#close-sticky-player {
    opacity: 0;
    /* Adiciona uma transição suave para o aparecimento */
    transition: opacity 0.4s ease-in-out;
    /* Impede que o botão seja clicado quando está invisível */
    pointer-events: none;
}

#sticky-player.visible #close-sticky-player {
    opacity: 1;
    /* Permite que o botão seja clicado novamente quando visível */
    pointer-events: auto;
}

@media (max-width: 767px) {
    #sticky-player {
        height: 111px !important;
        padding-top: 7px !important;
        padding-bottom: 7px !important;
    }
}

