/* Estilo do botão 📄 sobre o vídeo */
.transcript-btn {
    position: absolute;
    top: 15px; 
    left: 15px; /* Fica no canto superior esquerdo para não sobrepor a engrenagem ou o relógio */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.transcript-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
    transform: scale(1.1);
}

/* Fundo da Janela Flutuante */
.full-text-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
    padding: 1rem;
}

.full-text-modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* Conteúdo da Janela Flutuante */
.full-text-modal-content {
    background: linear-gradient(145deg, #1f1f1f, #121212);
    border: 1px solid rgba(255,215,0,0.3);
    padding: 2rem;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.7);
    position: relative;
}

/* Botão de Fechar */
.full-text-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.full-text-close:hover {
    color: #ffd700;
}

/* Estilização dos Botões da Janela */
.full-text-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.full-text-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.full-text-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffd700;
}

/* Estilo do Texto */
.full-text-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #e0e0e0;
    text-align: justify;
}

/* Destaque Amarelo do Áudio */
.highlight-yellow {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    font-weight: bold;
    background: rgba(255,215,0,0.1);
    border-radius: 4px;
    padding: 2px 4px;
    transition: all 0.2s ease;
}

/* =========================================================
   ESTILIZAÇÃO AVANÇADA DA BARRA DE ROLAGEM (SCROLLBAR)
   ========================================================= */

/* Suporte para Firefox */
.full-text-modal-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.6) transparent;
}

/* Suporte para Chrome, Edge, Safari e Opera */

/* 1. Largura da barra inteira */
.full-text-modal-content::-webkit-scrollbar {
    width: 12px; 
}

/* 2. O 'trilho' por onde a barra corre */
.full-text-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02); /* Fundo quase invisível */
    border-radius: 10px;
    margin-block: 15px; /* Deixa um espaço em cima e embaixo para não colar nas bordas */
}

/* 3. A 'pílula' que você clica e arrasta */
.full-text-modal-content::-webkit-scrollbar-thumb {
    /* Gradiente dourado suave */
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0.7) 100%);
    border-radius: 10px;
    /* Essa borda cria um efeito visual de que a pílula está 'flutuando' dentro do trilho, 
       pois a cor da borda combina com o fundo do modal */
    border: 3px solid #1a1a1a; 
}

/* 4. O efeito de quando o mouse passa por cima da barra */
.full-text-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.6) 0%, #ffd700 100%);
}