/* ============================================
   PLAYER - POPUP DE VOLUME MOBILE
   ============================================ */

/* Container do volume */
.player-volume {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Popup do slider (mobile) */
.volume-popup {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 10px;
    border-radius: 12px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    display: none; /* Esconder por padrão */
}

.volume-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Slider vertical (mobile) */
.volume-slider-popup {
    -webkit-appearance: none;
    appearance: none;
    writing-mode: vertical-lr;
    direction: rtl;
    width: 40px;
    height: 120px;
    padding: 0;
    margin: 0 auto;
    background: transparent;
    outline: none;
    display: flex;
    align-items: center;
}

.volume-slider-popup::-webkit-slider-runnable-track {
    width: 5px;
    height: 120px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    margin: 0 auto;
}

.volume-slider-popup::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-left: -7.5px;
}

.volume-slider-popup::-moz-range-track {
    width: 5px;
    height: 120px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

.volume-slider-popup::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Slider horizontal (desktop) */
.volume-slider-desktop {
    width: 100px;
    height: 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    -webkit-appearance: none;
    display: none; /* Esconder por padrão */
}

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

.volume-slider-desktop::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
}

/* Mobile (< 768px) - Mostrar popup */
@media (max-width: 768px) {
    .volume-popup {
        display: block;
    }
    
    .volume-slider-desktop {
        display: none !important;
    }
    
    /* Ajustar player content para não quebrar linha */
    .player-content {
        flex-wrap: nowrap !important;
    }
    
    .player-volume {
        width: auto !important;
        justify-content: flex-end !important;
    }
}

/* Desktop (> 768px) - Mostrar slider horizontal */
@media (min-width: 769px) {
    .volume-popup {
        display: none !important;
    }
    
    .volume-slider-desktop {
        display: block;
    }
}

/* Ajuste para telas muito pequenas */
@media (max-width: 360px) {
    .volume-popup {
        right: -5px;
    }
    
    .volume-slider-popup {
        height: 100px;
        width: 35px;
    }
}

/* Animação de entrada */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.volume-popup.show {
    animation: slideUpFade 0.3s ease;
}

