/* ClipMundi TV — quadro fixo de 1920×1080 escalado para a janela (a captura do OBS e o celular leem o mesmo quadro).
   Sistema visual (revisão de 28/10/2026): uma só família (Inter), tamanhos por PAPEL e espaços da escala 8-13-21-34-55.
   Para mudar um tamanho, mude o token abaixo — não crie ajuste isolado para um quadro.
   Grade 3:5:5 (fila : mapa : notícia); sem fila, 8:5 (mapa : conteúdo) — a borda esquerda do conteúdo fica na mesma linha. */
.tv {
  /* espaços */
  --e1: 8px; --e2: 13px; --e3: 21px; --e4: 34px; --e5: 55px;
  /* tipografia: um tamanho por papel */
  --f-manchete: 48px;        /* manchete principal e título de quadro especial */
  --f-manchete-longa: 40px;  /* só para manchete que passaria de 4 linhas */
  --f-par: 34px;             /* duas manchetes no mesmo cartão (perspectivas, antes e depois) */
  --f-resumo: 32px;
  --f-texto: 26px;           /* manchetes da fila, textos dos módulos, listas */
  --f-nota: 22px;            /* fonte, local, datas, notas necessárias */
  --f-rotulo: 20px;          /* rótulos curtos em caixa alta (AGORA, categoria) */
  --f-numero: 55px;          /* indicadores numéricos em destaque */
  --f-relogio: 48px;
  --f-ticker: 32px; --f-ticker-fonte: 26px;
  --lh-titulo: 1.14; --lh-texto: 1.36;
  /* alturas e linhas */
  --alto-topo: 80px; --alto-rodape: 64px; --alto-aux: 468px;
  --linha: 2px solid var(--borda); --raio: 6px;
  --mono: var(--fonte);      /* sem aparência de terminal: números na mesma família, com algarismos tabulares */

  position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; transform-origin: top left; overflow: hidden;
  background: var(--bg); color: var(--texto); font-family: var(--fonte); font-size: var(--f-texto); line-height: var(--lh-texto);
  display: grid; grid-template-columns: 3fr 5fr 5fr; grid-template-rows: var(--alto-topo) minmax(0, 1fr) var(--alto-rodape);
  grid-template-areas: "topo topo topo" "fila mapa cartao" "rodape rodape rodape"; transition: grid-template-columns .6s ease;
}
.tv-body { margin: 0; background: #060B14; overflow: hidden; height: 100vh; cursor: none; position: fixed; inset: 0; }   /* fixed: o quadro de 1920 não alarga a página no celular */
/* celular em pé (tv.js marca data-retrato): notícia em cima, mapa embaixo, sem a fila; topo só com marca, quadro e relógio */
.tv[data-retrato] { --f-manchete: 64px; --f-manchete-longa: 54px; --f-par: 44px; --f-resumo: 42px; --f-texto: 36px; --f-nota: 30px; --f-rotulo: 26px;
  --f-numero: 70px; --f-relogio: 60px; --f-ticker: 42px; --f-ticker-fonte: 34px; --alto-topo: 120px; --alto-rodape: 90px;
  grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: var(--alto-topo) minmax(0, 1.3fr) minmax(0, 1fr) var(--alto-rodape);
  grid-template-areas: "topo" "cartao" "mapa" "rodape"; }
.tv[data-retrato] .tv-fila, .tv[data-retrato] .tv-ind { display: none; }
.tv[data-retrato] .tv-cartao { border-left: 0; border-bottom: var(--linha); }
.tv[data-retrato] .tv-topo { gap: var(--e2); padding: 0 var(--e3); }
.tv[data-retrato] .tv-topo .marca-logo { width: 64px; height: 64px; } .tv[data-retrato] .tv-topo .marca-nome { font-size: 48px; }
.tv[data-retrato] #tv-quadro { font-size: 38px; }
.tv[data-retrato] .tv-rodape { grid-template-columns: minmax(0, 1fr); }
.tv[data-retrato] .tv-prog-wrap { display: none; }
.tv [hidden] { display: none !important; }
.tv[data-comp="panorama"] { grid-template-columns: 0fr 8fr 5fr; }
.tv[data-comp="panorama"] .tv-fila { opacity: 0; }
/* mapa proporcional à precisão (só país ou sem lugar): o mapa encolhe, a notícia ganha a largura (tv.js) */
.tv[data-comp="radar"][data-mapa="curto"] { grid-template-columns: 3fr 3fr 7fr; }
/* algarismos de mesma largura onde o número muda ou se alinha */
.tv-relogio b, .tv-ind .i b, .tv-cartao .num b, .tv-aux .big, .tv-aux .preco, .tv-aux .relogios .mono, .tv-hora-cidade b,
.tv-retro-hud b, .tv-cartao .lista b, .tv-cartao .lt-q, .tv-cartao .pv-org, .pan-hh, .pan-n { font-variant-numeric: tabular-nums; }

/* ---------------- cabeçalho: marca · quadro · indicadores · relógio ---------------- */
.tv-topo { grid-area: topo; display: flex; align-items: center; gap: var(--e4); padding: 0 var(--e4); background: var(--painel); border-bottom: var(--linha); min-width: 0; }
.tv-topo .marca { gap: var(--e2); flex: none; } .tv-topo .marca-logo { width: 44px; height: 44px; } .tv-topo .marca-nome { font-size: 34px; }
.tv-sigla { font-size: 16px; font-weight: 700; letter-spacing: .16em; color: var(--destaque); border: 1.5px solid var(--destaque); border-radius: 4px; padding: 2px 8px; }
.tv-quadro { display: flex; align-items: center; gap: var(--e2); flex: 1 1 auto; min-width: 0; }
#tv-quadro { font-size: 32px; font-weight: 700; line-height: 1.1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#tv-quadro.longo { font-size: var(--f-texto); }
.badge { flex: none; font-size: 16px; letter-spacing: .14em; padding: 6px 12px; border-radius: 4px; font-weight: 700; white-space: nowrap; }
.badge.vivo { background: var(--destaque); color: #fff; } .badge.retro { background: var(--aviso); color: #fff; }
.badge.info { display: none; }                      /* "CLIPMUNDI" repetia a marca do lado */
.tv-ind { display: flex; gap: var(--e4); align-items: center; flex: none; }
.tv-ind .i { line-height: 1.05; text-align: left; } .tv-ind .i b { display: block; font-size: 32px; font-weight: 600; }
.tv-ind .i small { font-size: var(--f-rotulo); color: var(--texto-2); white-space: nowrap; }
.tv-ind .chip { font-size: var(--f-rotulo); color: var(--texto-2); border: 1px solid var(--borda); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.tv-ind .chip.aovivo { display: inline-flex; align-items: center; gap: 9px; background: #B9271C; color: #fff; border: 0; font-weight: 700; padding: 7px 16px; }
.tv-ind .chip.aovivo i { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: tv-pulso 1.6s ease-in-out infinite; }
@keyframes tv-pulso { 50% { opacity: .3; } }
.tv-relogio { flex: none; text-align: right; line-height: 1; } .tv-relogio b { font-size: var(--f-relogio); font-weight: 600; letter-spacing: -.01em; }
.tv-relogio small { display: block; margin-top: 4px; font-size: var(--f-rotulo); color: var(--texto-2); white-space: nowrap; }
.coleta { color: var(--ok); font-weight: 600; } .coleta:not(:empty)::before { content: " · "; color: var(--texto-2); font-weight: 400; }
.coleta.atrasada, .coleta.desconhecida { color: var(--aviso); } .coleta.erro { color: var(--perigo); }

/* ---------------- fila (esquerda): AGORA sempre no alto; só entra o que cabe inteiro ---------------- */
.tv-fila { grid-area: fila; display: flex; flex-direction: column; background: var(--painel); border-right: var(--linha); overflow: hidden; transition: opacity .4s; min-height: 0; }
.tv-fila-lista { flex: 1; min-height: 0; overflow: hidden; padding: var(--e2) 0; }
.tv-fila .fi { position: relative; padding: var(--e2) var(--e3) var(--e2) var(--e3); margin: 0 0 var(--e1); border-left: 6px solid var(--cor, var(--borda)); color: var(--texto); font-size: var(--f-texto); line-height: 1.25; }
.tv-fila .fi .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; }
.tv-fila .fi.ativo { background: var(--painel-2); } .tv-fila .fi.ativo .t { -webkit-line-clamp: 3; font-weight: 700; }
.tv-fila .fi small { display: block; margin-top: 4px; font-size: var(--f-nota); color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-fila .fi .rot { display: block; margin-bottom: 4px; font-size: var(--f-rotulo); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--destaque); }
.tv-fila .fi .rot:empty { display: none; }

/* medidor de repercussão em barras (sem número de sites) */
.sinal { display: inline-flex; align-items: flex-end; gap: 2px; height: .9em; margin-left: 8px; vertical-align: -1px; }
.sinal i { display: block; width: 4px; background: currentColor; opacity: .2; border-radius: 1px; }
.sinal i.on { background: #E3342A; opacity: 1; }
h5 .sinal { height: 1.1em; }

/* ---------------- quadro auxiliar (embaixo da fila): título, período, números, linhas, nota ---------------- */
.tv-aux { flex: none; height: var(--alto-aux); border-top: var(--linha); padding: var(--e3) var(--e3) var(--e3) calc(var(--e3) + 6px); display: flex; flex-direction: column; gap: var(--e2); overflow: hidden; }
.tv-aux > * { flex: none; }
.tv-aux h4 { margin: 0 0 2px; display: flex; flex-direction: column; gap: 2px; font-size: calc(var(--f-texto) * var(--ka, 1)); line-height: 1.15; font-weight: 700; color: var(--texto); }
.tv-aux h4 span { font-size: var(--f-rotulo); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--destaque); }
.tv-aux .lin { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; font-size: calc(var(--f-texto) * var(--ka, 1)); line-height: 1.25; }
.tv-aux .lin small { color: var(--texto-2); font-size: calc(var(--f-nota) * var(--ka, 1)); }
.tv-aux .barra { grid-column: 1 / -1; height: 6px; background: var(--painel-2); border-radius: 3px; overflow: hidden; } .tv-aux .barra i { display: block; height: 100%; background: var(--c, var(--destaque)); }
.tv-aux .big { font-size: calc(var(--f-numero) * var(--ka, 1)); font-weight: 600; line-height: 1; } .tv-aux .big + small { display: block; margin-top: 2px; }
.tv-aux .mais { color: var(--ok); font-weight: 600; }
.tv-aux .nota { margin-top: auto; font-size: calc(var(--f-nota) * var(--ka, 1)); line-height: 1.3; color: var(--texto-2); }
.tv-aux.trocando { animation: aux-in .4s ease; } @keyframes aux-in { from { opacity: 0; } to { opacity: 1; } }
.tv-aux .tit { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--linhas, 2); line-clamp: var(--linhas, 2); overflow: hidden; }
.tv-aux .dest { font-weight: 700; } .tv-aux .reg { color: var(--texto-2); font-weight: 400; }
.tv-aux .mag { color: #B9271C; font-weight: 700; margin-right: 6px; }
.tv-aux .sol { display: grid; grid-template-columns: 120px 1fr; gap: var(--e3); align-items: center; }
.tv-aux .sol img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: #000; }
.tv-aux .solv { display: block; font-size: calc(var(--f-titulo, 26px) * var(--ka, 1)); line-height: 1.15; font-weight: 700; }
.tv-aux .solf { display: block; font-size: calc(var(--f-nota) * var(--ka, 1)); line-height: 1.3; color: var(--texto-2); margin-top: 4px; }
.tv-aux .esc { display: flex; gap: 8px; align-items: baseline; font-size: calc(var(--f-nota) * var(--ka, 1)); line-height: 1.3; color: var(--texto-2); }
.tv-aux .esc b { min-width: 34px; color: var(--texto-3); } .tv-aux .esc.on b { color: #E8731A; }
.tv-aux .kp { display: flex; gap: 4px; align-items: flex-end; height: 40px; margin-top: 6px; }
.tv-aux .kp i { flex: 1; background: var(--destaque); border-radius: 2px 2px 0 0; opacity: .7; } .tv-aux .kp i.forte { background: #E8731A; opacity: 1; }
.tv-aux .kpn { display: block; font-size: calc(var(--f-rotulo) * var(--ka, 1)); color: var(--texto-2); margin-top: 3px; }
.tv-aux .nv { font-size: 15px; font-weight: 700; font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: #191917; background: #F2C230; border-radius: 3px; padding: 1px 6px; margin-left: 6px; vertical-align: 3px; }
.tv-aux .nv.sobe { background: none; color: var(--ok); font-size: .8em; padding: 0; vertical-align: 0; }
.tv-aux .qual { font-size: var(--f-rotulo); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--q); border-radius: 4px; padding: 2px 10px; }   /* qualidade do ar em palavras */
.tv-aux .lado { display: flex; gap: var(--e2); align-items: center; } .tv-aux .lado small { margin: 0; }   /* número grande ao lado do texto */
.tv-aux .preco { font-size: calc(30px * var(--ka, 1)); font-weight: 700; line-height: 1; }
.tv-aux .relogios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px var(--e3); }
.tv-aux .relogios div { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; }
.tv-aux .relogios div small { grid-column: 1 / -1; }      /* cidade embaixo da hora: o nome não é cortado */
.tv-aux .relogios .mono { font-size: calc(var(--f-texto) * var(--ka, 1)); font-weight: 600; }
.tv-aux .relogios small { font-size: calc(var(--f-nota) * var(--ka, 1)); color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-aux .relogios .sd { color: #C9971A; font-size: var(--f-nota); } .tv-aux .relogios .sd.cr { color: #E8731A; } .tv-aux .relogios .sd.nt { color: var(--texto-3); }
.tv-aux .regua { position: relative; height: 46px; margin: 4px 8px 26px; border-bottom: 2px solid var(--borda); }
.tv-aux .regua i { position: absolute; bottom: -7px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; }
.tv-aux .regua i.terra { background: #22D3EE; width: 16px; height: 16px; margin-left: -8px; bottom: -9px; } .tv-aux .regua i.lua { background: var(--texto-3); }
.tv-aux .regua b { position: absolute; bottom: 6px; margin-left: -11px; width: 22px; text-align: center; font-size: 16px; line-height: 22px; font-weight: 700; color: #191917; background: #F2C230; border-radius: 3px; }
.tv-aux .regua small { position: absolute; top: calc(100% + 6px); transform: translateX(-50%); font-size: 18px; color: var(--texto-2); white-space: nowrap; }
.tv-aux .regua small:first-of-type { transform: none; } .tv-aux .regua small[style*="right"] { transform: none; }
.tv-aux .barra.sem { position: relative; overflow: visible; } .tv-aux .barra.sem i { border-radius: 3px; }
.tv-aux .barra.sem u { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; background: var(--texto); border-radius: 1px; }
.tv-aux .div-mapa { display: grid; grid-template-columns: 180px 1fr; gap: var(--e2); align-items: center; }
.tv-aux .div-mapa .mm { position: relative; width: 180px; height: 135px; overflow: hidden; border-radius: var(--raio); background: #EAE6DC; }
.tv-aux .div-mapa .mm::before { content: ""; position: absolute; inset: 0; background: url("https://tile.openstreetmap.org/0/0/0.png") center/180px 180px no-repeat; filter: saturate(.45) sepia(.15); }
.tv-aux .div-mapa .mm i { position: absolute; z-index: 1; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--destaque); box-shadow: 0 0 0 3px rgba(185,39,28,.3); }
.tv-aux .div-mapa .div-lista { display: block; margin-top: 6px; }

/* ---------------- mapa e sobreposições ---------------- */
.tv-mapa-wrap { grid-area: mapa; position: relative; background: #EAE6DC; overflow: hidden; min-width: 0; }
.tv-mapa-wrap .mapa { position: absolute !important; inset: 0; }
.tv .maplibregl-ctrl-top-right, .tv .leaflet-control-zoom, .tv .maplibregl-popup, .tv .leaflet-popup { display: none !important; }
.tv .maplibregl-ctrl-attrib, .tv .leaflet-control-attribution { font-size: 15px !important; }
.tv-regiao { position: absolute; top: var(--e3); left: var(--e3); max-width: calc(100% - 290px); background: rgba(255,252,247,.95); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 8px 16px; font-size: var(--f-texto); font-weight: 700; line-height: 1.2; box-shadow: 0 5px 13px #19191718; }
.tv-cam { position: absolute; right: var(--e3); top: var(--e3); width: 216px; background: rgba(255,252,247,.95); border: 1px solid var(--borda); border-radius: var(--raio); padding: 8px; }
/* o filtro atenua só a imagem do mundo (::before); a bolinha do local continua viva */
.tv-cam .mm { position: relative; width: 200px; height: 200px; overflow: hidden; border-radius: 4px; background: #EAE6DC; }
.tv-cam .mm::before { content: ""; position: absolute; inset: 0; background: url("https://tile.openstreetmap.org/0/0/0.png") center/200px 200px no-repeat; filter: saturate(.45) sepia(.15); }
.tv-cam .mm i { position: absolute; z-index: 1; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--destaque); box-shadow: 0 0 0 3px rgba(185,39,28,.35), 0 0 0 7px rgba(185,39,28,.15); }
.tv-cam small { display: block; margin-top: 6px; font-size: var(--f-rotulo); color: var(--texto-2); text-align: center; }
.tv-qr { position: absolute; left: var(--e3); bottom: var(--e3); background: #fff; padding: 6px; border-radius: var(--raio); box-shadow: 0 0 0 1px var(--borda); }
.tv-qr:empty { display: none; }
/* na retrospectiva a caixa do relógio ocupa o pé do mapa: o QR sobe para o canto de cima, à direita */
.tv-retro-hud:not([hidden]) ~ .tv-qr { left: auto; bottom: auto; right: var(--e3); top: var(--e3); } .tv-qr svg, .tv-qr img { width: 96px; height: 96px; display: block; }
.tv-retro-hud { position: absolute; left: var(--e3); right: var(--e3); bottom: var(--e4); background: rgba(255,252,247,.96); border: 1px solid #A5792C; border-radius: 10px; padding: var(--e2) var(--e3);
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--e3); align-items: center; }
.tv-retro-hud b { font-size: var(--f-relogio); font-weight: 600; line-height: 1; } .tv-retro-hud small { color: var(--texto-2); font-size: var(--f-nota); display: block; }
.tv-retro-hud .barra { height: 8px; background: var(--painel-2); border-radius: 4px; overflow: hidden; } .tv-retro-hud .barra i { display: block; height: 100%; background: #A5792C; width: 0; }
.tv-retro-hud .marco { grid-column: 1 / -1; font-size: var(--f-texto); line-height: 1.25; min-height: 33px; } .tv-retro-hud .marco small { display: inline; }
.pulso { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px; border-radius: 50%; pointer-events: none; z-index: 9; animation: pulso-cor 1.4s ease-out 2; }
@keyframes pulso-cor { 0% { box-shadow: 0 0 0 0 var(--pc, #22D3EE); opacity: .9; } 100% { box-shadow: 0 0 0 34px var(--pc, #22D3EE); opacity: 0; } }

/* ---------------- cartão da notícia: categoria, manchete, resumo, local, fonte, repercussão, contexto local ---------------- */
.tv-cartao { grid-area: cartao; background: var(--painel); border-left: var(--linha); padding: var(--e4); display: flex; flex-direction: column; gap: var(--e3); overflow: hidden; min-width: 0; min-height: 0; }
.tv-cartao > * { flex: none; }                     /* nenhum bloco encolhe: o que não cabe sai inteiro (tv.js), nunca pela metade */
.tv-cartao .cad { display: flex; align-items: center; gap: 10px; font-size: var(--f-rotulo); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-2); line-height: 1.25; }
.tv-cartao .cad i { width: 14px; height: 14px; border-radius: 50%; background: var(--cor); flex: none; }
.tv-cartao .cad .ic { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--cor, var(--destaque)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: ic-in .6s ease-out; }
@keyframes ic-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.tv-cartao h1 { margin: 0; font-size: var(--f-manchete); line-height: var(--lh-titulo); font-weight: 700; letter-spacing: -.018em; overflow-wrap: anywhere; }
.tv-cartao h1.longa { font-size: var(--f-manchete-longa); }
.tv-cartao .resumo { margin: 0; font-size: var(--f-resumo); line-height: var(--lh-texto); color: var(--texto-2); overflow: hidden; }
.tv-cartao .resumo .rs-in { display: block; transition: transform .5s ease, opacity .25s; }
.tv-cartao .resumo small { font-size: var(--f-nota); color: var(--texto-3); }
.tv-cartao .rs-pag { display: flex; gap: 8px; margin-top: calc(var(--e2) * -1); } .tv-cartao .rs-pag i { width: 34px; height: 4px; border-radius: 2px; background: var(--borda); }
.tv-cartao .rs-pag i.on { background: var(--destaque); }
.tv-cartao .hier { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: var(--f-nota); color: var(--texto-2); line-height: 1.3; }
.tv-cartao .hier b { color: var(--texto); font-weight: 600; } .tv-cartao .hier .sep { color: var(--texto-3); }
.tv-cartao .prec { color: var(--aviso); }
.tv-cartao .meta { font-size: var(--f-nota); color: var(--texto-2); line-height: 1.4; }
.tv-cartao .meta b { color: var(--texto); font-weight: 600; }
.tv-cartao .destaque { align-self: flex-start; font-size: var(--f-rotulo); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--destaque); border: 1.5px solid var(--destaque); border-radius: 4px; padding: 4px 12px; }
.tv-cartao .mudou { border-left: 5px solid var(--ok); background: #E8F1E9; padding: 10px 16px; font-size: var(--f-texto); line-height: 1.3; }
.tv-cartao .origem { margin: auto 0 0; font-size: var(--f-nota); color: var(--texto-2); line-height: 1.35; }
.tv-cartao .pill { font-size: var(--f-nota); background: var(--painel-2); border: 1px solid var(--borda); border-radius: 999px; padding: 4px 14px; }
/* repercussão: uma linha de dados e o gráfico; o gráfico sai primeiro quando falta espaço */
.rep-bloco { border-top: 2px solid var(--marca-vermelho, var(--destaque)); padding-top: var(--e2); display: grid; grid-template-columns: 1fr 190px; gap: 6px var(--e3); align-items: center; }
.rep-bloco h5 { grid-column: 1 / -1; margin: 0; font-size: var(--f-rotulo); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-2); }
.rep-bloco .kv { font-size: var(--f-nota); color: var(--texto-2); line-height: 1.4; } .rep-bloco .kv b { color: var(--texto); font-weight: 600; }
.rep-bloco svg { width: 190px; height: 70px; display: block; }
.rep-bloco .ref { grid-column: 1 / -1; font-size: var(--f-rotulo); color: var(--texto-3); }
.rep-bloco.curto { grid-template-columns: 1fr; } .rep-bloco.curto svg, .rep-bloco.curto .graf { display: none; }
/* tempo agora (INMET) e dados oficiais: bloco próprio, separado do relato da notícia */
.tempo-agora { display: grid; gap: 6px; }
.tempo-agora .ta-rot { font-size: var(--f-rotulo); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-2); }
.tv-cartao .alerta-inmet, .tv-cartao .selo-dado { border-left: 5px solid var(--ac, #E8731A); background: color-mix(in srgb, var(--ac, #E8731A) 12%, transparent); padding: 10px 16px;
  font-size: var(--f-nota); line-height: 1.35; color: var(--texto); }
.tv-cartao .alerta-inmet .ai, .tv-cartao .selo-dado .ai { color: var(--ac, #E8731A); font-weight: 700; }
.tv-cartao .alerta-inmet small, .tv-cartao .selo-dado small { display: block; margin-top: 2px; font-size: var(--f-rotulo); color: var(--texto-2); }
/* hora do lugar (só quando o fuso é outro) e o céu de hoje: contexto que sai primeiro quando falta espaço */
.tv-hora-cidade { display: block; margin-top: auto; padding-top: var(--e2); border-top: 1px solid var(--borda); }
.tv-hora-cidade .hc-horas { display: flex; gap: var(--e4); align-items: flex-end; }
.tv-hora-cidade .hc-horas > div { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: var(--e2); }   /* hora e rótulo numa linha */
.tv-hora-cidade .hc-horas small { font-size: var(--f-rotulo); letter-spacing: .08em; text-transform: uppercase; color: var(--texto-2); max-width: 520px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-hora-cidade .hc-horas b { font-size: var(--f-relogio); font-weight: 600; line-height: 1.05; }
.tv-hora-cidade .hc-ceu { list-style: none; margin: var(--e1) 0 0; padding: 0; display: grid; gap: 4px; font-size: var(--f-nota); color: var(--texto-2); line-height: 1.3; }
.tv-hora-cidade .hc-ceu b { color: var(--texto); font-weight: 600; }
.tv-hora-cidade .hc-ano { display: block; height: 6px; margin-top: 7px; background: var(--painel-2); border-radius: 3px; overflow: hidden; }
.tv-hora-cidade .hc-ano i { display: block; height: 100%; background: var(--destaque); }
.tv-hora-cidade .hc-horas + .hc-ceu { margin-top: var(--e1); }

/* números e listas dos quadros de dados (Segurança, Cidade, Panorama antigo) */
.tv-cartao .num { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--e3) var(--e4); }
.tv-cartao .num b { display: block; font-size: var(--f-numero); font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.tv-cartao .num small { display: block; margin-top: 6px; color: var(--texto-2); font-size: var(--f-nota); line-height: 1.25; }
.tv-cartao .listas { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e4); }
.tv-cartao .listas h3 { margin: 0 0 var(--e1); font-size: var(--f-rotulo); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-2); }
.tv-cartao .lista { margin: 0; padding: 0; list-style: none; }
.tv-cartao .lista li { display: grid; grid-template-columns: 1fr auto; gap: var(--e2); align-items: baseline; padding: var(--e1) 0; border-bottom: 1px solid var(--painel-2); font-size: var(--f-texto); line-height: 1.25; color: var(--texto); }
.tv-cartao .lista li b { font-weight: 700; text-align: right; }
.tv-cartao.seguranca .lista li { padding: var(--e2) 0; font-size: var(--f-resumo); }   /* poucos itens: letra de resumo ocupa a área */
.tv-cartao.seguranca .listas { gap: var(--e5); }

/* Conheça, aviso e retrospectiva */
.tv-cartao.chamada { justify-content: center; } .tv-cartao.chamada h1 { color: var(--destaque); }   /* texto curto: no meio da coluna, não colado no alto */
.tv-cartao.chamada .resumo { color: var(--texto); }
/* retrospectiva: dois espaços de altura fixa onde os painéis de dados se revezam (tv.js, rodarPaineisRetro) */
.tv-cartao .retro-painel { flex: 1 1 0; min-height: 0; height: auto; padding: var(--e3) 0 0; border-top: var(--linha); }
.tv-fila .retro-painel { height: 100%; margin: 0; border-top: 0; padding-top: var(--e2); }

/* Uma cidade em 30 segundos */
.tv-cartao.cidade h1 .uf { display: block; margin-top: 6px; font-size: var(--f-texto); font-weight: 600; letter-spacing: 0; color: var(--texto-2); }
.tv-cartao.cidade .cidade-not { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--e2); }
.tv-cartao.cidade .cidade-not li { display: block; border: 0; border-left: 5px solid var(--cor); padding: 0 0 0 var(--e2); font-size: var(--f-texto); line-height: 1.25; }
.tv-cartao.cidade .cidade-not li b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-weight: 600; text-align: left; }
.tv-cartao.cidade .cidade-not small { display: block; margin-top: 4px; font-size: var(--f-nota); color: var(--texto-2); }

/* duas manchetes no mesmo cartão: Perspectivas e Antes e depois (mesmo tamanho e peso nas duas) */
.tv-cartao .pv { border-left: 5px solid var(--cor); padding: 4px 0 4px var(--e3); }
.tv-cartao .pv-org { display: block; font-size: var(--f-rotulo); font-weight: 700; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--cor); }
.tv-cartao .pv h2 { margin: var(--e1) 0; font-size: var(--f-par); line-height: var(--lh-titulo); font-weight: 700; letter-spacing: -.012em; overflow-wrap: anywhere; }
.tv-cartao .pv small { font-size: var(--f-nota); color: var(--texto-2); }
.tv-cartao .pv-ia { background: var(--painel-2); border-radius: 8px; padding: var(--e2) var(--e3); }
.tv-cartao .pv-ia p { margin: 0; font-size: var(--f-texto); line-height: var(--lh-texto); }
.tv-cartao .pv-ia small { display: block; margin-top: 6px; font-size: var(--f-rotulo); color: var(--texto-2); }
.tv-cartao mark { background: #F2C230; color: #191917; border-radius: 3px; padding: 0 4px; }

/* Linha do tempo de um caso */
.tv-cartao.linha_tempo .lt { list-style: none; margin: 0; padding: 0 0 0 var(--e3); border-left: 3px solid var(--cor); display: grid; gap: var(--e3); }
.tv-cartao.linha_tempo .lt li { position: relative; }
.tv-cartao.linha_tempo .lt li::before { content: ""; position: absolute; left: calc(-1 * var(--e3) - 9px); top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--cor); }
.tv-cartao.linha_tempo .lt-q { font-size: var(--f-rotulo); font-weight: 700; letter-spacing: .06em; color: var(--cor); }
.tv-cartao.linha_tempo .lt h2 { margin: 4px 0; font-size: var(--f-texto); line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.tv-cartao.linha_tempo .lt small { font-size: var(--f-nota); color: var(--texto-2); }

/* Panorama em páginas: a letra cresce até ocupar o cartão (--kp, definido em tv.js) */
.tv-cartao.panorama .pan-h1 { font-size: calc(var(--f-manchete) * var(--kp, 1)); }
.tv-cartao.panorama .pan-sub { margin: calc(var(--e2) * -1) 0 0; font-size: calc(var(--f-nota) * var(--kp, 1)); color: var(--texto-2); line-height: 1.3; }
.tv-cartao.panorama .pan-lista, .tv-cartao.panorama .pan-marcos, .tv-cartao.panorama .pan-capa { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(var(--e2) * var(--kp, 1)); }
.tv-cartao.panorama .pan-lista li, .tv-cartao.panorama .pan-capa li { border-left: 5px solid var(--cor, var(--destaque)); padding-left: var(--e2); }
.tv-cartao.panorama .pan-t { display: block; font-size: calc(30px * var(--kp, 1)); line-height: 1.15; }
.tv-cartao.panorama .pan-onde { font-size: .65em; font-weight: 500; color: var(--texto-2); }
.tv-cartao.panorama .pan-lista small, .tv-cartao.panorama .pan-capa small { display: block; margin-top: 3px; font-size: calc(var(--f-nota) * var(--kp, 1)); color: var(--texto-2); }
.tv-cartao.panorama .pan-relogio { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: calc(170px * var(--kp, 1)); margin: 4px 0 30px; align-items: end; }
.tv-cartao.panorama .pan-relogio div { position: relative; height: 100%; display: flex; align-items: flex-end; }
.tv-cartao.panorama .pan-relogio i { display: block; width: 100%; background: var(--destaque); opacity: .55; border-radius: 2px 2px 0 0; }
.tv-cartao.panorama .pan-relogio b { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); min-width: 26px; padding: 0 5px; height: 26px; border-radius: 13px; background: #F2C230; color: #191917; font-size: 15px; font-weight: 700; line-height: 26px; text-align: center; white-space: nowrap; z-index: 1; }
.tv-cartao.panorama .pan-relogio small { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; font-size: 16px; font-weight: 500; color: var(--texto-2); }
.tv-cartao.panorama .pan-marcos li { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: baseline; font-size: calc(var(--f-nota) * var(--kp, 1)); line-height: 1.25; }
.pan-n { width: 28px; height: 28px; border-radius: 50%; background: #F2C230; color: #191917; font-size: 16px; font-weight: 700; line-height: 28px; text-align: center; }
.pan-hh { font-size: calc(var(--f-nota) * var(--kp, 1)); font-weight: 700; color: var(--cor); }
.tv-cartao.panorama .pan-capa b { display: block; font-size: calc(24px * var(--kp, 1)); line-height: 1.22; margin: 2px 0; }
.tv-cartao.panorama .pan-tema { font-size: calc(var(--f-rotulo) * var(--kp, 1)); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cor); }
.tv-cartao.panorama .pan-tema .ic { width: 1.3em; height: 1.3em; vertical-align: -.25em; margin-right: 6px; animation: none; }

/* ---------------- rodapé: "a seguir" compacto + letreiro contínuo ---------------- */
.tv-rodape { grid-area: rodape; display: grid; grid-template-columns: 360px minmax(0, 1fr); background: var(--painel); border-top: var(--linha); min-width: 0; }
.tv-prog-wrap { position: relative; padding: 0 var(--e3) 0 var(--e4); border-right: var(--linha); display: flex; align-items: center; min-width: 0; }
.tv-prog-txt { font-size: var(--f-nota); color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.tv-prog-txt .rot { font-size: var(--f-rotulo); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--destaque); margin-right: 8px; }
.tv-prog-txt b { color: var(--texto); font-weight: 600; }
.tv-progresso { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--painel-2); }
.tv-progresso i { display: block; height: 100%; width: 0; background: var(--destaque); transition: width .25s linear; }
/* a faixa anda por quadro de animação (tv.js): a notícia que sai pela esquerda volta para o fim da fila, sem buraco */
.tv-ticker { position: relative; overflow: hidden; display: flex; align-items: center; white-space: nowrap; min-width: 0; font-size: var(--f-ticker); font-weight: 500; line-height: 1; }
.tv-ticker > div { position: relative; display: flex; align-items: center; will-change: transform; }
.tv-ticker .tk { display: inline-flex; align-items: baseline; flex: none; }
.tv-ticker .tk i { align-self: center; width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 12px; flex: none; }
.tv-ticker .tk small { margin-left: 12px; font-size: var(--f-ticker-fonte); font-weight: 400; color: var(--texto-2); }
.tv-ticker .tk::after { content: ""; align-self: center; width: 6px; height: 6px; border-radius: 50%; background: var(--texto-3); margin: 0 15px; }  /* 15 + 6 + 15 ≈ 36 px entre notícias */
.tv-ticker .alt { display: inline-flex; padding-left: var(--e4); animation: alt-in .5s ease; } .tv-ticker .alt::after { display: none; }
@keyframes alt-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- vinheta entre quadros ---------------- */
.tv-vinheta { position: absolute; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; }
.tv-vinheta .vf { position: absolute; left: 0; right: 0; top: 50%; height: 120px; margin-top: -60px; background: var(--vc); display: flex; align-items: center;
  justify-content: center; transform: translateX(-100%); animation: vinheta 1.6s cubic-bezier(.7,0,.3,1) forwards; box-shadow: 0 0 60px rgba(0,0,0,.3); }
.tv-vinheta .vf span { font-size: var(--f-numero); font-weight: 700; letter-spacing: -.01em; color: var(--vt, #fff); }
@keyframes vinheta { 0% { transform: translateX(-100%); } 30%, 70% { transform: translateX(0); } 100% { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  .tv { transition: none; } .tv-vinheta { display: none; } .tv-cartao .cad .ic, .pulso, .tv-ind .chip.aovivo i { animation: none; }
  .tv-cartao .resumo .rs-in { transition: none; }
}
/* "Siga o ClipMundi": item do rodapé e QR codes no Conheça o ClipMundi */
.tk.siga em { font-style: normal; font-weight: 700; color: #fff; background: #B9271C; border-radius: 99px; padding: 2px 12px; margin-right: 10px; }
.tk.siga .siga-txt { white-space: pre; } .tk.siga b { font-weight: 700; }
.tv-cartao .redes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.tv-cartao .rede { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px; border-radius: 12px; background: var(--painel-2); }
.tv-cartao .rede svg { width: 190px; height: 190px; background: #fff; border-radius: 8px; padding: 6px; }
.tv-cartao .rede b { font-size: 20px; line-height: 1.2; } .tv-cartao .rede small { font-size: 15px; color: var(--texto-3); }
.tv-cartao .rede.ig b { color: #C13584; } .tv-cartao .rede.yt b { color: #E00000; }

/* Radar de disputas (web/radar_faccoes.py): mesma base do cartão "Uma cidade em 30 segundos" */
.tv-cartao.radar h1 .uf { display: block; margin-top: 6px; font-size: var(--f-texto); font-weight: 600; letter-spacing: 0; color: var(--texto-2); }
.tv-cartao.radar .radar-par { margin: var(--e2) 0; font-size: var(--f-resumo); line-height: 1.3; }
.tv-cartao.radar .radar-f { font-weight: 800; white-space: nowrap; border-bottom: 5px solid var(--fc); }
.tv-cartao.radar .radar-bairros { margin: var(--e2) 0; font-size: var(--f-nota); color: var(--texto-2); }
.tv-cartao.radar .cidade-not { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--e2); }
.tv-cartao.radar .cidade-not li { display: block; border: 0; border-left: 5px solid var(--cor); padding: 0 0 0 var(--e2); font-size: var(--f-texto); line-height: 1.25; }
.tv-cartao.radar .cidade-not li b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-weight: 600; }
.tv-cartao.radar .cidade-not small { display: block; margin-top: 4px; font-size: var(--f-nota); color: var(--texto-2); }

/* ---------------- número do dia (quadro auxiliar): um número grande e a frase (web/numero_dia.py) ---------------- */
.tv-aux .numdia { display: flex; flex-direction: column; gap: 4px; }
.tv-aux .numdia-n { font-size: calc(var(--f-numero) * 2); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--destaque); font-variant-numeric: tabular-nums; }
.tv-aux .numdia-t { font-size: var(--f-texto); line-height: 1.25; font-weight: 600; color: var(--texto); }
.tv-regiao small { font-size: var(--f-nota); font-weight: 500; color: var(--texto-2); white-space: nowrap; }
