/* === PÁGINA DE TABELAS === */

/* HERO */
.tp-hero {
  background: linear-gradient(180deg, var(--verde-profundo) 0%, var(--bg) 100%);
  padding: 40px 0 0;
  border-bottom: 1px solid var(--borda-forte);
}

.tp-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.tp-hero-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--texto-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.tp-hero-titulo {
  font-family: var(--font-titulo);
  font-size: 56px;
  line-height: 1;
  color: var(--texto);
  text-transform: uppercase;
}

.tp-hero-titulo span {
  color: var(--amarelo);
}

/* Card Zé */
.tp-ze-card {
  background: var(--amarelo);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 280px;
  flex-shrink: 0;
}

.tp-ze-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--verde-profundo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: var(--verde-neon);
  flex-shrink: 0;
}

.tp-ze-nome {
  font-size: 10px;
  font-weight: 800;
  color: var(--bg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.tp-ze-texto {
  font-size: 12px;
  font-weight: 600;
  color: var(--bg);
  line-height: 1.4;
  font-style: italic;
}

/* ABAS CAMPEONATOS */
.tp-abas-wrap {
  background: var(--bg);
}

.tp-abas-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
}

.tp-aba {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--texto-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 16px;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.2s ease;
  outline: none;
}

.tp-aba.ativa {
  color: var(--verde-neon);
  border-bottom-color: var(--verde-neon);
}
.tp-aba:hover {
  color: var(--texto);
}

/* MAIN */
.tp-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

/* TABELA */
.tp-tabela-wrap {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
}

.tp-tabela-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
}

.tp-titulo {
  font-family: var(--font-titulo);
  font-size: 26px;
  color: var(--texto);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tp-titulo span {
  color: var(--amarelo);
}

.tp-filtros {
  display: flex;
  gap: 8px;
}

.tp-filtro {
  background: none;
  border: 1px solid var(--borda-forte);
  color: var(--texto-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.tp-filtro.ativo {
  background: var(--verde-profundo);
  color: var(--verde-neon);
  border-color: var(--verde-neon);
}

.tp-scroll {
  overflow-x: auto;
}
.tp-scroll::-webkit-scrollbar {
  height: 4px;
}
.tp-scroll::-webkit-scrollbar-track {
  background: var(--bg);
}
.tp-scroll::-webkit-scrollbar-thumb {
  background: var(--verde-profundo);
  border-radius: 2px;
}

.tp-tabela-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.tp-tabela-wrap thead th {
  color: var(--texto-muted);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  padding: 10px 8px;
  text-align: center;
  letter-spacing: 0.06em;
  background: var(--surface);
  border-top: 1px solid var(--borda-sutil);
  border-bottom: 1px solid var(--borda-sutil);
}

.tp-tabela-wrap thead th.tp-left {
  text-align: left;
  padding-left: 16px;
}

.tp-tabela-wrap tbody tr {
  border-bottom: 1px solid var(--borda-sutil);
  transition: background 0.15s;
  position: relative;
}
.tp-tabela-wrap tbody tr:hover {
  background: rgba(34, 197, 94, 0.06);
}
.tp-tabela-wrap tbody td {
  padding: 10px 8px;
  color: var(--texto);
  vertical-align: middle;
  text-align: center;
  font-size: 12px;
}
.tp-tabela-wrap tbody td.tp-left {
  text-align: left;
}

.tp-pos-cell {
  position: relative;
  padding-left: 20px !important;
  text-align: left !important;
}
.tp-barra {
  width: 3px;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 0 2px 2px 0;
}
.tp-pos {
  font-weight: 900;
  font-size: 15px;
  color: var(--texto);
}
.tp-pos-g {
  color: var(--verde-neon);
}
.tp-pos-p {
  color: var(--amarelo);
}
.tp-pos-sa {
  color: var(--verde);
}
.tp-pos-z {
  color: var(--gol);
}

.tp-esc {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.tp-time-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 8px;
}
.tp-time-nome {
  font-weight: 700;
  font-size: 13px;
}
.tp-pts {
  font-weight: 900;
  font-size: 15px;
  color: var(--verde-neon);
}

.tp-forma {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.tp-f {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tp-f-v {
  background: var(--vitoria);
  color: var(--bg);
}
.tp-f-e {
  background: var(--empate);
  color: var(--bg);
}
.tp-f-d {
  background: var(--derrota);
  color: #fff;
}

.tp-legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 20px;
  border-top: 1px solid var(--borda-sutil);
}
.tp-legenda span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--texto-muted);
}
.tp-legenda i {
  width: 3px;
  height: 16px;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

/* SIDEBAR */
.tp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* RODADA */
.tp-rodada-card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
}

.tp-rodada-titulo {
  font-family: var(--font-titulo);
  font-size: 18px;
  color: var(--texto);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tp-rodada-titulo span {
  color: var(--verde-neon);
}

.tp-jogo {
  padding: 12px 0;
  border-bottom: 1px solid var(--borda-sutil);
}
.tp-jogo:last-child {
  border-bottom: none;
}

.tp-jogo-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tp-jogo-hora {
  font-size: 11px;
  color: var(--texto-muted);
  font-weight: 600;
}
.tp-jogo-comp {
  font-size: 10px;
  font-weight: 700;
  color: var(--texto-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tp-jogo-times {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tp-jogo-time {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tp-jogo-time-right {
  flex-direction: row-reverse;
}
.tp-jogo-esc {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.tp-jogo-time span {
  font-size: 13px;
  font-weight: 700;
  color: var(--texto);
}
.tp-jogo-vs {
  font-size: 11px;
  color: var(--texto-faint);
  font-weight: 600;
}

/* SIMULADOR */
.tp-sim-card {
  background: var(--amarelo);
  border-radius: 12px;
  padding: 20px;
}

.tp-sim-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--bg);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 6px;
}

.tp-sim-titulo {
  font-family: var(--font-titulo);
  font-size: 20px;
  color: var(--bg);
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.1;
}

.tp-sim-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tp-sim-time {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 100px;
}

.tp-sim-esc {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tp-sim-time span {
  font-size: 12px;
  font-weight: 700;
  color: var(--bg);
}

.tp-sim-barra-wrap {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.tp-sim-barra {
  height: 100%;
  background: var(--bg);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.tp-sim-pct {
  font-size: 12px;
  font-weight: 800;
  color: var(--bg);
  min-width: 32px;
  text-align: right;
}

.tp-sim-nota {
  font-size: 10px;
  color: rgba(10, 20, 16, 0.6);
  margin-top: 8px;
  font-style: italic;
}

/* RESPONSIVO */
@media (max-width: 1024px) {
  .tp-main {
    grid-template-columns: 1fr;
  }
  .tp-hero-titulo {
    font-size: 40px;
  }
}

@media (max-width: 600px) {
  .tp-hero-titulo {
    font-size: 32px;
  }
  .tp-ze-card {
    max-width: 100%;
  }
}

/* CANAIS */
.tp-jogo-canais {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.tp-canal {
  font-size: 10px;
  font-weight: 700;
  color: var(--texto-muted);
  background: var(--surface);
  border: 1px solid var(--borda-sutil);
  border-radius: 4px;
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
