
/* --- olegtix-match-lineups --- */
.match-lineups {
  margin-bottom: 16px;
}
.match-lineups__column {
  min-width: 0;
  background: #fff;
  padding: 5px;
  border-radius: 14px;
}

.match-lineups__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.match-lineups__column {
  min-width: 0;
}

.match-lineups__column-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f5f5f5;
  border-radius: 10px;
  margin-bottom: 12px;
}

a.match-lineups__column-header--link {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease;
}

a.match-lineups__column-header--link:hover .match-lineups__team-name {
  color: var(--primary);
}

.match-lineups__team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.match-lineups__team-name {
  font-size: 14px;
  font-weight: 700;
  color: #232323;
}

.match-lineups__section {
  margin-top: 16px;
}

.match-lineups__section:first-of-type {
  margin-top: 0;
}

.match-lineups__section-title {
  font-size: 13px;
  font-weight: 700;
  color: #232323;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 4px;
}

.match-lineups__row {
  display: grid;
  grid-template-columns: 24px 32px 1fr auto auto 20px;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid #eee;
  border-radius: 0;
  color: #232323;
  text-decoration: none;
  transition: background 0.15s ease;
}
.match-lineups__row:last-child {
  border-bottom: none;
}
.match-lineups__row:hover {
  background: #f5f5f5;
}

.match-lineups__row--no-link {
  cursor: default;
}

.match-lineups__row--no-link:hover {
  background: transparent;
}

.match-lineups__shirt {
  font-size: 13px;
  font-weight: 600;
  color: #7d7d7d;
  text-align: center;
}

.match-lineups__avatar,
.match-lineups__avatar-placeholder {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.match-lineups__avatar {
  object-fit: cover;
}

.match-lineups__name {
  font-size: 14px;
  color: #232323;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-lineups__flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.match-lineups__flag-spacer {
  display: inline-block;
  width: 20px;
  height: 14px;
}

.match-lineups__events {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.match-lineups__events--empty {
  display: inline-block;
  width: 0;
}

.match-lineups__event {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  line-height: 1;
  color: #232323;
}

.match-lineups__event img {
  display: block;
  width: 14px;
  height: 14px;
}

.match-lineups__event-minute {
  font-weight: 600;
  color: #6b7280;
}

.match-lineups__rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.match-lineups__rating--low {
  background: #ef4444;
}
.match-lineups__rating--mid {
  background: #f5b400;
}
.match-lineups__rating--high {
  background: #22c55e;
}
.match-lineups__rating--top {
  background: #a855f7;
}

.match-lineups__rating-placeholder {
  display: inline-block;
  width: 30px;
  height: 18px;
  visibility: hidden;
}

.match-lineups__excluded {
  margin-top: 16px;
  padding: 5px;
  background: #fff;
  border-radius: 14px;
}

.match-lineups__excluded-header {
  font-size: 14px;
  font-weight: 700;
  color: #232323;
  padding: 12px 16px;
}

.match-lineups__excluded-list {
  margin-top: 4px;
}

.match-lineups__row--excluded {
  cursor: default;
}

.match-lineups__row--excluded:hover {
  background: transparent;
}

.match-lineups__legend {
  margin-top: 16px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 14px;
}

.match-lineups__legend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 24px;
}

.match-lineups__legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.match-lineups__legend-item__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.match-lineups__legend-item__icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.match-lineups__legend-item__label {
  font-size: 13px;
  color: #232323;
}

@media (max-width: 768px) {
  .match-lineups__title {
    font-size: 18px;
  }

  .match-lineups__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .match-lineups__row {
    grid-template-columns: 20px 28px 1fr auto auto 20px;
    gap: 8px;
    padding: 8px 10px;
  }

  .match-lineups__event img {
    width: 12px;
    height: 12px;
  }

  .match-lineups__event-minute {
    font-size: 11px;
  }

  .match-lineups__rating,
  .match-lineups__rating-placeholder {
    min-width: 26px;
    width: 26px;
    height: 16px;
    font-size: 11px;
  }

  .match-lineups__legend-grid {
    grid-template-columns: 1fr;
  }

  .match-lineups__excluded-header {
    padding: 10px 12px;
  }

  .match-lineups__avatar,
  .match-lineups__avatar-placeholder {
    width: 28px;
    height: 28px;
  }

  .match-lineups__name {
    font-size: 13px;
  }
  .match-lineups__section-title {
    text-align: center;
  }
}


/* --- olegtix-match-formations --- */
.match-formations {
  margin-bottom: 16px;
}

.match-formations__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

.match-formations__field {
  position: relative;
  width: 100%;
  container-type: inline-size;
  overflow: hidden;
  border-radius: 10px;
}

.match-formations__field-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.match-formations__players {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.match-formations__player {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  text-decoration: none;
  color: #fff;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 4px;
}

.match-formations__player:hover .match-formations__surname {
  text-decoration: underline;
}

.match-formations__jersey {
  position: relative;
  display: block;
  width: 5cqi;
  min-width: 18px;
  aspect-ratio: 40 / 38;
  line-height: 0;
}

.match-formations__jersey-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.match-formations__number {
  position: absolute;
  top: 62%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 700;
  font-size: 1.6cqi;
  pointer-events: none;
  white-space: nowrap;
}

.match-formations__surname {
  display: block;
  margin-top: 0.4cqi;
  font-size: 1.5cqi;
  font-weight: 500;
  color: #fff;
  max-width: 10cqi;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-formations__field--ice-hockey {
  background: #e8efff;
}

.match-formations__field--ice-hockey .match-formations__surname {
  color: #1a1a1a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.match-formations__field--ice-hockey .match-formations__jersey {
  aspect-ratio: 1 / 1;
}

.match-formations__field--ice-hockey .match-formations__jersey-svg path {
  fill: #1a1a1a;
}

.match-formations__field--ice-hockey .match-formations__number {
  color: #1a1a1a;
  top: 47%;
}


/* --- olegtix-match-h2h-list --- */
.match-h2h-list__title {
  margin: 0 0 16px;
}

.match-h2h-list__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 768px) {
  .match-h2h-list__items {
    gap: 8px;
  }
}


/* --- olegtix-match-team-recent --- */
.match-team-recent__title {
  margin: 0 0 16px;
}

.match-team-recent__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.match-team-recent__column {
  min-width: 0;
}

.match-team-recent__column-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 12px;
}

a.match-team-recent__column-header--link {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease;
}

a.match-team-recent__column-header--link:hover .match-team-recent__team-name {
  color: var(--primary);
}

.match-team-recent__team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.match-team-recent__team-name {
  font-size: 14px;
  font-weight: 700;
}

.match-team-recent__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 768px) {
  .match-team-recent__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .match-team-recent__items {
    gap: 8px;
  }
}


