/* Shared segmented controls for Popular, Matches, Rankings and VRS. */
.home-left-sidebar .popular-card__periods,
.home-right-sidebar .sidebar-matches-card__filters,
.matches-sidebar .matches-live-card .sidebar-matches-card__filters,
.rankings-regions,
.vrs-card__regions {
  border-color: color-mix(in srgb, var(--line) 82%, var(--text));
}

.home-left-sidebar .popular-card__period.is-active,
.home-right-sidebar .sidebar-matches-card__filter.is-active,
.matches-sidebar .matches-live-card .sidebar-matches-card__filter.is-active,
.rankings-region.is-active,
.vrs-card__region.is-active {
  border-color: transparent;
}

.home-left-sidebar .popular-card__periods,
.home-right-sidebar .sidebar-matches-card__filters,
.matches-sidebar .matches-live-card .sidebar-matches-card__filters,
.rankings-regions,
.vrs-card__regions {
  gap: 2px;
  padding: 2px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, var(--text-soft));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-muted) 78%, var(--surface-strong));
  box-shadow:
    inset 0 1px 2px rgba(16, 24, 40, 0.04),
    0 1px 2px rgba(16, 24, 40, 0.04);
}

.home-left-sidebar .popular-card__period,
.home-right-sidebar .sidebar-matches-card__filter,
.matches-sidebar .matches-live-card .sidebar-matches-card__filter,
.rankings-region,
.vrs-card__region {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
  box-shadow: none;
}

.home-left-sidebar .popular-card__period.is-active,
.home-right-sidebar .sidebar-matches-card__filter.is-active,
.matches-sidebar .matches-live-card .sidebar-matches-card__filter.is-active,
.rankings-region.is-active,
.vrs-card__region.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.08),
    0 6px 14px rgba(16, 24, 40, 0.06);
}

.sidebar .popular-card__periods,
.sidebar .sidebar-matches-card__filters,
.sidebar .vrs-card__regions,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filters {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 28px;
  min-height: auto;
  margin-top: -1.5px;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  box-shadow: none;
}

.sidebar .popular-card__period,
.sidebar .sidebar-matches-card__filter,
.sidebar .vrs-card__region,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-height: 24px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  box-shadow: none;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: normal;
}

.home-left-sidebar .popular-card__period:hover,
.home-left-sidebar .popular-card__period:focus-visible {
  background: color-mix(in srgb, var(--accent) 4%, var(--surface-strong));
  color: color-mix(in srgb, var(--accent) 72%, var(--text));
}

.sidebar .popular-card__period.is-active,
.sidebar .sidebar-matches-card__filter.is-active,
.sidebar .vrs-card__region.is-active,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filter.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.home-left-sidebar .popular-card__periods,
.home-right-sidebar .popular-card__periods,
.home-right-sidebar .sidebar-matches-card__filters,
.matches-sidebar .matches-live-card .sidebar-matches-card__filters,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filters,
.vrs-card__regions {
  height: 26px;
  margin-top: 0;
  background: color-mix(in srgb, var(--surface-muted) 62%, var(--surface-strong));
}

.home-left-sidebar .popular-card__period,
.home-right-sidebar .popular-card__period,
.home-right-sidebar .sidebar-matches-card__filter,
.matches-sidebar .matches-live-card .sidebar-matches-card__filter,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filter,
.vrs-card__region {
  height: 22px;
  min-height: 22px;
  padding-inline: 6px;
  font-size: 0.62rem;
  line-height: 1;
}

.home-left-sidebar .popular-card__period {
  min-width: 24px;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}
