
/* --- olegtix-predictions-tab-experts-summary --- */
.predictions-tab-experts-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.predictions-tab-experts-summary__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.predictions-tab-experts-summary__row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
}

.predictions-tab-experts-summary__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #f1eafb;
    color: #6d28d9;
}

.predictions-tab-experts-summary__icon-svg {
    width: 26px;
    height: 26px;
}

.predictions-tab-experts-summary__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.predictions-tab-experts-summary__share {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.2;
}

.predictions-tab-experts-summary__pct {
    font-size: 22px;
    font-weight: 700;
    color: #6d28d9;
}

.predictions-tab-experts-summary__share-text {
    font-size: 14px;
    font-weight: 400;
    color: #7d7d7d;
    overflow-wrap: anywhere;
}

.predictions-tab-experts-summary__pick {
    font-size: 18px;
    font-weight: 700;
    color: #232323;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.predictions-tab-experts-summary__result {
    flex: 0 0 200px;
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 24px;
    border-left: 1px solid #eee;
}

.predictions-tab-experts-summary__result-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.predictions-tab-experts-summary__result-text {
    font-size: 15px;
    font-weight: 600;
}

.predictions-tab-experts-summary__result--won .predictions-tab-experts-summary__result-icon {
    background: #e8f7ec;
    color: #34b945;
}

.predictions-tab-experts-summary__result--won .predictions-tab-experts-summary__result-text {
    color: #34b945;
}

.predictions-tab-experts-summary__result--lost .predictions-tab-experts-summary__result-icon {
    background: #fdecec;
    color: #ef4444;
}

.predictions-tab-experts-summary__result--lost .predictions-tab-experts-summary__result-text {
    color: #ef4444;
}

.predictions-tab-experts-summary__result--push .predictions-tab-experts-summary__result-icon {
    background: #eef2f7;
    color: #64748b;
}

.predictions-tab-experts-summary__result--push .predictions-tab-experts-summary__result-text {
    color: #64748b;
}

.predictions-tab-experts-summary__result--unrated .predictions-tab-experts-summary__result-icon {
    background: #f0f0f0;
    color: #9ca3af;
}

.predictions-tab-experts-summary__result--unrated .predictions-tab-experts-summary__result-text {
    color: #7d7d7d;
}

.predictions-tab-experts-summary__result--pending .predictions-tab-experts-summary__result-icon {
    background: #f1eafb;
    color: #6d28d9;
}

.predictions-tab-experts-summary__result--pending .predictions-tab-experts-summary__result-text {
    color: #6d28d9;
    white-space: nowrap;
}

.predictions-tab-experts-summary__result--live .predictions-tab-experts-summary__result-icon {
    background: #f1eafb;
    color: #6d28d9;
}

.predictions-tab-experts-summary__result--live .predictions-tab-experts-summary__result-text {
    color: #6d28d9;
    white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
    .predictions-tab-experts-summary__result--live .predictions-tab-experts-summary__result-icon {
        animation: predictions-experts-live-pulse 1.6s ease-in-out infinite;
    }
}

@keyframes predictions-experts-live-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .predictions-tab-experts-summary__result {
        flex-basis: 150px;
        padding-left: 16px;
    }
}

@media (max-width: 600px) {
    .predictions-tab-experts-summary__row {
        gap: 10px;
        padding: 12px;
    }

    .predictions-tab-experts-summary__icon {
        display: none;
    }

    .predictions-tab-experts-summary__pct {
        font-size: 18px;
    }

    .predictions-tab-experts-summary__share-text {
        font-size: 12px;
    }

    .predictions-tab-experts-summary__pick {
        font-size: 15px;
    }

    .predictions-tab-experts-summary__result {
        flex: 0 0 auto;
        gap: 8px;
        padding-left: 12px;
    }

    .predictions-tab-experts-summary__result-icon {
        width: 32px;
        height: 32px;
    }

    .predictions-tab-experts-summary__result-text {
        font-size: 13px;
    }
}