/* --- olegtix-match-h2h-stats --- */
.match-h2h-stats {
  position: relative;
  transition: opacity 120ms ease;
}

.match-h2h-stats--loading {
  opacity: 0.6;
  pointer-events: none;
}

.match-h2h-stats__filter-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.match-h2h-stats__filter-input:checked + .match-h2h-stats__filter-box {
  background: #9345d8;
  border-color: #9345d8;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.match-h2h-stats__filter-input:focus-visible + .match-h2h-stats__filter-box {
  outline: 2px solid #9345d8;
  outline-offset: 2px;
}

.match-h2h-stats__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.match-h2h-stats__filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #232323;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.match-h2h-stats__filter-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid #d0d0d0;
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
}

.match-h2h-stats__bar {
  display: flex;
  width: 100%;
  gap: 8px;
  margin-bottom: 16px;
}

.match-h2h-stats__bar-seg {
  display: block;
  height: 8px;
  border-radius: 100px;
  min-width: 4px;
}

.match-h2h-stats__bar-seg--a {
  background: #9345d8;
}

.match-h2h-stats__bar-seg--draw {
  background: #7d7d7d;
}

.match-h2h-stats__bar-seg--b {
  background: #34b945;
}

.match-h2h-stats__legend {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.match-h2h-stats__legend-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.match-h2h-stats__legend-item--a {
  grid-column: 1 / 2;
  align-items: flex-start;
  text-align: left;
  padding-left: 66px;
  position: relative;
}

.match-h2h-stats__legend-item--draw {
  grid-column: 2 / 3;
  align-items: center;
  text-align: center;
}

.match-h2h-stats__legend-item--b {
  grid-column: 3 / 4;
  align-items: flex-end;
  text-align: right;
  padding-right: 66px;
  position: relative;
}

.match-h2h-stats__legend-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.match-h2h-stats__legend-item--a .match-h2h-stats__legend-logo {
  left: 0;
}

.match-h2h-stats__legend-item--b .match-h2h-stats__legend-logo {
  right: 0;
}

.match-h2h-stats__legend-pct {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.match-h2h-stats__legend-item--a .match-h2h-stats__legend-pct {
  color: #9345d8;
}

.match-h2h-stats__legend-item--draw .match-h2h-stats__legend-pct {
  color: #7d7d7d;
}

.match-h2h-stats__legend-item--b .match-h2h-stats__legend-pct {
  color: #34b945;
}

.match-h2h-stats__legend-count {
  font-size: 14px;
  line-height: 1.3;
  color: #232323;
}

.match-h2h-stats__legend-item--draw .match-h2h-stats__legend-count {
  color: #7d7d7d;
}

.match-h2h-stats__summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.match-h2h-stats__summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
  min-height: 50px;
  background: #f4f4f4;
  border-radius: 10px;
}

.match-h2h-stats__summary-label {
  font-size: 14px;
  color: #232323;
}

.match-h2h-stats__summary-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 8px 16px;
  border: 1px solid #9345d8;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #9345d8;
}

