/* assets/css/style.css */
/* assets/css/style.css */
:root {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #1e293b; /* Um cinza quase preto mais moderno */
    --text-sec: #64748b;
    --border-color: #e2e8f0;
    
    /* CORES DO ÍCONE (BRANDING) */
    --accent-color: #f4ba1d;   /* O Amarelo Ouro do ícone */
    --accent-hover: #dab21a;
    --accent-text: #1e293b;    /* Texto preto/escuro sobre o amarelo */
    
    --premium-color: #f4ba1d;
    --link-color: #1a73e8;     /* Mantido apenas para links de navegação azul */
    
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

/* --- LAYOUT BASE --- */
body { 
    font-family: 'Roboto', sans-serif; 
    background: var(--bg-color); 
    color: var(--text-main); 
    margin: 0; display: flex; flex-direction: column; align-items: center; 
    min-height: 100vh; line-height: 1.5;
    padding-left: 70px; /* Faixa da sidebar desktop */
    transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
body.nav-expanded {
    padding-left: 250px; /* Empurra o site ao abrir a sidebar */
}
@media (max-width: 768px) {
    body { padding-left: 0 !important; }
}

.container { width: 100%; max-width: 900px; padding: 63px 20px; box-sizing: border-box; }
/* --- NAVBAR SUPERIOR --- */
.top-navbar {
    position: absolute; 
    top: 0; 
    left: 70px; /* Começa depois da barra lateral no PC */
    right: 0; 
    height: 53px;
    padding: 0 24px; 
    display: flex; 
    justify-content: flex-end; /* No PC, empurra a foto para a direita */
    align-items: center;
    z-index: 900; 
}

/* ESCONDE NO PC PARA NÃO DUPLICAR COM O DA BARRA LATERAL */
.mobile-hamburger { display: none !important; }

/* Ícone Foto Perfil */
.profile-trigger {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--accent-color); color: var(--accent-text);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 1rem; cursor: pointer;
    border: 2px solid white; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: 0.2s;
}
.profile-trigger:hover { transform: scale(1.05); }

/* --- REGRAS EXCLUSIVAS PARA MOBILE --- */
@media (max-width: 768px) {
    .top-navbar { 
        left: 0; 
        justify-content: space-between !important; /* Joga Hambúrguer pra esq e Foto pra dir */
        padding: 0 15px; 
        background: #fff; 
        border-bottom: 1px solid var(--border-color);
    }
    /* APARECE SÓ NO MOBILE */
    .mobile-hamburger { display: flex !important; } 
}
/* --- REGRAS EXCLUSIVAS PARA MOBILE --- */
@media (max-width: 768px) {
    .top-navbar { 
        left: 0; /* No mobile, a navbar ocupa a tela toda */
        justify-content: space-between !important; /* Hambúrguer(Esq) e Foto(Dir) */
        padding: 0 15px; 
        background: #fff; 
        border-bottom: 1px solid var(--border-color);
    }
    .mobile-hamburger { 
        display: flex !important; /* Força o hambúrguer a aparecer na esquerda */
    } 
}

/* --- BARRA LATERAL ESQUERDA (NAVEGAÇÃO) --- */
.left-sidebar {
    position: fixed; top: 0; left: 0; width: 70px; height: 100vh;
    background: #fff; border-right: 1px solid var(--border-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s;
    z-index: 2000; /* <--- MUDOU AQUI de 1000 para 2000 */
    overflow-x: hidden; display: flex; flex-direction: column;
}
.left-sidebar.expanded { width: 250px; }
/* Botão principal com o amarelo do seu ícone */
.btn-primary, #btnSubmitVideo {
    background-color: #f4ba1d !important;
    color: #1e293b !important; /* Texto escuro para contraste */
    border: none !important;
    font-weight: bold !important;
    box-shadow: 0 4px 10px rgba(244, 186, 29, 0.3);
}

/* Ajuste fino na barra de progresso */
.progress-bar {
    background-color: #f4ba1d !important;
}

@media (max-width: 768px) {
    .left-sidebar { transform: translateX(-100%); width: 250px; }
    .left-sidebar.expanded { transform: translateX(0); }
}

.sidebar-header {
    height: 75px; display: flex; align-items: center; padding: 0 15px;
    border-bottom: 1px solid var(--border-color);
	background: #1e293b; /* Fundo escuro para destacar o ícone */
    color: white;
}
.btn-hamburger {
    background: none; border: none; cursor: pointer;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-sec); transition: 0.2s; flex-shrink: 0;
}
.btn-hamburger:hover {background: rgba(255, 255, 255, 0.1);color: var(--accent-color); }
.btn-hamburger svg { width: 24px; height: 24px; fill: currentColor; }

.nav-menu { display: flex; flex-direction: column; gap: 8px; padding: 15px 0; }
.nav-link {
    display: flex; align-items: center; height: 48px;
    padding: 0 23px;
    text-decoration: none; color: var(--text-sec); transition: 0.2s; white-space: nowrap;
}
.nav-link:hover { background: #fffbeb;
    color: var(--accent-hover); }
