/* Debate: uma coluna, legenda dentro do quadro e navegação no cabeçalho. */
#root #stage[data-mode=cinema] .history-cinema[data-video]{
 position:fixed!important;inset:0!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;margin:0!important;box-sizing:border-box;
 padding:6px max(10px,env(safe-area-inset-right,0px)) max(6px,env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px))!important;
 display:flex!important;flex-direction:column;gap:4px!important;overflow:hidden;
}
#root #stage[data-mode=cinema] .history-cinema[data-video] header{display:flex;flex:none;align-items:center;gap:8px;min-height:44px;width:100%;box-sizing:border-box;padding-right:56px;flex-wrap:nowrap}
#root #stage[data-mode=cinema] .history-cinema[data-video] header>div:first-child{flex:1 1 0!important;min-width:0!important;width:auto!important}
#root #stage[data-mode=cinema] .history-cinema[data-video] header>div:first-child small{display:none!important}
#root #stage[data-mode=cinema] .history-cinema[data-video] header .cinema-head-actions{display:flex;flex:none!important;gap:6px;align-items:center;flex-wrap:nowrap;width:auto!important;max-width:none!important;margin:0!important}
#root #stage[data-mode=cinema] .history-cinema[data-video] header .cinema-transport{display:flex;flex:0 0 auto!important;gap:6px;width:auto!important}
#root #stage[data-mode=cinema] .history-cinema[data-video] header button{flex:none!important;width:auto!important;min-width:0!important;min-height:38px!important;height:38px;padding:0 10px!important;font:11px/1 'Brasil Arcade',monospace!important;letter-spacing:1px;box-shadow:3px 3px 0 #05081a}
#root #stage[data-mode=cinema] .history-cinema[data-video] header .cinema-transport button[data-scene]{flex:0 0 auto!important;width:auto!important;padding:0 10px!important}
#root #stage[data-mode=cinema] .history-cinema[data-video] [data-scene=previous]{color:#ffdf00;background:#002776;border:2px solid #4a7be0}
#root #stage[data-mode=cinema] .history-cinema[data-video] [data-scene=next]{color:#002776;background:#ffdf00;border:2px solid #009c3b}
#root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-sources>summary{font:16px/1 VT323,monospace!important;letter-spacing:0;min-height:38px;box-sizing:border-box;align-content:center;padding:4px 6px!important;color:#aab4cc;background:transparent;border:1px solid #3a4565;white-space:nowrap}
#root #stage[data-mode=cinema] .history-cinema[data-video] :is([data-scene=skip],.cinema-footer,.cinema-caption,.cinema-date){display:none!important}
#root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-picture{flex:1;min-height:0!important;width:100%;height:auto!important;aspect-ratio:auto!important;position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:0!important;overflow:hidden!important}
#root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-picture canvas{display:none!important}
#root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-video-frame{position:relative;flex:1;min-height:0;width:100%;container-type:size;background:#000}
#root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-video{position:absolute!important;inset:0;margin:auto;display:block;width:min(100cqw,calc(100cqh * 16 / 9));height:min(100cqh,calc(100cqw * 9 / 16))!important;object-fit:contain;background:#000;border:0}
#root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-video[hidden]{display:none}
#root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-dialogue{position:absolute;z-index:2;bottom:max(8px,calc((100cqh - 100cqw * 9 / 16) / 2 + 8px));left:50%;transform:translateX(-50%);width:min(92cqw,calc(100cqh * 16 / 9 - 24px));box-sizing:border-box;min-height:0;max-height:none;margin:0;padding:5px 10px;border:0;background:rgb(0 0 0 / 78%);text-align:center;pointer-events:none;color:#fff;text-shadow:1px 1px 1px #000;font:clamp(16px,2.2vh,26px)/1.2 Arial,sans-serif;text-wrap:pretty}
#root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-dialogue>div{display:inline}
#root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-dialogue strong{font:inherit;font-weight:700;color:var(--speaker-color)}
#root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-dialogue strong::after{content:': '}
#root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-dialogue small{display:none}
#root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-dialogue p{display:inline;font:inherit;margin:0;color:#fff}
#root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-video-source{position:static!important;flex:none;display:block;margin:0;padding:0;background:none!important;border:0;box-shadow:none;text-align:center;font:clamp(10px,1.25vw,16px)/1.15 Arial,sans-serif;color:#a9bfd5;transform:none;max-width:100%}
#root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-progress{position:static!important;flex:none;width:100%;height:3px;margin:0}
@media(max-width:950px){
 #root #stage[data-mode=cinema] .history-cinema[data-video] header{gap:5px}
 #root #stage[data-mode=cinema] .history-cinema[data-video] header button{font-size:9px!important;padding:0 6px!important;letter-spacing:0}
 #root #stage[data-mode=cinema] .history-cinema[data-video] header .cinema-transport button[data-scene]{padding:0 6px!important}
 #root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-sources>summary{font-size:13px!important}
}
@media(orientation:portrait){
 #root #stage[data-mode=cinema] .history-cinema[data-video] header{flex-wrap:wrap}
 #root #stage[data-mode=cinema] .history-cinema[data-video] header .cinema-head-actions{flex-wrap:wrap}
}

