.h2h-section {
  /* background: rgba(15, 23, 42, 0.5); */
  padding: 40px 0 0px;
  border-radius: 40px 40px 0 0;
}

.h2h-header {
  padding: 0 24px;
  /* margin-bottom: 24px; */
}

.h2h-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.h2h-subtitle {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #94a3b8;
}

.h2h-tabs-wrap,
.club-tabs-wrap {
  padding: 0 16px;
  overflow-x: auto;
  margin-bottom: 32px;
  margin-top: 24px;
}

.h2h-tabs,
.club-tabs {
  display: flex;
  background: #1A1A1A;
  padding: auto auto;
  border-radius: 12px;
  /* padding-left: 0px; */
  gap: 4px;
  border: 1px solid #262626;
}

.h2h-tab,
.club-tab {
  flex: 1;
  padding: 7px 8px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;

}

@media (max-width: 600px) {

  .h2h-tab,
  .club-tab {
    text-align: center;
  }

  .club-tab {
    display: flex;
    align-items: center;
    /* vertical center */
    justify-content: center;
    /* horizontal center */
    text-align: center;
    height: 40px;
    padding: 0 16px;
    /* optional side spacing */
    font-size: 11px;
  }

  .h2h-tab .vs {
    display: block;
  }

  .h2h-title-vs {
    margin-left: 3px;
    margin-right: 3px;
  }
}

.h2h-tab.active,
.club-tab.active {
  background: #facc15;
  color: #0f172a;
  font-weight: 900;
}

.h2h-card {
  border: 1px solid #262626;
  background: #1A1A1A;
  margin: 0 12px;
  border-radius: 20px;
  padding: 24px;
}

.h2h-players {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.h2h-player {
  text-align: center;
}

.h2h-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 8px;
  border: 2px solid;
}

.h2h-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h2h-avatar-blue {
  border-color: #3b82f6;
}

.h2h-avatar-yellow {
  border-color: #facc15;
}

.h2h-name {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.h2h-vs {
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  color: #475569;
}

.h2h-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}


.h2h-stat-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 6px;
}

.h2h-stat-label {
  color: #94a3b8;
  font-weight: 500;
}

.h2h-stat-value {
  font-size: 12px;
}

.h2h-bar {
  height: 5px;
  background: #334155;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}

.h2h-bar-blue {
  background: #3b82f6;
}

.h2h-bar-yellow {
  background: #facc15;
}

.h2h-button {
  width: 100%;
  margin-top: 32px;
  padding: 16px;
  background: transparent;
  border: none;
  border-top: 1px solid #334155;
  color: #facc15;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
}

.h2h-more-stats {
  display: none;
  flex-direction: column;
  gap: 24px;
  /* important */
}

.h2h-more-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
}

.h2h-arrow {
  transition: transform 0.3s ease;
}

.h2h-arrow.rotate {
  transform: rotate(180deg);
}

/* ================= DESKTOP ================= */

/* DESKTOP ONLY */
@media (min-width: 1024px) {

  .h2h-section {
    padding: 80px 0 40px;
    border-radius: 60px 60px 0 0;
  }

  .h2h-header {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 20px;
  }

  .h2h-title {
    font-size: 34px;
  }

  .h2h-subtitle {
    font-size: 12px;
  }

  /* Tabs centered, no horizontal scroll */
  .h2h-tabs-wrap,
  .club-tabs-wrap {
    max-width: 1100px;
    margin: 0 auto 50px;
    overflow: visible;
    margin-top: 24px;
  }

  .h2h-tabs,
  .club-tabs {
    padding: 6px 6px;
    margin: 0 auto;
    min-width: unset;
    justify-content: center;
    gap: 10px;
    width: fit-content;
  }

  .h2h-tab,
  .club-tab {
    flex: unset;
    padding: 14px 22px;
    font-size: 12px;
    border-radius: 10px;
  }

  /* Card becomes wide and centered */
  .h2h-card {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 50px;
    border-radius: 28px;
  }

  /* Players spaced wide */
  .h2h-players {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-items: center;
    margin-bottom: 60px;
  }

  .h2h-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .h2h-avatar {
    width: 110px;
    height: 110px;
    margin-bottom: 12px;
  }

  .h2h-vs {
    font-size: 48px;
    margin: 0 40px;
  }

  .h2h-name {
    font-size: 13px;
  }

  /* Stats become bigger */
  .h2h-stats {
    gap: 36px;
  }

  .h2h-stat-value {
    font-size: 16px;
  }

  .h2h-stat-head {
    font-size: 13px;
  }

  .h2h-bar {
    height: 9px;
  }

  /* Button looks like desktop CTA */
  .h2h-button {
    margin-top: 50px;
    padding: 20px;
    font-size: 12px;
    border-radius: 0 0 28px 28px;
  }

}