/* Shared by Superstar history, My Portal recent results and the SOTM record. */
:is(.profile-match-card, .portal-results-card) .history-row.history-row-polished {
    grid-template-columns: 34px minmax(0, 1fr) 164px;
    align-items: center;
    gap: 18px;
    padding: 20px 25px;
}
.history-row.history-row-polished .history-main { min-width: 0; gap: 0; }
.history-row.history-row-polished .history-matchup {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px 10px;
    margin: 0;
    color: #f4f6fa;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}
.history-matchup-chunk, .history-member-side {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
}
.history-row-polished .history-side-name { min-width: 0; overflow-wrap: anywhere; }
.history-row-polished .history-versus {
    flex: 0 0 auto;
    color: #94a3b8;
    font-family: var(--body, Inter, sans-serif);
    font-size: .67em;
    font-weight: 600;
    line-height: 1.3;
    text-transform: lowercase;
    letter-spacing: .02em;
}
.history-row.history-row-polished .history-members {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px 10px;
    margin-top: 7px;
    color: #b4bdcb;
    font-size: 11px;
    line-height: 1.55;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}
.history-row-polished .history-member-group { display: inline-flex; flex-wrap: wrap; gap: 3px 5px; min-width: 0; }
.history-row-polished .history-member { min-width: 0; overflow-wrap: anywhere; }
.history-row-polished .history-members .history-versus { font-size: .85em; }
.history-row-polished .history-member-join { color: #94a3b8; }
:is(.profile-match-card, .portal-results-card) .history-row-polished .history-titles { margin-top: 11px; gap: 8px; }
:is(.profile-match-card, .portal-results-card) .history-row-polished .history-event {
    display: flex;
    grid-column: 3;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 164px;
    max-width: 100%;
    margin: 0;
    text-align: center;
}
.history-row-polished .history-event-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    min-width: 0;
}
.history-row-polished .history-event-stage:has(> strong) { height: auto; min-height: 54px; }
:is(.profile-match-card, .portal-results-card) .history-row-polished .history-event-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 148px;
    max-height: 48px;
    object-fit: contain;
    object-position: center;
}
.history-row.history-row-polished .history-event strong {
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
    color: #d5deea;
    font-size: 14px;
    line-height: 1.25;
}
.history-row.history-row-polished .history-event small {
    max-width: 100%;
    margin: 0;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 10px;
    line-height: 1.5;
    color: #aab5c5;
}
@media (min-width: 641px) and (max-width: 900px) {
    :is(.profile-match-card, .portal-results-card) .history-row.history-row-polished { grid-template-columns: 34px minmax(0, 1fr) 132px; gap: 14px; padding-inline: 20px; }
    :is(.profile-match-card, .portal-results-card) .history-row-polished .history-event { width: 132px; }
    :is(.profile-match-card, .portal-results-card) .history-row-polished .history-event-logo { max-width: 124px; max-height: 44px; }
}
@media (max-width: 640px) {
    :is(.profile-match-card, .portal-results-card) .history-row.history-row-polished {
        grid-template-columns: 34px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        padding: 18px;
    }
    .history-row.history-row-polished .form-result { grid-column: 1; grid-row: 1; margin-top: 2px; }
    .history-row.history-row-polished .history-main { grid-column: 2; }
    .history-row.history-row-polished .history-matchup { font-size: 16px; gap: 7px 9px; }
    :is(.profile-match-card, .portal-results-card) .history-row-polished .history-event {
        grid-column: 2;
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        width: 100%;
        padding-top: 10px;
        border-top: 1px solid rgba(194, 203, 219, .12);
    }
    .history-row-polished .history-event-stage { height: 40px; }
    .history-row-polished .history-event-stage:has(> strong) { min-height: 40px; }
    :is(.profile-match-card, .portal-results-card) .history-row-polished .history-event-logo { max-width: 100px; max-height: 36px; }
    .history-row.history-row-polished .history-event small { text-align: left; }
    .history-row.history-row-polished .history-event strong { font-size: 12px; }
}
@media (max-width: 360px) {
    :is(.profile-match-card, .portal-results-card) .history-row.history-row-polished { padding: 16px 12px; gap: 10px; }
    :is(.profile-match-card, .portal-results-card) .history-row-polished .history-event { grid-template-columns: 86px minmax(0, 1fr); gap: 8px; }
    :is(.profile-match-card, .portal-results-card) .history-row-polished .history-event-logo { max-width: 82px; }
}
