.sc-leaderboards {
  width: 100%;
}

.sc-leaderboards-tabs {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  width: 510px;
  max-width: 100%;
  margin: 0 auto 12px;
}

.sc-leaderboards-tab {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.sc-leaderboards-tab {
  font-size: 24px;
  line-height: 1.2;
  font-family: "Karla", Sans-serif;
  color: #26303c;
  cursor: pointer;
}

.sc-leaderboards-tab.is-active {
  color: #26303c;
}

.sc-leaderboards-tabs-line {
  width: 500px;
  max-width: 100%;
  height: 7px;
  background: #D9D9D9;
  margin: 0 auto 54px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.sc-leaderboards-tabs-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #202A34;
  border-radius: 999px;
  transition: transform .2s ease;
}

.sc-leaderboards[data-open-tab="clubs"] .sc-leaderboards-tabs-line-fill,
.sc-leaderboards-tabs[data-open-tab="clubs"] + .sc-leaderboards-tabs-line .sc-leaderboards-tabs-line-fill {
  transform: translateX(100%);
}

.sc-leaderboards-panel {
  display: none;
}

.sc-leaderboards-panel.is-active {
  display: block;
}

.sc-leaderboards-scroller {
  overflow: auto;
  max-height: 1080px;
  position: relative;
}

.sc-leaderboards-table {
  min-width: 1180px;
}

.sc-leaderboards-head {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
}

.sc-leaderboards-row {
  display: grid;
  align-items: center;
  column-gap: 36px;
}

.sc-leaderboards-row-individual,
.sc-leaderboards-row-head-individual {
  grid-template-columns: 150px minmax(340px, 1fr) 260px 110px 70px;
}

.sc-leaderboards-row-clubs,
.sc-leaderboards-row-head-clubs {
  grid-template-columns: 180px minmax(520px, 1fr) 160px 100px;
}

.sc-leaderboards-row-head {
  padding: 0 42px 26px;
}

.sc-leaderboards-row-head .sc-leaderboards-col {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: #26303c;
}

.sc-leaderboards-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sc-leaderboards-row-data,
.sc-leaderboards-row-empty {
  min-height: 94px;
  padding: 0 42px;
  border: 1px solid #555;
  background: #fff;
}

.sc-leaderboards-row-data.is-top {
  background: #1b2b3c;
  color: #fff;
  border-color: #1b2b3c;
}

.sc-leaderboards-row-data.is-top .sc-leaderboards-col {
  color: #fff;
}

.sc-leaderboards-col {
  min-width: 0;
  font-size: 18px;
  line-height: 1.35;
  color: #2a323c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-leaderboards-col-trophy {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sc-leaderboards-col-trophy svg {
  display: block;
  width: 44px;
  height: 38px;
}

.sc-leaderboards-rank-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #6CA7C3;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
}

.sc-leaderboards-empty-text {
  font-size: 18px;
  line-height: 1.4;
  color: #2a323c;
}

.sc-leaderboards-topbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 22px;
}

.sc-leaderboards-unit-toggle {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #6CA7C3;
  overflow: hidden;
}

.sc-leaderboards-unit-option {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.sc-leaderboards-unit-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sc-leaderboards-unit-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 48px;
  padding: 0 18px;
  background: #4d5963;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-right: 1px solid #6CA7C3;
  transition: .2s ease;
}

.sc-leaderboards-unit-option:last-child span {
  border-right: 0;
}

.sc-leaderboards-unit-option input:checked + span {
  background: #6CA7C3;
  color: #202A34;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .sc-leaderboards-topbar {
    margin-bottom: 30px;
  }

  .sc-leaderboards-unit-toggle {
    width: 100%;
    max-width: 240px;
  }

  .sc-leaderboards-unit-option {
    flex: 1 1 50%;
  }

  .sc-leaderboards-unit-option span {
    width: 100%;
    min-width: 0;
    height: 44px;
    font-size: 12px;
    padding: 0 14px;
  }
}

@media (max-width: 767px) {
  .sc-leaderboards-tabs {
    gap: 44px;
    margin-bottom: 10px;
  }

  .sc-leaderboards-tab {
    font-size: 22px;
  }

  .sc-leaderboards-tabs-line {
    margin-bottom: 36px;
    height: 6px;
  }

  .sc-leaderboards-table {
    min-width: 980px;
  }

  .sc-leaderboards-row-individual,
  .sc-leaderboards-row-head-individual {
    grid-template-columns: 140px minmax(260px, 1fr) 210px 120px 80px;
  }

  .sc-leaderboards-row-clubs,
  .sc-leaderboards-row-head-clubs {
    grid-template-columns: 140px minmax(360px, 1fr) 120px 80px;
  }

  .sc-leaderboards-row-head {
    padding: 0 24px 22px;
  }

  .sc-leaderboards-row-head .sc-leaderboards-col {
    font-size: 20px;
  }

  .sc-leaderboards-row-data,
  .sc-leaderboards-row-empty {
    padding: 0 24px;
    min-height: 84px;
  }

  .sc-leaderboards-col {
    font-size: 16px;
  }

  .sc-leaderboards-rank-badge {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .sc-leaderboards-col-trophy svg {
    width: 36px;
    height: auto;
  }
}