/* Corvo Esportes — visual */
:root {
  --azul: #141F30;
  --azul-claro: #1E2C44;
  --dourado: #C9A227;
  --verde: #16A34A;
  --vermelho: #DC2626;
  --cinza-bg: #F3F4F6;
  --cinza-borda: #E5E7EB;
  --texto: #1F2937;
  --texto-claro: #6B7280;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--cinza-bg);
  color: var(--texto);
  line-height: 1.5;
}
a { color: var(--azul); }

/* ---------- topo ---------- */
.topo {
  background: var(--azul);
  color: #fff;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topo .logo img { height: 44px; display: block; }
.topo nav { display: flex; gap: 0.2rem; flex-wrap: wrap; align-items: center; }
.topo nav a {
  color: #CBD5E1;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}
.topo nav a:hover { background: var(--azul-claro); color: #fff; }
.topo nav a.ativo { background: var(--dourado); color: var(--azul); }
/* ---------- dropdown de estaduais ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown .drop-toggle { cursor: pointer; }
.drop-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 30;
  background: var(--azul-claro); border-radius: 8px; min-width: 190px;
  padding: 0.3rem; box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.nav-dropdown:hover .drop-menu { display: block; }
.nav-dropdown.aberto .drop-menu { display: block; }
.drop-menu a {
  display: block; color: #CBD5E1; text-decoration: none;
  padding: 0.5rem 0.8rem; border-radius: 6px; font-weight: 600; font-size: 0.95rem;
}
.drop-menu a:hover { background: var(--dourado); color: var(--azul); }
/* em telas touch, o hover não abre sozinho: só o toque (classe .aberto) */
@media (hover: none) {
  .nav-dropdown:hover .drop-menu { display: none; }
  .nav-dropdown.aberto .drop-menu { display: block; }
}
.temporada {
  margin-left: auto;
  font-size: 0.85rem;
  color: #94A3B8;
  white-space: nowrap;
}

/* ---------- estrutura ---------- */
.conteudo { max-width: 1000px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.hero {
  background: var(--azul);
  color: #fff;
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.hero img { max-width: 420px; width: 80%; margin-bottom: 0.8rem; }
.hero p { color: #CBD5E1; }
.bloco {
  background: #fff;
  border: 1px solid var(--cinza-borda);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}
.bloco h2 {
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--dourado);
  display: inline-block;
}
.bloco .logo-competicao { max-width: 100%; height: auto; margin-bottom: 1rem; border-radius: 8px; }
.grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.cartao {
  background: #fff; border: 1px solid var(--cinza-borda); border-radius: 12px;
  padding: 1.2rem; text-decoration: none; color: var(--texto);
  transition: transform .15s, box-shadow .15s;
}
.cartao:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.cartao h3 { margin-bottom: 0.4rem; }
.cartao p { color: var(--texto-claro); font-size: 0.9rem; }
.formato {
  background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 10px;
  padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-size: 0.95rem;
}
.formato b { color: #92400E; }

/* ---------- tabela ---------- */
.tabela { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tabela th, .tabela td { padding: 0.55rem 0.4rem; text-align: center; }
.tabela thead th {
  background: var(--azul); color: #fff; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.tabela thead th:first-child { border-radius: 8px 0 0 0; }
.tabela thead th:last-child { border-radius: 0 8px 0 0; }
.tabela tbody tr { border-bottom: 1px solid var(--cinza-borda); }
.tabela tbody tr:last-child { border-bottom: none; }
.tabela td.time { text-align: left; font-weight: 600; }
.tabela td.pos { font-weight: 700; color: var(--texto-claro); }
.tabela td.destaque { font-weight: 800; }
.bolinha {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  margin-right: 0.5rem; vertical-align: baseline;
}
/* Emblema do time (quando o campo "logo" está preenchido em data.js) */
.emblema {
  width: 24px; height: 24px; object-fit: contain;
  margin-right: 0.5rem; vertical-align: -5px;
}
tr.zona-rebaixado { background: #FEF2F2; }
tr.zona-rebaixado td.pos { color: var(--vermelho); }
tr.zona-acesso { background: #F0FDF4; }
tr.zona-acesso td.pos { color: var(--verde); }
.legenda { margin-top: 0.7rem; font-size: 0.85rem; color: var(--texto-claro); }
.legenda-item { margin-right: 1rem; }
.q { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .35rem; }
.q.rebaixado { background: var(--vermelho); }
.q.acesso { background: var(--verde); }
.tag {
  font-size: 0.7rem; background: var(--cinza-bg); border: 1px solid var(--cinza-borda);
  border-radius: 20px; padding: 0.1rem 0.5rem; color: var(--texto-claro);
  font-weight: 400; margin-left: 0.4rem; white-space: nowrap;
}

/* ---------- jogos ---------- */
.rodada { font-size: 0.9rem; color: var(--texto-claro); margin: 1rem 0 0.4rem; text-transform: uppercase; }
.jogo {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--cinza-borda);
  font-size: 0.95rem; flex-wrap: wrap;
}
.jogo:last-child { border-bottom: none; }
.tjogo { flex: 1; min-width: 90px; }
.tjogo.dir { text-align: right; }
.placar { font-weight: 800; font-size: 1.05rem; background: var(--azul); color: #fff;
  padding: 0.15rem 0.7rem; border-radius: 6px; white-space: nowrap; }
.placar span { color: var(--dourado); margin: 0 0.25rem; }
.placar-pendente { color: var(--texto-claro); font-weight: 700; }
.versus { font-weight: 700; color: var(--texto-claro); }
.jogo-meta { width: 100%; font-size: 0.82rem; color: var(--texto-claro); margin-top: 0.15rem; }
.jogo.mini { font-size: 0.9rem; }
.tag-serie {
  font-size: 0.72rem; background: var(--azul); color: #fff; border-radius: 20px;
  padding: 0.12rem 0.6rem; margin-left: auto; white-space: nowrap;
}
.vazio { color: var(--texto-claro); font-style: italic; }
.vazio-grande { text-align: center; padding: 2rem 1rem; color: var(--texto-claro); }
.vazio-grande p:first-child { font-size: 2.5rem; }
.vazio-grande code { background: var(--cinza-bg); padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.85rem; }

/* ---------- mata-mata ---------- */
.confronto {
  border: 1px solid var(--cinza-borda); border-radius: 10px;
  padding: 1rem; margin-bottom: 1rem; background: #fff;
}
.confronto-titulo { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--texto-claro); margin-bottom: 0.6rem; font-weight: 700; }
.confronto-times > div { font-weight: 600; padding: 0.25rem 0; }
.confronto-placares { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.6rem;
  font-size: 0.9rem; color: var(--texto-claro); }
.confronto-placares b { color: var(--texto); }
.confronto-vencedor { margin-top: 0.6rem; color: var(--verde); font-size: 0.95rem; }
.confronto.final { border: 2px solid var(--dourado); background: #FFFBEB; }
.final-times { display: flex; align-items: center; justify-content: center; gap: 1.2rem;
  flex-wrap: wrap; text-align: center; }
.finalista { font-size: 1.1rem; }
.final-placar { font-size: 1.8rem; font-weight: 800; color: var(--azul); }

/* ---------- partida clicável ---------- */
.jogo-link { text-decoration: none; color: inherit; display: block; border-radius: 8px; }
.jogo-link .jogo { transition: background .15s; border-radius: 8px; padding-left: .5rem; padding-right: .5rem; }
.jogo-link:hover .jogo { background: #F8FAFC; }
.jogo-link:hover .placar { background: var(--dourado); color: var(--azul); }
.jogo-link:hover .placar span { color: var(--azul); }

/* ---------- página da partida ---------- */
.volta { margin-bottom: 1rem; }
.partida-topo {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--texto-claro); text-transform: uppercase; margin-bottom: 1.2rem;
}
.partida-times { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.partida-time { flex: 1; text-align: center; min-width: 0; }
.partida-nome { font-weight: 700; margin-top: 0.6rem; font-size: 1.05rem; }
.emblema-g { width: 64px; height: 64px; object-fit: contain; }
.bolinha-g { display: inline-block; width: 56px; height: 56px; border-radius: 50%; }
.partida-placar { font-size: 3.2rem; font-weight: 800; color: var(--azul); white-space: nowrap; }
.partida-placar span { color: var(--dourado); margin: 0 0.6rem; }
.partida-resultado {
  text-align: center; color: #92400E; background: #FFFBEB;
  border: 1px solid #FDE68A; font-weight: 800; letter-spacing: 0.08em;
  border-radius: 8px; padding: 0.6rem; margin-top: 1.2rem;
}

/* ---------- estatísticas ---------- */
.stat { margin: 1.1rem 0; }
.stat-topo { display: flex; justify-content: space-between; align-items: baseline; }
.stat-topo b { min-width: 64px; }
.stat-topo b:first-child { text-align: left; }
.stat-topo b:last-child { text-align: right; }
.stat-topo span { color: var(--texto-claro); font-size: 0.85rem; text-align: center; }
.stat-barra { display: flex; gap: 4px; margin-top: 0.35rem; }
.stat-lado { flex: 1; background: var(--cinza-bg); border-radius: 4px; height: 8px; overflow: hidden; }
.stat-lado.dir { display: flex; justify-content: flex-end; }
.stat-lado i { display: block; height: 100%; border-radius: 4px; min-width: 2px; }

/* ---------- rodapé ---------- */
.rodape {
  background: var(--azul); color: #94A3B8; text-align: center;
  padding: 1.5rem 1rem; font-size: 0.85rem; margin-top: 2rem;
}
.rodape b { color: #fff; }

@media (max-width: 640px) {
  .topo { flex-wrap: wrap; gap: 0.6rem; }
  .temporada { margin-left: 0; }
  .tabela { font-size: 0.82rem; }
  .tabela th:nth-child(n+6), .tabela td:nth-child(n+6) { display: none; }
}
