/* Corpo da página */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #2b2b2b; /* Fundo externo */
    color: #eeeeee; /* Texto claro */
    padding-bottom: env(safe-area-inset-bottom);
}

header {
    background-color: #1e1f1f; /* Fundo do cabeçalho */
    padding: 10px;
    text-align: center;
    color: white;
}

header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 200; /* Peso intermediário para maior elegância */
}

/* Layout principal */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px; /* Padding original */
    opacity: 0;
    animation: fadeIn 0.3s ease-in forwards;
    animation-delay: 0.1s;
}

#text-container {
    display: flex;
    justify-content: space-between; /* Espaçamento entre os contêineres */
    gap: 20px; /* Espaço entre os contêineres */
    width: 85%; /* Ajustar a largura dos contêineres de texto */
    max-width: 1100px; /* Ajustar a largura máxima */
    margin-top: 60px; /* Aumentar o espaçamento superior para empurrar os textos para baixo */
    margin-bottom: 20px; /* Espaçamento inferior original */
    transition: all 0.2s ease; /* Alterado de 0.1s para 0.2s */
}

#text-container.fade-out {
    opacity: 0 !important;
    transition: opacity 0.2s ease-out !important; /* Alterado de 0.1s para 0.2s */
}

#text-container.fade-in {
    opacity: 1 !important;
    transition: opacity 0.2s ease-in !important; /* Alterado de 0.1s para 0.2s */
}

/* Contêiner de Texto */
.text-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 0.1px solid rgba(204, 204, 204, 0.0);
    border-radius: 17px;
    padding: 15px;
    background-color: transparent;
    min-height: auto; /* Remove altura mínima */
    margin: 0; /* Remove margens extras */
    box-sizing: border-box; /* Garante que o padding não cause overflow */
    transition: opacity 0.2s ease-out !important; /* Alterado de 0.1s para 0.2s */
    opacity: 1;
}

.text-column.fade-out {
    opacity: 0 !important;
    transition: opacity 0.2s ease-out !important; /* Alterado de 0.1s para 0.2s */
}

.text-column.fade-in {
    opacity: 1 !important;
    transition: opacity 0.2s ease-in !important; /* Alterado de 0.1s para 0.2s */
}

.text-content {
    margin: 0; /* Remove margens que podem causar espaço extra */
    padding: 0; /* Remove preenchimento que pode causar espaço extra */
    text-align: justify;
    font-size: 18px; /* RESTAURADO: Garantindo explicitamente o tamanho original de 18px */
    line-height: 1.5;
    color: #b2b8b2;
    overflow-y: visible !important; /* Permite que o conteúdo seja exibido por completo */
    max-height: none !important;     /* Remove limitação de altura do container */
    width: 100%;
}

/* Contêiner de Botões */
#button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px; /* Espaçamento superior original */
}

/* Botões de Play */
.play-button {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    border: 1px solid rgba(204,204,204,0);
    background-color: transparent;
    color: #ccc;
    font-size: 16px; /* Tamanho da fonte padrão */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin: 0 10px; /* Espaçamento entre os botões */
}

.play-button:hover {
    border-color: #282929;
    color: #eee;
    transform: scale(1.1);
}

/* Atualização dos estilos do botão de play */
.play-button::before {
    font-size: 18px !important;
}

/* ✅ COMPORTAMENTO CORRETO: Por padrão, o botão toggle-display começa sem borda */
#toggle-display {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(204,204,204,0);
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Botão de Alternar */
#play-alternate {
    width: 45px; /* Garantir que o botão tenha o mesmo tamanho que os outros */
    height: 45px; /* Garantir que o botão tenha o mesmo tamanho que os outros */
}

#play-alternate::before {
    content: '' !important; /* Remove o ícone branco */
    display: block;
    width: 20px;
    height: 2px;
    background-color: #5582ec;
    position: relative;
    top: -4px;
}

#play-alternate::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background-color: #d86572;
    position: relative;
    top: 4px;
}

/* Destaque da palavra */
.highlight {
    color: #178fd4; /* Amarelo queimado */
    transition: color 0.3s ease;
}