/* --- olegtix-predictions-tab-recommended-bets --- */
.predictions-tab-recommended-bets {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.predictions-tab-recommended-bets__list {
  display: flex;
  flex-direction: column;
  border: 1px solid #ececec;
  border-radius: 14px;
  overflow: hidden;
}

.predictions-tab-recommended-bets__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.predictions-tab-recommended-bets__item:last-child {
  border-bottom: none;
}

.predictions-tab-recommended-bets__item--link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.predictions-tab-recommended-bets__item--link:hover {
  background: #faf7ff;
}

.predictions-tab-recommended-bets__bk {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #13131f;
  overflow: hidden;
}

.predictions-tab-recommended-bets__bk img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.predictions-tab-recommended-bets__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.predictions-tab-recommended-bets__odds {
  flex: 0 0 auto;
  min-width: 64px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #6d28d9;
}

.predictions-tab-recommended-bets__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.predictions-tab-recommended-bets__pick {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #232323;
}

.predictions-tab-recommended-bets__subtitle {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: #7d7d7d;
}

.predictions-tab-recommended-bets__aside {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.predictions-tab-recommended-bets__confidence {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  background: #f0f0f0;
  color: #7d7d7d;
}

.predictions-tab-recommended-bets__confidence--high {
  background: #e8f7ec;
  color: #2f9c3f;
}

.predictions-tab-recommended-bets__confidence--mid {
  background: #fff3da;
  color: #d98b0a;
}

.predictions-tab-recommended-bets__confidence--low {
  background: #fdecec;
  color: #ef4444;
}

.predictions-tab-recommended-bets__confidence-label {
  font-size: 14px;
  color: #7d7d7d;
}

@media (max-width: 640px) {
  .predictions-tab-recommended-bets {
    gap: 12px;
  }

  .predictions-tab-recommended-bets__item {
    gap: 12px;
    padding: 14px 16px;
  }

  .predictions-tab-recommended-bets__bk {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .predictions-tab-recommended-bets__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .predictions-tab-recommended-bets__odds {
    min-width: 0;
    font-size: 18px;
  }

  .predictions-tab-recommended-bets__aside {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .predictions-tab-recommended-bets__confidence-label {
    font-size: 12px;
  }
}


/* --- olegtix-predictions-tab-trends --- */
.predictions-tab-trends {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.predictions-tab-trends__group {
  display: flex;
  flex-direction: column;
}

.predictions-tab-trends__team {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.predictions-tab-trends__flag {
  width: 28px;
  height: 20px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}

.predictions-tab-trends__team-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #232323;
}

.predictions-tab-trends__list {
  display: flex;
  flex-direction: column;
}

.predictions-tab-trends__item {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: stretch;
  border-bottom: 1px solid #ededed;
}

.predictions-tab-trends__pick-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 24px 18px 0;
}

.predictions-tab-trends__pick {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #232323;
}

.predictions-tab-trends__text {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 18px 0 18px 24px;
  border-left: 1px solid #ededed;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #7d7d7d;
}

@media (max-width: 640px) {
  .predictions-tab-trends {
    gap: 16px;
  }

  .predictions-tab-trends__team-name {
    font-size: 16px;
  }

  .predictions-tab-trends__item {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .predictions-tab-trends__pick-col {
    gap: 6px;
    padding: 14px 14px 14px 0;
  }

  .predictions-tab-trends__pick {
    font-size: 15px;
  }

  .predictions-tab-trends__text {
    padding: 14px 0 14px 14px;
    font-size: 13px;
  }
}


/* --- olegtix-predictions-tab-editorial --- */
.math-prediction {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.math-prediction__head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.math-prediction__card {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    border: 1px solid #ececf0;
    border-radius: 16px;
    overflow: hidden;
}

.math-prediction__main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    background: #f5f2fd;
}

.math-prediction__main-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.math-prediction__main-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    color: #6828ba;
    box-shadow: 0 4px 12px rgba(104, 40, 186, .14);
}

.math-prediction__main-caption {
    font-size: 14px;
    font-weight: 400;
    color: #7d7d7d;
}

.math-prediction__main-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.math-prediction__main-label {
    font-size: 13px;
    font-weight: 400;
    color: #8a8a96;
}

.math-prediction__main-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.math-prediction__main-outcome {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #232323;
}

.math-prediction__main-figure {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
    flex-shrink: 0;
}

.math-prediction__main-pct {
    font-size: 30px;
    font-weight: 800;
    color: #6828ba;
}

.math-prediction__main-pct--won {
    color: #34b945;
}

.math-prediction__main-pct--lost {
    color: #f85c5f;
}

.math-prediction__main-pct-label {
    font-size: 12px;
    font-weight: 400;
    color: #8a8a96;
}

.math-prediction__main-desc {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #6f6f78;
}

.math-prediction__gauge {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}

.math-prediction__gauge-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.math-prediction__gauge-title {
    font-size: 13px;
    font-weight: 400;
    color: #7d7d7d;
}

.math-prediction__gauge-value {
    margin-left: auto;
    font-size: 15px;
    font-weight: 700;
    color: #232323;
}

.math-prediction__gauge-track {
    display: flex;
    gap: 6px;
}

.math-prediction__gauge-bar {
    flex: 1;
    height: 7px;
    border-radius: 4px;
    background: #e4ddf3;
}

.math-prediction__gauge-bar--on {
    background: #6828ba;
}

.math-prediction__table {
    display: flex;
    flex-direction: column;
    padding: 14px 20px;
    background: #fff;
    border-left: 1px solid #ececf0;
}

.math-prediction__table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px 12px;
    border-bottom: 1px solid #f0f0f3;
}

.math-prediction__table-th {
    font-size: 13px;
    font-weight: 400;
    color: #8a8a96;
}

.math-prediction__rows {
    display: flex;
    flex-direction: column;
}

.math-prediction__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 4px;
    border-bottom: 1px solid #f3f3f6;
}

.math-prediction__row:last-child {
    border-bottom: 0;
}

.math-prediction__row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    background: #f5f2fd;
    color: #6828ba;
}

.math-prediction__row-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.math-prediction__row-market {
    font-size: 12px;
    font-weight: 400;
    color: #8a8a96;
}

.math-prediction__row-pick {
    font-size: 15px;
    font-weight: 700;
    color: #232323;
}

.math-prediction__row-conf {
    font-size: 17px;
    font-weight: 800;
    color: #6828ba;
    white-space: nowrap;
}

.math-prediction__row-conf--won {
    color: #34b945;
}

.math-prediction__row-conf--lost {
    color: #f85c5f;
}

.math-prediction__disclaimer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 14px 16px;
    background: #f7f7f9;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    color: #8a8a96;
}