.match-h2h-stats__compare {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  min-height: 50px;
  background: #f4f4f4;
  border-radius: 10px;
  margin-top: 16px;
}

.match-h2h-stats__compare:first-of-type {
  margin-top: 0;
}

.match-h2h-stats__compare-a,
.match-h2h-stats__compare-b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.match-h2h-stats__compare-a {
  background: #9345d8;
  justify-self: start;
}

.match-h2h-stats__compare-b {
  background: #34b945;
  justify-self: end;
}

.match-h2h-stats__compare-label {
  text-align: center;
  font-size: 14px;
  color: #232323;
}

@media (max-width: 768px) {
  .match-h2h-stats__filter {
    font-size: 12px;
  }

  .match-h2h-stats__legend-item--a {
    padding-left: 42px;
  }

  .match-h2h-stats__legend-item--b {
    padding-right: 42px;
  }

  .match-h2h-stats__legend-logo {
    width: 36px;
    height: 36px;
  }

  .match-h2h-stats__legend-pct {
    font-size: 18px;
  }

  .match-h2h-stats__summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}


/* --- olegtix-match-statistics --- */
.match-statistics__title {
  margin: 0 0 16px;
}

.match-statistics__filter {
  margin-bottom: 16px;
}
.match-statistics .sort-btn:not(.sort-btn--active) {
  background: transparent;
  color: #7d7d7d;
}
.match-statistics .sort-btn--active {
  background-color: var(--white, #fff);
  color: var(--primary, #9345d8);
  border-color: transparent;
}
.match-statistics .sort-btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

.match-statistics__periods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.match-statistics__periods .match-statistics__period[hidden] {
  display: none;
}
.match-statistics__period {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-statistics__group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.match-statistics__group-title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--text, #232323);
  line-height: 1.3;
}

.match-statistics__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-statistics__row-top {
  display: grid;
  grid-template-columns: 1fr 4fr 1fr;
  align-items: center;
  gap: 8px;
}
.match-statistics__row-value {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}
.match-statistics__row-value.is-home {
  text-align: left;
}
.match-statistics__row-value.is-away {
  text-align: right;
}
.match-statistics__row-value.is-winner {
  color: var(--primary, #9345d8);
}
.match-statistics__row-value:not(.is-winner) {
  color: #7d7d7d;
}
.match-statistics__row-label {
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--text, #232323);
  line-height: 1.3;
  word-wrap: break-word;
}

.match-statistics__row-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.match-statistics__bar-track {
  height: 8px;
  background: #f4f4f4;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
}
.match-statistics__bar-track--home {
  justify-content: flex-end;
}
.match-statistics__bar-track--away {
  justify-content: flex-start;
}
.match-statistics__bar {
  height: 100%;
  border-radius: 10px;
  background: #7d7d7d;
  transition: width 0.2s ease;
}
.match-statistics__bar.is-winner {
  background: var(--primary, #9345d8);
}

.match-statistics__possession-bar {
  display: flex;
  height: 40px;
  background: #7d7d7d;
  border-radius: 100px;
  overflow: hidden;
}
.match-statistics__possession-bar-home,
.match-statistics__possession-bar-away {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  box-sizing: border-box;
  background: #7d7d7d;
}
.match-statistics__possession-bar-home.is-winner,
.match-statistics__possession-bar-away.is-winner {
  background: var(--primary, #9345d8);
}

.match-statistics--empty .match-statistics__empty {
  text-align: center;
  color: #7d7d7d;
}

@media (max-width: 768px) {
  .match-statistics__group {
    gap: 12px;
  }
  .match-statistics__group-title {
    font-size: 16px;
  }
  .match-statistics__row {
    gap: 4px;
  }
  .match-statistics__row-value {
    font-size: 14px;
  }
  .match-statistics__row-label {
    font-size: 12px;
  }
}


/* --- olegtix-match-events --- */
.match-events__title {
  text-align: center;
  margin: 0 0 16px;
}
.match-events__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.match-events__list::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 1px;
  background: #E5E7EB;
  transform: translateX(-0.5px);
  z-index: 0;
}

.match-events__item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 12px;
  align-items: center;
  min-height: 36px;
  position: relative;
  z-index: 1;
}

.match-events__side {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.3;
}
.match-events__side--home {
  flex-direction: row-reverse;
  justify-content: flex-start;
  text-align: right;
}
.match-events__side--away {
  justify-content: flex-start;
}
.match-events__side--home .match-events__lines {
  align-items: flex-end;
}

.match-events__icon {
  display: inline-flex;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}
.match-events__icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.match-events__minute {
  display: flex;
  justify-content: center;
}
.match-events__minute-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 28px;
  padding: 0 14px;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
}
.match-events__minute-pill--no-time {
  color: #9CA3AF;
}

.match-events__player {
  color: #111827;
  font-weight: 500;
}
.match-events__player--secondary {
  color: #6B7280;
  font-weight: 400;
}
.match-events__sublabel {
  color: #6B7280;
  font-size: 12px;
}
.match-events__lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.match-events__score {
  color: #111827;
  font-weight: 600;
}
.match-events__label--goal {
  color: var(--primary, #9345d8);
  font-weight: 600;
}

.match-events__item--period,
.match-events__item--injury-time {
  grid-template-columns: 1fr;
  justify-items: center;
  margin: 4px 0;
}
.match-events__period-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 14px;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: #111827;
}
.match-events__period-pill strong {
  font-weight: 700;
}
.match-events__period-pill--injury {
  color: #6B7280;
  background: #F9FAFB;
}

.match-events__item--card-yellow .match-events__sublabel,
.match-events__item--card-red .match-events__sublabel,
.match-events__item--card-yellowred .match-events__sublabel {
  color: #6B7280;
}
.match-events__item--var .match-events__sublabel {
  color: var(--primary, #9345d8);
  font-weight: 600;
}

@media (max-width: 480px) {
  .match-events__item { column-gap: 8px; min-height: 32px; }
  .match-events__minute-pill { min-width: 44px; padding: 0 10px; font-size: 12px; }
  .match-events__side { font-size: 13px; gap: 6px; }
  .match-events__icon { width: 14px; height: 14px; flex-basis: 14px; }
}


/* --- olegtix-match-preview --- */
.match-preview {
  margin: 0 0 20px;
}
.match-preview__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.match-preview__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.match-preview__section + .match-preview__section {
  padding-top: 20px;
  border-top: 1px solid #ececec;
}
.match-preview__section-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.match-preview__section-subtitle {
  font-size: 12px;
  color: var(--grey);
  margin-top: 2px;
}
.match-preview__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.match-preview__form-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.match-preview__form-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.match-preview__form-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.match-preview__form-team-name {
  font-weight: 600;
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-preview__form-badges {
  display: flex;
  gap: 4px;
}
.match-preview__form-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.match-preview__form-badge--win {
  background: #3aa657;
}
.match-preview__form-badge--draw {
  background: #9a9a9a;
}
.match-preview__form-badge--loss {
  background: #d64545;
}
.match-preview__form-meta {
  font-size: 12px;
  color: var(--grey);
}
.match-preview__duel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.match-preview__duel + .match-preview__duel {
  margin-top: 12px;
}
.match-preview__duel-caption {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.match-preview__duel-counts {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 15px;
}
.match-preview__duel-count--home {
  color: var(--primary);
}
.match-preview__duel-count--draw {
  color: var(--grey);
}
.match-preview__duel-count--away {
  color: #2f80c0;
}
.match-preview__duel-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--grey-light);
}
.match-preview__duel-seg--home {
  background: var(--primary);
}
.match-preview__duel-seg--draw {
  background: #c9c9c9;
}
.match-preview__duel-seg--away {
  background: #2f80c0;
}
.match-preview__duel-legend {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--grey);
}
.match-preview__streaks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.match-preview__streak {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grey-light);
  color: var(--text);
  border-left: 3px solid transparent;
}
.match-preview__streak--home {
  border-left-color: var(--primary);
}
.match-preview__streak--away {
  border-left-color: #2f80c0;
}
.match-preview__streak--both {
  border-left-color: #9a9a9a;
}
@media (max-width: 640px) {
  .match-preview__form {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}


/* --- olegtix-match-best-players --- */
.match-best-players {
  margin: 0 0 20px;
}
.match-best-players__potm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 0 16px;
  margin: 0 0 16px;
  border-bottom: 1px solid #ececec;
  text-align: center;
}
.match-best-players__potm-caption {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--primary);
}
.match-best-players__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.match-best-players__column {
  min-width: 0;
}
.match-best-players__column-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.match-best-players__team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
.match-best-players__team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-best-players__items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.match-best-players__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--grey-light);
}
.match-best-players__item--featured {
  flex-direction: column;
  gap: 6px;
  background: transparent;
  padding: 0;
}
.match-best-players__player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
  color: var(--text);
}
.match-best-players__item--featured .match-best-players__player {
  flex-direction: column;
  flex: 0 0 auto;
}
.match-best-players__player--link:hover .match-best-players__name {
  color: var(--primary);
}
.match-best-players__photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #fff;
}
.match-best-players__item--featured .match-best-players__photo {
  width: 56px;
  height: 56px;
}
.match-best-players__name {
  font-weight: 600;
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.match-best-players__metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  line-height: 1.1;
}
.match-best-players__item--featured .match-best-players__metric {
  align-items: center;
}
.match-best-players__value {
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
}
.match-best-players__item--featured .match-best-players__value {
  font-size: 22px;
}
.match-best-players__label {
  font-size: 11px;
  color: var(--grey);
}
@media (max-width: 640px) {
  .match-best-players__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}


