/* Container Principal */
.music-hero-container {
    background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
    border-radius: 20px;
    padding: 30px;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

/* Título */
.music-hero-title {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a8c0ff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.music-hero-title strong {
    font-weight: 700;
    color: #fff;
}

/* Layout Flex (Disco + Botão Play + Botão Letra) */
.player-flex-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px; /* Espaço entre os elementos */
    margin-bottom: 20px;
    flex-wrap: wrap; /* Permite quebrar linha no mobile se necessário */
}

/* --- O DISCO DE VINIL --- */
.vinyl-record {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #111 20%, #222 21%, #111 22%, #222 30%, #111 31%, #222 40%, #111 41%, #000 70%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 2px solid #333;
    transition: transform 0.5s ease-out;
    flex-shrink: 0;
}

.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f77810, #d35400);
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vinyl-label::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
}

@keyframes spinVinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vinyl-record.spinning {
    animation: spinVinyl 3s linear infinite;
}

/* --- BOTÕES (PLAY e LETRA) --- */
.hero-btn {
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #f77810, #d35400); 
    box-shadow: 0 10px 20px rgba(211, 84, 0, 0.4), inset 0 2px 5px rgba(255,255,255,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    outline: none;
    color: #fff;
}

.hero-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(211, 84, 0, 0.6);
}
.hero-btn:active {
    transform: scale(0.95);
}

/* Botão Play (Maior) */
.play-btn-hero {
    width: 80px;
    height: 80px;
}
.play-icon-hero {
    font-size: 40px;
}
.play-btn-hero.playing .play-icon-hero {
    margin-left: 0;
}

/* Botão Letra (Menor) */
.lyrics-btn-hero {
    width: 50px;
    height: 50px;
    font-size: 24px; /* Tamanho do emoji */
}

/* Texto inferior (Link) */
.ai-link-text {
    font-size: 12px;
    color: #aaa;
    margin-top: 15px;
    font-weight: 400;
}
.ai-link-text a {
    color: #f77810;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed #f77810;
    transition: color 0.3s;
}
.ai-link-text a:hover {
    color: #ffaa55;
    border-bottom: 1px solid #ffaa55;
}

/* --- JANELA FLUTUANTE (MODAL) DA LETRA --- */
.lyrics-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none; /* Oculto por padrão */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lyrics-modal-content {
    background: linear-gradient(145deg, #1e1e1e, #0f0f0f);
    width: 90%;
    max-width: 500px;
    max-height: 80vh; /* Altura máxima da tela */
    border-radius: 20px;
    border: 1px solid #f77810;
    box-shadow: 0 0 30px rgba(247, 120, 16, 0.2);
    position: relative;
    padding: 25px;
    color: #eee;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

/* Cabeçalho da Janela */
.lyrics-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}
.lyrics-header h3 {
    margin: 0;
    color: #f77810;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
}

/* Área de Rolagem da Letra */
.lyrics-scroll-area {
    overflow-y: auto;
    flex: 1; /* Ocupa o espaço restante */
    padding-right: 10px; /* Espaço para a barra de rolagem não colar no texto */
    font-size: 16px;
    line-height: 1.6;
    white-space: pre-wrap; /* Mantém as quebras de linha */
    font-family: 'Georgia', serif; /* Fonte elegante para letra */
    color: #d1d1d1;
}

/* Botão Fechar */
.close-lyrics-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}
.close-lyrics-btn:hover {
    color: #fff;
}

/* Animação de Entrada */
.lyrics-modal-overlay.active {
    display: flex;
    opacity: 1;
}
.lyrics-modal-overlay.active .lyrics-modal-content {
    transform: scale(1);
}

/* --- BARRA DE ROLAGEM CUSTOMIZADA (LARANJA) --- */
.lyrics-scroll-area::-webkit-scrollbar {
    width: 8px;
}
.lyrics-scroll-area::-webkit-scrollbar-track {
    background: #111;
    border-radius: 4px;
}
.lyrics-scroll-area::-webkit-scrollbar-thumb {
    background: linear-gradient(#f77810, #d35400);
    border-radius: 4px;
    border: 1px solid #111;
}
.lyrics-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #ffaa55;
}

/* Firefox scrollbar */
.lyrics-scroll-area {
    scrollbar-width: thin;
    scrollbar-color: #f77810 #111;
}

/* Responsividade Celular */
@media (max-width: 600px) {
    .player-flex-row {
        gap: 15px;
    }
    .vinyl-record {
        width: 80px;
        height: 80px;
    }
    .play-btn-hero {
        width: 60px;
        height: 60px;
    }
    .play-icon-hero {
        font-size: 30px;
    }
    .lyrics-btn-hero {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .music-hero-title {
        font-size: 18px;
    }
    .lyrics-modal-content {
        width: 95%;
        padding: 20px;
    }
    .lyrics-scroll-area {
        font-size: 14px;
    }
}