.match-center__layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.match-center__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  min-width: 0;
}

.match-center__sidebar {
  flex-shrink: 0;
  width: 312px;
  display: flex;
  flex-direction: column;
  row-gap: 16px;
}

@media (max-width: 991px) {
  .match-center__layout {
    flex-direction: column;
  }
  .match-center__sidebar {
    width: 100%;
  }
  .match-center__sidebar .sidebar-bonuses {
    display: none;
  }
}

.sidebar-sports__menu-item--active {
  background: #f3e8ff;
  font-weight: 600;
}

.sidebar-sports__list {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

.sidebar-sports {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 312px;
}

.sidebar-sports__card {
  background: #fff;
  border-radius: 14px;
  padding: 4px;
  overflow: hidden;
}

.sidebar-sports__sport-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 20px;
  border-radius: 10px;
  background: #fff;
  color: #232323;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
  border: none;
  font-family: "Onest", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

.sidebar-sports__sport-header:hover {
  background: #f4f4f4;
  color: #232323;
}

.sidebar-sports__sport-header--active {
  background: #232323;
  color: #fff;
}

.sidebar-sports__sport-header--active:hover {
  background: #333;
  color: #fff;
}

.sidebar-sports__sport-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-sports__sport-icon svg,
.sidebar-sports__sport-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.sidebar-sports__sport-name {
  flex: 1;
  text-align: left;
}

.sidebar-sports__chevron {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.sidebar-sports__card--expanded
  > .sidebar-sports__sport-header
  .sidebar-sports__chevron {
  transform: rotate(0deg);
}

.sidebar-sports__card:not(.sidebar-sports__card--expanded)
  > .sidebar-sports__sport-header
  .sidebar-sports__chevron {
  transform: rotate(180deg);
}

.sidebar-sports__content {
  display: flex;
  flex-direction: column;
}

.sidebar-sports__menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  color: #232323;
  text-decoration: none;
  font-family: "Onest", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  border-bottom: 1px solid #f4f4f4;
  transition:
    background-color 0.15s,
    color 0.15s;
}

.sidebar-sports__menu-item:hover {
  background: #fafafa;
  color: #9345d8;
}

.sidebar-sports__menu-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #232323;
}

.sidebar-sports__menu-icon--purple {
  color: #9345d8;
}

.sidebar-sports__country {
  display: flex;
  flex-direction: column;
}

.sidebar-sports__country-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background: #f4f4f4;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: "Onest", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #232323;
  width: 100%;
  text-align: left;
  margin-top: 1px;
  transition: background-color 0.15s;
}

.sidebar-sports__country-header:hover {
  background: #ececec;
}

.sidebar-sports__country--expanded > .sidebar-sports__country-header {
  border-radius: 10px 10px 0 0;
}

.sidebar-sports__country-flag {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 2px;
  object-fit: cover;
}

.sidebar-sports__country-name {
  flex: 1;
}

.sidebar-sports__country .sidebar-sports__chevron {
  transform: rotate(180deg);
}

.sidebar-sports__country--expanded .sidebar-sports__chevron {
  transform: rotate(0deg);
}

.sidebar-sports__leagues {
  display: flex;
  flex-direction: column;
}

.sidebar-sports__league {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  color: #232323;
  font-family: "Onest", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  text-decoration: underline;
  border-bottom: 1px solid #f4f4f4;
  transition:
    background-color 0.15s,
    color 0.15s;
}

.sidebar-sports__league:last-child {
  border-bottom: none;
}

.sidebar-sports__league:hover {
  color: #9345d8;
  background: #fafafa;
}

.sidebar-sports__league-count {
  color: #888;
  font-size: 14px;
  text-decoration: none;
  display: inline;
}

.sidebar-sports__mobile-toggle {
  display: none;
}

@media (max-width: 991px) {
  .sidebar-sports {
    max-width: 100%;
  }

  .sidebar-sports__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-family: "Onest", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: #fff;
    background: linear-gradient(135deg, #9345d8, #7b2fc4);
  }

  .sidebar-sports__mobile-close {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.2s;
  }

  .sidebar-sports:not(.sidebar-sports--mobile-open)
    .sidebar-sports__mobile-close {
    transform: rotate(45deg);
  }

  .sidebar-sports__list {
    display: none;
    flex-direction: column;
    gap: 8px;
  }

  .sidebar-sports--mobile-open .sidebar-sports__list {
    display: flex;
  }
}
