.match-centre .mc-hub { --hub-bg:#121a23; --hub-line:#293745; --hub-muted:#adbdcb; --hub-accent:#ccf671; min-width:0; }
.mc-hub-back,.mc-hub-match-link { display:inline-flex;align-items:center;gap:.5rem;min-height:44px;font-weight:700; }
.mc-hub-back { color:var(--hub-muted);margin-bottom:.3rem; }
.mc-hub-list-match { position:relative; }
.mc-hub-list-match .mc-match-team a { position:relative;z-index:1; }
.mc-hub-match-link { color:#ccf671;min-height:36px;margin-top:.55rem;font-size:.82rem; }
.mc-hub-match-link::after { content:"";position:absolute;inset:0; }
.mc-hub a:focus-visible,.mc-hub-match-link:focus-visible { outline:2px solid #ccf671;outline-offset:3px; }
.mc-hub a:hover,.mc-hub-match-link:hover { color:#ccf671;text-decoration:underline; }
.mc-hub-hero,.mc-hub-block { background:var(--hub-bg);border:1px solid var(--hub-line);border-radius:14px;overflow:hidden;margin-bottom:1rem; }
.mc-hub-context { padding:.85rem 1.1rem;border-bottom:1px solid var(--hub-line);color:var(--hub-muted);font-size:.78rem;font-weight:700; }
.mc-hub-context span { padding:0 .4rem;color:var(--hub-accent); }
.mc-hub-scoreboard { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.7fr) minmax(0,1fr);align-items:center;gap:.6rem;text-align:center;padding:clamp(1rem,4vw,2.5rem) .75rem; }
.mc-hub-identity { display:inline-flex;align-items:center;gap:.55rem;font-weight:700;overflow-wrap:anywhere; }
.mc-hub-scoreboard .mc-hub-identity { display:flex;flex-direction:column;justify-self:center;text-align:center;gap:.65rem; }
.mc-hub-scoreboard .mc-hub-identity img,.mc-hub-club img { width:clamp(42px,8vw,76px);height:clamp(42px,8vw,76px);object-fit:contain; }
.mc-hub-scoreboard-middle { display:grid;justify-items:center;gap:.3rem;color:var(--hub-muted); }
.mc-hub-scoreboard-middle strong { color:#fff;font-size:clamp(1.4rem,5vw,2.8rem);line-height:1.1; }
.mc-hub-scoreboard-middle time,.mc-hub-scoreboard-middle small { font-size:.72rem; }
.mc-hub-club { display:flex;align-items:center;gap:1rem;padding:1.3rem; }
.mc-hub-club h3 { margin:.15rem 0 0;font-size:clamp(1.3rem,4vw,2rem); }
.mc-hub-tabs { display:flex;overflow-x:auto;border-top:1px solid var(--hub-line);padding:0 .65rem; }
.mc-hub-tabs a { flex:none;display:flex;align-items:center;min-height:48px;padding:0 .8rem;border-bottom:3px solid transparent;font-size:.82rem;font-weight:700; }
.mc-hub-tabs a[aria-current] { border-color:var(--hub-accent);color:var(--hub-accent); }
.mc-hub-block h4,.mc-hub-block h5 { margin:0;padding:.8rem 1rem;background:#192530;font-size:.9rem; }
.mc-hub-block h5 { font-size:.77rem;color:var(--hub-muted); }
.mc-hub-empty { margin:0;padding:1rem;color:var(--hub-muted);font-size:.9rem; }
.mc-hub-result { display:grid;grid-template-columns:minmax(0,9rem) 1fr auto;gap:.7rem;align-items:center;padding:.7rem 1rem;border-top:1px solid var(--hub-line); }
.mc-hub-result-meta { display:grid;color:var(--hub-muted);font-size:.75rem; }
.mc-hub-result-teams { min-width:0;font-size:.83rem; }
.mc-hub-result-teams div { display:flex;align-items:center;gap:.35rem;overflow-wrap:anywhere; }
.mc-hub-result-teams img,.mc-hub-standing img { width:20px;height:20px;object-fit:contain;flex:none; }
.mc-hub-result-score { white-space:nowrap;font-weight:700;font-size:.85rem; }
.mc-hub-result-score span { color:var(--hub-accent);margin-left:.25rem; }
.mc-hub-standing { width:100%;min-width:0!important; }
.mc-hub-standing .mc-hub-highlight th,.mc-hub-standing .mc-hub-highlight td { background:#223229;color:#e9ffb9; }
.mc-hub-squad { list-style:none;padding:0;margin:0; }
.mc-hub-squad li { display:flex;align-items:center;gap:.7rem;padding:.6rem 1rem;border-top:1px solid var(--hub-line);font-size:.86rem; }
.mc-hub-squad small { margin-left:auto;color:var(--hub-muted); }
.mc-hub-number { width:2rem;text-align:center;color:var(--hub-accent); }
@media(max-width:520px){
    .mc-hub-scoreboard .mc-hub-identity { font-size:.82rem; }
    .mc-hub-result { grid-template-columns:minmax(0,1fr) auto;gap:.35rem .5rem;padding:.6rem .75rem; }
    .mc-hub-result-meta { grid-column:1/-1;display:flex;justify-content:space-between;gap:.4rem; }
}
.mc-hub-club>.team-badge,.mc-hub-scoreboard .team-badge { width:clamp(44px,8vw,76px);height:clamp(44px,8vw,76px);font-size:1.35rem; }
.mc-hub-result-teams .team-badge,.mc-hub-standing .team-badge { width:22px;height:22px;flex:none; }
.mc-hub-scoreboard a .team-badge { border-color:#445968; }
.mc-hub-scoreboard a:hover .team-badge,.mc-hub-scoreboard a:focus-visible .team-badge { border-color:var(--hub-accent); }

/* Keep tab and filter navigation in view after a server-rendered page change. */
.match-centre :is(#mc-tabs,#mc-dates) { scroll-margin-block-start: 5.5rem; }
.mc-switcher a { min-width:0; }
@media (max-width: 600px) {
    .match-centre .mc-switcher {
        display:grid;
        grid-auto-flow:column;
        grid-auto-columns:minmax(0,1fr);
        gap:0;
        padding:0 .25rem;
        overflow:visible;
    }
    .match-centre .mc-switcher a {
        display:flex;
        align-items:center;
        justify-content:center;
        box-sizing:border-box;
        min-height:48px;
        padding:.35rem .12rem;
        font-size:clamp(.71rem,3.15vw,.84rem);
        line-height:1.2;
        text-align:center;
        white-space:normal;
        overflow-wrap:anywhere;
    }
    .mc-hub-result {
        grid-template-columns:minmax(0,1fr) auto;
        column-gap:.75rem;
        row-gap:.5rem;
        padding:.75rem;
    }
    .mc-hub-result-meta {
        grid-column:1/-1;
        display:flex;
        flex-wrap:wrap;
        align-items:baseline;
        column-gap:.75rem;
        row-gap:.2rem;
        font-size:.76rem;
    }
    .mc-hub-result-meta small { font-size:inherit; }
    .mc-hub-result-teams { display:grid;gap:.2rem;font-size:.875rem; }
    .mc-hub-result-teams div { gap:.45rem;min-height:32px; }
    .mc-hub-result-teams .team-badge,
    .mc-hub-result-teams .team-badge img { width:24px;height:24px; }
    .mc-hub-result-teams .team-badge { box-sizing:border-box; }
    .mc-hub-result-teams a {
        display:inline-flex;
        align-items:center;
        min-height:32px;
        line-height:1.3;
    }
    .mc-hub-result-score {
        display:inline-flex;
        align-items:center;
        justify-content:center;
        min-width:2.75rem;
        min-height:44px;
    }
}

html:has(#mc-tabs:target, #mc-dates:target) { scroll-behavior:auto; }

.mc-hub a.mc-hub-result {
    color:inherit;
    text-decoration:none;
    transition:background-color .15s ease;
}
.mc-hub a.mc-hub-result:hover,
.mc-hub a.mc-hub-result:focus-visible { background:#1b2a36; }
.mc-hub a.mc-hub-result:focus-visible { outline-offset:-3px; }
.mc-hub-result-teams { font-weight:650; }
.mc-hub-result-meta time { color:var(--text);font-weight:600; }
.mc-hub-result-meta small { color:var(--hub-muted); }
.mc-hub-result-score strong {
    display:inline-grid;place-items:center;
    min-width:2.2rem;
    min-height:1.85rem;
    border-radius:6px;
    padding:0 .4rem;
    background:#20313e;
}
.mc-hub-result-score span { font-size:1.25rem;line-height:1; }
@media(min-width:601px) {
    .mc-hub-result {
        grid-template-columns:minmax(10rem,20%) minmax(0,1fr) auto;
        gap:1.15rem;
        min-height:5rem;
        padding:.85rem 1.2rem;
    }
    .mc-hub-result-meta { gap:.2rem;font-size:.83rem; }
    .mc-hub-result-teams { display:grid;gap:.25rem;font-size:.94rem; }
    .mc-hub-result-teams div { gap:.6rem; }
    .mc-hub-result-score { display:flex;align-items:center;gap:.4rem; }
}
