
/* --- 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-math-prediction-model --- */
.mp-model {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.mp-model__block {
    --mp-label: 168px;
    --mp-label-plain: 200px;
    --mp-label-min: 84px;
    --mp-track-min: 48px;
    --mp-value: 62px;
    --mp-chip: 118px;
    --mp-row-gap: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 22px;
    border: 1px solid #ececf0;
    border-radius: 16px;
    background: #fff;
    grid-column: span 12;
}

.mp-model__block--half {
    --mp-label: 118px;
    --mp-label-plain: 148px;
    --mp-label-min: 56px;
    --mp-track-min: 32px;
    --mp-value: 52px;
    --mp-chip: 104px;
    --mp-row-gap: 10px;
    grid-column: span 6;
    padding: 18px;
}

.mp-model__block--wide {
    --mp-label: 240px;
    --mp-label-plain: 280px;
}

.mp-model__block--totals {
    grid-row: span 2;
}

.mp-model:not(:has(.mp-model__block--scores)) .mp-model__block--totals {
    grid-row: span 1;
}

.mp-model__block--xg {
    grid-column: span 6;
}

.mp-model:not(:has(.mp-model__block--compact)) .mp-model__block--xg {
    grid-column: span 12;
}

.mp-model__block--compact {
    grid-column: span 3;
    padding: 18px;
}

.mp-model__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1b1b1f;
}

.mp-model__rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mp-model__rows--divided {
    padding-top: 14px;
    border-top: 1px solid #f0f0f3;
}

.mp-model__row {
    display: grid;
    grid-template-columns:
        minmax(var(--mp-label-min), var(--mp-label))
        minmax(var(--mp-track-min), 1fr)
        var(--mp-value)
        var(--mp-chip);
    align-items: center;
    gap: var(--mp-row-gap);
}

.mp-model__row--plain {
    grid-template-columns:
        minmax(var(--mp-label-min), var(--mp-label-plain, var(--mp-label)))
        minmax(var(--mp-track-min), 1fr)
        var(--mp-value);
}

.mp-model__row-label {
    font-size: 14px;
    color: #4a4a52;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-model__row-track {
    position: relative;
    display: block;
    height: 9px;
    border-radius: 999px;
    background: #f1f1f4;
    overflow: hidden;
}

.mp-model__row-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #6828ba;
}

.mp-model__row-fill--won {
    background: #34b945;
}

.mp-model__row-value {
    font-size: 14px;
    font-weight: 700;
    color: #6828ba;
    text-align: right;
    white-space: nowrap;
}

.mp-model__row-value--won {
    color: #34b945;
}

.mp-model__row-value--lost {
    color: #f85c5f;
}

.mp-model__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.mp-model__chip--won {
    background: #e8f8ec;
    color: #2c9c3c;
}

.mp-model__chip--lost {
    background: #fdecec;
    color: #e4494c;
}

.mp-model__chip--none {
    background: #f4f4f6;
    color: #8b8b93;
}

.mp-model__block--half .mp-model__title {
    font-size: 16px;
}

.mp-model__block--half .mp-model__row-label,
.mp-model__block--half .mp-model__row-value {
    font-size: 13px;
}

.mp-model__block--half .mp-model__chip {
    padding: 6px 9px;
    font-size: 12px;
}

.mp-model__scores {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.mp-model__block--half .mp-model__scores {
    gap: 8px;
}

.mp-model__block--half .mp-model__score {
    padding: 12px 4px;
}

.mp-model__block--half .mp-model__score-value {
    font-size: 17px;
}

.mp-model__block--half .mp-model__score-prob {
    font-size: 12px;
}

.mp-model__score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 6px;
    border: 1px solid #ececf0;
    border-radius: 12px;
}

.mp-model__score-value {
    font-size: 19px;
    font-weight: 700;
    color: #6828ba;
}

.mp-model__score-prob {
    font-size: 13px;
    color: #8b8b93;
}