.math-prediction__disclaimer svg {
    flex-shrink: 0;
    color: #b3b3bd;
}

@media (max-width: 720px) {
    .math-prediction {
        gap: 14px;
    }

    .math-prediction__card {
        grid-template-columns: 1fr;
    }

    .math-prediction__main {
        padding: 18px;
        gap: 16px;
    }

    .math-prediction__table {
        padding: 6px 16px 10px;
        border-left: 0;
        border-top: 1px solid #ececf0;
    }

    .math-prediction__main-outcome {
        font-size: 20px;
    }

    .math-prediction__main-pct {
        font-size: 26px;
    }
}

@media (max-width: 420px) {
    .math-prediction__main-row {
        flex-direction: column;
        gap: 8px;
    }

    .math-prediction__main-figure {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }
}


/* --- olegtix-predictions-tab-other-list --- */
.predictions-tab-other-list__title {
  margin: 0 0 16px;
}

.predictions-tab-other-list__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.predictions-tab-other-list__more {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #6d28d9;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.predictions-tab-other-list__more:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.predictions-tab-other-list__more:disabled {
  opacity: 0.6;
  cursor: wait;
}


/* --- olegtix-dates-header --- */
.dates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dates-header__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.dates-header__title-link {
  color: inherit;
  text-decoration: none;
}
.dates-header__title-link:hover {
  text-decoration: underline;
}

.dates-header__dates-wrap {
  position: relative;
  min-width: 0;
}

