/* ============ Jogadores (resumo via API da Riot) ============ */
/* Usa os tokens de styles.css. */

.equipes-atualizado { margin: -22px 0 22px; color: var(--muted); font-size: .82rem; }

.abas-equipes { display: flex; flex-wrap: wrap; max-width: 100%; }

.v { color: var(--win); font-weight: 600; }
.d { color: #ff6b7a; font-weight: 600; }

/* ---------- Cabeçalho da equipe ---------- */
.eq-cabecalho {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
  padding: 20px 22px; margin-bottom: 18px;
  background: linear-gradient(120deg, rgba(22,240,214,.08), var(--surface) 60%);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.eq-nome { display: flex; align-items: center; gap: 14px; }
.eq-nome .escudo { width: 58px; height: 58px; font-size: 1.4rem; }
.eq-nome h3 { font-size: 2rem; }
.eq-nome small { color: var(--muted); font-size: .78rem; letter-spacing: .08em; }
.eq-resumo { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
.eq-resumo dt { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.eq-resumo dd { display: flex; align-items: center; gap: 6px; margin: 3px 0 0; font: 400 1.35rem/1.1 var(--head); letter-spacing: .03em; }
.eq-coach { margin: 16px 0 0; color: var(--muted); font-size: .9rem; }
.eq-coach strong { color: var(--text); font-weight: 500; }

/* ---------- Card do jogador ---------- */
.grid-jogadores { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.jogador {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.jg-topo { display: flex; align-items: center; gap: 14px; padding: 18px 18px 14px; }
.jg-avatar { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); }
.jg-avatar img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--teal-deep); }
.jg-nivel {
  position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%);
  padding: 1px 7px; border-radius: 999px; background: var(--bg); border: 1px solid var(--teal-deep);
  font-size: .66rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums;
}
.jg-id { min-width: 0; }
.jg-id h4 { margin: 0; font: 700 1.05rem/1.25 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jg-id h4 span { color: var(--muted); font-weight: 400; margin-left: 2px; }
.jg-rota {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  color: var(--teal); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
}
.jg-rota img { opacity: .9; }
.jg-capitao {
  display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 4px;
  border-radius: 4px; background: var(--teal); color: #03201c; font-size: .66rem; letter-spacing: 0;
}
.jg-opgg {
  align-self: flex-start; margin-left: auto; flex: none;
  padding: 3px 8px; border: 1px solid var(--line); border-radius: 5px;
  color: var(--muted); font-size: .7rem; font-weight: 600; text-decoration: none;
  transition: color .15s, border-color .15s;
}
.jg-opgg:hover { color: var(--teal); border-color: var(--teal-deep); }
.jogador-simples .jg-topo { padding-bottom: 18px; }
.jg-erro { color: #ffcf5c; }

/* Elo */
.jg-elo {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  margin: 0 18px 10px; padding: 10px 12px; background: var(--surface-2); border-radius: 8px;
}
.jg-elo-txt { display: flex; flex-direction: column; line-height: 1.2; }
.jg-elo-txt small { color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; }
.jg-elo-txt strong { font: 400 1.3rem/1.05 var(--head); letter-spacing: .03em; }
.jg-elo-txt span { color: var(--muted); font-size: .78rem; }
.jg-wr { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: .8rem; color: var(--muted); }
.jg-barra { width: 92px; height: 5px; border-radius: 3px; background: rgba(255,107,122,.55); overflow: hidden; }
.jg-barra i { display: block; height: 100%; background: var(--win); }
.jg-elo-vazio { grid-template-columns: 44px 1fr; color: var(--muted); font-size: .85rem; }
.jg-elo-vazio img { opacity: .5; }

/* Blocos de maestria e partidas */
.jg-bloco { padding: 12px 18px 14px; border-top: 1px solid var(--line); }
.jg-bloco:last-child { flex: 1; }
.jg-bloco-tit { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.jg-bloco-tit h5 { margin: 0; font-size: .7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.jg-bloco-tit span { font-size: .78rem; color: var(--muted); }
.jg-bloco-tit b:not(.v):not(.d) { color: var(--text); }

.jg-maestrias, .jg-partidas { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.jg-maestrias li { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; }
.jg-maestrias img { width: 36px; height: 36px; border-radius: 6px; }
.jg-maestrias div { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.jg-maestrias strong { font-size: .88rem; font-weight: 600; }
.jg-maestrias span, .jg-maestrias time { font-size: .74rem; color: var(--muted); }

.jg-partidas li {
  display: grid; grid-template-columns: 30px 16px 1fr 1fr 1.25fr; align-items: center; gap: 8px;
  padding: 5px 8px; border-radius: 6px; border-left: 3px solid; font-size: .76rem;
}
.jg-partidas li.vitoria { border-color: var(--win); background: rgba(22,240,214,.06); }
.jg-partidas li.derrota { border-color: #ff6b7a; background: rgba(255,107,122,.06); }
.jg-partidas img { width: 30px; height: 30px; border-radius: 5px; }
.jg-res { font-weight: 700; }
.vitoria .jg-res { color: var(--win); }
.derrota .jg-res { color: #ff6b7a; }
.jg-partidas li > span:not(.jg-res) { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.jg-partidas b { font-weight: 600; white-space: nowrap; }
.jg-partidas small { color: var(--muted); font-size: .7rem; white-space: nowrap; }
.jg-quando { text-align: right; }

.jg-vazio { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: .85rem; }
.jg-bloco .jg-vazio { padding: 4px 0 0; }

@media (max-width: 400px) {
  .grid-jogadores { grid-template-columns: 1fr; }
  .jg-elo { grid-template-columns: 38px 1fr; }
  .jg-elo-img { width: 38px; height: 38px; }
  .jg-wr { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .jg-partidas li { grid-template-columns: 28px 14px 1fr 1fr; }
  .jg-quando { display: none !important; }
}