/* --- olegtix-match-missing-players --- */
.match-missing {
  margin: 0 0 20px;
}
.match-missing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.match-missing__column {
  min-width: 0;
}
.match-missing__column-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.match-missing__team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
.match-missing__team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-missing__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.match-missing__player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--grey-light);
  border-left: 3px solid transparent;
}
.match-missing__player--missing {
  border-left-color: #d64545;
}
.match-missing__player--doubtful {
  border-left-color: #e0912f;
}
.match-missing__photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #fff;
}
.match-missing__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  gap: 2px;
}
.match-missing__name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-missing__reason {
  font-size: 12px;
  color: var(--grey);
}
.match-missing__return {
  font-size: 12px;
  color: var(--primary);
}
.match-missing__badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.match-missing__badge--missing {
  background: rgba(214, 69, 69, 0.12);
  color: #c23636;
}
.match-missing__badge--doubtful {
  background: rgba(224, 145, 47, 0.15);
  color: #c0761d;
}
@media (max-width: 640px) {
  .match-missing__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}


/* --- olegtix-league-champions --- */
.league-champions {
  margin: 0 0 24px;
}
.league-champions .league-champions__title {
  margin: 0 0 8px;
  font-size: 24px;
}
.league-champions__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.league-champions__row {
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--grey-light);
}
.league-champions__label {
  min-width: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.league-champions__value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  min-width: 0;
}
.league-champions__value:last-child {
  grid-column: 2 / -1;
}
.league-champions__entity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.league-champions__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.league-champions__logo--player {
  border-radius: 50%;
  object-fit: cover;
}
.league-champions__entity-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.league-champions__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
a.league-champions__name:hover {
  color: var(--primary);
}
.league-champions__sub {
  font-size: 14px;
  color: var(--grey);
}
.league-champions__stat {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--primary);
}
.league-champions__stat-icon {
  display: inline-flex;
}
.league-champions__stat-icon svg {
  width: 24px;
  height: 24px;
}
.league-champions__num {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .league-champions__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
  }
  .league-champions__label {
    grid-column: 1 / -1;
    font-size: 16px;
  }
  .league-champions__value:last-child {
    grid-column: 1 / -1;
  }
  .league-champions__logo {
    width: 48px;
    height: 48px;
  }
  .league-champions__name {
    font-size: 16px;
  }
  .league-champions__sub {
    font-size: 12px;
  }
  .league-champions__stat {
    gap: 4px;
  }
  .league-champions__num {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .league-champions .league-champions__title {
    font-size: 18px;
  }
}