.dates-header__dates {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.dates-header__dates::-webkit-scrollbar {
  display: none;
}

.dates-header__calendar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: none;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 5px;
}
.dates-header__calendar-btn svg {
  flex-shrink: 0;
}
.dates-header__calendar-btn:hover {
  background: #f4f4f4;
}
.dates-header__calendar-btn--active {
  box-shadow: inset 0 0 0 2px var(--primary);
}

.dates-header__filter-btn {
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  height: 40px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.dates-header__filter-btn:hover {
  background: #f4f4f4;
}
.dates-header__filter-btn--active {
  background: var(--primary);
  color: var(--white);
}
.dates-header__filter-btn--active:hover {
  background: var(--primary-hover);
}

.dates-header .sort-btn:not(.sort-btn--active) {
  background: transparent;
  color: var(--text);
}

.dates-header__calendar-popup {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  padding: 20px;
  z-index: 100;
  min-width: 300px;
}

.dates-header__calendar-popup--open {
  display: block;
}

.dates-header__calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dates-header__calendar-nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
  font-size: 18px;
}

.dates-header__calendar-month {
  font-size: 15px;
  font-weight: 600;
}

.dates-header__calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.dates-header__calendar-weekday {
  font-size: 12px;
  color: var(--grey);
  padding: 4px;
  font-weight: 500;
}

.dates-header__calendar-day {
  padding: 8px 4px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: none;
  font-family: inherit;
}

.dates-header__calendar-day:hover {
  background: var(--grey-light);
}

.dates-header__calendar-day--today {
  box-shadow: inset 0 0 0 2px var(--primary);
  font-weight: 600;
}

.dates-header__calendar-day--selected {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.dates-header__calendar-day--selected:hover {
  background: var(--primary-hover);
}

.dates-header__calendar-day--other {
  color: #ccc;
  cursor: default;
}

.dates-header__calendar-day--has-matches {
  font-weight: 700;
  position: relative;
}

.dates-header__calendar-day--has-matches::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

.dates-header__calendar-day--selected.dates-header__calendar-day--has-matches::after {
  background: var(--white);
}

.dates-header__calendar-day--other.dates-header__calendar-day--has-matches::after {
  display: none;
}

@media (max-width: 768px) {
  .dates-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dates-header__title {
    font-size: 18px;
  }

  .dates-header__dates-wrap {
    width: 100%;
  }
}


/* --- olegtix-sport-banners --- */
.sport-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.sport-banners__item {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    line-height: 0;
    transition: opacity 0.2s ease;
}

a.sport-banners__item:hover {
    opacity: 0.92;
}

.sport-banners__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .sport-banners {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 16px 0;
    }
}


/* --- olegtix-team-header --- */
.team-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.team-header__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--team-accent, var(--primary));
}

.team-header__accent--light {
  box-shadow: inset 0 0 0 1px #d5d5d5;
}

