/* === HERO === */
.site-main {
  padding: 0;
}

.hero-section {
  height: calc(100vh - 88px);
  padding: 20px 0; /* remove padding lateral */
  overflow: hidden;
  box-sizing: border-box;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px; /* padding lateral aqui */
  display: flex;
  gap: 20px;
  height: 100%;
}

.hero-tabela {
  flex: 0 0 70%;
  height: 100%;
  overflow: hidden;
}
.hero-sidebar {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

/* === TÍTULOS DE SEÇÃO HOME === */
.tw-section-header {
  padding: 0 0 16px 0;
}

.tw-section-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--texto-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.tw-section-titulo {
  font-family: var(--font-titulo);
  font-size: 32px;
  color: var(--texto);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
}

.tw-section-titulo span {
  color: var(--verde-neon);
}

/* Mini-placares header */
.mp-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mp-titulo {
  font-family: var(--font-titulo);
  font-size: 28px;
  color: var(--texto);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mp-titulo span:first-of-type {
  color: var(--verde-neon);
}

.mp-dot-live {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gol);
  animation: pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

.mp-total {
  font-size: 11px;
  font-weight: 700;
  color: var(--texto-muted);
  letter-spacing: 0.1em;
}

/* === TABELA === */
.hero-tabela .tw {
  height: calc(100vh - 130px);
}

.tw {
  background: var(--card);
  border-radius: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-texto);
}

.tw-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
  flex-shrink: 0;
}
.tw-titulo {
  color: var(--texto);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}
.tw-titulo span {
  color: var(--amarelo);
}
.tw-filtros {
  display: flex;
  gap: 8px;
}
.tw-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;
}
.tw-filtro.ativo {
  background: var(--verde-profundo);
  color: var(--verde-neon);
  border-color: var(--verde-neon);
}

.tw-abas {
  display: flex;
  gap: 2px;
  padding: 14px 20px 0;
  border-bottom: 1px solid var(--borda-forte);
  flex-shrink: 0;
}
.tw-aba {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--texto-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.3s ease;
  outline: none;
  -webkit-appearance: none;
}
.tw-aba.ativa {
  color: var(--verde-neon);
  border-bottom-color: var(--verde-neon);
}
.tw-aba:hover {
  color: var(--texto);
  background: none;
}

.tw-scroll {
  overflow-y: auto;
  overflow-x: auto;
  flex: 1;
  min-height: 0;
}
.tw-scroll::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.tw-scroll::-webkit-scrollbar-track {
  background: var(--bg);
}
.tw-scroll::-webkit-scrollbar-thumb {
  background: var(--verde-profundo);
  border-radius: 2px;
}
.tw-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--verde-neon);
}

.tw table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.tw thead th {
  color: var(--texto-muted);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  padding: 8px;
  text-align: center;
  letter-spacing: 0.06em;
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
}
.tw thead th.tw-left {
  text-align: left;
  padding-left: 12px;
}
.tw tbody tr {
  border-top: 1px solid var(--borda-sutil);
  transition: background 0.15s;
  position: relative;
}
.tw tbody tr:hover {
  background: rgba(34, 197, 94, 0.08);
}
.tw tbody td {
  padding: 9px 8px;
  color: var(--texto);
  vertical-align: middle;
  text-align: center;
  font-size: 12px;
}
.tw tbody td.tw-left {
  text-align: left;
}

.tw-pos-cell {
  position: relative;
  padding-left: 16px !important;
  text-align: left !important;
}
.tw-barra {
  width: 4px;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
}
.tw-pos {
  font-weight: 900;
  font-size: 14px;
  color: var(--texto);
}
.tw-pos-g {
  color: var(--verde-neon);
}
.tw-pos-p {
  color: var(--amarelo);
}
.tw-pos-sa {
  color: var(--texto-muted);
}
.tw-pos-z {
  color: var(--gol);
}

.tw-esc {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.tw-time-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 4px;
}
.tw-time-nome {
  font-weight: 700;
  font-size: 13px;
}
.tw-pts {
  font-weight: 900;
  font-size: 14px;
  color: var(--verde-neon);
}

