/* ================================
   MODAL EXCLUSIVO DAS LETRAS
================================ */

.modal-letra-container {
    display: none; /* controlado pelo JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    justify-content: center;
    align-items: center;

    background: rgba(240, 240, 240, 0.87);
    backdrop-filter: blur(3px);

    /* força o modal a aparecer acima de qualquer coisa */
    z-index: 999999999;
}

.modal-letra-box {
    max-width: 80vw;
    max-height: 80vh;
    background: #ffffff3b;
    color: #000;
    padding-right: 3px;
    border-radius: 12px;
    border: 1px solid rgba(255,118,0,0.45);
    box-shadow: 0 0 20px rgba(255,140,0,0.6);

    overflow-y: auto;

    /* garante visibilidade durante animação */
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .modal-letra-box {
        max-width: 95vw;
        max-height: 90vh;
        padding-right: 16px;
    }
}


.modal-letra-fechar {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    background: rgba(230, 230, 230, 0.589);
    color: #000;
    border-radius: 8px;
    padding: 1px 1px;
    cursor: pointer;
    z-index: 1000000000;
}
/* ========================================
   GALERIA — CARDS DAS LETRAS (NOMES NOVOS)
======================================== */

.letras-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 260px));
    gap: 20px; /*espaço entre os retângulos*/
    padding: 20px 20px;
    justify-content: center;

    max-width: 1200px;
    margin: 0 auto;
}

.letra-card {
    width: 100%;
    max-width: 320px;
    height: 380px;

    background: rgba(189, 186, 186, 0.96);
    border: 1px solid rgba(255,118,0,0.35);
    border-radius: 12px;

    padding: 20px;
    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    color: #000;
    box-shadow: 0 0 12px rgba(255,118,0,0.45);

    transition: transform 0.3s ease, box-shadow 0.4s ease;
}

.letra-card:hover {
    transform: scale(1.04);

    box-shadow:
        0 0 10px rgba(255,118,0,0.5),
        0 0 25px rgba(255,150,0,0.6),
        0 0 40px rgba(255,180,0,0.7);
}

.letra-card-titulo {
    font-size: 1.2rem;
    margin-bottom: 15px;

    color: #000;
    text-shadow: 0 0 8px rgba(255,150,0,0.8);
}

.letra-card-preview {
    height: 240px;
    overflow: hidden;

    font-size: 0.95rem;
    line-height: 1.5;

    white-space: pre-line;
}

/* BOTÃO */

.letra-card-botao {
    padding: 10px;

    border-radius: 8px;
    border: 1px solid rgba(255,140,0,0.7);

    background: rgba(255,140,0,0.45);
    color: #000;

    font-weight: bold;
    cursor: pointer;

    transition: 0.3s;
}

.letra-card-botao:hover {
    background: rgba(255,160,0,0.9);
}

/* ========================================
   LETRAS COMPLETAS (PARA O JS)
======================================== */

.letra-completa-box {
    display: none;
    white-space: pre-line;
}

.botao-fechar-externo {
    position: absolute;
    top: 5px;
    right: 35px;

    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;

    background: rgba(255,140,0,0.45);
    border: 1px solid rgba(255,140,0,0.7);
    color: #000;

    border-radius: 12px;
    cursor: pointer;

    box-shadow: 0 0 12px rgba(255,118,0,0.45);
    transition: 0.3s ease;
    z-index: 1000000000; /* acima da caixa */
}

.botao-fechar-externo:hover {
    background: rgba(255,160,0,0.9);
    box-shadow:
        0 0 10px rgba(255,118,0,0.5),
        0 0 25px rgba(255,150,0,0.6),
        0 0 40px rgba(255,180,0,0.7);
}

.cifra-bloco {
  font-family: "Arial";
  font-size: 20px;
  line-height: 1.6;
  color: #000000;
}

@media (max-width: 768px) {
    .cifra-bloco {

        line-height: 1.4;
        font-size: 19px; /*tamanho da fonte no celular */
    
    }
}



/* ========================================
   CARDS DE CIFRAS (ALTURA REDUZIDA)
======================================== */

.cifra-card {
    height: 200px;
    justify-content: center;
}

.cifra-card .letra-card-titulo {
    margin-bottom: 25px;
}

.cifra-acordes {
    margin-top: 5px;
    text-align: center;
}

.cifra-acordes img {
    display: block;   /* REMOVE o espaço fantasma */
    margin: 0;        /* garante zero margem */
    padding: 0;
    line-height: 0;
}

/* Controla a parte das letras das cifas */
.texto-acorde {
    font-weight: bold;
    color: #FF7A00; /* Laranja */
    font-family: "Arial";
    letter-spacing: 3px;
    font-size: 18px;
}

@media (max-width: 768px) {
    .modal-letra-box {
        -webkit-overflow-scrolling: touch;
        
    }
}