.team-header__logo-wrap {
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-header__logo,
.team-header__logo-placeholder {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
}

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

.team-header__country {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s ease;
}

a.team-header__country:hover {
  color: var(--primary);
}

.team-header__flag {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
  flex: 0 0 20px;
}

.team-header__country-name {
  font-weight: 500;
}

.team-header__name {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

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

.team-header__founded {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 2px;
}

.team-header__founded-year {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 768px) {
  .team-header {
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
  }

  .team-header__logo-wrap,
  .team-header__logo,
  .team-header__logo-placeholder {
    width: 80px;
    height: 80px;
    flex-basis: 80px;
  }

  .team-header__name {
    font-size: 22px;
  }

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


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

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

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

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

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

.team-tab-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-tab-section__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #232323;
}

.team-tab-section__empty {
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  color: #7d7d7d;
  font-size: 14px;
  text-align: center;
}

.team-tabs__banner {
  border-radius: 18px;
  overflow: hidden;
}

.team-tabs__banner-image {
  display: block;
  width: 100%;
  height: auto;
}

.matches-table--team {
  background: transparent;
}

.matches-table--team .matches-table__body {
  gap: 8px;
}

.matches-table--team .matches-table__row {
  overflow: hidden;
}

.matches-table--team .matches-table__odd-inner {
  width: 100%;
  justify-content: center;
  padding: 8px 12px;
}

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

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

  .team-tab-section__title {
    font-size: 18px;
  }

  .matches-table--team .matches-table__columns {
    display: none;
  }
}


/* --- olegtix-team-squad --- */
.team-squad {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team-squad__empty {
  padding: 24px;
  border-radius: 14px;
  background: #fff;
  color: #7d7d7d;
  font-size: 14px;
  text-align: center;
}

.team-squad__table {
  display: flex;
  flex-direction: column;
  padding: 4px;
  border-radius: 14px;
  background: #fff;
  font-family: "Onest", sans-serif;
}

.team-squad__head,
.team-squad__row {
  display: grid;
  grid-template-columns:
    40px minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.4fr)
    90px;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  min-height: 50px;
  font-size: 14px;
  line-height: 1.3;
}

.team-squad__table--has-height .team-squad__head,
.team-squad__table--has-height .team-squad__row {
  grid-template-columns:
    40px minmax(0, 2fr) minmax(0, 1.2fr) 72px minmax(0, 1.3fr)
    84px;
}

.team-squad__table--has-foot .team-squad__head,
.team-squad__table--has-foot .team-squad__row {
  grid-template-columns:
    40px minmax(0, 2fr) minmax(0, 1.2fr) 84px minmax(0, 1.3fr)
    84px;
}

.team-squad__table--has-height.team-squad__table--has-foot .team-squad__head,
.team-squad__table--has-height.team-squad__table--has-foot .team-squad__row {
  grid-template-columns:
    40px minmax(0, 1.8fr) minmax(0, 1.1fr) 68px 80px minmax(0, 1.2fr)
    76px;
}

.team-squad__group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px 6px;
  color: #7d7d7d;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.team-squad__group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #f4f4f4;
  color: #7d7d7d;
  font-size: 12px;
  font-weight: 600;
}

.team-squad__head {
  background: #f4f4f4;
  border-radius: 10px;
  color: #7d7d7d;
  font-weight: 400;
}

.team-squad__row {
  color: #232323;
  text-decoration: none;
  border-top: 1px solid #f4f4f4;
  transition: background-color 0.15s ease;
}

a.team-squad__row {
  cursor: pointer;
}

a.team-squad__row:hover {
  background-color: #fafafa;
  color: #232323;
}

a.team-squad__row:focus-visible {
  outline: none;
  background-color: #f5f3ff;
  box-shadow: inset 0 0 0 2px #9345d8;
}

.team-squad__cell {
  min-width: 0;
  text-align: center;
}