.mp-model__xg {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mp-model__xg-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
}

.mp-model__xg-cell + .mp-model__xg-cell {
    border-left: 1px solid #f0f0f3;
}

.mp-model__xg-icon {
    display: inline-flex;
    color: #6828ba;
}

.mp-model__xg-value {
    font-size: 28px;
    font-weight: 800;
    color: #6828ba;
}

.mp-model__xg-label {
    font-size: 13px;
    color: #8b8b93;
}

.mp-model__pairs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.mp-model__pair {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mp-model__pair-label {
    font-size: 14px;
    color: #4a4a52;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-model__pair-value {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #6828ba;
    white-space: nowrap;
}

.mp-model__pair-value--negative {
    color: #f85c5f;
}

.math-prediction__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f0eafc;
    color: #6828ba;
    font-size: 14px;
    white-space: nowrap;
}

.math-prediction__badge-value {
    font-weight: 800;
}

@media (max-width: 1339px) {
    .mp-model__block--xg {
        grid-column: span 12;
    }

    .mp-model__block--compact {
        grid-column: span 6;
    }
}

@media (max-width: 1199px) {
    .mp-model__block--half {
        --mp-label: 168px;
        --mp-label-plain: 200px;
        --mp-label-min: 84px;
        --mp-track-min: 48px;
        --mp-value: 62px;
        --mp-chip: 118px;
        --mp-row-gap: 12px;
        grid-column: span 12;
        padding: 20px 22px;
    }

    .mp-model__block--totals {
        grid-row: span 1;
    }

    .mp-model__block--half .mp-model__title {
        font-size: 17px;
    }

    .mp-model__block--half .mp-model__row-label,
    .mp-model__block--half .mp-model__row-value {
        font-size: 14px;
    }

    .mp-model__block--half .mp-model__chip {
        padding: 7px 12px;
        font-size: 13px;
    }

    .mp-model__block--half .mp-model__score-value {
        font-size: 19px;
    }

    .mp-model__block--half .mp-model__score-prob {
        font-size: 13px;
    }
}

@media (max-width: 720px) {
    .mp-model__block,
    .mp-model__block--half,
    .mp-model__block--wide {
        --mp-label: 118px;
        --mp-label-plain: 148px;
        --mp-label-min: 62px;
        --mp-track-min: 24px;
        --mp-value: 46px;
        --mp-chip: 78px;
        --mp-row-gap: 6px;
    }

    .mp-model__block,
    .mp-model__block--half,
    .mp-model__block--compact {
        padding: 16px;
    }

    .mp-model__title,
    .mp-model__block--half .mp-model__title {
        font-size: 16px;
    }

    .mp-model__row-label,
    .mp-model__row-value,
    .mp-model__block--half .mp-model__row-label,
    .mp-model__block--half .mp-model__row-value {
        font-size: 13px;
    }

    .mp-model__chip,
    .mp-model__block--half .mp-model__chip {
        padding: 5px 8px;
        font-size: 11px;
    }

    .mp-model__scores {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
    }

    .mp-model__score,
    .mp-model__block--half .mp-model__score {
        padding: 10px 2px;
    }

    .mp-model__score-value,
    .mp-model__block--half .mp-model__score-value {
        font-size: 15px;
    }

    .mp-model__score-prob,
    .mp-model__block--half .mp-model__score-prob {
        font-size: 11px;
    }

    .mp-model__xg-value {
        font-size: 24px;
    }

    .math-prediction__badge {
        margin-left: 0;
    }
}