/* Responsividade */
@media (max-width: 768px) {
    #text-container {
        flex-direction: column; /* Empilhar em telas menores */
        width: 95%; /* Aumentar a largura para 90% em telas menores */
        align-items: stretch; /* Garante que os contêineres ocupem toda a largura */
    }

    .text-column {
        margin-bottom: 20px; /* Espaçamento inferior para contêineres empilhados */
    }

    .play-button,
    #play-alternate,
    #toggle-display { /* Adicionar #toggle-display aqui */
        width: 55px !important;
        height: 55px !important;
        font-size: 18px !important;
    }

    /* Ajustar o tamanho das linhas dentro do botão toggle-display */
    #toggle-display span {
        width: 24px; /* Aumentar proporcionalmente */
    }

    .button-container-fixed {
        min-height: unset !important;
        height: unset !important;
        padding-top: 18px !important;
        padding-bottom: calc(7px + env(safe-area-inset-bottom)) !important;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .bottom-container {
        min-height: 70px !important;
        padding-bottom: 25px !important;
        background-color: #2b2b2b;
    }

    .verse-counter {
        font-size: 13px;
    }

    .play-button::before {
        font-size: 22px !important;
    }
}

/* NOVO: Ajustes específicos para tablets e metade da tela de computadores */
@media (min-width: 769px) and (max-width: 1023px) {
    #text-container {
        width: 90%; /* Reduzir um pouco a largura máxima */
        max-width: 800px; /* Limitar largura máxima */
    }

    .text-column {
        padding: 12px; /* Reduzir um pouco o padding */
    }

    /* RESTAURADO: Mantendo o tamanho da fonte original */
    .text-content {
        font-size: 18px;
    }
    
    /* Ajustar o layout quando a tela está em modo paisagem */
    @media (orientation: landscape) {
        main {
            padding: 15px; /* Reduzir o padding geral */
        }
        
        #text-container {
            margin-top: 45px; /* Reduzir margem superior */
        }
    }
}

/* NOVO: Ajustes específicos para quando o usuário reduz a largura da janela */
@media (max-width: 1000px) {
    #text-container {
        width: 95%; /* Ocupar mais espaço disponível */
    }
    
    /* RESTAURADO: Mantendo o tamanho da fonte original */
    .text-content {
        font-size: 18px;
    }
}

@media (max-width: 480px) and (orientation: landscape) {
    #text-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Centralizar os textos horizontalmente */
        align-items: center; /* Centralizar os textos verticalmente */
        width: 100%; /* Ajustar largura para evitar tocar nas bordas */
        padding: 10px; /* Espaço interno */
        box-sizing: border-box; /* Garantir que o padding não cause overflow */
        margin: 0 auto; /* Centralizar o contêiner */
    }

    .text-column {
        margin-bottom: 20px; /* Espaçamento entre os contêineres */
        width: 100%; /* Ocupa toda a largura */
    }

    .text-content {
        font-size: 16px; /* Reduzir o tamanho da fonte */
    }

    #button-container {
        margin-top: 10px; /* Reduzir margem superior */
        flex-direction: row; /* Manter os botões em linha */
        justify-content: center; /* Centralizar os botões */
        align-items: center; /* Centralizar verticalmente */
        gap: 10px; /* Espaçamento entre os botões */
    }

    .play-button,
    #play-alternate,
    #toggle-display {
        width: 50px !important; /* Reduzir um pouco o tamanho */
        height: 50px !important;
        font-size: 16px !important;
    }

    .play-button {
        margin: 0 5px; /* Reduzir espaçamento entre os botões */
    }

    .play-button::before {
        font-size: 18px !important;
    }
}

