.match-history-list{display:grid;gap:14px;margin:16px auto;max-width:1040px}.match-history-card{min-width:0;padding:16px 20px;border:1px solid #31556d;border-radius:12px;background:linear-gradient(110deg,#0d2b41,#081a2b)}.match-history-meta{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;color:#a7c4d8;font-size:.75rem;margin-bottom:14px}.match-history-outcome{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;font-weight:800;color:#fff}.match-history-outcome.is-win{background:#16734f}.match-history-outcome.is-draw{background:#795d08}.match-history-outcome.is-loss{background:#a7303b}.match-history-scoreline{display:grid;grid-template-columns:minmax(0,1fr) 42px 46px 42px minmax(0,1fr);align-items:center;gap:12px;text-align:center}.match-history-team{min-width:0}.match-history-club{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;text-decoration:none;color:#ffce24;overflow-wrap:anywhere}.match-history-club:hover strong{text-decoration:underline}.match-history-crest{display:block;width:50px;height:58px}.match-history-crest svg,.match-history-crest img{width:100%;height:100%;object-fit:contain}.match-history-goals{font-size:1.8rem;color:#fff;font-variant-numeric:tabular-nums}.match-history-vs{display:grid;place-items:center;min-height:36px;border:1px solid #3f6a86;border-radius:8px;background:#12364e;color:#a7cadf;font-size:.75rem;font-weight:800}.match-history-actions{display:flex;justify-content:center;margin-top:16px}.match-history-actions .btn{margin:0;white-space:nowrap}.match-history-assessment{margin-top:14px;padding-top:12px;border-top:1px solid #31556d;font-size:.8rem}.match-history-assessment summary{cursor:pointer;color:#a7c4d8}.match-history-assessment dl{display:flex;gap:24px;flex-wrap:wrap}.match-history-assessment dd{margin:4px 0}.match-history-toolbar{display:flex;justify-content:center}.match-history-toolbar .match-events-toggle{margin:12px 0}.match-history-empty{text-align:center;padding:20px}.rivalry-next-meeting{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;margin:20px 0;border:1px solid #38718b;border-radius:10px;background:linear-gradient(115deg,#143b53,#0a2034)}.rivalry-next-meeting small,.rivalry-next-meeting strong{display:block}.rivalry-next-meeting small{color:#a7c4d8;margin-bottom:6px}.rivalry-next-meeting .btn{margin:0;white-space:nowrap}.rivalry-head-note{text-align:center;color:#a7c4d8;font-size:.8rem}
@media(max-width:560px){.match-history-card{padding:14px 10px}.match-history-scoreline{grid-template-columns:minmax(0,1fr) 22px 30px 22px minmax(0,1fr);gap:5px}.match-history-club{font-size:.8rem}.match-history-goals{font-size:1.3rem}.match-history-crest{width:40px;height:48px}.match-history-vs{font-size:.65rem;min-height:30px}.rivalry-next-meeting{flex-direction:column;text-align:center;padding:16px}.match-history-team .fixture-event-summary{font-size:.65rem}}
html[data-theme="light"] .match-history-card,html[data-theme="light"] .rivalry-next-meeting{background:linear-gradient(115deg,#f6fbff,#e7f1f8);border-color:#a7bfce;color:#18394c}html[data-theme="light"] .match-history-meta,html[data-theme="light"] .rivalry-head-note,html[data-theme="light"] .rivalry-next-meeting small,html[data-theme="light"] .match-history-assessment summary{color:#486477}html[data-theme="light"] .match-history-club,html[data-theme="light"] .match-history-goals{color:#164d72}html[data-theme="light"] .match-history-vs{background:#dcecf6;color:#254f6c;border-color:#9ebccd}html[data-theme="light"] .match-history-team .fixture-event-summary{color:#35566b}
.match-history-list.is-compact{gap:6px;max-width:none}
.is-compact .match-history-card{padding:9px 12px;border-radius:6px}
.is-compact .match-history-meta{margin-bottom:6px;gap:8px;font-size:.7rem}
.is-compact .match-history-outcome{width:20px;height:20px}
.is-compact .match-history-club{flex-direction:row;gap:8px;font-size:.85rem;line-height:1.35}
.is-compact .match-history-crest{width:24px;height:28px;flex:none}
.is-compact .match-history-goals{font-size:1.15rem}
.is-compact .match-history-vs{text-decoration:none;min-height:30px}
.is-compact a.match-history-vs:hover{background:#24516e;color:#fff}
.is-compact a.match-history-vs:focus-visible{outline:2px solid #ffd000;outline-offset:3px}
.profile-club-badge{display:inline-flex;max-width:100%;box-sizing:border-box;margin-top:12px;padding:8px 12px;border:1px solid #3e7baa;border-radius:8px;background:#0a2032;color:#e4f4ff!important;font-size:.8rem;font-weight:800;line-height:1.4;text-decoration:none!important;overflow-wrap:anywhere}
a.profile-club-badge:hover{background:#103c60;border-color:#78d3ff}
a.profile-club-badge:focus-visible{outline:2px solid #ffd000;outline-offset:3px}
.profile-club-badge.is-unattached{color:#afc9df!important;border-color:#41607d}
@media(max-width:560px){.is-compact .match-history-crest{display:none}.is-compact .match-history-card{padding:8px}.is-compact .match-history-club{font-size:.75rem}}

/* Both clubs share the full height of the result header. Events get their own row. */
.match-history-list.is-compact .match-history-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.4rem 2.8rem 2.4rem minmax(0, 1fr);
    grid-template-areas: "home meta meta meta away"
                         "home hg   vs   ag   away";
    column-gap: .5rem;
    align-items: center;
}
.is-compact .match-history-meta { grid-area: meta; }
.is-compact .match-history-scoreline { display: contents; }
.is-compact .match-history-team:first-child { grid-area: home; }
.is-compact .match-history-team:last-child { grid-area: away; }
.is-compact .match-history-goals { text-align: center; }
.is-compact .match-history-goals:first-of-type { grid-area: hg; }
.is-compact .match-history-goals:last-of-type { grid-area: ag; }
.is-compact .match-history-vs { grid-area: vs; }
.is-compact .match-history-events--home,
.is-compact .match-history-events--away {
    grid-row: 3;
    align-self: start;
    text-align: center;
    min-width: 0;
    overflow-wrap: anywhere;
}
.is-compact .match-history-events--home { grid-column: 1; }
.is-compact .match-history-events--away { grid-column: 5; }
@media (max-width: 560px) {
    .match-history-list.is-compact .match-history-card {
        grid-template-columns: minmax(0, 1fr) 1.25rem 1.8rem 1.25rem minmax(0, 1fr);
        column-gap: .2rem;
    }
    .is-compact .match-history-meta { gap: .2rem; }
    .is-compact .match-history-club { flex-direction: column; gap: .2rem; text-align: center; }
    .is-compact .match-history-crest { display: block; width: 20px; height: 24px; }
}