.nav-link svg { width: 24px; height: 24px; fill: currentColor; margin-right: 24px; flex-shrink: 0; }
.nav-link span { font-weight: 500; font-size: 0.95rem; opacity: 0; transition: opacity 0.2s; }
.left-sidebar.expanded .nav-link span { opacity: 1; transition-delay: 0.1s; }

/* --- BARRA LATERAL DIREITA (PERFIL) --- */
.right-drawer {
    position: fixed; top: 0; right: -100%; width: 90%; max-width: 320px;
    height: 100vh; background: #fff; z-index: 2000;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px; box-sizing: border-box; display: flex; flex-direction: column;
}
.right-drawer.open { right: 0; }

.drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); 
    z-index: 1999; /* <--- MUDOU AQUI de 1001 para 1999 */
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.drawer-overlay.show { opacity: 1; visibility: visible; }

.btn-close-drawer {
    position: absolute; top: 20px; left: 20px;
    background: none; border: none; cursor: pointer; color: var(--text-sec);
    padding: 5px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: 0.2s;
}
.btn-close-drawer:hover { background: #f1f3f4; color: var(--error-color); }
.btn-close-drawer svg { width: 28px; height: 28px; fill: currentColor; }

.drawer-header {
    margin-top: 40px; display: flex; align-items: center; gap: 16px; margin-bottom: 30px;
    padding-bottom: 20px; border-bottom: 1px solid var(--border-color);
}
.profile-pic {
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--accent-color); color: white;
    font-size: 1.5rem; font-weight: bold;
    display: flex; align-items: center; justify-content: center;
}
.user-info h3 { margin: 0; font-size: 1.1rem; color: var(--text-main); }
.user-info span { font-size: 0.85rem; color: var(--text-sec); }

.drawer-items { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.drawer-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 8px;
    text-decoration: none; color: var(--text-main); font-weight: 500;
    transition: 0.2s;
}
.drawer-link:hover { background: var(--bg-color); color: var(--accent-color); }
.drawer-link svg { width: 20px; height: 20px; fill: currentColor; }

