/* Modo TV: palco fixo de 1920×1080 (escalado em tv.js). Usa as cores do estilo.css. */
html, body.tv { height: 100%; overflow: hidden; background: var(--fundo); }
.palco {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0;
  display: grid; grid-template-rows: auto 1fr auto; padding: 56px 88px 44px; gap: 28px;
  background: radial-gradient(1200px 700px at 50% 0%, var(--painel) 0%, var(--fundo) 70%);
}

.tv-topo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.tv-marca { display: flex; align-items: baseline; gap: 18px; }
.tv-marca b { font-family: var(--serif); font-weight: 500; font-size: 44px; }
.tv-marca span { font-size: 26px; color: var(--tx-3); }
.tv-cena { font-size: 34px; font-weight: 600; text-align: center; }
.tv-hora { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 26px; color: var(--tx-2); font-variant-numeric: tabular-nums; }
.tv-hora .ponto, .tv-chip .ponto { width: 14px; height: 14px; }

.tv-corpo { min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.tv-corpo.entra { animation: tv-entra 0.6s ease-out; }
@keyframes tv-entra { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tv-corpo.entra { animation: none; } }

/* duelo */
.tv-chip { display: flex; align-items: center; gap: 14px; font-size: 30px; font-weight: 600; color: var(--tx-2); margin-bottom: 28px; }
.tv-duelo { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.tv-lado.dir { text-align: right; }
.tv-pessoa { display: flex; align-items: center; gap: 28px; }
.tv-lado.dir .tv-pessoa { flex-direction: row-reverse; }
.tv-pessoa b { display: block; font-size: 52px; line-height: 1.1; }
.tv-pessoa span { font-size: 32px; font-weight: 600; }
.tv-foto { width: 170px; height: 170px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: var(--painel-3); flex: none; }
.tv-foto.ini { display: grid; place-items: center; font-size: 60px; font-weight: 600; color: var(--tx-2); }
.tv-pct { font-family: var(--serif); font-size: 220px; line-height: 1; margin-top: 24px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tv-pct sup { font-size: 0.4em; vertical-align: 0.9em; margin-left: 4px; }
.tv-votos { font-size: 34px; color: var(--tx-3); font-variant-numeric: tabular-nums; }
.tv-cabo { position: relative; display: flex; height: 36px; margin: 36px 0 30px; border-radius: 18px; overflow: hidden; background: var(--painel-3); }
.tv-cabo span { transition: flex-grow 1s ease; }
.tv-cabo i { position: absolute; left: 50%; top: -6px; bottom: -6px; width: 4px; margin-left: -2px; background: var(--tx); }
.tv-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 24px; margin: 0; }
.tv-info div { background: var(--painel-2); border-radius: 18px; padding: 20px 26px; }
.tv-info dt { font-size: 22px; color: var(--tx-3); text-transform: uppercase; letter-spacing: 0.05em; }
.tv-info dd { margin: 6px 0 0; font-size: 32px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tv-virada { border-left: 6px solid var(--vivo); }
.tv-virada.improvavel { border-left-color: var(--ambar); }
.tv-virada.impossivel, .tv-virada.decidido { border-left-color: var(--verm); }

/* Alto Solimões */
.tv-cab-mun, .tv-mun { display: grid; grid-template-columns: 1.3fr 1fr 1.6fr 1.2fr; gap: 32px; align-items: center; }
.tv-cab-mun { font-size: 22px; color: var(--tx-3); text-transform: uppercase; letter-spacing: 0.05em; padding: 0 28px 12px; }
.tv-muns { display: grid; gap: 10px; }
.tv-mun { background: var(--painel-2); border-radius: 16px; padding: 14px 28px; font-size: 32px; font-variant-numeric: tabular-nums; }
.tv-mun b { font-weight: 600; }
.tv-ap { display: flex; align-items: center; gap: 16px; color: var(--tx-2); font-size: 28px; }
.tv-trilho { flex: 1; height: 10px; border-radius: 5px; background: var(--painel-3); overflow: hidden; }
.tv-trilho span { display: block; height: 100%; background: var(--vivo); }
.tv-ld { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.tv-ld i { width: 18px; height: 18px; border-radius: 4px; flex: none; }
.tv-ld small { font-size: 24px; font-weight: 600; }
.tv-ld em, .tv-sg em { font-style: normal; font-weight: 600; margin-left: auto; }
.tv-sg { display: flex; gap: 12px; color: var(--tx-3); font-size: 28px; white-space: nowrap; }

.tv-base { display: flex; align-items: center; gap: 28px; font-size: 24px; color: var(--tx-3); border-top: 1px solid var(--linha-forte); padding-top: 22px; }
.tv-base b { margin-left: auto; color: var(--tx); font-size: 28px; }
.tv-pontos { display: flex; gap: 10px; }
.tv-pontos i { width: 12px; height: 12px; border-radius: 50%; background: var(--painel-3); }
.tv-pontos i.ativo { background: var(--tx); }
