.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));
    grid-template-rows: repeat(var(--mp-recent-rows, 4), auto);
    column-gap: 24px;
    row-gap: 0;
    align-items: start;
}

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

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

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

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

.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__grid--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: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 4px auto 0;
    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;
}

@supports (grid-template-rows: subgrid) {
    .mp-recent__grid {
        align-items: stretch;
    }

    .mp-recent__column {
        display: grid;
        grid-row: 1 / -1;
        grid-template-rows: subgrid;
        align-content: start;
    }

    .mp-recent__matches {
        grid-row: span var(--mp-recent-match-rows, 1);
        grid-template-rows: subgrid;
        display: grid;
    }
}

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

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

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

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