.team-squad__cell--player {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.team-squad__cell--nationality {
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-squad__player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.team-squad__player-avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef0f3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.team-squad__player-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-squad__player-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-squad__badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.team-squad__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}

.team-squad__badge--foreign {
  background: #f1ecfb;
  color: #7133b0;
}

.team-squad__badge--national {
  background: #e8f5ec;
  color: #2f7d46;
}

.team-squad__cell--age {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.team-squad__birth {
  color: #7d7d7d;
  font-size: 12px;
}

.team-squad__nationality {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.team-squad__flag {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.team-squad__country-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-squad__staff {
  padding: 20px 24px;
  border-radius: 14px;
  background: #fff;
}

.team-squad__staff-title {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: #232323;
}

.team-squad__staff-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-squad__staff-item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 8px 0;
  border-top: 1px solid #f4f4f4;
  font-size: 14px;
  line-height: 1.3;
}

.team-squad__staff-name {
  color: #232323;
  font-weight: 600;
}

.team-squad__staff-role,
.team-squad__staff-country {
  color: #7d7d7d;
  font-size: 13px;
}

.team-squad__description {
  padding: 24px 28px;
  border-radius: 14px;
  background: #fff;
  color: #3d3d3d;
  font-size: 15px;
  line-height: 1.7;
}

.team-squad__description > :first-child {
  margin-top: 0;
}

.team-squad__description > :last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .team-squad__table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }

  .team-squad__head {
    display: none;
  }

  .team-squad__row,
  .team-squad__table--has-height .team-squad__row,
  .team-squad__table--has-foot .team-squad__row,
  .team-squad__table--has-height.team-squad__table--has-foot .team-squad__row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      "avatar name"
      "avatar badges"
      "avatar number"
      "avatar age"
      "avatar height"
      "avatar foot"
      "avatar nationality"
      "avatar stat";
    column-gap: 16px;
    row-gap: 4px;
    padding: 14px;
    min-height: 0;
    background: #fff;
    border-radius: 14px;
    border-top: none;
  }

  .team-squad__group {
    padding: 4px 2px 0;
  }

  a.team-squad__row:hover {
    background-color: #fff;
  }

  .team-squad__cell--player,
  .team-squad__player {
    display: contents;
  }

  .team-squad__player-avatar {
    grid-area: avatar;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    align-self: start;
  }

  .team-squad__player-name {
    grid-area: name;
    font-size: 14px;
    color: #232323;
    text-align: left;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    margin-bottom: 4px;
  }

  .team-squad__cell {
    text-align: left;
    justify-content: flex-start;
    color: #232323;
    font-size: 14px;
    line-height: 1.3;
  }

  .team-squad__cell--number {
    grid-area: number;
  }

  .team-squad__badges {
    grid-area: badges;
    flex-wrap: wrap;
    margin-bottom: 2px;
  }

  .team-squad__cell--age {
    grid-area: age;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px;
  }

  .team-squad__birth::before {
    content: "·";
    margin-right: 4px;
  }

  .team-squad__cell--height {
    grid-area: height;
  }

  .team-squad__cell--foot {
    grid-area: foot;
  }

  .team-squad__cell--height::before {
    content: "Рост";
    color: #7d7d7d;
    margin-right: 4px;
  }

  .team-squad__cell--foot::before {
    content: "Нога";
    color: #7d7d7d;
    margin-right: 4px;
  }

  .team-squad__staff {
    padding: 16px;
  }

  .team-squad__staff-list {
    grid-template-columns: 1fr;
  }

  .team-squad__cell--nationality {
    grid-area: nationality;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
  }

  .team-squad__cell--stat {
    grid-area: stat;
    font-weight: 400;
  }

  .team-squad__cell--number::before {
    content: "№";
    color: #7d7d7d;
    margin-right: 4px;
  }

  .team-squad__cell--age::before {
    content: "Возраст";
    color: #7d7d7d;
    margin-right: 4px;
  }

  .team-squad__cell--nationality::before {
    content: "Национальность";
    color: #7d7d7d;
  }

  .team-squad__cell--stat::before {
    content: "Статистика";
    color: #7d7d7d;
    margin-right: 4px;
  }

  .team-squad__nationality {
    gap: 4px;
  }

  .team-squad__description {
    padding: 18px 16px;
    font-size: 14px;
  }
}


/* --- olegtix-team-profile --- */
.team-profile__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--white);
  border-radius: 14px;
  padding: 20px;
}