/* Ajuste para telas menores na horizontal */
@media (max-width: 768px) and (orientation: landscape) {
    #text-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Centralizar os textos horizontalmente */
        align-items: center; /* Centralizar os textos verticalmente */
        width: 100%; /* Ajustar largura para evitar tocar nas bordas */
        padding: 10px; /* Espaço interno */
        box-sizing: border-box; /* Garantir que o padding não cause overflow */
        margin: 0 auto; /* Centralizar o contêiner */
    }

    .text-column {
        margin-bottom: 20px; /* Espaçamento entre os contêineres */
        width: 100%; /* Ocupa toda a largura */
    }

    .text-content {
        max-height: 300px; /* Ajustar altura do texto */
    }

    #button-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Centralizar os botões horizontalmente */
        align-items: center; /* Centralizar os botões verticalmente */
        margin-top: 20px; /* Espaçamento acima */
    }

    .play-button {
        margin: 0 10px; /* Espaçamento lateral entre botões */
    }

    .play-button::before,
    .play-button.playing::before {
        font-size: 22px !important;
    }
}

/* Responsividade para telas menores na horizontal */
@media (max-width: 480px) and (orientation: landscape) {
    .play-button,
    #play-alternate,
    #toggle-display { /* Adicionar #toggle-display aqui */
        width: 55px; /* Mesmo tamanho dos outros botões em telas pequenas */
        height: 55px; /* Mesmo tamanho dos outros botões em telas pequenas */
        font-size: 18px;
    }

    .play-button::before {
        font-size: 20px !important;
    }
}

/* Estilo para o contêiner dos botões */
.button-container-fixed {
    background-color: #2b2b2b; /*#282929; /* Cor de fundo preta */
    border-radius: 50px; /* Cantos arredondados */
    padding: 5px; /* Reduzido de 10px para 5px */
    display: flex; /* Usar flexbox para alinhar os botões */
    justify-content: center; /* Centralizar os botões */
    position: relative; /* Modificado de fixed para relative */
    bottom: auto; /* Remove o posicionamento bottom */
    left: auto; /* Remove o posicionamento left */
    transform: none; /* Remove a transformação */
    z-index: 1000; /* Garantir que fique acima de outros elementos */
    margin: 0; /* Remove margens */
    height: auto; /* Altura automática */
    min-height: 55px; /* Adicionado para garantir altura suficiente */
}

/* Estilos específicos para Safari */
@media not all and (min-resolution: 0.001dpcm) {
    @supports (-webkit-appearance: none) {
        .text-column {
            margin-bottom: 0; /* Remove margens inferiores que podem causar espaço extra */
            padding-bottom: 0; /* Remove preenchimento inferior que pode causar espaço extra */
        }
    }
}

* {
    box-sizing: border-box; /* Garante que o padding e a borda sejam incluídos nas dimensões */
    user-select: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
    -moz-user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

#navigation-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px; /* Espaçamento acima dos botões de navegação */
}

#navigation-buttons button {
    width: 45px; /* Largura padrão do botão */
    height: 45px; /* Altura padrão do botão */
    border-radius: 50%;
    border: 1px solid rgba(204, 204, 204, 0.2);
    background-color: transparent;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px; /* Espaçamento entre os botões */
}

#navigation-buttons button:hover {
    border-color: #eee;
    color: #eee;
    transform: scale(1.1);
}

@media (min-width: 769px) {
    #text-container {
        width: 95%; /* Ajusta a largura geral */
        
        display: flex; /* Garante que flexbox seja aplicado */
        justify-content: center; /* Centraliza os itens filhos horizontalmente */
        align-items: center; /* Centraliza os itens filhos verticalmente (se necessário) */
      
        box-sizing: border-box; /* Evita overflow devido ao padding */
    }

    .text-column {
        flex: 1;
        max-width: 60%; /* Ajusta a largura máxima de cada container */
    }
}

/* Bloco único para dispositivos móveis */
@media (max-width: 480px) {
    #text-container .text-column {
        display: flex !important;
    }
}

/* Inicialmente, em telas pequenas, exibe apenas o container de inglês e o de português do modo normal */
@media (max-width: 480px) {
    /* Para o modo normal, apenas o container normal-portuguese é exibido */
    #text-container.normal .normal-portuguese {
        display: none;
    }
    /* No modo verso por verso, o container normal é oculto e o container independente é exibido */
    #text-container.verse-by-verse .normal-portuguese {
        display: none;
    }
    #text-container.verse-by-verse .verse-portuguese {
        display: flex !important;
    }
    /* Garante que o inglês continue visível em ambos os modos */
    #text-container .text-column:not(.normal-portuguese):not(.verse-portuguese) {
        display: flex !important;
    }
}