@media (max-width: 420px) {
    .mp-model__block,
    .mp-model__block--half,
    .mp-model__block--wide {
        --mp-label: 98px;
        --mp-label-plain: 126px;
        --mp-label-min: 52px;
        --mp-track-min: 20px;
        --mp-value: 42px;
        --mp-chip: 72px;
        --mp-row-gap: 5px;
    }

    .mp-model__row-label,
    .mp-model__row-value,
    .mp-model__block--half .mp-model__row-label,
    .mp-model__block--half .mp-model__row-value {
        font-size: 12px;
    }

    .mp-model__chip,
    .mp-model__block--half .mp-model__chip {
        padding: 4px 6px;
        font-size: 10px;
    }

    .mp-model__chip svg {
        width: 12px;
        height: 12px;
    }
}


/* --- olegtix-math-prediction-recent --- */
.mp-recent {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mp-recent__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #d9c9f2;
    border-radius: 14px;
    background: #faf7ff;
    color: #6828ba;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.mp-recent__toggle:hover {
    background: #f3ecfd;
    border-color: #c4a9ec;
}

.mp-recent__toggle-icon {
    transition: transform .2s ease;
}

.mp-recent--open .mp-recent__toggle-icon {
    transform: rotate(180deg);
}

.mp-recent__panel {
    padding: 22px;
    border: 1px solid #ececf0;
    border-radius: 16px;
    background: #fff;
}

.mp-recent__title {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
    color: #1b1b1f;
}

.mp-recent__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.mp-recent__column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.mp-recent__column + .mp-recent__column {
    padding-left: 24px;
    border-left: 1px solid #f0f0f3;
}

.mp-recent__team {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #8b8b93;
}

.mp-recent__empty {
    margin: 0;
    font-size: 14px;
    color: #8b8b93;
}

.mp-recent__summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mp-recent__line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    font-size: 14px;
    color: #4a4a52;
}

.mp-recent__line:empty {
    display: none;
}

.mp-recent__record {
    font-size: 16px;
    font-weight: 700;
}

.mp-recent__record--w {
    color: #34b945;
}

.mp-recent__record--d {
    color: #5b5b66;
}

.mp-recent__record--l {
    color: #f85c5f;
}

.mp-recent__sep {
    width: 1px;
    height: 16px;
    background: #e2e2e8;
}

.mp-recent__metric {
    color: #1b1b1f;
    font-weight: 600;
    white-space: nowrap;
}

.mp-recent__metric-label {
    color: #8b8b93;
    font-weight: 400;
}

.mp-recent__strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mp-recent__strip-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.mp-recent__strip-item--w {
    background: #34b945;
}

.mp-recent__strip-item--d {
    background: #6f6f7a;
}

.mp-recent__strip-item--l {
    background: #f85c5f;
}

.mp-recent__matches {
    display: flex;
    flex-direction: column;
}

.mp-recent__match {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 0;
    border-top: 1px solid #f0f0f3;
}

.mp-recent__match--extra {
    display: none;
}

.mp-recent__column--all .mp-recent__match--extra {
    display: flex;
}

.mp-recent__match--link {
    padding-inline: 8px;
    margin-inline: -8px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.mp-recent__match--link:hover,
.mp-recent__match--link:focus-visible {
    background: #f6f2fd;
}

.mp-recent__match--link:hover .mp-recent__match-team--own,
.mp-recent__match--link:focus-visible .mp-recent__match-team--own,
.mp-recent__match--link:hover .mp-recent__match-score-main,
.mp-recent__match--link:focus-visible .mp-recent__match-score-main {
    color: #6828ba;
}

.mp-recent__match-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #8b8b93;
}

.mp-recent__match-outcome {
    font-weight: 700;
}

.mp-recent__match-outcome--w {
    color: #34b945;
}

.mp-recent__match-outcome--d {
    color: #6f6f7a;
}

.mp-recent__match-outcome--l {
    color: #f85c5f;
}

.mp-recent__match-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 4px 12px;
}

.mp-recent__match-teams {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mp-recent__match-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 14px;
    color: #4a4a52;
}

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

.mp-recent__match-logo {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.mp-recent__match-team--own {
    font-weight: 700;
    color: #1b1b1f;
}

.mp-recent__match-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    white-space: nowrap;
}

