
/* --- olegtix-player-header --- */
.player-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 14px;
    margin-bottom: 20px;
}

.player-header__photo-wrap {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-header__photo,
.player-header__photo-placeholder {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.player-header__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.player-header__top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 24px;
    font-size: 14px;
    line-height: 1.3;
    color: #232323;
}

.player-header__country,
.player-header__club {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #232323;
    text-decoration: none;
    transition: color 0.15s ease;
}

.player-header__club:hover {
    color: #9345d8;
}

.player-header__flag,
.player-header__club-logo {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.player-header__name {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    color: #232323;
}

.player-header__name-original {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 500;
    color: #6b7280;
    margin-top: 2px;
}

.player-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 14px;
    line-height: 1.3;
}

.player-header__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.player-header__meta-label {
    color: #7d7d7d;
}

.player-header__meta-value {
    color: #232323;
}

@media (max-width: 768px) {
    .player-header {
        padding: 16px;
        gap: 16px;
    }

    .player-header__photo-wrap,
    .player-header__photo,
    .player-header__photo-placeholder {
        flex-basis: 80px;
        width: 80px;
        height: 80px;
    }

    .player-header__top {
        gap: 4px 16px;
    }

    .player-header__name {
        font-size: 22px;
        line-height: 1.25;
    }

    .player-header__name-original {
        font-size: 14px;
    }

    .player-header__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .player-header__meta-item {
        white-space: normal;
    }
}


/* --- olegtix-match-history-card --- */
.match-history-card {
  display: block;
  position: relative;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #ebebeb;
  border-left: 3px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

a.match-history-card:hover {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.match-history-card--win {
  border-left-color: #22c55e;
}

.match-history-card--draw {
  border-left-color: #9ca3af;
}

.match-history-card--loss {
  border-left-color: #f85c5f;
}

.match-history-card__header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #7d7d7d;
  background: #f5f5f5;
  margin: -8px -16px 12px;
  padding: 10px 20px;
  border-radius: 8px;
}
.match-history-card__flag {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

.match-history-card__dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}

.match-history-card__body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.match-history-card__body::before {
  content: "";
}

.match-history-card__teams {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.match-history-card__home-name,
.match-history-card__away-name {
  font-size: 14px;
  font-weight: 400;
  color: #232323;
  line-height: 1.3;
}

.match-history-card__home-name {
  text-align: right;
}

.match-history-card__away-name {
  text-align: left;
}

.match-history-card__logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.match-history-card__score {
  font-size: 16px;
  font-weight: 400;
  color: #232323;
  padding: 0 4px;
  white-space: nowrap;
}

.match-history-card__stats {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.match-history-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7d7d7d;
  font-size: 14px;
  line-height: 1;
}

.match-history-card__stat-icon {
  flex-shrink: 0;
  color: #7d7d7d;
}

.match-history-card__stat-icon--card {
  width: 15px;
  height: 20px;
}

.match-history-card__stat-value {
  font-size: 14px;
  font-weight: 400;
  color: #232323;
}

@media (max-width: 768px) {
  .match-history-card {
    padding: 10px 14px;
  }

  .match-history-card__header {
    font-size: 12px;
    gap: 4px;
    background: transparent;
    margin: 0 -14px 0;
    padding: 0 14px 10px;
    border-bottom: 1px solid #ebebeb;
  }

  .match-history-card__body {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .match-history-card__body::before {
    display: none;
  }

  .match-history-card__teams,
  .match-history-card__stats {
    grid-column: 1;
    justify-self: stretch;
  }

  .match-history-card__teams {
    justify-content: center;
    padding-top: 10px;
  }

  .match-history-card__stats {
    justify-content: center;
    gap: 18px;
    margin: 10px -14px 0;
    padding: 10px 14px 0;
    border-top: 1px solid #ebebeb;
  }

  .match-history-card__home-name,
  .match-history-card__away-name {
    font-size: 12px;
  }
}


/* --- olegtix-match-info-strip --- */
.match-info-strip {
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.match-info-strip__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #232323;
}

.match-info-strip__items {
  display: flex;
  flex-wrap: wrap;
  row-gap: 12px;
  column-gap: 24px;
}

.match-info-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.3;
  color: #232323;
}

.match-info-strip__icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
}

.match-info-strip__icon svg {
  display: block;
  width: 18px;
  height: auto;
}

.match-info-strip__flag {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 2px;
  flex-shrink: 0;
}

.match-info-strip__text {
  color: #232323;
}

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

a.match-info-strip__text--link:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .match-info-strip {
    padding: 14px 16px;
    border-radius: 12px;
  }

  .match-info-strip__title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .match-info-strip__items {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 10px;
  }

  .match-info-strip__item {
    font-size: 13px;
  }
}


/* --- olegtix-match-scorers --- */
.pe-card__finished-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 12px;
  margin: 8px 0;
  background: #fee7e7;
  color: #f85c5f;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.25;
}