/* No modo normal, oculta o container de texto em português */
@media (max-width: 480px) {
    #text-container.normal .normal-portuguese {
        display: none !important;
    }
    /* No modo verso por verso, garante que ambos os containers sejam exibidos */
    #text-container.verse-by-verse .text-column {
        display: flex !important;
    }
}

/* Forçar layout vertical em telas de celular */
@media (max-width: 480px) {
    #text-container {
        flex-direction: column !important;
    }
}

/* Ajuste para telas grandes */
@media (min-width: 1024px) {
    #text-container {
        margin: 60px auto 20px; /* Centraliza o contêiner */
        justify-content: center;
    }
    .text-column {
        max-width: 50%; /* Cada container ocupa metade do espaço disponível */
    }
}

/* Ajustes para telas grandes */
@media (min-width: 1024px) {
    .text-content {
        overflow-y: auto !important;
        max-height: 400px !important;
    }
    #navigation-buttons button {
        border: 1px solid rgba(204, 204, 204, 0.2) !important;
    }
}

/* Ajustes para o modo "verse-by-verse" em computadores */
@media (min-width: 1024px) {
    #text-container.verse-by-verse .text-column {
        max-width: 55%; /* Aumenta um pouco a largura */
    }
}

/* Ajustes para o modo "verse-by-verse" em tablets */
@media (min-width: 769px) and (max-width: 1023px) {
    #text-container.verse-by-verse .text-column,
    #translation-toggle {
        max-width: 55%; /* Largura proporcional para tablets */
    }
    
    /* NOVO: Melhor ajuste quando a janela é redimensionada */
    @media (orientation: landscape) {
        #text-container.verse-by-verse {
            width: 65%;
            max-width: 700px;
        }
    }
}

/* Sobrescreve o ícone de play no botão de toggle para exibir somente o traço colorido */
#toggle-display::before {
    content: none !important;
}

/* Estilos para as frases de tradução */
#translation-toggle, #hide-translation {
    display: none; /* Remover estilos */
}

#translation-toggle {
    display: none; /* Inicialmente escondido */
    font-size: 14px;
    color: rgba(238, 238, 238, 0.3) !important; /* Aumenta a opacidade do texto e garante aplicação */
    cursor: pointer;
    text-align: center;
    margin: 10px 0; /* Espaçamento vertical */
    padding: 5px 0; /* Ajusta o padding para reduzir a altura */
    height: auto; /* Garante que a altura seja ajustada automaticamente */
    flex: 1; /* Garante que o contêiner ocupe o mesmo espaço que os outros */
    width: 100%; /* Garante que a largura seja igual aos outros contêineres */
    opacity: 1;
    transition: opacity 0.2s ease-out !important; /* Alterado de 0.1s para 0.2s */
    will-change: opacity;
}

#translation-toggle.fade-out {
    opacity: 0 !important;
    transition: opacity 0.2s ease-out !important; /* Alterado de 0.1s para 0.2s */
}

#translation-toggle.fade-in {
    opacity: 1 !important;
    transition: opacity 0.2s ease-in !important; /* Alterado de 0.1s para 0.2s */
}

@media (max-width: 480px) {
    #text-container.normal #translation-toggle {
        display: none !important; /* Garante que o toggle não apareça no modo normal */
    }
}

@media (max-width: 480px) {
    #text-container.verse-by-verse .text-column {
        margin-bottom: 5px !important; /* Reduz ainda mais o espaçamento e usa !important para garantir a aplicação */
    }
}

#text-container.verse-by-verse {
    gap: 5px !important; /* Reduz ainda mais o espaço entre os contêineres no modo verso por verso */
}

