/* =====================================================
   ETAPA 4 — JOGOS E TABELA
   ===================================================== */

/* ----- CARTÃO DO JOGO ----- */
.jogo {
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
  transition: .2s;
}
.jogo:hover { border-color: rgba(255, 45, 85, .45); }
.jogo summary { list-style: none; cursor: pointer; }
.jogo summary::-webkit-details-marker { display: none; }

.jogo-info {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 10.5px;
  color: var(--mut);
  margin-bottom: 8px;
}
.jogo-linha {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.lado {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 600;
  font-size: 13.5px;
}
.lado.direita { flex-direction: row-reverse; text-align: right; }
.lado .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.placar {
  min-width: 78px;
  text-align: center;
  font-family: Orbitron, sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 45, 85, .7);
}
.placar small {
  display: block;
  margin-top: 2px;
  font-family: Inter, sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  color: var(--mut);
  text-shadow: none;
}
.hora { font-size: 17px; color: var(--gold); text-shadow: 0 0 12px rgba(255, 210, 63, .6); }

.ao-vivo {
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 0 12px var(--red);
  animation: piscar 1.2s infinite;
}
@keyframes piscar { 50% { opacity: .45; } }

/* súmula (gols e cartões) */
.sumula {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
}
.sumula .direita { text-align: right; }
.botao-whats {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .07);
  color: var(--txt);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

/* ----- FILTROS ----- */
.filtros {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 4px;
}
.filtro {
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--txt);
  padding: 8px 15px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 12.5px;
  white-space: nowrap;
  cursor: pointer;
}
.filtro.ativo {
  background: linear-gradient(135deg, var(--rubro), #1a0a0d);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(200, 16, 46, .5);
}

/* ----- TABELA DE CLASSIFICAÇÃO ----- */
.classificacao { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.classificacao th {
  color: var(--mut);
  font-weight: 600;
  font-size: 10px;
  text-align: center;
  padding: 6px 3px;
  border-bottom: 1px solid var(--line);
}
.classificacao td {
  text-align: center;
  padding: 9px 3px;
  border-bottom: 1px solid rgba(255, 120, 130, .08);
}
.classificacao .esq { text-align: left; }
.classificacao td b { font-family: Orbitron, sans-serif; color: #fff; }
.classificado td:first-child {
  box-shadow: inset 3px 0 0 var(--neon);
  color: var(--neon);
  font-weight: 700;
}
.bolinhas i {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin: 0 1px;
}
.bolinhas .V { background: #2ee27a; box-shadow: 0 0 6px #2ee27a; }
.bolinhas .E { background: #8892a6; }
.bolinhas .D { background: var(--red); box-shadow: 0 0 6px var(--red); }
.legenda { margin-top: 10px; }

/* ----- AVISO QUE APARECE EMBAIXO (toast) ----- */
#aviso {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, var(--rubro), #1a0a0d);
  color: #fff;
  padding: 11px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 0 24px rgba(200, 16, 46, .5);
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  z-index: 40;
}
#aviso.mostrar { opacity: 1; transform: translateX(-50%); }

/* ----- CAPA: confronto com distintivos e números ----- */
.confronto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.numeros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.numeros div {
  padding: 12px 4px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(200, 16, 46, .15), rgba(255, 59, 78, .1));
}
.numeros b {
  display: block;
  font-family: Orbitron, sans-serif;
  font-size: 24px;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(255, 210, 63, .5);
}
.numeros small { font-size: 10.5px; color: #e8d6d9; }