.team-profile__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.team-profile__logo-wrap {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-profile__logo {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.team-profile__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

.team-profile__badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-profile__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--grey-light);
  color: #3d3d3d;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}

.team-profile__badge--code {
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-profile__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.team-profile__stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.team-profile__stack .team-profile__card:last-child {
  flex: 1 1 auto;
}

.team-profile__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 14px;
  padding: 20px;
}

.team-profile__card-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

.team-profile__rows,
.team-profile__tournaments {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-profile__row {
  display: grid;
  grid-template-columns: 24px minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 12px;
}

.team-profile__row-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.team-profile__row-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.team-profile__row-label-text {
  color: var(--grey);
  font-size: 14px;
  line-height: 1.3;
}

.team-profile__row-value {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  overflow-wrap: break-word;
}

.team-profile__row-note {
  color: var(--grey);
  font-size: 12px;
  font-weight: 500;
}

.team-profile__link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.team-profile__link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.team-profile__country {
  display: inline;
  color: inherit;
}

.team-profile__flag {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  border-radius: 3px;
  object-fit: cover;
  vertical-align: -3px;
}

.team-profile__colors {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.team-profile__color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--team-color, #d5d5d5);
}

.team-profile__color--light {
  box-shadow: inset 0 0 0 1px #d5d5d5;
}

.team-profile__tournament {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.team-profile__tournament-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.team-profile__tournament-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.team-profile__tournament-name {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 400;
  text-decoration: none;
}

.team-profile__tournament-count {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  text-align: right;
}

.team-profile__goals {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-profile__goal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-profile__goal-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-profile__goal-icon svg,
.team-profile__goal-img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.team-profile__goal--scored .team-profile__goal-icon {
  color: #34b945;
}

.team-profile__goal--conceded .team-profile__goal-icon {
  color: #f85c5f;
}

.team-profile__goal--conceded .team-profile__goal-img--tinted {
  filter: sepia(1) saturate(9) hue-rotate(320deg) brightness(1.05);
}

.team-profile__goal-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.team-profile__goal-value {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.team-profile__goal--scored .team-profile__goal-value {
  color: #34b945;
}

.team-profile__goal--conceded .team-profile__goal-value {
  color: #f85c5f;
}

.team-profile__goal-label {
  color: var(--grey);
  font-size: 14px;
  line-height: 1.3;
}

.team-profile__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--grey-light);
}

.team-profile__form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.team-profile__form-label {
  color: var(--grey);
  font-size: 13px;
  line-height: 1.4;
}

.team-profile__form-summary {
  display: inline-flex;
  gap: 4px;
}

.team-profile__form-stat {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  white-space: nowrap;
}

.team-profile__form-stat--win {
  color: #2f8a47;
  background: rgba(58, 166, 87, 0.12);
}

.team-profile__form-stat--draw {
  color: #6b6b6b;
  background: rgba(154, 154, 154, 0.16);
}

.team-profile__form-stat--loss {
  color: #c43c3c;
  background: rgba(214, 69, 69, 0.12);
}

.team-profile__form-bar {
  display: flex;
  gap: 2px;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
}

.team-profile__form-bar-seg {
  flex: 0 1 0;
  min-width: 4px;
  border-radius: 999px;
}

.team-profile__form-bar-seg--win {
  background: #3aa657;
}

.team-profile__form-bar-seg--draw {
  background: #9a9a9a;
}

.team-profile__form-bar-seg--loss {
  background: #d64545;
}

.team-profile__form-chain {
  display: flex;
  gap: 4px;
}

.team-profile__form-chain .match-preview__form-badge {
  flex: 1 1 0;
  min-width: 0;
  max-width: 28px;
  width: auto;
  height: auto;
  aspect-ratio: 1 / 1;
  font-size: 11px;
}

@media (max-width: 768px) {
  .team-profile__panel {
    padding: 16px;
  }

  .team-profile__cards,
  .team-profile__stack {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .team-profile__title {
    font-size: 20px;
  }

  .team-profile__card {
    padding: 16px;
  }

  .team-profile__card-title {
    font-size: 18px;
  }
}


/* --- olegtix-team-transfers --- */
.team-transfers {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  font-family: "Onest", sans-serif;
  color: #232323;
}

.team-transfers__column {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #f4f4f4;
  background: #fff;
}

.team-transfers__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: #232323;
}

.team-transfers__title-icon {
  display: inline-flex;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.team-transfers__title-icon svg {
  width: 100%;
  height: 100%;
}

.team-transfers__column--in .team-transfers__title-icon {
  color: #34b945;
}

.team-transfers__column--out .team-transfers__title-icon {
  color: #f85c5f;
}

.team-transfers__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-transfers__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
}

.team-transfers__column--in .team-transfers__card {
  background: #ebf8ec;
}

.team-transfers__column--out .team-transfers__card {
  background: #fee7e7;
}

.team-transfers__player {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-transfers__avatar {
  display: inline-flex;
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef0f3;
}

.team-transfers__avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-transfers__player-info {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.team-transfers__player-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: #232323;
  text-decoration: none;
}

.team-transfers__position {
  font-size: 14px;
  line-height: 1.3;
}

.team-transfers__date {
  flex: 0 0 auto;
  align-self: flex-start;
  font-size: 12px;
  line-height: 1.3;
  color: #7d7d7d;
  white-space: nowrap;
}

.team-transfers__deal {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
}

.team-transfers__club {
  display: inline-flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.team-transfers__club-logo {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.team-transfers__club-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.3;
  color: #232323;
  text-decoration: none;
}

a.team-transfers__player-name:hover,
a.team-transfers__club-name:hover {
  color: #9345d8;
}

.team-transfers__club-arrow {
  display: inline-flex;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #7d7d7d;
}

.team-transfers__club-arrow svg {
  width: 100%;
  height: 100%;
}

.team-transfers__fee {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  white-space: nowrap;
}

.team-transfers__type {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid #34b945;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.team-transfers__column--out .team-transfers__type {
  border-color: #f85c5f;
}

@media (max-width: 992px) {
  .team-transfers {
    flex-direction: column;
    align-items: stretch;
  }

  .team-transfers__player-name {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .team-transfers__column {
    padding: 14px;
  }

  .team-transfers__title {
    font-size: 18px;
  }

  .team-transfers__card {
    padding: 12px;
  }

  .team-transfers__avatar {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }

  .team-transfers__player-name {
    font-size: 16px;
  }

  .team-transfers__deal {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .team-transfers__club {
    flex-basis: 100%;
  }

  .team-transfers__fee {
    margin-left: 0;
    font-size: 16px;
  }

  .team-transfers__type {
    margin-left: auto;
  }
}


/* --- olegtix-team-stats --- */
.team-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: "Onest", sans-serif;
}

.team-stats__slice {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-stats__slice[hidden] {
  display: none;
}

.team-stats__slices {
  margin: 0;
}

.team-stats__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #fff;
}

.team-stats__scope {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.team-stats__tournament {
  color: #232323;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

a.team-stats__tournament:hover {
  color: #9345d8;
}

.team-stats__season,
.team-stats__type {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 8px;
  background: #f4f4f4;
  color: #3d3d3d;
  font-size: 13px;
}

.team-stats__updated {
  color: #7d7d7d;
  font-size: 13px;
}

.team-stats__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.team-stats__tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
}

.team-stats__tile-label {
  color: #7d7d7d;
  font-size: 13px;
  line-height: 1.3;
}

.team-stats__tile-value {
  color: #232323;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.team-stats__group {
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.team-stats__group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  cursor: pointer;
  color: #232323;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
}

.team-stats__group-title::-webkit-details-marker {
  display: none;
}

.team-stats__group-title::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid #7d7d7d;
  border-bottom: 2px solid #7d7d7d;
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 0.15s ease;
}

.team-stats__group[open] .team-stats__group-title::after {
  transform: rotate(-135deg);
}

.team-stats__group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 0 6px;
  border-radius: 10px;
  background: #f4f4f4;
  color: #7d7d7d;
  font-size: 12px;
  font-weight: 600;
}

.team-stats__legend {
  padding: 0 20px 8px;
  color: #7d7d7d;
  font-size: 12px;
}

.team-stats__rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 24px;
  padding: 0 20px 12px;
}

.team-stats__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #f4f4f4;
  font-size: 14px;
  line-height: 1.3;
}

.team-stats__row-label {
  min-width: 0;
  color: #3d3d3d;
}

.team-stats__row-value {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
  color: #232323;
  font-weight: 600;
  white-space: nowrap;
}

.team-stats__row-against {
  color: #7d7d7d;
  font-weight: 400;
}

.team-stats__row-against::before {
  content: "/";
  margin-right: 8px;
  color: #d5d5d5;
}

@media (max-width: 768px) {
  .team-stats__header {
    padding: 14px 16px;
  }

  .team-stats__tiles {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
  }

  .team-stats__tile {
    padding: 12px 14px;
  }

  .team-stats__tile-value {
    font-size: 22px;
  }

  .team-stats__group-title {
    padding: 14px 16px;
    font-size: 15px;
  }

  .team-stats__legend {
    padding: 0 16px 8px;
  }

  .team-stats__rows {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 16px 12px;
  }
}


/* --- 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 {
    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__club-label {
    color: #7d7d7d;
}

.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 {
        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;
    }
}