@media (min-width: 1024px) {
    #text-container.verse-by-verse .text-column,
    #translation-toggle {
        max-width: 55%; /* Aumenta um pouco a largura */
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    #text-container.verse-by-verse .text-column,
    #translation-toggle {
        max-width: 55%; /* Largura proporcional para tablets */
    }
}

#text-container.verse-by-verse .text-column {
    width: 100%;
    max-width: 100%;
    margin: 0;
    opacity: 1;
}

/* Atualizar as classes de transição */
.fade-out {
    opacity: 0 !important;
    transition: opacity 0.2s ease-out !important; /* Alterado de 0.1s para 0.2s */
}

.fade-in {
    opacity: 1 !important;
    transition: opacity 0.2s ease-in !important; /* Alterado de 0.1s para 0.2s */
}

/* Garantir que a transição seja aplicada mesmo quando o elemento está com display: none */
#portuguese-text {
    transition: opacity 0.2s ease-out !important; /* Alterado de 0.1s para 0.2s */
    will-change: opacity;
}

/* Novo container pai fixo na parte inferior */
.bottom-container {
    width: 100vw;
    background-color: #2b2b2b;
    position: fixed;
    bottom: 0;
    left: 0;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.07); /* Nova linha: adiciona borda branca com 30% de opacidade */
    border-bottom: none; /* Remove a borda inferior */
    padding: 5px; /* Reduzido de 10px para 5px */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    height: auto; /* Permite que a altura se ajuste ao conteúdo */
    min-height: min-content; /* Garante altura mínima baseada no conteúdo */
}

/* Ajuste para telas móveis */
@media (max-width: 768px) {
    #text-container {
        width: 95%; /* Alterado de 98% para 95% */
        padding: 0 8px; /* Reduzir o padding lateral */
    }

    .text-column {
        padding: 10px 5px; /* Reduzir o padding lateral */
    }

    main {
        padding: 20px 5px; /* Reduzir o padding lateral do container principal */
    }

    .bottom-container {
        min-height: 70px !important;
        padding-bottom: 25px !important;
    }

    .button-container-fixed {
        min-height: unset !important;
        height: unset !important;
        padding-top: 18px !important;
        padding-bottom: 7px !important;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }
}

/* Ajuste específico para telas muito pequenas */
@media (max-width: 480px) {
    #text-container {
        width: 95%; /* Alterado de 100% para 95% */
        padding: 0 5px; /* Padding lateral mínimo */
    }

    .text-column {
        padding: 8px 3px; /* Padding lateral ainda menor */
    }

    main {
        padding: 20px 3px; /* Padding lateral mínimo */
    }

    .text-content {
        padding: 0 2px; /* Padding lateral mínimo para o texto */
    }
}

/* Ajuste específico para o botão de play */
#play-english::before,
.play-button::before {
    content: '▶';
    color: #7b7b7b;
    font-size: 16px;
    transition: none;
}



/* Atualizar o botão de leitura alternada para usar o ícone de pause */
#play-alternate.playing::before {
    content: '' !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    background: url('images/icon-pause.svg') center center no-repeat !important;
    background-size: 20px 20px !important;
    position: relative !important;
    top: 0 !important;
}

#play-alternate.playing::after {
    content: none !important;
}



.lesson-card[data-number="1"] {
    transition: opacity 0.2s ease-out !important; /* Alterado de 0.1s para 0.2s */
}

/* Ajustes específicos para o modo vertical */
#text-container.verse-by-verse {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 55%;
    max-width: 550px;
    margin: 90px auto 20px; /* Aumentado de 60px para 90px */
}

#text-container.verse-by-verse .text-column {
    width: 100%;
    max-width: 100%;
    margin: 0;
    opacity: 1;
}

.translation-container {
    transition: opacity 0.2s ease-out;
    opacity: 0;
    display: none;
}

.translation-container.visible {
    opacity: 1;
    display: block;
}

#translation-toggle {
    width: 100%;
    padding: 10px 0;
    margin: 5px 0;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    color: rgba(238, 238, 238, 0.3) !important;
    display: block;
    user-select: none;
}

#translation-toggle:hover {
    color: rgba(238, 238, 238, 0.5) !important;
}

