body.current-kvk-matchups-page {
  background-color: rgb(50, 51, 57);
  color: white;
  padding: 0 0 20px;
}

.page-wrapper {
  width: 100%;
  max-width: 80vw;
  margin: 20px auto;
}

.server-glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 16px;
  margin-bottom: 16px;
}

/* HEADER */

.page-header {
  text-align: center;
  padding: 30px 18px;
  position: relative;
  z-index: 1000;
}

.page-title {
  text-align: center;
  color: rgb(255, 0, 0);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 950;
  margin: 0 0 22px;
}

.search-title {
  color: #d6d6d6;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 7px;
}

.server-search-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.server-search-wrap,
.pool-search-wrap {
  position: relative;
  width: 280px;
  margin: 0;
}

#serverSearchInput,
#poolSelectedInput {
  width: 100%;
  height: 34px;
  border-radius: 3px;
  border: 1px solid #aaa;
  background: #f0f0f0;
  color: #222;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  outline: none;
  box-sizing: border-box;
}

#poolSelectedInput {
  cursor: pointer;
}

#serverSearchInput:focus,
#poolSelectedInput:focus {
  border-color: #aaa;
  box-shadow: none;
}

.server-autocomplete-box {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 10001;
  max-height: 180px;
  overflow-y: auto;
  background: #f0f0f0;
  border: 1px solid #aaa;
  border-radius: 3px;
  box-shadow: none;
}

.server-autocomplete-item {
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
  text-align: center;
  cursor: pointer;
}

.server-autocomplete-item:hover {
  background: #ddd;
}


#poolSelectedInput {
  font-weight: 700;
}

#poolSelectedInput option {
  font-weight: 700;
}

/* CARDS */
.meta-label {
  display: block;
  color: #bdbdbd;
  font-size: 0.85rem;
  font-weight: 750;
  margin-bottom: 4px;
}

.matchup-card {
  padding: 18px 16px 20px;
  position: relative;
  z-index: 1;
}

.division-title {
  text-align: center;
  color: rgb(255,0,0);
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 950;
  margin-bottom: 16px;
}

.matchup-meta-grid {
  align-items: center;
  text-align: center;
  margin: 0 auto 16px;
}

.matchup-meta-grid.has-rank {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.matchup-meta-grid.no-rank {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 70%;
}

.meta-value,
.rank-value {
  color: #fff;
  font-size: clamp(17px, 1.2vw, 22px);
  font-weight: 950;
}

/* SERVER SLIDER */

.servers-nested-glass {
  background: rgba(255,255,255,0.055);
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
  overflow: hidden;
}

.servers-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  width: 90%;
  margin: 0 auto;
  padding: 4px 4px 10px;
  scroll-snap-type: x proximity;
  justify-content: safe center;
}

.servers-slider::-webkit-scrollbar {
  height: 10px;
}

.servers-slider::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
}

.servers-slider::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #ff6a00, #ffb800);
  border-radius: 999px;
}

.server-pill {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 78px;
  padding: 10px 14px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  font-weight: 950;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  cursor: default;
  user-select: none;
}


/* DASHBOARD LINKS */

.dashboard-links {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-glass-link,
.dashboard-links a {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 18px;
  color: #f3f3f3;
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 850;
  text-decoration: none;
  transition: .2s ease;
}

.dashboard-glass-link:hover,
.dashboard-links a:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
  color: #ff4d4d;
}


.no-servers-message {
  text-align: center;
  color: #d6d6d6;
  font-size: clamp(16px, 1.1vw, 20px);
  font-weight: 900;
  padding: 14px 10px;
}
/* MOBILE */

@media (max-width: 768px) {
  body.current-kvk-matchups-page {
    padding: 0 12px 16px;
  }

  .page-wrapper {
    max-width: 94vw;
  }

  .server-search-form {
    flex-direction: column;
  }

  .matchup-meta-grid.has-rank,
  .matchup-meta-grid.no-rank {
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 100%;
  }

  .server-pill {
    min-width: 70px;
  }

  .dashboard-links {
    flex-direction: column;
    align-items: center;
  }
}