.pe-card__scorers {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 24px;
  align-items: start;
  width: 100%;
  margin-top: 16px;
}

.pe-card__scorers-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pe-card__scorers-col--home {
  text-align: right;
  align-items: flex-end;
}

.pe-card__scorers-col--away {
  text-align: left;
  align-items: flex-start;
}

.pe-card__scorers-icon {
  width: 16px;
  height: 16px;
  align-self: flex-start;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.7;
}

.pe-card__scorers-icon svg {
  width: 100%;
  height: 100%;
}

.pe-card__scorer,
.pe-card__scorer-link {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  color: #232323;
  font-size: 14px;
  line-height: 1.25;
  text-decoration: none;
}
@media (max-width: 480px) {
  .pe-card__scorer,
  .pe-card__scorer-link {
    font-size: 12px;
  }
}
.pe-card__scorer-link:hover .pe-card__scorer-name {
  color: var(--primary, #9345d8);
}

.pe-card__scorer-name {
  color: inherit;
}

.pe-card__scorer-minute {
  color: inherit;
}

.pe-card__scorer-marker {
  color: #7d7d7d;
}

.pe-card__odd-main--lost,
.pe-card__best-odd--lost {
  opacity: 0.5;
}


/* --- olegtix-match-tabs --- */
.match-tabs {
  margin: 20px 0;
}

.match-tabs__nav {
  margin: 0 0 16px;
}

.match-tabs__panel[hidden] {
  display: none;
}

.match-tabs__panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.match-tabs__placeholder {
  text-align: center;
  color: #9ca3af;
  font-size: 15px;
  padding: 48px 16px;
}

.match-predictions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.match-predictions__main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-predictions__main-title,
.match-predictions__other-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #232323;
}

.match-predictions__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-predictions__show-more {
  align-self: center;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #232323;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.match-predictions__show-more:hover {
  border-color: #9345d8;
  color: #9345d8;
}

.match-predictions__show-more:disabled,
.match-predictions__show-more--loading {
  opacity: 0.6;
  cursor: progress;
}

.match-predictions__empty {
  padding: 48px 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 15px;
}

@media (max-width: 768px) {
  .match-tabs__panels {
    padding: 16px;
    border-radius: 10px;
  }

  .match-tabs__placeholder {
    padding: 32px 12px;
  }

  .match-predictions__main-title,
  .match-predictions__other-title {
    font-size: 18px;
  }

  .match-predictions__empty {
    padding: 32px 12px;
  }
}


/* --- olegtix-match-lineups --- */
.match-lineups {
  margin-bottom: 16px;
}
.match-lineups__column {
  min-width: 0;
  background: #fff;
  padding: 5px;
  border-radius: 14px;
}
.match-lineups__title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #232323;
}

.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 {
  margin-bottom: 16px;
}

.match-h2h-list__title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #232323;
}

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

@media (max-width: 768px) {
  .match-h2h-list {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .match-h2h-list__title {
    font-size: 18px;
    margin: 0 0 12px;
  }

  .match-h2h-list__items {
    gap: 8px;
  }
}


/* --- olegtix-match-team-recent --- */
.match-team-recent {
  margin-bottom: 40px;
}

.match-team-recent__title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #232323;
}

.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 {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .match-team-recent__title {
    font-size: 18px;
    margin: 0 0 12px;
  }

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

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


/* --- olegtix-match-h2h-stats --- */
.match-h2h-stats {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  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__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #232323;
}

.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 {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .match-h2h-stats__title {
    font-size: 16px;
  }

  .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 {
  margin: 24px 0;
}
.match-statistics__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text, #232323);
}

.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 {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  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 {
  padding: 24px;
  text-align: center;
  color: #7d7d7d;
  background: #fff;
  border-radius: 14px;
}

@media (max-width: 768px) {
  .match-statistics__title {
    font-size: 18px;
  }
  .match-statistics__group {
    padding: 14px;
    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 {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #E5E7EB;
}
.match-events__title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  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; }
}