.mp-recent__match-score-main {
    font-size: 16px;
    font-weight: 700;
    color: #1b1b1f;
}

.mp-recent__match-score-half {
    font-size: 13px;
    color: #8b8b93;
}

.mp-recent__match-league {
    grid-column: 1 / -1;
    font-size: 13px;
    color: #8b8b93;
}

.mp-recent__match-scorers {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #8b8b93;
}

.mp-recent__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    align-self: center;
    margin-top: 4px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #6828ba;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.mp-recent__more[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.mp-recent__note {
    margin: 18px 0 0;
    text-align: center;
    font-size: 13px;
    color: #a0a0a8;
}

@media (max-width: 900px) {
    .mp-recent__grid {
        gap: 12px;
    }
}

@media (max-width: 720px) {
    .mp-recent__panel {
        padding: 16px;
    }

    .mp-recent__toggle {
        font-size: 15px;
        padding: 14px 16px;
    }

    .mp-recent__grid {
        gap: 8px;
    }

    .mp-recent__team,
    .mp-recent__match-team,
    .mp-recent__match-score-main {
        font-size: 12px;
    }

    .mp-recent__line,
    .mp-recent__metric,
    .mp-recent__record,
    .mp-recent__match-head,
    .mp-recent__match-league,
    .mp-recent__match-scorers,
    .mp-recent__match-score-half {
        font-size: 11px;
    }

    .mp-recent__match-logo {
        width: 14px;
        height: 14px;
    }

    .mp-recent__match-team {
        gap: 5px;
    }

    .mp-recent__strip-item {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .mp-recent__column + .mp-recent__column {
        padding-left: 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-league-tabs --- */
.league-tabs__nav {
  margin: 0;
}
.league-section-season {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
}
.league-section-season:empty {
  display: none;
}
.league-stats__seasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 24px;
}
.league-stats__seasons[hidden] {
  display: none;
}
.league-stats__seasons-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.league-stats__seasons-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.league-stats__chips {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}
.league-stats__chip,
.league-stats__option {
  padding: 6px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
  line-height: 1.55;
}
.league-stats__chip:hover,
.league-stats__option:hover {
  color: var(--primary);
}
.league-stats__chip:focus-visible,
.league-stats__option:focus-visible,
.league-stats__more-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.league-stats__chip--active,
.league-stats__option--active {
  color: var(--primary);
}
.league-stats__more {
  flex: 0 0 auto;
}
.league-stats__more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.league-stats__more-btn:hover {
  color: var(--primary);
}
.league-stats__more-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.league-stats__more-btn[aria-expanded="true"] .league-stats__more-icon {
  transform: rotate(180deg);
}
.league-stats__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 4px;
  max-height: 320px;
  padding: 8px;
  overflow-y: auto;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.league-stats__option {
  text-align: center;
}
.league-stats__option:hover {
  background: var(--grey-light);
}
.league-stats__option--active {
  background: var(--grey-light);
}
.league-stats__body {
  transition: opacity 0.15s ease;
}
.league-stats__body--loading {
  opacity: 0.5;
  pointer-events: none;
}
.league-stats__empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--grey-light);
  font-size: 14px;
  color: var(--grey);
}
.league-stats__retry {
  flex-shrink: 0;
  padding: 8px 20px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .league-tabs__nav {
    margin: 0;
  }
  .league-stats__seasons {
    margin: 0 0 16px;
  }
  .league-stats__seasons-label {
    font-size: 18px;
  }
  .league-stats__dropdown {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    max-height: 260px;
  }
}


/* --- 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;
  }
}

.team-stats-seasons__body--loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.team-stats-seasons .league-stats__seasons {
  margin-bottom: 16px;
}
.team-stats-seasons .league-stats__seasons-label {
  font-size: 16px;
}


/* --- 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;
    }
}