/* --- olegtix-league-standings --- */
.league-standings {
  margin: 0 0 24px;
}
.league-standings__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 16px;
}
.league-standings__season {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
}
.league-standings__table + .league-standings__table {
  margin-top: 12px;
}
.league-standings__group {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
}
.league-standings__scroll {
  overflow-x: auto;
}
.league-standings__grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.league-standings__th {
  padding: 8px 6px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--grey);
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid #ececec;
}
.league-standings__th--pos {
  width: 34px;
}
.league-standings__th--team {
  text-align: left;
  min-width: 180px;
}
.league-standings__th--points {
  color: var(--text);
}
.league-standings__row {
  border-bottom: 1px solid #f2f2f2;
}
.league-standings__row:last-child {
  border-bottom: 0;
}
.league-standings__td {
  padding: 8px 6px;
  text-align: center;
  white-space: nowrap;
  color: var(--text);
}
.league-standings__td--team {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  min-width: 0;
}
.league-standings__td--pos {
  position: relative;
}
.league-standings__pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--grey-light);
  font-size: 12px;
  font-weight: 600;
}
.league-standings__row--promo .league-standings__pos {
  background: rgba(38, 166, 91, 0.16);
  color: #1c7a43;
}
.league-standings__row--playoff .league-standings__pos {
  background: rgba(104, 40, 186, 0.14);
  color: var(--primary);
}
.league-standings__row--relegation .league-standings__pos {
  background: rgba(214, 48, 49, 0.14);
  color: #b3282a;
}
.league-standings__row--self {
  background: rgba(104, 40, 186, 0.07);
}
.league-standings__row--self .league-standings__team-name {
  font-weight: 700;
}
.league-standings__team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
a.league-standings__team:hover .league-standings__team-name {
  color: var(--primary);
}
.league-standings__logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.league-standings__team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.league-standings__zone {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.league-standings__td--points {
  font-weight: 700;
}
.league-standings__td--diff {
  color: var(--grey);
}
.league-standings__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--grey);
}
.league-standings__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.league-standings__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--grey-light);
}
.league-standings__legend-dot--promo {
  background: rgba(38, 166, 91, 0.6);
}
.league-standings__legend-dot--playoff {
  background: rgba(104, 40, 186, 0.55);
}
.league-standings__legend-dot--relegation {
  background: rgba(214, 48, 49, 0.55);
}

