.category {
  margin-bottom: 50px;
}

.category h2 {
  font-family: 'Poppins', sans-serif;
  text-align: center;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  position: relative;
}

.category h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, #f39c12, #e67e22);
  margin: 10px auto 0;
  border-radius: 3px;
}

.category-date {
  font-size: 0.9rem;
  font-weight: 400;
  color: #aaa;
  text-align: center;
  margin-bottom: 20px;
  font-style: italic;
}

.teams-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

/* CARD BASE */
.team {
  /* flex: 1 1 220px; */
  min-width: 190px;
  background: #1e1e1e; /* fosco */
  color: white;
  padding: 22px 18px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 8px rgba(0,0,0,0.35);
  transition: all 0.3s ease;
  position: relative; /* necessário pro tooltip */
}

.team:hover {
  background: #242424; /* leve contraste no hover */
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.45);
}

/* DIFERENCIAÇÃO DE POSIÇÃO COM LINHA NO TOPO */
.first-place { border-top: 3px solid gold; }
.second-place { border-top: 3px solid silver; }
.third-place  { border-top: 3px solid #cd7f32; }

/* TÍTULOS DAS POSIÇÕES */
.team h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.gold   { color: gold; }
.silver { color: silver; }
.bronze { color: #cd7f32; }

/* LISTA DE JOGADORES */
.team ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team ul li {
  margin: 6px 0;
}

/* BADGES */
.badge.pending {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fda085;
  background: none;
  opacity: 0.85;
}

.badge.pending::before {
  content: "\f017"; /* ícone relógio */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 6px;
  color: #fda085;
  font-size: 0.85rem;
  vertical-align: middle;
}

/* INDICADOR DE TOOLTIP */
.tooltip-indicator {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.8rem;
  color: #f39c12;
  opacity: 0.7;
  cursor: help;
  transition: opacity 0.2s ease;
}

.team:hover .tooltip-indicator {
  opacity: 1;
}

/* TOOLTIP DE PLACAR */
.team::after {
  content: attr(data-score); /* pega do atributo HTML */
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20,20,20,0.95);
  color: #eee;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}

.team::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(20,20,20,0.95) transparent;
  opacity: 0;
  transition: all 0.25s ease;
}

.team:hover::after,
.team:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}