/* Responsividade para o modo vertical */
@media (max-width: 768px) {
    #text-container.verse-by-verse {
        width: 95%;
    }
}

/* Ajuste para telas menores na vertical */
@media (max-width: 480px) and (orientation: portrait) {
    .play-button,
    #play-alternate,
    #toggle-display { /* Adicionar #toggle-display aqui */
        width: 55px; /* Mesmo tamanho dos outros botões em telas pequenas */
        height: 55px; /* Mesmo tamanho dos outros botões em telas pequenas */
        font-size: 18px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Ocultar barras de rolagem em todos os elementos com rolagem */
body, 
main, 
.text-content, 
.text-column, 
#text-container,
.scroll-container {
    /* Para Firefox */
    scrollbar-width: none;
    /* Para IE e Edge */
    -ms-overflow-style: none;
}

/* Para Chrome, Safari e Opera */
body::-webkit-scrollbar, 
main::-webkit-scrollbar, 
.text-content::-webkit-scrollbar, 
.text-column::-webkit-scrollbar,
#text-container::-webkit-scrollbar,
.scroll-container::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

/* Adicione estes estilos ao final do arquivo */

/* Modificar o estilo do contador de versos */

/* Contador de versos para modo vertical */
.verse-counter {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
    z-index: 100;
}

/* Ajuste para a contagem em dispositivos móveis */
@media (max-width: 768px) {
    .verse-counter {
        font-size: 13px;
    }
    .progress-bar {
        width: 180px;
    }
}

@media (max-width: 480px) {
    .verse-counter {
        font-size: 12px;
    }
    .progress-bar {
        width: 160px;
    }
}

/* Prevenir ajuste automático de tamanho de texto em dispositivos móveis */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* NOVO: Otimização específica para metade da tela de desktop */
@media (min-width: 641px) and (max-width: 900px) {
    #text-container {
        width: 92%;
        margin-top: 50px; /* Margem superior reduzida */
    }
    
    /* RESTAURADO: Mantendo o tamanho da fonte original */
    .text-content {
        font-size: 18px !important;
    }
    
    .bottom-container {
        border-top-left-radius: 25px; /* Bordas ligeiramente menos arredondadas */
        border-top-right-radius: 25px;
    }
}

/* Adicionando nova regra para garantir que o tamanho da fonte se mantenha constante */
@media (max-width: 480px) {
    .text-content {
        font-size: 18px !important; /* RESTAURADO: Forçando o tamanho original com !important */
    }
}

/* Garantindo que todas as telas de tablet também mantenham o tamanho da fonte */
@media (min-width: 481px) and (max-width: 1023px) {
    .text-content {
        font-size: 18px !important; /* RESTAURADO: Tamanho consistente para todos os breakpoints */
    }
}

/* Garantindo que também mantenha o tamanho quando a janela é redimensionada */
@media (min-width: 641px) and (max-width: 900px) {
    .text-content {
        font-size: 18px !important; /* RESTAURADO: Mantém o tamanho quando a janela é redimensionada */
    }
}

#horizontal-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}
#horizontal-indicator img {
    height: 22px !important;
    width: auto !important;
    display: block !important;
    opacity: 0.7 !important;
}
@media (max-width: 768px) {
    #horizontal-indicator {
        top: 16px;
    }
    #horizontal-indicator img {
        height: 18px;
    }
}
@media (min-width: 1024px) {
    #horizontal-indicator img {
        height: 15px;
    }
}

/* Aplicar a mesma altura do mobile para desktop também */
@media (min-width: 769px) {
    .bottom-container {
        min-height: 70px !important;
        padding-bottom: 25px !important;
    }
    
    .button-container-fixed {
        padding-top: 18px !important;
        padding-bottom: 7px !important;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }
}

/* Barra de progresso para modo vertical */
.progress-bar {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    z-index: 100;
}

.progress-fill {
    height: 100%;
    background-color: #5582ec;
    transition: width 0.3s ease;
    width: 0%;
}

/* Ajuste para a contagem em dispositivos móveis */
@media (max-width: 768px) {
    .verse-counter {
        font-size: 13px;
    }
    .progress-bar {
        width: 180px;
    }
}