@media (max-width: 768px) {
  .league-standings__grid {
    font-size: 13px;
  }
  .league-standings__th--team {
    min-width: 140px;
  }
  .league-standings__td,
  .league-standings__th {
    padding: 7px 4px;
  }
}


/* --- olegtix-league-cup-tree --- */
.league-cup-tree {
  margin: 0 0 24px;
  --cup-line: #ebebeb;
  --cup-gutter: 40px;
  --cup-stub: 20px;
  --cup-tie-gap: 24px;
}
.league-cup-tree__title {
  margin: 0 0 16px;
}
.league-cup-tree__bracket + .league-cup-tree__bracket {
  margin-top: 12px;
}
.league-cup-tree__bracket-name {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
}
.league-cup-tree__tabs {
  display: none;
}
.league-cup-tree__rounds {
  display: flex;
  align-items: stretch;
  gap: var(--cup-gutter);
  overflow-x: auto;
  padding-bottom: 4px;
}
.league-cup-tree__round {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 198px;
  flex: 1 0 198px;
}
.league-cup-tree__rounds--has-third-place .league-cup-tree__round-body {
  min-height: 360px;
}
.league-cup-tree__third-place {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 68px);
}
.league-cup-tree__round-title {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey);
  text-align: center;
  white-space: nowrap;
}
.league-cup-tree__round-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--cup-tie-gap);
}
.league-cup-tree__tie-wrap {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 88px;
}
.league-cup-tree__round--paired .league-cup-tree__tie-wrap::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: var(--cup-stub);
  height: 1px;
  background: var(--cup-line);
}
.league-cup-tree__round--paired .league-cup-tree__tie-wrap:nth-child(odd):not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(100% + var(--cup-stub));
  top: 50%;
  width: 1px;
  height: calc(100% + var(--cup-tie-gap));
  background: var(--cup-line);
}
.league-cup-tree__tie {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.league-cup-tree__round--linked .league-cup-tree__tie-wrap .league-cup-tree__tie::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: var(--cup-stub);
  height: 1px;
  background: var(--cup-line);
}
.league-cup-tree__tie--third-place {
  outline: 1px dashed #d9d9d9;
  outline-offset: 6px;
}
.league-cup-tree__tie--bye {
  opacity: 0.75;
}
.league-cup-tree__tie-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--grey);
}
.league-cup-tree__side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--grey-light);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.league-cup-tree__side--winner {
  background: var(--text);
  color: var(--white);
}
.league-cup-tree__side--slot {
  color: var(--grey);
  font-style: italic;
}
.league-cup-tree__team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
a.league-cup-tree__team:hover .league-cup-tree__name {
  text-decoration: underline;
}
.league-cup-tree__logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.league-cup-tree__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.league-cup-tree__score {
  flex-shrink: 0;
  min-width: 16px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.league-cup-tree__results {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.league-cup-tree__results-tree {
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
}
.league-cup-tree__results-round {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.league-cup-tree__results-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.league-cup-tree__results-card {
  padding: 4px 4px 0;
  border: 1px solid var(--grey-light);
  border-radius: 14px;
  background: var(--white);
}
.league-cup-tree__results-scroll {
  overflow-x: auto;
}
.league-cup-tree__results-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.league-cup-tree__rth {
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  background: var(--grey-light);
}
.league-cup-tree__rth--team {
  border-radius: 10px 0 0 10px;
  padding-left: 20px;
  text-align: left;
  width: 40%;
  min-width: 160px;
}
.league-cup-tree__rth--edge {
  border-radius: 0 10px 10px 0;
  padding-right: 20px;
}
.league-cup-tree__rth--leg {
  min-width: 46px;
}
.league-cup-tree__rth--total {
  min-width: 64px;
}
.league-cup-tree__rth--stat {
  min-width: 58px;
  font-weight: 500;
  color: var(--grey);
}
.league-cup-tree__rtd--stat {
  color: var(--grey);
}
.league-cup-tree__rrow--winner .league-cup-tree__rtd--stat {
  color: var(--text);
}
.league-cup-tree__rth--toggle,
.league-cup-tree__rtd--toggle {
  display: none;
}
.league-cup-tree__rth-short {
  display: none;
}
.league-cup-tree__rtd {
  padding: 4px 10px;
  text-align: center;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.league-cup-tree__rtd--team {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  font-variant-numeric: normal;
  padding-left: 20px;
  white-space: nowrap;
}
.league-cup-tree__rtd--edge {
  padding-right: 20px;
}
.league-cup-tree__series:not(:last-child) .league-cup-tree__rrow:nth-of-type(2) .league-cup-tree__rtd,
.league-cup-tree__series:not(:last-child) .league-cup-tree__rtd--toggle,
.league-cup-tree__series:not(:last-child) .league-cup-tree__rtd--leg {
  border-bottom: 1px solid var(--cup-line);
}
.league-cup-tree__rlogo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}
.league-cup-tree__rname {
  color: var(--grey);
  vertical-align: middle;
  font-size: 13px;
  font-weight: 500;
}
.league-cup-tree__rrow--winner .league-cup-tree__rname {
  color: var(--text);
}
.league-cup-tree__legs-row .league-cup-tree__rtd--legs {
  padding: 0;
}
.league-cup-tree__legs {
  display: flex;
  flex-direction: column;
}
.league-cup-tree__leg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px;
  border-bottom: 1px solid var(--cup-line);
}
.league-cup-tree__leg-teams {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.league-cup-tree__leg-team {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--grey);
}
.league-cup-tree__leg-team:first-child {
  color: var(--text);
  font-weight: 600;
}
.league-cup-tree__leg-score {
  flex-shrink: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.league-cup-tree__legs-stats {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cup-line);
}
.league-cup-tree__legs-stat {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
}
.league-cup-tree__legs-stat-value {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.league-cup-tree__legs-stat-label {
  color: var(--grey);
  text-align: center;
}
.league-cup-tree__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.league-cup-tree__toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--grey);
  border-bottom: 1.5px solid var(--grey);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}
.league-cup-tree__toggle[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}
.league-cup-tree__toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .league-cup-tree__tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .league-cup-tree__tabs::-webkit-scrollbar {
    display: none;
  }
  .league-cup-tree__tab {
    flex-shrink: 0;
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    background: var(--grey-light);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
  }
  .league-cup-tree__tab--active {
    background: var(--text);
    color: var(--white);
  }
  .league-cup-tree__rounds {
    display: block;
    overflow: visible;
    padding-bottom: 0;
  }
  .league-cup-tree__round {
    display: none;
    min-width: 0;
  }
  .league-cup-tree__round--active {
    display: flex;
  }
  .league-cup-tree__round-title {
    display: none;
  }
  .league-cup-tree__round-body {
    gap: 16px;
  }
  .league-cup-tree__rounds--has-third-place .league-cup-tree__round-body {
    min-height: 0;
  }
  .league-cup-tree__third-place {
    position: static;
    margin-top: 16px;
  }
  .league-cup-tree__tie-wrap {
    flex: 0 0 auto;
    min-height: 0;
  }
  .league-cup-tree__round--paired .league-cup-tree__tie-wrap::after,
  .league-cup-tree__round--paired .league-cup-tree__tie-wrap:nth-child(odd):not(:last-child)::before,
  .league-cup-tree__round--linked .league-cup-tree__tie::before {
    display: none;
  }
  .league-cup-tree__rth--leg,
  .league-cup-tree__rtd--leg,
  .league-cup-tree__rth--stat,
  .league-cup-tree__rtd--stat {
    display: none;
  }
  .league-cup-tree__legs-stats {
    display: flex;
  }
  .league-cup-tree__rth--toggle,
  .league-cup-tree__rtd--toggle {
    display: table-cell;
    width: 36px;
  }
  .league-cup-tree__rth-full {
    display: none;
  }
  .league-cup-tree__rth-short {
    display: inline;
  }
  .league-cup-tree__rth--team {
    width: auto;
    min-width: 0;
  }
  .league-cup-tree__rth--total {
    min-width: 32px;
  }
  .league-cup-tree__rth,
  .league-cup-tree__rtd,
  .league-cup-tree__rth--team,
  .league-cup-tree__rth--edge,
  .league-cup-tree__rtd--team,
  .league-cup-tree__rtd--edge {
    padding: 5px 6px;
  }
  .league-cup-tree__rth--edge {
    border-radius: 0;
  }
  .league-cup-tree__rth--toggle {
    border-radius: 0 10px 10px 0;
  }
  .league-cup-tree__rname {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }
  .league-cup-tree__rtd--team {
    width: 100%;
  }
  .league-cup-tree__results-table {
    font-size: 12px;
  }
  .league-cup-tree__rth {
    font-size: 12px;
  }
  .league-cup-tree__legs-stat {
    padding-right: 36px;
  }
}