.drawer-footer { border-top: 1px solid var(--border-color); padding-top: 20px; text-align: center; }
.footer-email { font-size: 0.8rem; color: var(--text-sec); margin-bottom: 12px; display: block;}
.btn-logout {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 93%; padding: 12px;
    color: var(--error-color); background: #fce8e6;
    border: none; border-radius: 8px; cursor: pointer; font-weight: 600;
    text-decoration: none; transition: 0.2s;
}
.btn-logout:hover { background: #fad2cf; }

/* --- CARDS & ESTRUTURAS --- */
.card-base {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: 15px 12px;
    margin-bottom: 24px; box-shadow: 0 1px 2px rgba(60,64,67,0.1); position: relative;
}

.video-container { 
    position: relative; padding-bottom: 56.25%; height: 0; background: #000; 
    border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; 
    border: 1px solid var(--border-color);
}
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

h1 { font-weight: 400; color: var(--text-main); margin-bottom: 8px; letter-spacing: -0.5px; }
.subtitle { color: var(--text-sec); font-size: 0.95rem; margin-bottom: 30px; }

/* --- CONTROLES DO PLAYER (HEADER) --- */
.conf-video { display: flex; justify-content: space-between; margin-bottom: 20px; }
.header-controls {
    width: 106px; height: 36px; box-sizing: border-box; display: flex; align-items: center;
    gap: 12px; background: var(--bg-color); padding: 6px 12px;
    border-radius: 50px; border: 1px solid var(--border-color);
}
.plan-badge { background: #fef3c7; /* Amarelo bem clarinho de fundo */
    color: #b45309;      /* Laranja queimado para contraste */
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase; }

.switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #bdc1c6; transition: .3s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
input:checked + .slider { background-color: var(--accent-color); }
input:checked + .slider:before { transform: translateX(16px); }
.auto-label { font-size: 0.75rem; color: var(--text-sec); font-weight: 500; text-transform: uppercase;}
/* --- DICIONÁRIO INTERATIVO --- */
.interactive-word {
    display: inline-block;
    padding: 0 0px;
    border-radius: 4px;
    transition: background-color 0.2s;
    cursor: pointer;
}
.interactive-word:hover {
    background-color: #e2e8f0; /* Cinza claro elegante */
}

/* --- DICIONÁRIO INTERATIVO (POPUP) --- */
#word-tooltip {
    position: absolute;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: 0 10px 25px rgba(30, 41, 59, 0.1);
    z-index: 9999;
    display: none;
    
    /* A Mágica Restaurada: Largura fixa com limite matemático para telas pequenas */
    width: 300px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    word-wrap: break-word;
    
    font-size: 14px;
    color: var(--text-main);
}
.tt-header { display: flex; justify-content: space-between; align-items: center; gap: 15px;}
.tt-word { font-weight: bold; font-size: 18px; color: #1a202c; }
.tt-phonetic { font-family: monospace; color: #718096; margin-left: 8px; font-size: 13px;}
.tt-btn-audio { background: #ebf8ff; border: none; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #3182ce; transition: 0.2s;}
.tt-btn-audio:hover { background: #bee3f8; }
.tt-btn-expand { background: none; border: none; font-size: 20px; font-weight: bold; color: #a0aec0; cursor: pointer; padding: 0; line-height: 1; margin-top: 5px; float: right; }
.tt-btn-expand:hover { color: #4a5568; }
.tt-body { display: none; margin-top: 15px; border-top: 1px solid #edf2f7; padding-top: 10px; font-size: 13px; line-height: 1.5; color: #4a5568; clear: both;}
.tt-body strong { color: #2d3748; }
/* --- RELÓGIO / TIMESTAMPS --- */
.timestamps { 
    background: var(--bg-color); padding: 6px 22px; box-sizing: border-box;
    border-radius: 50px; border: 1px solid var(--border-color); width: 99px;
    height: 36px !important; font-family: 'Roboto', sans-serif; font-size: 0.85rem;
    font-weight: 500; color: var(--text-sec); display: flex; align-items: center; gap: 8px;
}
.timestamps svg { width: 14px;  height: 14px;  fill: none; stroke: currentColor; stroke-width: 2; }

/* --- SELETOR DE MODO (PÍLULA) --- */
.mode-select-wrapper { position: relative; display: inline-block; }
.pill-select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none; 
    background: #f1f3f4; border: none; color: var(--text-sec);
    padding: 8px 16px; padding-right: 32px; border-radius: 20px;
    font-size: 0.9rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: background 0.2s;
}
.pill-select:hover { background: #e0e0e0; color: var(--text-main); }
.pill-select:focus { outline: none; box-shadow: 0 0 0 2px rgba(0,0,0,0.1); }
.select-arrow {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; fill: var(--text-sec); pointer-events: none;
}

/* --- TEXTOS E FRASES DO PLAYER --- */
.lgd-phrase { font-size: 1.25rem; font-weight: 400; color: var(--text-main); margin-bottom: 12px; line-height: 1.3; }
.trad-phrase { font-size: 1.1rem; color: var(--text-sec); margin-bottom: 9px; font-style: italic; transition: 0.3s; }
.speech-box {
    background: #fbfbfb;
    padding: 17px;
    border-radius: var(--radius-md);
    border: 1.5px dashed #adbfd7;
    margin: 0px 0;
    color: var(--text-sec);
    font-size: 1.1rem;
    line-height: 1.6;
    min-height: 60px;
}
.card-progress{
	width: 100% !important;
    max-width: 100% !important;
}
.lesson-card, .history-card, .history-title-bar {
    width: 95%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto; /* Garante que fiquem centralizados na tela */
    box-sizing: border-box;
}
}

/* --- PLAYER DE ÁUDIO NATIVO --- */
.audio-player-box {
    background: #f8f9fa; border: 1px solid var(--border-color); border-radius: var(--radius-md);
    padding: 24px; margin-bottom: 32px; text-align: center; position: relative;
}
.audio-label { font-size: 0.9rem; font-weight: 600; color: var(--text-sec); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.audio-progress-track { background: #dadce0; height: 8px; border-radius: 4px; cursor: pointer; position: relative; overflow: hidden; transition: height 0.2s; }
.audio-progress-track:hover { height: 12px; }
.audio-progress-fill { background: var(--accent-color); height: 100%; width: 0%; border-radius: 4px; transition: width 0.1s linear; }
#video-container-wrapper[style*="display: none"] { margin-bottom: 0 !important; padding-bottom: 0 !important; height: 0 !important; border: none !important; }

/* --- LOADING CARD (UPLOAD DE VÍDEO) --- */
.loading-card {
    display: none; background: #fff; border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: 20px; margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); align-items: center; gap: 20px; animation: fadeIn 0.3s;
}
.loading-thumb { width: 120px; height: 68px; border-radius: 8px; object-fit: cover; background: #eee; }
.loading-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.loading-title { font-size: 1rem; font-weight: 600; color: var(--text-main); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.progress-container { width: 100%; height: 6px; background: #f1f3f4; border-radius: 10px; overflow: hidden; position: relative; }
.progress-bar {
    height: 100%; background: var(--accent-color); width: 0%; border-radius: 10px; transition: width 0.3s;
    background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-size: 1rem 1rem; animation: progress-stripe 1s linear infinite;
}
@keyframes progress-stripe { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* --- INPUTS & FORMS --- */
.input-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-sec); margin-bottom: 8px; display: block; }
/* Aplica o estilo bonito para Texto, Email e Senha de uma vez só */
input[type="text"], 
input[type="email"], 
input[type="password"], 
select.form-select {
    width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); 
    border: 1px solid var(--border-color); background: #fff; color: var(--text-main);
    margin-bottom: 16px; font-size: 1rem; box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Efeito de "Foco" (Bordinha azul quando clica no campo) */
input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="password"]:focus, 
select.form-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(244, 186, 29, 0.2);
}
/* --- BOTÕES DO PLAYER E AÇÕES --- */
.controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 30px; width: 100%; }
.btn { padding: 10px 24px; border: 1px solid var(--border-color); border-radius: 50px; cursor: pointer; font-weight: 500; background: #fff; transition: 0.2s;}
.btn:hover { background: var(--bg-color); }
/* Botão Principal (Amarelo) */
.btn-primary {
    background: var(--accent-color);
    color: var(--accent-text) !important; /* Força o texto escuro para legibilidade */
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(244, 186, 29, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}
.btn-icon {
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-color);
    background: #fff; color: var(--text-sec); cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: 0.2s; flex-shrink: 0;
}
.btn-icon:hover { background: var(--bg-color); color: var(--text-main); }
.btn-icon svg { width: 24px; height: 24px; fill: currentColor; }

.btn-play {
    width: 64px; height: 64px; border-radius: 50%; border: none; background: var(--accent-color); color: var(--accent-text);
    font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3); flex-shrink: 0;
}
.btn-record {
    width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--border-color);
    background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.btn-record .inner-red { width: 24px; height: 24px; background: var(--error-color); border-radius: 50%; }
.btn-record.recording { background: #fce8e6; border-color: var(--error-color); }

.reveal-btn { background: none; border: none; cursor: pointer; color: var(--text-sec); padding: 4px; border-radius: 50%; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.reveal-btn:hover { background: #f1f3f4; color: var(--accent-color); }
.reveal-btn svg { width: 24px; height: 24px; fill: currentColor; }

/* --- HISTÓRICO DE FRASES --- */
.history-title-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; margin-bottom: 16px; padding: 0 10px; }
.history-title-text { font-weight: 500; color: var(--text-sec); }
.btn-clear-history {
    background: none; border: none; color: var(--error-color); font-size: 0.85rem; font-weight: 600; cursor: pointer;
    text-transform: uppercase; letter-spacing: 0.5px; padding: 6px 12px; border-radius: 4px; transition: 0.2s;
}
.btn-clear-history:hover { background: #fce8e6; }

.history-card { height: 400px; overflow-y: auto; display: flex; flex-direction: column; padding: 0; background: var(--card-bg); }
.history-item { padding: 20px 32px; border-bottom: 1px solid var(--border-color); animation: fadeIn 0.3s ease-out; cursor: pointer; transition: background 0.2s; }
.history-item:hover { background: #f8f9fa; }
.hist-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hist-meta {
    background: var(--bg-color); padding: 4px 10px; border-radius: 50px; border: 1px solid var(--border-color);
    font-family: 'Roboto', sans-serif; font-size: 0.75rem; font-weight: 500; color: var(--text-sec);
    display: inline-flex; align-items: center; gap: 6px;
}
.hist-meta svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; }
.mode-label { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; color: #ccc; }
.hist-mode-toggle { display: flex; gap: 4px; }
.mode-toggle-btn { background: transparent; border: 1px solid #ddd; border-radius: 20px; padding: 2px 10px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: #aaa; cursor: pointer; transition: all 0.15s; }
.mode-toggle-btn.active { background: #1e293b; color: #fff; border-color: #1e293b; }
.mode-toggle-btn:hover:not(.active) { border-color: #999; color: #555; }
.hist-main { font-weight: 700; font-size: 1.1rem; color: var(--text-main); margin-bottom: 2px; }
.hist-sub { font-weight: 400; font-size: 0.95rem; color: #c5c3bd; margin-bottom: 8px; font-style: italic; }
.hist-rec { font-size: 0.95rem; color: var(--text-sec); display: flex; align-items: center; justify-content: space-between; background: #fbfbfb; border-radius: var(--radius-md); border: 1.5px dashed #adbfd7; padding: 8px 12px; }

/* --- SCORES & CORES DE FEEDBACK --- */
.score-badge { padding: 4px 12px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.score-high { background: #e6f4ea; color: var(--success-color); } 
.score-mid { background: #fef7e0; color: var(--warning-color); } 
.score-low { background: #fce8e6; color: var(--error-color); }    
.diff-correct { color: #5cb751; font-weight: 500; }
.diff-error { color: var(--error-color); text-decoration: line-through; opacity: 0.7; font-weight: 500; }

/* --- MODAL (POPUP) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-box {
    background: #fff; padding: 24px; border-radius: var(--radius-lg); width: 90%; max-width: 320px;
    text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transform: scale(0.9); transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.show .modal-box { transform: scale(1); }
.modal-title { font-size: 1.1rem; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
.modal-desc { font-size: 0.9rem; color: var(--text-sec); margin-bottom: 24px; line-height: 1.4; }
.modal-actions { display: flex; gap: 12px; justify-content: center; }
.btn-modal { padding: 10px 20px; border-radius: 50px; border: none; font-weight: 600; cursor: pointer; flex: 1; }
.btn-cancel { background: #f1f3f4; color: var(--text-main); }
.btn-confirm { background: var(--error-color); color: white; }

/* --- AUTH (LOGIN/CADASTRO) --- */
.auth-wrapper { display: flex; justify-content: center; align-items: center; min-height: 80vh; width: 100%; }
.auth-card { width: 100%; max-width: 400px; margin: 0; }
/* assets/css/style.css - Harmonização de Cores Premium */

/* --- DICIONÁRIO INTERATIVO (POPUP) --- */

.tt-header {
    margin-bottom: 12px;
}

.tt-word {
    font-weight: 800; /* Mais robusto */
    font-size: 20px;
    color: var(--text-main);
}

.tt-phonetic {
    color: var(--text-sec);
    font-size: 14px;
}

/* Botão de Áudio no Dicionário (AMARELO DO ÍCONE) */
.tt-btn-audio {
    background: var(--accent-color) !important; /* Amarelo */
    color: var(--accent-text) !important; /* Preto */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(244, 186, 29, 0.3);
    transition: 0.2s;
}

.tt-btn-audio:hover {
    background: var(--accent-hover) !important;
    transform: scale(1.05);
}

.tt-body {
    border-top: 1px solid var(--border-color);
    color: var(--text-sec);
    font-size: 14px;
    line-height: 1.6;
}

/* --- BOTÕES PREMIUM GLOBAIS --- */
.btn-primary, .btn-play {
    background: var(--accent-color) !important; /* Amarelo */
    color: var(--accent-text) !important; /* Texto Preto */
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(244, 186, 29, 0.3);
    transition: 0.2s;
}

.btn-primary:hover, .btn-play:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(244, 186, 29, 0.4);
}
/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #dadce0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #bdc1c6; }

/* Trava de segurança para impedir que a página inteira arraste para os lados */
    .pricing-page-wrapper {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden; /* Impede o scroll horizontal do site inteiro */
        box-sizing: border-box;
    }

    /* A mágica do Carrossel Inteligente */
    .pricing-carousel {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding: 40px 5vw; /* Cria um respiro flexível nas laterais */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; /* Deixa o deslize super suave em celulares (iOS/Android) */
        
        /* Esconde a barra de rolagem feia */
        -ms-overflow-style: none;  
        scrollbar-width: none;  
    }
    .pricing-carousel::-webkit-scrollbar {
        display: none;
    }

    /* O Card de Preço */
    .pricing-card {
        flex: 0 0 82vw; /* Ocupa 82% da largura da tela */
        max-width: 340px;
        scroll-snap-align: center; /* O SEGREDO: Sempre trava o card bem no MEIO da tela */
        
        background: white;
        border: 2px solid #e2e8f0;
        border-radius: 16px;
        padding: 30px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        display: flex;
        flex-direction: column;
        position: relative;
    }

    /* O destaque para o plano Premium */
    .pricing-card.premium {
        border-color: #2563eb; /* Azul forte estilo Google/SaaS moderno */
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    }
    
    .premium-badge {
        position: absolute;
        top: -14px;
        left: 50%;
        transform: translateX(-50%);
        background: #2563eb;
        color: white;
        padding: 6px 16px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 1px;
    }

    /* Ajuste para Desktop (Tira o carrossel e centraliza) */
    @media (min-width: 768px) {
        .pricing-carousel {
            justify-content: center;
            overflow-x: visible;
        }
        .pricing-card {
            flex: 1;
            transition: transform 0.3s ease;
        }
        .pricing-card:hover {
            transform: translateY(-5px);
        }
    }
	/* Regras exclusivas para dispositivos móveis (telas menores que 768px) */
    @media (max-width: 767px) {
        .pricing-card {
            max-width: 219px;
            padding: 25px 15px; /* Ajuste fino: reduz o espaço interno para o texto não ficar espremido */
        }
        
        /* Ajusta o tamanho da fonte do preço para não quebrar a linha no card fininho */
        .price-value {
            font-size: 2rem; 
        }
    }
    .price-value { font-size: 2.5rem; font-weight: 800; color: #1a202c; margin: 15px 0; }
    .price-cents { font-size: 1.2rem; vertical-align: super; }
    .price-period { font-size: 1rem; color: #718096; font-weight: 400; }
    
    .feature-list { list-style: none; padding: 0; margin: 25px 0; flex: 1; }
    .feature-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; font-size: 0.95rem; color: #4a5568; line-height: 1.4; }
    .feature-icon { color: #38a169; font-weight: bold; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════════════
   LAB GRID — main.php (visual alinhado à página /demo)
   Apenas redesign. Toda a lógica do script.js continua intocada,
   pois preservamos os ids (yt-player, time-display, source-text,
   target-text, user-speech, btn-prev/mic/play/next, history-list…)
   ════════════════════════════════════════════════════════════════════ */

.lab-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    width: 95%;
    max-width: 1200px;
    margin: 57px auto 36px
}
@media (max-width: 960px) {
    .lab-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        margin: 0 0 24px;
    }
    .lab-grid .lesson-card {
        border-radius: 0 0 12px 12px;
    }
}

.lab-grid .lab-study,
.lab-grid .lab-history {
    min-width: 0;
}

/* Neutraliza o centramento global das seções dentro do grid */
.lab-grid .lesson-card,
.lab-grid .history-card,
.lab-grid .history-title-bar {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Vídeo: força fill da coluna (sobrescreve estilos inline existentes) */
.lab-grid #video-container-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 18px !important;
}
.lab-grid .video-container {
    position: relative;            /* ancora o overlay de pausa */
    border-radius: 18px;
    border: none;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    margin-bottom: 0;
    overflow: hidden;              /* recorta o gradient nos cantos arredondados */
}

/* Capa premium (quando !$allowVideo) — refeita para ocupar a coluna */
.lab-grid .lab-thumb-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin: 0 0 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}
.lab-grid .lab-thumb-wrap img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}
.lab-grid .lab-thumb-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.78);
    color: #ffd700;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid #ffd700;
    letter-spacing: 0.04em;
}
.lab-grid .lab-thumb-audio {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ── Lesson card (estudo) ────────────────────────────────────────── */
.lab-grid .lesson-card {
    padding: 22px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 30px rgba(30, 41, 59, 0.08);
    background: var(--card-bg);
}
/* Quando o vídeo (ou capa premium) vive dentro do lesson-card,
   removemos o margin-bottom inferior do video-container global e
   damos um espaçamento próprio para integrar com o restante do card. */
.lab-grid .lesson-card #video-container-wrapper { margin-bottom: 18px !important; }
.lab-grid .lesson-card .video-container,
.lab-grid .lesson-card .lab-thumb-wrap { margin-bottom: 0; }
.lab-grid .lesson-card .lab-thumb-wrap { margin-bottom: 18px; }

/* Top bar: time pill + mode select pill + auto switch */
.lab-grid .conf-video {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.lab-grid .timestamps {
    background: #1e293b;
    color: #f8fafc;
    border: none;
    padding: 6px 16px;
    width: auto;
    height: 32px !important;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    gap: 6px;
}
.lab-grid .timestamps svg { stroke: var(--accent-color); }

.lab-grid .pill-select {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 6px 30px 6px 14px;
    color: var(--text-main);
    font-weight: 800;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    height: 32px;
}
.lab-grid .select-arrow { fill: var(--text-main); }

.lab-grid .header-controls {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    height: 32px;
    padding: 4px 14px;
    border-radius: 999px;
    width: auto;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}
/* O switch foi substituído por um checkbox oculto.
   O label "Auto" muda de cor para indicar o estado ativado. */
.lab-grid .auto-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.lab-grid .auto-toggle .auto-label {
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.15s ease;
}
.lab-grid .auto-toggle:hover { background: #e2e8f0; }
.lab-grid .auto-toggle input[type="checkbox"]:checked ~ .auto-label {
    color: var(--accent-hover);
}
.lab-grid .auto-toggle:has(input[type="checkbox"]:checked) {
    background: #fffaeb;
    border-color: var(--accent-color);
}

/* ── Frase original (legenda) ────────────────────────────────────── */
/* Altura FIXA: 111.31px. Se o texto for maior, vira scroll interno. */
.lab-grid .lgd-phrase {
    font-size: 1.03rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
    background: #fffaeb;
    border-left: 4px solid var(--accent-color);
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    height: 111.31px;
    overflow-y: auto;
    box-sizing: border-box;
}

/* ── Tradução (alvo) ─────────────────────────────────────────────── */
/* Altura FIXA: 104.44px. Se o texto for maior, vira scroll interno. */
.lab-grid .trad-phrase {
    font-size: 0.90rem;
    color: var(--text-main);
    line-height: 1.5;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 0;
    font-style: normal;
    height: 104.44px;
    overflow-y: auto;
    box-sizing: border-box;
}
.lab-grid .trad-phrase .interactive-word {
    cursor: pointer;
    border-radius: 4px;
    padding: 0 2px;
    transition: background 0.15s ease, color 0.15s ease;
    border-bottom: 1px dashed transparent;
}
.lab-grid .trad-phrase .interactive-word:hover {
    background: #fef3c7;
    color: #92400e;
    border-bottom-color: var(--accent-color);
}
.lab-grid .lgd-phrase .interactive-word:hover {
    background: #fde68a;
}

/* Wrapper do bloco "tradução + olho de revelar" — referencial relativo */
.lab-grid .trad-wrap {
    position: relative;
    margin-bottom: 12px;
}
.lab-grid .trad-wrap .reveal-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    width: 32px;
    height: 32px;
    padding: 0;
    z-index: 2;
    backdrop-filter: blur(2px);
}
.lab-grid .trad-wrap .reveal-btn:hover { background: #fff; color: var(--text-main); }
.lab-grid .trad-wrap .reveal-btn svg { width: 16px; height: 16px; }

/* Wrapper do user-speech — referencial relativo p/ o crachá IA */
.lab-grid .speech-wrap {
    position: relative;
}
.lab-grid .ai-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    color: #7c3aed;
    pointer-events: none;
    z-index: 3;
    line-height: 1;
}
.lab-grid .ai-badge .material-symbols-outlined {
    font-size: 22px;
    color: #7c3aed;
    filter: drop-shadow(0 1px 2px rgba(124, 58, 237, 0.25));
}

/* ── Caixa de fala (user-speech) ─────────────────────────────────── */
/* Estado base/placeholder — borda tracejada cinza, ícone "mic" à esquerda. */
.lab-grid .speech-box {
    position: relative;
    border: 1px dashed var(--border-color);
    background: #fbfbfb;
    border-radius: 12px;
    padding: 12px 16px 12px 44px;       /* espaço pro ícone (::before) */
    color: var(--text-sec);
    font-size: 0.95rem;
    line-height: 1.5;
    min-height: 56px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.lab-grid .speech-box::before {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 22px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    content: 'mic';
    color: var(--text-soft);
}

/* Estado "is-recording" — vermelho (espelha .demo-user-speech.is-recording) */
.lab-grid .speech-box.is-recording {
    border-style: solid;
    border-color: #ef4444;
    background: #fef2f2;
    color: #ef4444;
}
.lab-grid .speech-box.is-recording::before { content: 'graphic_eq'; color: #ef4444; }

/* Estado "is-evaluating" — roxo (espelha .demo-user-speech.is-evaluating) */
.lab-grid .speech-box.is-evaluating {
    border-style: solid;
    border-color: var(--violet-color, #8b5cf6);
    background: #f5f3ff;
    color: var(--violet-color, #8b5cf6);
}
.lab-grid .speech-box.is-evaluating::before { content: 'auto_awesome'; color: var(--violet-color, #8b5cf6); }

/* Estado "is-done" — verde (espelha .demo-user-speech.is-done) */
.lab-grid .speech-box.is-done {
    border-style: solid;
    border-color: var(--success-color);
    background: #ecfdf5;
    color: var(--text-main);
}
.lab-grid .speech-box.is-done::before { content: 'check_circle'; color: var(--success-color); }

/* Estado "is-empty" — sem áudio captado (visual amarelo/atenção) */
.lab-grid .speech-box.is-empty {
    border-style: dashed;
    border-color: #fcd34d;
    background: #fffbeb;
    color: #92400e;
}
.lab-grid .speech-box.is-empty::before { content: 'mic_off'; color: #92400e; }

/* Fallback :has() — caso o JS não setasse explicitamente .is-done
   (mantém o verde quando o validateSpeech injeta o score badge). */
.lab-grid .speech-box:has(.score-badge):not(.is-recording):not(.is-evaluating):not(.is-empty) {
    border-style: solid;
    border-color: var(--success-color);
    background: #ecfdf5;
    color: var(--text-main);
}
.lab-grid .btn-record.recording {
    background: #ef4444;
    border-color: #ef4444;
    animation: lab-mic-pulse 1.2s ease-in-out infinite;
}
.lab-grid .btn-record.recording .inner-red {
    background: #ffffff;
}
@keyframes lab-mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
    50%      { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
}

/* ── Controles (prev / mic / play / next) ────────────────────────── */
.lab-grid .controls {
    gap: 14px;
    margin-top: 20px;
}
.lab-grid .btn-icon {
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border: none;
    color: var(--text-main);
}
.lab-grid .btn-icon svg { width: 20px; height: 20px; }
.lab-grid .btn-icon:hover { background: #e2e8f0; }
.lab-grid .btn-record {
    width: 64px;
    height: 64px;
    background: #ef4444;
    border: none;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.32);
    transition: transform 0.15s ease, background 0.15s ease;
}
.lab-grid .btn-record:hover { transform: scale(1.05); }
.lab-grid .btn-record .material-symbols-outlined {
    font-size: 30px;
    color: #ffffff;
}
/* legado — caso algum cache antigo ainda renderize a bolinha */
.lab-grid .btn-record .inner-red {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
}
.lab-grid .btn-play {
    width: 52px;
    height: 52px;
    background: var(--accent-color);
    color: var(--accent-text);
    box-shadow: 0 8px 20px rgba(244, 186, 29, 0.32);
}
.lab-grid .btn-play svg { width: 26px !important; height: 26px !important; }
.lab-grid .btn-play .material-symbols-outlined {
    font-size: 28px;
    color: var(--accent-text);
}
.lab-grid .btn-play:hover { background: var(--accent-hover); transform: scale(1.05); }

/* ── Histórico (lado direito) ───────────────────────────────────── */
/* Título-bar agora vive DENTRO do .history-card (mais clean, igual à demo) */
.lab-grid .history-card {
    height: auto;
    min-height: 320px;
    max-height: 720px;
    padding: 22px 22px 10px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(30, 41, 59, 0.08);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    overflow: hidden;          /* o scroll é interno (#history-list) */
    display: flex;
    flex-direction: column;
}
.lab-grid .history-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 14px;
    padding: 0;
}
.lab-grid .history-title-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
}
.lab-grid .history-title-text .material-symbols-outlined {
    color: var(--violet-color);
    font-size: 22px;
}
.lab-grid .btn-clear-history {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--error-color);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.78rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}
.lab-grid .btn-clear-history:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

/* Container scrollável dos itens (mantém o id #history-list que o script.js usa). */
.lab-grid #history-list.history-list-inner {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 4px 4px 12px;
    margin: 0 -4px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    height: auto;
    display: flex;
    flex-direction: column;
}

.lab-grid .history-item {
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 14px;
    background: #f8fafc;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.lab-grid .history-item:last-child { margin-bottom: 0; }
.lab-grid .history-item:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(30, 41, 59, 0.08);
}
.lab-grid .hist-header { margin-bottom: 8px; }

/* Pill SUAVE: "Frase 1 · Intérprete" — texto cinza claro, igual à demo */
.lab-grid .hist-meta {
    background: transparent;
    color: #cbd5e1;            /* cinza claro (slate-300) */
    border: none;
    padding: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
/* Esconde o SVG do ícone antigo — agora a meta é texto puro */
.lab-grid .hist-meta svg { display: none; }

/* Frase original — peso normal, igual a .demo-eval-item p */
.lab-grid .hist-main {
    font-size: 0.95rem;
    line-height: 1.45;
    margin-top: 23px;
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 4px;
}
.lab-grid .hist-sub {
    color: var(--text-sec);
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 8px;
}
.lab-grid .hist-rec {
    background: #ffffff;
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    margin-bootom: 25px;
    padding: 8px 12px;
    font-size: 0.88rem;
}

/* Score badges ajustadas (mesma cor lógica, novo visual) */
.lab-grid .score-badge {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.lab-grid .score-high { background: #10b981; color: #ffffff; }
.lab-grid .score-mid  { background: #f4ba1d; color: #1e293b; }
.lab-grid .score-low  { background: #ef4444; color: #ffffff; }

/* Toggle Mode (Intérprete/Shadowing) dentro de hist-mode-toggle */
.lab-grid .mode-toggle-btn {
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 0.66rem;
}

/* Empty state inicial do histórico */
.lab-grid .history-card > div[style*="Seus resultados"] {
    margin-top: 80px !important;
    color: var(--text-soft) !important;
}

/* Em telas pequenas, vídeo + lesson ficam mais juntos e botões diminuem */
@media (max-width: 480px) {
    .lab-grid .controls { gap: 10px; }
    .lab-grid .btn-record { width: 56px; height: 56px; }
    .lab-grid .btn-play   { width: 46px; height: 46px; }
    .lab-grid .btn-icon   { width: 40px; height: 40px; }
    .lab-grid .lesson-card { padding: 53px 10px 14px 10px; }
    .lab-grid .history-card { padding: 18px 18px 8px; }
}

/* ────────────────────────────────────────────────────────────────────
   OVERLAY DE PAUSA NO VÍDEO
   - Gradiente do rodapé (cor sólida) até ~20% da altura (transparente)
   - Manual: botão amarelo com play_arrow + título do vídeo
   - Auto:   botão amarelo com graphic_eq pulsando + "SUA VEZ"
   ──────────────────────────────────────────────────────────────────── */
.lab-grid .video-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: auto;
    background: linear-gradient(
        to top,
        #1e293b 0%,
        rgba(30, 41, 59, 0.95) 8%,
        rgba(30, 41, 59, 0) 22%
    );
}
.lab-grid .video-overlay-content {
    position: absolute;
    bottom: 14px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}
.lab-grid .video-overlay-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--accent-text);
    border: none;
    box-shadow: 0 8px 18px rgba(244, 186, 29, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s ease, background 0.15s ease;
}
.lab-grid .video-overlay-btn:hover { background: var(--accent-hover); transform: scale(1.05); }
.lab-grid .video-overlay-btn .material-symbols-outlined {
    font-size: 28px;
    color: var(--accent-text);
}
.lab-grid .video-overlay-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.lab-grid .video-overlay-mode {
    font-size: 0.68rem;
    color: #cbd5e1;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.lab-grid .video-overlay-title {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Pausa automática: pulso no botão e título grande "SUA VEZ" */
.lab-grid .video-overlay.is-auto .video-overlay-btn {
    animation: lab-overlay-pulse 1.4s ease-in-out infinite;
}
.lab-grid .video-overlay.is-auto .video-overlay-title {
    font-size: 1rem;
    letter-spacing: 0.08em;
}
@keyframes lab-overlay-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 186, 29, 0.6); }
    50%      { box-shadow: 0 0 0 14px rgba(244, 186, 29, 0); }
}
@media (max-width: 480px) {
    .lab-grid .video-overlay-btn { width: 44px; height: 44px; }
    .lab-grid .video-overlay-btn .material-symbols-outlined { font-size: 24px; }
    .lab-grid .video-overlay-title { font-size: 0.88rem; }
}