.leaderboard-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  width: auto;
  min-width: 0;
}

.category-filter {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: min(52vw, 620px);
}

.category-filter .btn {
  white-space: nowrap;
}

.leaderboard-search {
  flex-wrap: nowrap;
  flex: 0 0 14rem;
  width: 14rem;
  margin-left: 0.3rem;
}

.leaderboard-search .btn {
  flex: 0 0 auto;
}

#contestSelect {
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
}

#inputUserLogedInName {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

.leaderboard-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.6rem;
  overflow: hidden;
}

.leaderboard-feedback {
  margin-bottom: 0;
}

.leaderboard-card-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: auto;
  padding-right: 0.25rem;
}

#climberCards .card {
  margin: 0 !important;
  width: 100%;
}

#climberCards .card-title {
  margin-bottom: 0.55rem;
}

#climberCards .list-group-item {
  padding: 0.45rem 0.7rem;
}

@media (max-width: 768px) {
  .leaderboard-controls {
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.45rem;
    justify-content: center;
    width: 100%;
  }

  .category-filter {
    width: 100%;
    max-width: none;
  }

  #contestSelect {
    min-width: 0;
    width: 100%;
  }

  .leaderboard-search {
    flex: 0 0 auto;
    margin-left: 0;
    width: 100%;
  }

  #inputUserLogedInName {
    width: 100%;
  }

}