/* --- olegtix-league-leaders --- */
.league-leaders {
  margin: 0 0 24px;
}
.league-leaders__title {
  margin: 0 0 16px;
}
.league-leaders__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 12px;
}
.league-leaders__entity {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: var(--grey-light);
}
.league-leaders__entity-btn {
  padding: 5px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey);
  cursor: pointer;
}
.league-leaders__entity-btn--active {
  background: var(--white);
  color: var(--text);
  font-weight: 600;
}
.league-leaders__body {
  position: relative;
  min-height: 60px;
}
.league-leaders__body--loading {
  opacity: 0.5;
}
.league-leaders__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.league-leaders__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 10px;
}
.league-leaders__item:nth-child(odd) {
  background: #fafafa;
}
.league-leaders__rank {
  flex-shrink: 0;
  width: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey);
  text-align: center;
}
.league-leaders__subject {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}
.league-leaders__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
a.league-leaders__link:hover .league-leaders__name {
  color: var(--primary);
}
.league-leaders__photo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--grey-light);
}
.league-leaders__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.league-leaders__club {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--grey);
}
.league-leaders__value {
  flex-shrink: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.league-leaders__empty {
  padding: 16px 0;
  color: var(--grey);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 768px) {
  .league-leaders__controls {
    flex-direction: column;
    align-items: stretch;
  }
  .league-leaders__club {
    display: none;
  }
}

