/* O placar da transmissão, aberto no vMix e no OBS como fonte de navegador
   por cima do vídeo. O fundo é transparente; cada peça tem o seu canto e
   as medidas são em vw, então cabe em qualquer 16:9. Sem topo, sem menu.

   Quando o After Effects entrar (via Lottie), ele desenha e anima estas
   peças; a página continua pondo nome e número por cima. */

html, body { background: transparent; }
body { position: relative; width: 100vw; height: 100vh; margin: 0; overflow: hidden; color: #fff; }
.gc--fundo-de-teste { background: radial-gradient(ellipse at 50% 120%, #166534 0%, #14532d 45%, #0f172a 100%); }
.aviso-fundo { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; font-size: 1.2vw; opacity: .5; text-align: center; }

@keyframes entra-de-cima { from { transform: translateY(-120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes entra-da-direita { from { transform: translateX(120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes entra-de-baixo { from { transform: translateY(120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulsa { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* --- Os placares, no alto e no centro: um por campo em andamento -------------- */
.placares { position: absolute; top: 3vh; left: 0; right: 0; display: flex; justify-content: center; gap: 1.2vw; }
.placar {
  flex: none;
  display: grid;
  grid-template-columns: .55vw minmax(11vw, auto) auto auto minmax(11vw, auto) .55vw;
  grid-template-rows: 4.4vw auto;
  grid-template-areas:
    "cor-casa casa gols-casa gols-fora fora cor-fora"
    "cor-casa campo campo campo campo cor-fora";
  border-radius: .8vw; overflow: hidden; background: rgba(15, 23, 42, .94); box-shadow: 0 .6vh 2.4vh rgba(0, 0, 0, .35);
  animation: entra-de-cima .5s cubic-bezier(.2, .8, .2, 1) both;
}
.placar-cor { background: var(--cor-do-time); }
.placar-cor--casa { grid-area: cor-casa; }
.placar-cor--fora { grid-area: cor-fora; }
.placar-nome { display: flex; align-items: center; padding: 0 1.2vw; font-size: 1.55vw; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.placar-nome--casa { grid-area: casa; justify-content: flex-end; }
.placar-nome--fora { grid-area: fora; }
.placar-gols { display: grid; place-items: center; min-width: 3.6vw; padding: 0 .5vw; background: var(--verde); font-size: 2.9vw; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.placar-gols--casa { grid-area: gols-casa; }
.placar-gols--fora { grid-area: gols-fora; box-shadow: inset .1vw 0 rgba(255, 255, 255, .25); }
.placar-gols--mudou { animation: pulsa .5s ease-out; }
.placar-campo { grid-area: campo; padding: .35vw 0; text-align: center; font-size: .85vw; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); }

/* --- A classificação, à direita, entre um jogo e outro -------------------------- */
.tabela { position: absolute; right: 3vw; bottom: 8vh; width: 30vw; border-radius: .8vw; overflow: hidden; background: rgba(15, 23, 42, .94); box-shadow: 0 .6vh 2.4vh rgba(0, 0, 0, .35); animation: entra-da-direita .5s cubic-bezier(.2, .8, .2, 1) both; }
.tabela-titulo { margin: 0; padding: .8vw 1.2vw; background: var(--verde); font-size: 1vw; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tabela-linhas { margin: 0; padding: 0; list-style: none; }
.linha { display: grid; grid-template-columns: 1.6vw .4vw minmax(0, 1fr) 2.4vw 2.6vw 3vw; align-items: center; gap: .6vw; padding: .45vw 1.2vw .45vw .9vw; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 1.1vw; font-weight: 700; }
.linha:first-child { background: rgba(14, 159, 110, .18); }
.linha-posicao { text-align: right; font-weight: 800; color: rgba(255, 255, 255, .6); }
.linha-cor { height: 1.4vw; border-radius: .2vw; background: var(--cor-do-time); }
.linha-time { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linha-numero { text-align: right; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .7); }
.linha-pontos { font-weight: 800; color: #fff; }

/* --- O rodapé, embaixo à esquerda: o nome do campeonato e o que vem a seguir ---- */
.rodape { position: absolute; left: 3vw; bottom: 8vh; max-width: 55vw; animation: entra-de-baixo .5s cubic-bezier(.2, .8, .2, 1) both; }
.rodape-campeonato { display: inline-block; margin: 0; padding: .5vw 1.2vw; border-radius: .6vw .6vw 0 0; background: var(--verde); font-size: 1vw; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rodape-seguir { display: block; margin: 0; padding: .7vw 1.2vw; border-radius: 0 .6vw .6vw .6vw; background: rgba(15, 23, 42, .94); font-size: 1.25vw; font-weight: 700; white-space: nowrap; }
.rodape-seguir:empty { display: none; }
.rodape:has(.rodape-seguir:empty) .rodape-campeonato { border-radius: .6vw; }