@media (max-width: 480px) {
    .verse-counter {
        font-size: 12px;
    }
    .progress-bar {
        width: 160px;
    }
}



.play-button::before {
    content: '▶';
    color: #7b7b7b;
    font-size: 16px;
    transition: none;
}

/* Ícone de pause consistente em todas as páginas e tamanhos de tela */
.play-button.playing::before,
#play-english.playing::before,
button#play-english.playing::before {
    content: '' !important;
    display: block;
    width: 20px !important;
    height: 20px !important;
    background: url('images/icon-pause.svg') center center no-repeat !important;
    background-size: 20px 20px !important;
}

@media (max-width: 768px) {
    .play-button.playing::before,
    #play-english.playing::before,
    button#play-english.playing::before {
        width: 20px !important;
        height: 20px !important;
        background-size: 20px 20px !important;
        background: url('images/icon-pause.svg') center center no-repeat !important;
    }
}

@media (max-width: 480px) {
    .play-button.playing::before,
    #play-english.playing::before,
    button#play-english.playing::before {
        width: 20px !important;
        height: 20px !important;
        background-size: 20px 20px !important;
        background: url('images/icon-pause.svg') center center no-repeat !important;
    }
}

/* Borda padrão: invisível para todos os botões */
.play-button,
#toggle-display {
    border: 1px solid rgba(204,204,204,0);
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Borda visível apenas para botões com classe active-button */
.play-button.active-button,
#toggle-display.active-button {
    border: 1px solid rgba(204,204,204,0.2);
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* ✅ CORREÇÃO MOBILE: Garantir que borda fique completamente invisível em dispositivos touch */
@media (max-width: 768px) {
    .play-button,
    #toggle-display {
        border: 1px solid rgba(204,204,204,0) !important;
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -khtml-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }
    
    .play-button:focus,
    #toggle-display:focus {
        border: 1px solid rgba(204,204,204,0) !important;
        outline: none !important;
    }
    
    .play-button:active,
    #toggle-display:active {
        border: 1px solid rgba(204,204,204,0) !important;
        outline: none !important;
    }
    
    .play-button.active-button,
    #toggle-display.active-button {
        border: 1px solid rgba(204,204,204,0.2) !important;
        outline: none !important;
    }
}

.text-segment, .text-segment:first-child {
    font-size: 18px !important;
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
}

.text-segment b, .text-segment:first-child b {
    font-size: inherit !important;
    font-weight: bold;
}

span.text-segment b, span.text-segment[data-index="0"] b {
    font-size: 18px !important;
    font-weight: bold !important;
    line-height: inherit !important;
}

/* Garante que todos os segmentos tenham o mesmo tamanho de fonte */
.text-segment, .text-segment:first-child, span.text-segment, span.text-segment[data-index="0"] {
    font-size: 18px !important;
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
    line-height: 1.5 !important;
}

/* Garante que o <b> dentro do segmento herde o tamanho corretamente */
.text-segment b, .text-segment:first-child b,
span.text-segment b, span.text-segment[data-index="0"] b {
    font-size: 18px !important;
    font-weight: bold !important;
    line-height: inherit !important;
}

/* Garantir que segmentos com ## tenham espaçamento extra em dispositivos móveis */
@media (max-width: 768px) {
    .text-segment[style*="margin-bottom:20px"] {
        margin-bottom: 20px !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .text-segment[style*="margin-bottom:20px"] {
        margin-bottom: 20px !important;
        display: block !important;
    }
}

.text-segment > b {
    pointer-events: none;
}

@media (max-width: 480px) {
  #prev-verse {
    position: relative;
    left: -20px;
  }
  #next-verse {
    position: relative;
    right: -20px;
  }
}

@media (min-width: 1024px) {
  #prev-verse {
    position: relative;
    left: -20px;
  }
  #next-verse {
    position: relative;
    right: -20px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #prev-verse {
    position: relative;
    left: -20px;
  }
  #next-verse {
    position: relative;
    right: -20px;
  }
}