/* © 2026 Alan Evangelista de Souza Martins (AlanSouzaDev7). Todos os direitos reservados. Autor: Alan Evangelista de Souza Martins. Uso, cópia ou redistribuição só com autorização do autor (veja LICENSE). */
/* CazéStats.TV — campinho tático da partida e aba Escalações do clube (js/taticas.js) */

/* ---------- página da partida ---------- */
.tat-card { margin-top: 16px; }
.tat-tabs { padding: 0 16px 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.tat-tabs .tab { display: inline-flex; align-items: center; gap: 8px; }
.tat-corpo { padding: 0 12px 12px; min-width: 0; }
.tat-corpo .lineup.first { margin-top: 0; }
.lu-jogo .lu-source { border-left: 3px solid var(--brand, #3b4eea); }

/* ---------- aba Escalações ---------- */
.tat-grade { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.tat-lista ul { list-style: none; margin: 0; padding: 4px 8px 10px; max-height: 640px; overflow: auto; display: grid; gap: 4px; }
.tat-jogo {
  width: 100%; display: grid; grid-template-columns: 74px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px;
  text-align: left; padding: 9px 10px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--text);
  cursor: pointer; transition: background-color 0.15s, border-color 0.15s;
}
.tat-jogo:hover { background: var(--surface-2); }
.tat-jogo.on { background: var(--text); color: var(--bg); }
.tat-jogo.on small, .tat-jogo.on span { color: inherit; opacity: 0.8; }
.tat-jogo span { grid-row: 1 / 3; align-self: center; font: 500 12px var(--f-mono, ui-monospace, monospace); color: var(--text-3); }
.tat-jogo b { font: 600 14px var(--f-sans, inherit); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tat-jogo small { color: var(--text-3); font-size: 12px; }
.tat-novo { font-style: normal; display: inline-block; padding: 2px 7px; border-radius: 999px; background: var(--f-refletor, #c6f432); color: var(--f-noite, #0b0b0d); font: 600 10.5px var(--f-mono, monospace); text-transform: uppercase; }
.tat-detalhe .card-h { flex-wrap: wrap; }
.tat-pitch { position: relative; margin: 6px 16px 12px; aspect-ratio: 68 / 100; max-height: 620px; max-width: 460px; justify-self: center; }
.tat-detalhe { display: grid; }
.tat-f { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; text-align: center; width: 80px; }
.tat-f b { font: 600 12px/1.15 var(--f-sans, inherit); color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / 0.85); white-space: nowrap; max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
.tat-f i { font: 500 10.5px var(--f-mono, monospace); font-style: normal; color: rgb(255 255 255 / 0.75); }
.tat-entraram { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 0 16px 12px; font-size: 13px; color: var(--text-2); align-items: baseline; }
.tat-entraram b { width: 100%; color: var(--text); font-size: 13px; }
.tat-entraram span { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); }
.tat-acoes { padding: 0 16px 14px; }
.tat-editor:empty { display: none; }
.tat-editor { padding: 0 12px 12px; border-top: 1px solid var(--line-soft); }

@media (max-width: 760px) {
  .tat-grade { grid-template-columns: minmax(0, 1fr); }
  .tat-lista ul { max-height: 260px; }
  .tat-pitch { margin: 6px 8px 10px; }
  .tat-f { width: 62px; }
  .tat-f b { font-size: 11px; max-width: 62px; }
}

/* o editor dentro da aba Escalações fica numa coluna estreita: campo em cima, elenco embaixo (nada vaza para o lado) */
.tat-editor .lu-grid, .tat-detalhe .lu-grid { grid-template-columns: minmax(0, 1fr); }
.tat-detalhe, .tat-detalhe > *, .tat-editor, .tat-editor .lineup { min-width: 0; max-width: 100%; }
.tat-entraram span { max-width: 100%; }
