.table thead th { white-space: nowrap; }
.team-cell { display:flex; align-items:center; gap:.6rem; }
.team-logo { width:28px; height:28px; object-fit:contain; }
.team-short { font-weight:800; font-size:1rem; line-height:1; }
.team-long { font-size:.80rem; color:#6c757d; line-height:1.1; }

.form-badge { display:inline-flex; align-items:center; justify-content:center; width:28px; height:22px; border-radius:6px; font-weight:700; font-size:.85rem; }
.form-V { background:#198754; color:#fff; }
.form-D { background:#dc3545; color:#fff; }
.form-N { background:#6c757d; color:#fff; }

.team-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 220px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: end;
}

.team-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.2));
}

.team-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 1.5rem;
  width: 100%;
}

.team-hero-logo {
  width: 300px;
  height: 300px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}

.team-hero-short {
  font-size: 1.8rem;
  font-weight: 800;
}

.team-hero-long {
  font-size: .95rem;
  opacity: .85;
}

/* --- Compare table (mobile-first) --- */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.compare-table .section-title {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  font-size: .85rem;
  padding: 10px 0;
  text-align: center;
  /* color: rgba(185, 9, 9, 0.856); */
  background-color: rgba(0,0,0,.9);
  color: rgba(255, 255, 255, 0.80);
}

.compare-table td {
  padding: 8px 10px;
  border-top: 1px solid rgba(0,0,0,.06);
  vertical-align: middle;
}

.compare-table tr.data-row:nth-child(even) td {
  background: rgba(0,0,0,.03);
}

.compare-table .val {
  width: 32%;
  /* font-weight: 900; */
  font-size: .95rem;
}

.compare-table .label {
  width: 36%;
  text-align: center;
  font-weight: 900;
  /* text-transform: uppercase; */
  font-size: .75rem;
  color: rgba(0,0,0,.65);
}

.compare-table .val.left { text-align: left; }
.compare-table .val.right { text-align: right; }

.compare-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.compare-team {
  display:flex;
  gap:8px;
  align-items:center;
  min-width: 0;
}

.compare-team img { width:22px; height:22px; object-fit:contain; }
.compare-team .name {
  font-weight: 900;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Streak badges --- */
.streak-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .22rem .5rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: .78rem;
  line-height: 1;
  white-space: nowrap;
}

.streak-win {
  background: rgba(25,135,84,.12);
  color: #198754;
  border: 1px solid rgba(25,135,84,.25);
}

.streak-unbeaten {
  background: rgba(13,110,253,.12);
  color: #0d6efd;
  border: 1px solid rgba(13,110,253,.25);
}

.streak-none {
  background: rgba(108,117,125,.10);
  color: #6c757d;
  border: 1px solid rgba(108,117,125,.22);
}

/* cell that contains 2 badges (stacked) */
.streak-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
}

.streak-loss {
  background: rgba(220,53,69,.12);
  color: #dc3545;
  border: 1px solid rgba(220,53,69,.25);
}


@media (min-width: 992px) {
  .compare-table td { padding: 10px 12px; }
  .compare-table .label { font-size: .85rem; }
  .compare-table .val { font-size: 1rem; }
  .compare-team img { width:28px; height:28px; }
  .compare-team .name { font-size: 1rem; }
  .streak-badge { font-size: .82rem; }
}
