/* Clasificación de grupo: la misma tabla en la web, en el perfil del club y en la vista previa del admin */
.grupo-bloque { margin-bottom: 36px; }
.grupo-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.grupo-cab h3 { margin: 0; font-size: 1.25rem; }
.grupo-letra {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-900); color: #fff; font-weight: 800; font-size: 1.15rem;
}
.grupo-cab small { color: var(--text-muted); font-weight: 600; margin-left: auto; }

.tg-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.tg { width: 100%; border-collapse: collapse; }
.tg th {
  padding: 10px 6px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); background: #f6f3ef; border-bottom: 1px solid var(--border); text-align: center;
}
.tg td { padding: 11px 6px; text-align: center; border-bottom: 1px solid var(--border); font-size: .92rem; font-variant-numeric: tabular-nums; }
.tg tbody tr:last-child td { border-bottom: none; }
.tg th.tg-eq, .tg td.tg-eq { text-align: left; padding-left: 4px; width: 100%; }
.tg th.tg-pos, .tg td.tg-pos { width: 34px; padding-left: 12px; padding-right: 0; }
.tg td.tg-pts { padding-right: 12px; }
.tg th.tg-pts { padding-right: 12px; }

.tg-pos span {
  display: inline-flex; width: 24px; height: 24px; border-radius: 50%;
  align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; color: var(--text-muted);
}
.tg tbody tr:nth-child(1) .tg-pos span { background: var(--blue-500); color: #fff; }
.tg tbody tr:nth-child(2) .tg-pos span { background: #f1e3cf; color: var(--blue-900); }

.tg-club { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tg-club .crest { width: 30px; height: 30px; }
.tg-club a, .tg-club span.tg-nombre { color: var(--text); font-weight: 700; text-decoration: none; line-height: 1.2; }
.tg-club a:hover { color: var(--blue-500); text-decoration: underline; }
.tg td.ficticio .tg-nombre { color: #999; font-style: italic; font-weight: 600; }

.tg td.tg-pts b {
  display: inline-block; min-width: 34px; padding: 4px 8px; border-radius: 999px;
  background: var(--blue-900); color: #fff; font-size: .9rem;
}
.tg td.tg-dg.pos { color: #2e9d57; font-weight: 700; }
.tg td.tg-dg.neg { color: #d64545; font-weight: 700; }
.tg tr.tg-yo td { background: #fff3e0; }
.tg-leyenda { margin: 8px 4px 0; color: var(--text-muted); font-size: .75rem; }

@media (max-width: 560px) {
  .tg .tg-opc { display: none; }
  .tg td { padding: 10px 3px; font-size: .86rem; }
  .tg td.tg-pos, .tg th.tg-pos { width: 30px; padding-left: 8px; }
  .tg-club { gap: 8px; }
  .tg-club .crest { width: 26px; height: 26px; }
  .tg-club a, .tg-club span.tg-nombre { font-size: .86rem; }
  .tg td.tg-pts b { min-width: 30px; padding: 3px 6px; }
}
.tg tr.tg-link { cursor: pointer; }
.tg tr.tg-link:hover td, .tg tr.tg-link:active td { background: #fff8ef; }
.tg tr.tg-yo.tg-link:hover td { background: #ffe9c9; }
