/**
 * estilos-player.css - Estilos Visuais do PWA YouVibe
 */

/* --- COMPONENTE: Spinner de Carregamento --- */
.container-com-carregamento {
    position: relative; /* Base segura para absolute do spinner se necessário */
}

.carregando-spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #2ecca6; /* Verde YouVibe */
    animation: girar-spinner 1s ease-in-out infinite;
    margin: 0 auto;
    pointer-events: none; /* [Proteção UI] O spinner nunca interceptará cliques acidentalmente */
}

.exibir-carregando .carregando-spinner {
    display: block;
}

@keyframes girar-spinner {
    to { transform: rotate(360deg); }
}

/* --- COMPONENTE: Barra de Progresso --- */
.container-progresso {
    position: relative;
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

/* Buffer (A parte cinza escuro pré-carregada pelo PWA) */
.progresso-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #a0a0a0;
    width: 0%;
    transition: width 0.3s ease;
}

/* Atual (A parte verde tocando no momento) */
.progresso-atual {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #2ecca6;
    width: 0%;
    transition: width 0.1s linear;
}

/* --- COMPONENTE: Capa do Álbum --- */
.capa-album {
    transition: opacity 0.5s ease-in-out;
    opacity: 0; /* Inicia oculta para o fade-in */
}
.capa-album.carregada {
    opacity: 1; /* Classe adicionada via JS ao terminar de carregar a imagem */
}

/* --- COMPONENTE: Controles do Player (Redesign Premium) --- */
.player-controles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-controle {
    background: transparent;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.2s ease;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-controle svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.btn-controle:hover {
    color: #2ecca6; /* Verde YouVibe */
    background: rgba(46, 204, 166, 0.1);
}

.btn-controle:active svg {
    transform: scale(0.9);
}

/* Efeito Ripple / Micro-animação nos cliques */
.btn-controle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn-controle:active::after {
    transform: translate(-50%, -50%) scale(2);
    opacity: 1;
    transition: 0s;
}

/* Botão Play/Pause em Destaque */
.btn-play {
    background: #2ecca6;
    color: #121212;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(46, 204, 166, 0.3);
}

.btn-play svg {
    width: 32px;
    height: 32px;
}

.btn-play:hover {
    background: #36ebd2;
    color: #121212;
    box-shadow: 0 6px 20px rgba(46, 204, 166, 0.5);
    transform: translateY(-2px);
}