.tw-forma {
  display: flex;
  gap: 3px;
  justify-content: center;
}
.tw-f {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tw-f-v {
  background: var(--vitoria);
  color: var(--bg);
}
.tw-f-e {
  background: var(--empate);
  color: var(--bg);
}
.tw-f-d {
  background: var(--derrota);
  color: #fff;
}

.tw-legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 20px;
  border-top: 1px solid var(--borda-sutil);
  flex-shrink: 0;
}
.tw-legenda span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--texto-muted);
}
.tw-legenda i {
  width: 4px;
  height: 14px;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

/* === PLACAR === */
.placar-wrap {
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  flex-shrink: 0;
}
.placar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.ao-vivo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--texto);
  letter-spacing: 0.05em;
}
.ao-vivo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gol);
  animation: pulse 1.2s ease-in-out infinite;
}
.ao-vivo-min {
  color: var(--texto-muted);
  font-weight: 400;
}
.competicao {
  font-size: 11px;
  font-weight: 700;
  color: var(--texto-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.placar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.escudo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}
.time-nome {
  font-size: 12px;
  font-weight: 800;
  color: var(--texto);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}
.placar-num {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.num {
  font-size: 56px;
  font-weight: 900;
  color: var(--verde-neon);
  line-height: 1;
  font-family: var(--font-mono);
}
.sep {
  font-size: 32px;
  font-weight: 400;
  color: var(--texto-muted);
  line-height: 1;
}
.gols {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--borda-sutil);
  padding-top: 12px;
}
.gol {
  flex: 1;
  background: var(--surface);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gol-ico {
  font-size: 12px;
}
.gol-info {
  font-size: 11px;
  color: var(--texto-muted);
  font-weight: 600;
}
.gol-info strong {
  color: var(--texto);
  font-weight: 700;
}



/* === MINI PLACARES === */
.mp-wrap {
  display: flex;
  gap: 12px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
}
.mp-card {
  flex: 1;
  background: var(--card);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.mp-card:hover {
  background: var(--verde-profundo);
}
.mp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.mp-comp {
  font-size: 10px;
  font-weight: 700;
  color: var(--texto-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mp-min {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--texto-muted);
}
.mp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gol);
  animation: pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
.mp-dot-int {
  background: var(--texto-muted);
  animation: none;
}
.mp-time {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mp-esc {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.mp-sigla {
  font-size: 13px;
  font-weight: 700;
  color: var(--texto);
  flex: 1;
}
.mp-gol {
  font-size: 22px;
  font-weight: 900;
  color: var(--verde-neon);
  font-family: var(--font-mono);
  min-width: 20px;
  text-align: right;
}

/* === NOTÍCIAS === */
.noticias-section {
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 24px;
}
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card-noticia {
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.card-noticia:hover {
  transform: translateY(-4px);
}
.card-link {
  color: var(--texto);
  display: block;
}
.card-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.card-body {
  padding: 16px;
}
.card-category {
  display: inline-block;
  background: var(--verde-profundo);
  color: var(--verde-neon);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.card-title {
  font-family: var(--font-titulo);
  font-size: 16px;
  margin-bottom: 8px;
}
.card-excerpt {
  font-size: 12px;
  color: var(--texto-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 11px;
  color: var(--texto-muted);
}

/* === RESPONSIVO === */
@media (max-width: 1024px) {
  .hero-section {
    height: auto;
    overflow: visible;
  }
  .hero-inner {
    flex-direction: column;
    height: auto;
  }
  .hero-tabela,
  .hero-sidebar {
    flex: 0 0 100%;
    height: auto;
  }
  .tw {
    height: 500px;
  }
  .hero-sidebar > div:last-child {
    height: auto;
  }
  .pj-wrap {
    height: auto;
  }
  .noticias-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .mp-wrap {
    overflow-x: auto;
    padding: 12px 16px;
  }
  .mp-card {
    min-width: 140px;
  }
}
@media (max-width: 600px) {
  .tw {
    height: 400px;
  }
  .noticias-grid {
    grid-template-columns: 1fr;
  }
}