/* Checagem fora do quadro: não cobre rostos nem a legenda. */
#root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-video-check{position:static;flex:none;max-width:100%;margin:0;text-align:center;color:#b6c9da;font:clamp(10px,1.15vw,14px)/1.2 Arial,sans-serif;overflow-wrap:anywhere}
#root #stage[data-mode=cinema] .history-cinema .cinema-video-check[hidden]{display:none}

/* Celular deitado: a altura do quadro não depende do título, resumo ou fonte.
   As falas continuam no frame; o texto integral da checagem fica em FONTES.
   A trilha vai ao rodapé e mantém seus atalhos, sem somar altura ao cabeçalho. */
@media (orientation:landscape) and (max-width:950px) and (max-height:500px){
 #root #stage[data-mode=cinema] .history-cinema[data-video]{padding-top:2px!important;gap:2px!important;border:0}
 #root #stage[data-mode=cinema] .history-cinema[data-video]>header{order:0;flex:0 0 38px;height:38px;min-height:38px;max-height:38px;margin:0;padding-right:56px;gap:3px;flex-wrap:nowrap!important}
 #root #stage[data-mode=cinema] .history-cinema[data-video] header>div:first-child{display:block;overflow:hidden}
 #root #stage[data-mode=cinema] .history-cinema[data-video] header h2[data-fc-title=debate]{display:block;min-width:0;margin:0;font:10px/18px 'Brasil Arcade',monospace;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #root #stage[data-mode=cinema] .history-cinema[data-video] header h2[data-fc-title=debate]::before{display:none}
 #root #stage[data-mode=cinema] .history-cinema[data-video] :is(.fc-video-summary,.scene-swipe-hint){display:none!important}
 #root #stage[data-mode=cinema] .history-cinema[data-video] header :is(.cinema-head-actions,.cinema-transport){flex-wrap:nowrap!important;gap:3px}
 #root #stage[data-mode=cinema] .history-cinema[data-video] header button,
 #root #stage[data-mode=cinema] .history-cinema[data-video] header .cinema-transport button[data-scene]{min-height:32px!important;height:32px;padding:0 4px!important;font-size:8px!important;letter-spacing:0}
 #root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-sources>summary{min-height:32px;height:32px;padding:2px 4px!important;box-sizing:border-box}
 #root #stage[data-mode=cinema] .history-cinema[data-video]>.cinema-picture{order:1;flex:1 1 0;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr) 12px;gap:0 6px;min-width:0;align-items:stretch}
 #root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-video-frame{grid-area:1 / 1 / 2 / 3;min-width:0}
 #root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-video-source{grid-area:2 / 1;min-width:0;width:100%;max-height:12px;font:10px/12px Arial,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-video-check{grid-area:2 / 2;min-width:0;max-width:36vw;max-height:12px;font:10px/12px Arial,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-progress{position:absolute!important;bottom:12px;left:0;right:0;height:2px;pointer-events:none}
 #root #stage[data-mode=cinema] .history-cinema[data-video] .cinema-progress i{height:2px}
 #root #stage[data-mode=cinema] .history-cinema[data-video]>.fc-chapters{order:2;flex:0 0 18px;height:18px;min-height:18px;padding:0;gap:2px;margin:0}
 #root #stage[data-mode=cinema] .history-cinema[data-video]>.fc-chapters [data-chapter]{flex:0 0 18px;width:18px;height:18px;min-width:18px;min-height:18px;max-width:18px;max-height:18px;padding:0}
 #root #stage[data-mode=cinema] .history-cinema[data-video]>.fc-chapters small{font:10px/16px monospace}
}
