@font-face {
    font-family: "FML Newsreader";
    src: url("newsreader-400-700-normal-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
    font-family: "FML Newsreader";
    src: url("newsreader-400-700-normal-latin-ext.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF,U+AB30-AB6F;
}

body.fml-matchday {
    --md-ink: #171a22;
    --md-muted: #535963;
    --md-paper: #fff;
    --md-soft: #f7f5ef;
    --md-line: #dbdbd7;
    --md-dark: #171a23;
    --md-yellow: #f7ce4d;
    --md-gold: #e7bb3d;
    --md-youth: #ae6f8e;
    --md-milestone: #2f659d;
    --md-record: var(--md-muted);
    --md-recognition: #966536;
    --md-achievement-edge: 4px;
    --md-status-done-bg: #e5f4e9;
    --md-status-done-ink: #1a623b;
    --md-status-action-bg: #fdf0c8;
    --md-status-action-ink: #694a04;
    --md-live: #c51f37;
    --md-result: #fff5d9;
    --md-sort: #fff1c3;
    --md-radius: 12px;
    --md-card-space: .75rem;
    --md-section-space: clamp(1.25rem, 2.4vw, 1.9rem);
    --md-heading-inset: clamp(.85rem, 2.8vw, 1.55rem);
    --md-heading-background: linear-gradient(120deg, #f6ca45, #ffe79a);
    --md-heading-line: #f1d486;
    --md-stat-value: clamp(1.06rem, 2.4vw, 1.5rem);
    --md-panel-inset: clamp(.875rem, 1.5vw, 1.25rem);
    --md-control-radius: 8px;
    --md-focus: #216176;
    --md-nav-hover: #694a05;
    --md-page: clamp(1.95rem, 4.3vw, 3.3rem);
    --md-section: clamp(1.3rem, 2.7vw, 1.85rem);
    --md-item: 1.06rem;
    --md-label: .94rem;
    --md-caption: .81rem;
    --md-font: Arial, Helvetica, sans-serif;
    --md-editorial: "FML Newsreader", Georgia, serif;
    background: var(--md-paper);
    color: var(--md-ink);
    font-family: var(--md-font);
}

body.fml-matchday #masthead [data-id="d1b2aea"],
body.fml-matchday .fml-matchday-brand-band {
    min-height: 62px !important;
    padding-block: .35rem !important;
    background: var(--md-yellow) !important;
}
body.fml-matchday #masthead :is([data-id="d1b2aea"], [data-id="fdd35b"], .ekit-menu-nav-link,
    .elementskit-dropdown) {
    transition: none !important;
    animation: none !important;
}
body.fml-matchday .fml-matchday-brand-link {
    display: inline-flex !important;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    color: var(--md-ink) !important;
    text-decoration: none !important;
}
body.fml-matchday .fml-matchday-brand-link img {
    width: 36px !important;
    height: 36px !important;
    object-fit: contain;
    mix-blend-mode: multiply;
}
body.fml-matchday .fml-matchday-brand-name {
    color: var(--md-ink);
    font: 800 1.16rem/1.15 var(--md-font);
    letter-spacing: -.04em;
    white-space: nowrap;
}
body.fml-matchday .fml-matchday-header a:focus-visible,
body.fml-matchday .fml-matchday-header button:focus-visible,
body.fml-matchday :is(.fml-mobile-news-header,.fml-mobile-news-menu) :is(a,button):focus-visible {
    outline: 2px solid var(--md-focus);
    outline-offset: 2px;
}
.fml-matchday-related-nav { display: none; }
body.fml-matchday .fml-matchday-related-nav {
    display: block;
    border-bottom: 1px solid var(--md-dark);
    background: var(--md-dark);
    color: var(--md-paper);
}
body.fml-matchday .fml-matchday-related-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 clamp(.65rem, 1.5vw, 1.25rem);
    width: min(calc(100% - var(--md-panel-inset) - var(--md-panel-inset)), 1140px);
    min-height: 44px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
body.fml-matchday .fml-matchday-related-links li { margin: 0; }
body.fml-matchday .fml-matchday-related-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--md-paper) !important;
    font: 700 var(--md-label)/1.3 var(--md-font);
    text-decoration: none;
}
body.fml-matchday .fml-matchday-related-links a:is(:hover, :focus-visible) {
    color: var(--md-yellow) !important;
}
body.fml-matchday .fml-matchday-related-links a:focus-visible {
    outline: 2px solid var(--md-yellow);
    outline-offset: -2px;
}
body.fml-matchday .fml-matchday-related-links a[aria-current="page"] {
    box-shadow: inset 0 -3px var(--md-yellow);
}
@media (min-width: 1025px) {
    body.fml-matchday #masthead :is(.elementor-element.fml-desktop-nav, [data-id="fdd35b"]) {
        padding-block: .25rem !important;
        border-bottom-color: var(--md-line) !important;
    }
    body.fml-matchday #masthead [data-id="fdd35b"] > .e-con:has(.elementskit-navbar-nav) {
        width: 100% !important;
    }
    body.fml-matchday #masthead [data-id="fdd35b"] .elementskit-menu-container:has(> .elementskit-navbar-nav) {
        height: auto !important;
    }
    body.fml-matchday #masthead .elementskit-navbar-nav {
        justify-content: flex-start !important;
        align-items: center;
        gap: clamp(.45rem, 1.4vw, 1.35rem);
        width: min(100%, 1140px);
        height: auto !important;
        min-height: 46px;
        margin-inline: auto !important;
    }
    body.fml-matchday #masthead .elementskit-navbar-nav > li > a.ekit-menu-nav-link {
        min-height: 44px;
        height: auto !important;
        padding: .6rem .1rem !important;
        border: 0 !important;
        border-radius: 0 !important;
        color: var(--md-ink) !important;
        font: 700 .94rem/1.2 var(--md-font) !important;
        white-space: nowrap;
    }
    body.fml-matchday #masthead [data-id="fdd35b"] .elementskit-navbar-nav > li > a.ekit-menu-nav-link:is(:hover,:focus-visible) {
        color: var(--md-nav-hover) !important;
        background: transparent;
    }
    body.fml-matchday #masthead .elementskit-navbar-nav > li[data-fml-current-section] > a.ekit-menu-nav-link,
    body.fml-matchday #masthead .elementskit-navbar-nav:not(.fml-matchday-primary-menu) >
        li:is(.current-menu-item, .current-menu-ancestor) > a.ekit-menu-nav-link {
        background: transparent !important;
        box-shadow: inset 0 -3px var(--md-gold) !important;
    }
    body.fml-matchday #masthead [data-id="fdd35b"] .elementskit-navbar-nav :is(.elementskit-dropdown, .elementskit-submenu-indicator) {
        display: none !important;
    }
    body.fml-matchday #masthead [data-id="fdd35b"] .elementskit-navbar-nav > .fml-manager-sign-in-menu-item {
        margin-inline-start: auto !important;
        padding-inline-start: .5rem;
        border-inline-start: 1px solid var(--md-line);
    }
    body.fml-matchday #masthead [data-id="fdd35b"] .elementskit-navbar-nav
        :is(.fml-manager-sign-in-link,.fml-desktop-menu-search,.fml-language-switch a) {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        height: auto !important;
        padding: 0 !important;
        border-radius: 8px;
    }
    /* Reserve the search control's slot while the desktop header starts up. */
    body.fml-matchday #masthead [data-id="fdd35b"] .elementskit-navbar-nav:not(:has(.fml-desktop-menu-search))::after {
        content: "";
        display: block;
        flex: 0 0 44px;
    }
    body.fml-matchday .fml-desktop-nav-pinned .fml-matchday-primary-menu > .fml-desktop-nav-home {
        flex: 0 0 44px;
        width: 44px;
    }
}
@media (max-width: 1024px) {
    body.fml-matchday .fml-matchday-related-nav {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: var(--md-panel-inset);
        scrollbar-width: none;
    }
    body.fml-matchday .fml-matchday-related-nav::-webkit-scrollbar { display: none; }
    body.fml-matchday .fml-matchday-related-links {
        box-sizing: border-box;
        flex-wrap: nowrap;
        gap: 0 1rem;
        width: max-content;
        min-width: 100%;
        padding-inline: var(--md-panel-inset);
        white-space: nowrap;
    }
    html:has(body.fml-matchday [data-fml-mobile-news-header]) {
        scroll-padding-block-start: var(--md-mobile-header-offset, 0px);
    }
    body.fml-matchday .fml-matchday-header:has(.fml-mobile-news-logo-host) {
        position: sticky !important;
        top: var(--md-mobile-header-top, 0px) !important;
        z-index: 9999;
    }
    body.fml-matchday.fml-mobile-menu-open .fml-matchday-header:has(.fml-mobile-news-logo-host) {
        position: fixed !important;
        inset-inline: 0 !important;
        z-index: 2147483646;
    }
    body.fml-matchday .fml-report-nav[role="tablist"] { top: var(--md-mobile-header-offset, 0px); }
    body.fml-matchday .fml-matchday-brand-band { min-height: 56px !important; }
    body.fml-matchday .fml-matchday-brand-link { gap: .35rem; }
    body.fml-matchday .fml-matchday-brand-link img { width: 28px !important; height: 28px !important; }
    body.fml-matchday .fml-matchday-brand-name { font-size: .92rem; }
    body.fml-matchday .fml-mobile-news-menu-button,
    body.fml-matchday .fml-mobile-news-user { width: 44px !important; height: 44px !important; }
    body.fml-matchday .fml-mobile-news-menu-button { margin-left: 10px !important; }
    body.fml-matchday .fml-mobile-news-header:has(> .fml-app-navigation) {
        grid-template-columns: 96px minmax(0, 1fr) 56px;
    }
    body.fml-matchday .fml-mobile-news-header:has(> .fml-app-navigation) .fml-mobile-news-menu-button {
        margin-left: 52px !important;
    }
    body.fml-matchday .fml-matchday-brand-band:has(> .fml-mobile-news-header > .fml-app-navigation) > .e-con-inner {
        box-sizing: border-box;
        padding-inline: 90px 44px;
    }
    body.fml-matchday .fml-mobile-news-user { margin-right: 10px !important; }
    body.fml-matchday .fml-mobile-news-menu-button span:not(.screen-reader-text) { width: 22px; height: 2px; }
    body.fml-matchday .fml-mobile-news-user svg { width: 24px; height: 24px; }
    body.fml-matchday .fml-mobile-news-menu {
        background: var(--md-soft) !important;
        padding-inline: 1rem !important;
    }
    body.fml-matchday .fml-mobile-news-menu-list > li {
        background: var(--md-paper);
        border-color: var(--md-line);
        padding-inline: .65rem;
    }
    body.fml-matchday .fml-mobile-news-menu-list > li[data-fml-current-section] > a,
    body.fml-matchday .fml-mobile-news-menu-list a[aria-current="page"] { color: var(--md-nav-hover) !important; }
    body.fml-matchday .fml-mobile-news-menu .fml-mobile-menu-search {
        padding: .7rem;
        border: 1px solid var(--md-line);
        border-radius: 8px;
        background: var(--md-paper);
    }
}

body.fml-matchday :is(.fml-home, .fml-public-card, .fml-archive-heading, .fml-index-app, #fml-news-editorial,
    .fml-rules, .fml-news-page, .fml-transfer-directory, .fml-player-directory, .fml-rulebook-tools) {
    --fml-text: var(--md-ink);
    --fml-muted: var(--md-muted);
    --fml-yellow: var(--md-yellow);
    color: var(--md-ink);
    font-family: var(--md-font);
}

body.fml-matchday :is(.entry-title, .fml-archive-heading h1, .fml-index-masthead h1,
    #fml-news-editorial .masthead h1, .fml-news-section-masthead h1, .fml-forecast-hub .fc-header h1, .fml-managers-hero h1) {
    font-family: var(--md-font);
    font-size: var(--md-page);
    line-height: 1.09;
    letter-spacing: -.06em;
    font-weight: 800;
}

@media (max-width: 767px) {
    html body.fml-matchday:not(.wp-admin) :is(h1, .entry-title, .page-title) {
        -webkit-hyphens: none;
        hyphens: none;
        word-break: normal;
        overflow-wrap: break-word;
    }
}

body.fml-matchday :is(.fml-public-section, .fml-public-card, .fml-rulebook-chapters, .fml-match-calendar,
    .fml-home-section, #fml-news-editorial) h2 {
    font-size: var(--md-section);
    line-height: 1.17;
    letter-spacing: -.036em;
}

body.fml-matchday :is(.fml-directory-name :is(h2, h4), .fml-portal-group-rows > details > summary, .fml-portal-nav-row,
    .fml-rulebook-entry > summary, .fml-report-card h3, .fml-report-card h4) {
    font-size: var(--md-item);
    line-height: 1.28;
}

body.fml-matchday :is(.fml-archive-heading, .fml-index-masthead, #fml-news-editorial .masthead,
    .fml-news-section-masthead, .fml-forecast-hub .fc-header, .fml-managers-hero),
body.fml-matchday.fml-matchday-native-heading main > .page-header,
body.fml-matchday .fml-matchday-standard-heading {
    background: var(--md-heading-background);
    color: var(--md-ink);
    border: 1px solid var(--md-heading-line);
    border-radius: 14px;
    padding: var(--md-heading-inset);
}
body.fml-matchday main:has(> .page-content > * > .fml-matchday-page-heading) > .page-header {
    display: none;
}
body.fml-matchday :is(.fml-matchday-page-heading, .fml-forecast-hub .fc-header),
body.fml-matchday.fml-matchday-native-heading main > .page-header,
body.fml-matchday .fml-matchday-standard-heading {
    margin: var(--md-section-space) 0;
}
body.fml-matchday .fml-matchday-page-heading {
    display: grid;
    gap: calc(var(--md-card-space) / 2);
}
body.fml-matchday .fml-matchday-page-heading :is(h1,p),
body.fml-matchday.fml-matchday-native-heading main > .page-header h1,
body.fml-matchday .fml-matchday-standard-heading h1 {
    margin: 0;
    color: var(--md-ink);
}
body.fml-matchday .fml-matchday-page-heading p { font: 400 1rem/1.55 var(--md-font); }
body.fml-matchday .fml-forecast-hub {
    --fc-ink: var(--md-ink);
    --fc-muted: var(--md-muted);
    --fc-line: var(--md-line);
    --fc-paper: var(--md-soft);
    --fc-gold: var(--md-yellow);
    font-family: var(--md-font);
}

/* Keep section pages aligned with their related navigation. */
body.fml-matchday-section-page #content.site-main,
body.fml-matchday #content.site-main:has(> .page-content > .fml-match-archive > .fml-matches-heading) {
    display: flow-root;
    margin-block-start: 0;
    padding-block-start: var(--md-section-space);
}
@media (max-width: 767px) {
    body.fml-matchday-section-page #content.site-main,
    body.fml-matchday #content.site-main:has(> .page-content > .fml-match-archive > .fml-matches-heading) {
        padding-inline: 1rem;
    }
}
body.fml-matchday-section-page #content > .page-header,
body.fml-matchday-section-page #content :is(.fml-matchday-page-heading, .fml-index-masthead, .fml-managers-hero),
body.fml-matchday #content .fml-match-archive > .fml-matches-heading {
    margin: 0 0 var(--md-section-space);
}
body.fml-matchday-section-page :is(.fml-index-masthead, .fml-managers-hero) {
    display: grid;
    gap: calc(var(--md-card-space) / 2);
    max-width: none;
    min-height: 0;
}
body.fml-matchday-section-page :is(.fml-index-app .fml-index-masthead, .fml-managers-hero) :is(h1,p),
body.fml-matchday #content .fml-match-archive > .fml-matches-heading h1 {
    margin: 0;
    color: var(--md-ink);
}
body.fml-matchday-section-page :is(.fml-index-masthead, .fml-managers-hero) p { font: 400 1rem/1.55 var(--md-font); }
body.fml-matchday.fml-matchday-section-page .fml-index-masthead .fml-index-brand {
    line-height: 1.09;
    margin: 0;
}
body.fml-matchday-section-page .fml-index-masthead .fml-index-brand-logo {
    width: auto;
    height: 1.09em;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: left center;
}
body.fml-matchday-section-page #content :is(.fml-managers-index, .fml-season-hub),
body.fml-matchday.post-type-archive-fml_news #content > .fml-news-page {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    margin-block-start: 0;
    padding-inline: 0;
}
body.fml-matchday.post-type-archive-fml_news :is(#fml-news-editorial .news-body, .fml-news-archive) {
    max-width: none;
    padding-inline: 0;
}
body.fml-matchday.post-type-archive-fml_news #fml-news-editorial .masthead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--md-card-space);
    margin-inline: 0;
}
body.fml-matchday.post-type-archive-fml_news #fml-news-editorial .masthead a { align-self: center; }
body.fml-matchday.post-type-archive-fml_news .fml-news-section-masthead > h1 { margin: 0; }
body.fml-matchday-section-page .fml-season-profile .fml-season-cover-hero {
    background: var(--md-heading-background);
    border: 1px solid var(--md-heading-line);
    border-radius: 14px;
}
body.fml-matchday #content .fml-match-archive:has(> .fml-matches-heading) {
    margin: 0 0 var(--md-section-space);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}
body.fml-matchday #content .fml-match-archive:has(> .fml-matches-heading)::before { content: none; }
body.fml-matchday #content > .page-content > p:has(> style):has(+ .fml-match-archive > .fml-matches-heading) {
    margin: 0;
}
body.fml-matchday .fml-match-archive .fml-public-toolbar input[type="radio"] {
    min-width: 0;
    width: 1px;
}

body.fml-matchday .fml-home .fml-home-hero h1 {
    font-family: var(--md-font);
    font-size: clamp(2.85rem, 6.45vw, 5.5rem);
    letter-spacing: -.065em;
    line-height: .92;
}
body.fml-matchday .fml-home-hero {
    background: linear-gradient(113deg, var(--md-yellow), #fbe493);
    border-radius: 14px;
    padding: clamp(1.2rem, 4vw, 3.15rem);
}
body.fml-matchday .fml-home-hero--feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.2rem, 4vw, 3.2rem);
}
body.fml-matchday .fml-home-hero-mark {
    opacity: .13;
    pointer-events: none;
}
body.fml-matchday .fml-home-hero-links {
    gap: .65rem .9rem;
}
body.fml-matchday.fml-league-info-page .fml-league-info--join .fml-home-hero {
    padding: clamp(1.2rem, 3.6vw, 2.6rem);
    color: var(--md-ink);
}
body.fml-matchday.fml-league-info-page .fml-league-info--join .fml-home-hero h1 {
    max-width: 24ch;
    color: var(--md-ink);
    font-size: var(--md-page);
    line-height: 1.02;
}
body.fml-matchday.fml-league-info-page .fml-league-info--join .fml-home-hero :is(p, .fml-home-hero-mark) {
    color: var(--md-ink);
}
body.fml-matchday.fml-league-info-page .fml-league-info--join .fml-home-hero :is(.fml-home-kicker, h1 span) {
    color: var(--md-nav-hover);
}
body.fml-matchday .fml-info-hero-actions {
    margin-block-start: 1rem;
}
body.fml-matchday .fml-league-info .fml-info-hero-actions :is(.fml-info-contact-link, .fml-info-share) {
    margin-block-start: 0;
}
body.fml-matchday .fml-league-info .fml-info-hero-actions .fml-info-contact-link {
    border-radius: var(--md-control-radius);
    background: var(--md-dark);
    color: var(--md-paper);
}
body.fml-matchday .fml-league-info .fml-info-hero-actions .fml-info-contact-link:hover {
    text-decoration: underline;
}
body.fml-matchday .fml-league-info .fml-info-hero-actions .fml-info-share button {
    border-color: var(--md-nav-hover);
    border-radius: var(--md-control-radius);
    background: transparent;
    color: var(--md-ink);
}
body.fml-matchday .fml-league-info .fml-info-hero-actions .fml-info-share button:hover {
    background: var(--md-paper);
}
body.fml-matchday .fml-league-info .fml-info-hero-actions :is(a, button):focus-visible {
    outline: 2px solid var(--md-focus);
    outline-offset: 3px;
}
body.fml-matchday .fml-home-match-centre-link {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    min-height: 44px;
    padding: .55rem .75rem;
    border: 1px solid #76612b;
    border-radius: 8px;
    color: var(--md-ink);
    font-size: .86rem;
    font-weight: 750;
    text-decoration: none;
}
body.fml-matchday .fml-home-match-centre-link:hover { background: #ffffff4d; }
body.fml-matchday .fml-home-hero-feature {
    position: relative;
    z-index: 1;
    display: block;
    overflow: hidden;
    min-width: 0;
    border: 1px solid #79622e70;
    border-radius: var(--md-radius);
    background: var(--md-paper);
    box-shadow: 0 .6rem 1.4rem #58421722;
    color: var(--md-ink);
    text-decoration: none;
}
body.fml-matchday .fml-home-hero-feature img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
body.fml-matchday .fml-home-hero-feature-caption {
    display: grid;
    gap: .25rem;
    padding: .7rem .9rem;
}
body.fml-matchday .fml-home-hero-feature-caption > span {
    font-size: var(--md-caption);
    color: var(--md-muted);
}
body.fml-matchday .fml-home-hero-feature-caption > strong {
    font-family: var(--md-editorial);
    font-size: clamp(1.12rem, 2vw, 1.45rem);
    line-height: 1.14;
}
body.fml-matchday .fml-home-hero-feature:hover strong {
    text-decoration: underline;
    text-underline-offset: .16em;
}
body.fml-matchday .fml-home-news-stories {
    display: grid;
    gap: 1rem;
    min-width: 0;
}
body.fml-matchday .fml-home-news-stories .fml-news-card {
    overflow: hidden;
    border: 1px solid var(--md-line);
    border-top: 3px solid var(--md-gold);
    border-radius: var(--md-radius);
    background: var(--md-soft);
}
body.fml-matchday .fml-home-news-stories .fml-news-card > a {
    display: block;
    color: var(--md-ink);
    text-decoration: none;
}
body.fml-matchday .fml-home-news-stories .fml-news-card > a:focus-visible { outline-offset: -4px; }
body.fml-matchday .fml-home-news-stories .fml-news-card figure { margin: 0; }
body.fml-matchday .fml-home-news-stories .fml-news-card img {
    display: block;
    width: 100%;
    max-height: 15rem;
    object-fit: cover;
}
body.fml-matchday .fml-home-news-stories .fml-news-card-copy {
    display: grid;
    gap: .5rem;
    padding: clamp(.85rem, 2.1vw, 1.25rem);
}
body.fml-matchday .fml-home-news-stories .fml-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .65rem;
    color: var(--md-muted);
    font-size: var(--md-caption);
}
body.fml-matchday .fml-home-news-stories .fml-news-card-copy h3 {
    font-size: clamp(1.3rem, 2.4vw, 1.85rem);
    line-height: 1.12;
}
body.fml-matchday .fml-home-news-stories .fml-news-card > a:hover h3 { text-decoration: underline; }
@media (max-width: 780px) {
    body.fml-matchday .fml-home-hero--feature { grid-template-columns: minmax(0, 1fr); }
    body.fml-matchday .fml-home-hero-feature img { aspect-ratio: 2 / 1; }
}
body.fml-matchday #colophon .fml-site-footer {
    --footer-ink: var(--md-dark);
    --footer-gold: var(--md-yellow);
    font-family: var(--md-font);
}
body.fml-matchday #colophon .fml-site-footer :is(.fml-site-footer-links a, .fml-site-footer-settings button, [data-fml-copy]) {
    color: var(--footer-text);
    transition: none;
}
body.fml-matchday #colophon .fml-site-footer :is(.fml-site-footer-links a, .fml-site-footer-settings button, [data-fml-copy]):is(:hover,:focus-visible) {
    color: var(--footer-gold);
    text-decoration: underline;
}
body.fml-matchday #colophon .fml-site-footer :is(a,button,summary):focus-visible {
    outline: 2px solid var(--footer-gold);
    outline-offset: 4px;
}

body.fml-matchday :is(.fml-directory-view, .fml-managers-status, .fml-news-categories, .news-topics,
    .fml-match-status-tabs, .fml-portal-group-rows) {
    border-color: var(--md-line);
    border-radius: var(--md-radius);
    background: var(--md-soft);
}

body.fml-matchday :is(.fml-directory-view, .fml-managers-status, .fml-news-categories, .news-topics,
    .fml-match-status-tabs, .fml-language-switch) :is([aria-current="page"], [aria-current="true"], [aria-pressed="true"]) {
    background: var(--md-yellow);
    color: var(--md-ink);
    border-color: var(--md-yellow);
    border-radius: var(--md-control-radius);
}

body.fml-matchday .fml-directory-view > a:is(:hover, :focus-visible) {
    color: var(--md-ink);
}

body.fml-matchday :is(#fml-records-results > .fml-records-nav, #fml-award-results > .fml-awards-nav) {
    flex-wrap: wrap;
    gap: var(--md-card-space);
}
body.fml-matchday :is(#fml-records-results > .fml-records-nav, #fml-award-results > .fml-awards-nav) a {
    min-height: 44px;
    border: 1px solid var(--md-line);
    border-radius: var(--md-control-radius);
    background: var(--md-paper);
    color: var(--md-ink) !important;
    font: 750 var(--md-label)/1.3 var(--md-font);
    text-decoration: none;
}
body.fml-matchday :is(#fml-records-results > .fml-records-nav, #fml-award-results > .fml-awards-nav)
    a:is([aria-current="page"], [aria-current="true"]) {
    background: var(--md-yellow);
    border-color: var(--md-yellow);
    box-shadow: none;
}
body.fml-matchday :is(#fml-records-results > .fml-records-nav, #fml-award-results > .fml-awards-nav) a:focus-visible {
    outline: 2px solid var(--md-focus);
    outline-offset: -3px;
}

/* Page categories share a single row. Pagination remains separate. */
body.fml-matchday :is(.fml-records > .fml-records-nav, .fml-awards > .fml-awards-nav, .fml-milestone-nav,
    .fml-stats-options, .fml-forecast-hub .fc-tabs, .fml-rulebook-views, .fml-match-archive-tabs, .fml-season-tabs,
    :is(#fml-news-editorial, .fml-draw-page) .news-topics, .fml-team-profile .fml-team-tabs, nav[data-fml-manager-tabs]) {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: .25rem;
    margin: var(--md-category-space-before, 0) 0 var(--md-category-space-after, var(--md-card-space));
    padding: .25rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border: 1px solid var(--md-line);
    border-radius: var(--md-radius);
    background: var(--md-soft);
    scrollbar-width: thin;
}
body.fml-matchday :is(.fml-team-profile .fml-team-tabs, nav[data-fml-manager-tabs]) {
    --md-category-space-before: var(--md-card-space);
}
body.fml-matchday .fml-forecast-hub .fc-tabs {
    --md-category-space-after: var(--md-section-space);
}
body.fml-matchday .fml-competition-series-hero + .fml-stats-history-nav {
    --md-category-space-before: var(--md-section-space);
}
body.fml-matchday :is(.fml-records > .fml-records-nav, .fml-awards > .fml-awards-nav, .fml-milestone-nav,
    .fml-stats-options, .fml-forecast-hub .fc-tabs, .fml-rulebook-views, .fml-match-archive-tabs, .fml-season-tabs,
    :is(#fml-news-editorial, .fml-draw-page) .news-topics, .fml-team-profile .fml-team-tabs, nav[data-fml-manager-tabs]) > :is(a, button) {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: .4rem .85rem;
    border: 1px solid transparent;
    border-radius: var(--md-control-radius);
    background: transparent;
    color: var(--md-ink) !important;
    box-shadow: none;
    font: 750 var(--md-label)/1.3 var(--md-font);
    text-decoration: none;
    white-space: nowrap;
}
body.fml-matchday :is(.fml-records > .fml-records-nav, .fml-awards > .fml-awards-nav, .fml-milestone-nav,
    .fml-stats-options, .fml-forecast-hub .fc-tabs, .fml-rulebook-views, .fml-match-archive-tabs, .fml-season-tabs,
    :is(#fml-news-editorial, .fml-draw-page) .news-topics, .fml-team-profile .fml-team-tabs, nav[data-fml-manager-tabs]) > :is(a, button):hover {
    background: var(--md-paper);
}
body.fml-matchday :is(.fml-records > .fml-records-nav, .fml-awards > .fml-awards-nav, .fml-milestone-nav,
    .fml-stats-options, .fml-forecast-hub .fc-tabs, .fml-rulebook-views, .fml-match-archive-tabs, .fml-season-tabs,
    :is(#fml-news-editorial, .fml-draw-page) .news-topics, .fml-team-profile .fml-team-tabs, nav[data-fml-manager-tabs]) > :is(a, button):is([aria-current="page"], [aria-current="true"], [aria-selected="true"]) {
    border-color: var(--md-yellow);
    background: var(--md-yellow);
}
body.fml-matchday :is(.fml-records > .fml-records-nav, .fml-awards > .fml-awards-nav, .fml-milestone-nav,
    .fml-stats-options, .fml-forecast-hub .fc-tabs, .fml-rulebook-views, .fml-match-archive-tabs, .fml-season-tabs,
    :is(#fml-news-editorial, .fml-draw-page) .news-topics, .fml-team-profile .fml-team-tabs, nav[data-fml-manager-tabs]) > :is(a, button):focus-visible {
    outline: 2px solid var(--md-focus);
    outline-offset: -3px;
}

/* Filter tools on public pages share the same inset, controls and type. */
body.fml-matchday .fml-public-card { border-color: var(--md-line); }
body.fml-matchday .fml-public-card::before { content: none; }
body.fml-matchday [data-fml-milestones] > .fml-public-card {
    padding: var(--md-panel-inset);
    border-radius: var(--md-radius);
    background: var(--md-paper);
}
body.fml-matchday :is(.fml-rulebook-tools, .fml-index-filter-drawer, .fml-calendar-tools, .fw-social-filter, .fml-managers-tools,
    .fml-public-card.fml-directory-tools, .fml-public-card.fml-stats-controls, .fml-milestone-filters, .fml-records-filters,
    .fml-awards > .fml-public-toolbar, .fml-forecast-hub .fc-form, .fml-analytics-compare-form, .fml-analytics-all .fml-public-toolbar) {
    box-sizing: border-box;
    border: 1px solid var(--md-line) !important;
    border-radius: var(--md-radius) !important;
    background: var(--md-soft) !important;
}
body.fml-matchday :is(.fml-rules .fml-rulebook-tools, .fml-calendar-tools, .fw-social-filter, .fml-managers-tools,
    .fml-public-card.fml-directory-tools, .fml-public-card.fml-stats-controls, .fml-milestone-filters, .fml-records-filters,
    .fml-awards > .fml-public-toolbar, .fml-forecast-hub .fc-form, .fml-analytics-compare-form, .fml-analytics-all .fml-public-toolbar) {
    padding: var(--md-panel-inset) !important;
}
body.fml-matchday .fml-index-filter-drawer > :is(summary, .fml-index-filters) { padding: var(--md-panel-inset); }
body.fml-matchday :is(.fml-public-card.fml-directory-tools, .fml-public-card.fml-stats-controls)::before { content: none; }
body.fml-matchday :is(.fml-directory-tools, .fml-stats-controls) > h2 {
    margin: 0 0 var(--md-card-space);
    color: var(--md-ink);
    font: 800 var(--md-section)/1.17 var(--md-font);
    letter-spacing: -.036em;
}
body.fml-matchday :is(.fml-directory-filters, .fml-transfer-filter-fields, .fml-index-filters, .fml-rulebook-toolbar, .fml-rulebook-filter-fields,
    .fml-calendar-tools form, .fml-milestone-filters, .fml-records-filters, .fml-awards > .fml-public-toolbar,
    .fml-forecast-hub .fc-form, .fml-managers-tools, .fml-managers-filters) { gap: var(--md-card-space); }
body.fml-matchday .fml-rules .fml-rulebook-tools { gap: var(--md-card-space); }
body.fml-matchday .fml-rules .fml-rulebook-tools .fml-rulebook-about { margin-inline-start: auto; }
body.fml-matchday .fml-rulebook-options > .fml-rulebook-filters[open] { grid-row: 1; }
body.fml-matchday :is(.fml-rulebook-tools, .fml-index-filter-drawer, .fml-calendar-tools, .fw-social-filter, .fml-managers-tools,
    .fml-public-card.fml-directory-tools, .fml-public-card.fml-stats-controls, .fml-milestone-filters, .fml-records-filters,
    .fml-awards > .fml-public-toolbar, .fml-forecast-hub .fc-form, .fml-analytics-compare-form, .fml-analytics-all .fml-public-toolbar, .fml-portal-eafc-link-edit) label {
    color: var(--md-ink);
    font: 750 var(--md-label)/1.35 var(--md-font);
}
body.fml-matchday :is(.fml-rulebook-tools, .fml-index-filter-drawer, .fml-calendar-tools, .fw-social-filter, .fml-managers-tools,
    .fml-public-card.fml-directory-tools, .fml-public-card.fml-stats-controls, .fml-milestone-filters, .fml-records-filters,
    .fml-awards > .fml-public-toolbar, .fml-forecast-hub .fc-form, .fml-analytics-compare-form, .fml-analytics-all .fml-public-toolbar, .fml-portal-eafc-link-edit)
    :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="file"]) {
    box-sizing: border-box;
    min-width: 0;
    min-height: 44px;
    font: 500 1rem/1.25 var(--md-font);
    border: 1px solid var(--md-line) !important;
    border-radius: var(--md-control-radius) !important;
    background-color: var(--md-paper) !important;
    color: var(--md-ink) !important;
}
body.fml-matchday :is(.fml-rulebook-tools, .fml-index-filter-drawer, .fml-calendar-tools, .fw-social-filter, .fml-managers-tools,
    .fml-public-card.fml-directory-tools, .fml-public-card.fml-stats-controls, .fml-milestone-filters, .fml-records-filters,
    .fml-awards > .fml-public-toolbar, .fml-forecast-hub .fc-form, .fml-analytics-compare-form, .fml-analytics-all .fml-public-toolbar, .fml-portal-eafc-link-edit)
    :is(a,button,input,select,summary):focus-visible {
    outline: 2px solid var(--md-focus) !important;
    outline-offset: 2px;
}
body.fml-matchday :is(.fml-directory-filter-actions, .fml-index-filter-actions) a {
    border: 1px solid var(--md-line) !important;
    border-radius: var(--md-control-radius);
    background: var(--md-paper);
    color: var(--md-ink) !important;
    text-decoration: none !important;
}
body.fml-matchday :is(.fml-directory-filter-actions, .fml-index-filter-actions) a:is(:hover,:focus-visible) {
    background: var(--md-result);
    text-decoration: underline !important;
}
body.fml-matchday .fml-records-filters > :is(button, a) {
    border-radius: var(--md-control-radius);
}
body.fml-matchday .fml-records-filters > a {
    border-color: var(--md-line);
    background: var(--md-paper);
    color: var(--md-ink);
}
body.fml-matchday :is(.fml-analytics-refresh, .fml-rules, .fml-clause-page, .fw-varified5.fw-social-page) {
    padding-block-end: var(--md-section-space);
}
body.fml-matchday .fml-analytics-refresh {
    display: grid;
    gap: var(--md-section-space);
}
body.fml-matchday .fml-analytics-refresh > * { min-width: 0; margin: 0; }
body.fml-matchday .fml-analytics-question {
    display: grid;
    gap: var(--md-card-space);
    padding: var(--md-panel-inset);
    border: 1px solid var(--md-line);
    border-top: 3px solid var(--md-gold);
    border-radius: var(--md-radius);
}
body.fml-matchday .fml-analytics-question > :is(h2, p, form, details) { margin: 0; }
body.fml-matchday .fml-analytics-question > h2 {
    font: 800 var(--md-section)/1.17 var(--md-font);
    letter-spacing: -.036em;
}
body.fml-matchday .fml-analytics-question > p { max-width: 72ch; color: var(--md-muted); font-size: var(--md-label); }
body.fml-matchday .fml-stats .fml-analytics-compare-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    align-items: end;
    gap: var(--md-card-space);
}
body.fml-matchday .fml-analytics-evidence {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--md-card-space);
}
body.fml-matchday .fml-analytics-evidence section { min-width: 0; }
body.fml-matchday .fml-analytics-evidence h3 { margin: 0; font: 750 var(--md-item)/1.3 var(--md-font); }
body.fml-matchday .fml-analytics-question > .fml-analytics-pair {
    width: 100%;
    table-layout: fixed;
    margin: 0;
    border: 1px solid var(--md-line);
    border-radius: var(--md-radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}
body.fml-matchday .fml-analytics-pair :is(th, td) {
    padding: .5rem;
    border-color: var(--md-line) !important;
    font-size: var(--md-label);
    white-space: normal;
    overflow-wrap: anywhere;
}
body.fml-matchday .fml-analytics-pair th:first-child { text-align: start; }
body.fml-matchday .fml-analytics-pair :is(th:not(:first-child), td) { text-align: center; }
body.fml-matchday .fml-analytics-pair td { font-weight: 750; font-variant-numeric: tabular-nums; }
body.fml-matchday .fml-analytics-pair tbody :is(th, td) {
    background: var(--md-paper) !important;
    color: var(--md-ink) !important;
}
body.fml-matchday .fml-analytics-pair tbody tr:nth-child(even) > * { background: var(--md-soft) !important; }
body.fml-matchday .fml-analytics-pair a { color: var(--md-ink) !important; }
body.fml-matchday .fml-analytics-pair a:is(:hover, :focus-visible) { color: var(--md-nav-hover) !important; }
body.fml-matchday .fml-analytics-pair .fml-comparison-team { justify-content: center; min-height: 44px; white-space: normal; }
body.fml-matchday .fml-analytics-pair .fml-comparison-team-full { display: inline; }
body.fml-matchday .fml-analytics-pair .fml-comparison-team-short { display: none; }
@media (max-width: 760px) {
    body.fml-matchday .fml-stats .fml-analytics-compare-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.fml-matchday .fml-analytics-compare-form button { grid-column: 1 / -1; justify-self: start; }
    body.fml-matchday .fml-analytics-evidence { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
    body.fml-matchday .fml-analytics-pair .fml-comparison-team { flex-direction: column; gap: .2rem; }
    body.fml-matchday .fml-analytics-pair .fml-comparison-team-full { display: none; }
    body.fml-matchday .fml-analytics-pair .fml-comparison-team-short { display: inline; }
    body.fml-matchday .fml-analytics-pair :is(th, td) { padding: .35rem; font-size: var(--md-caption); }
}

body.fml-matchday :is(.fml-match-calendar, .fml-public-transfer-form) :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="hidden"]) {
    font-family: var(--md-font);
    font-size: 1rem;
    min-height: 44px;
    border-radius: var(--md-control-radius);
}
@media (max-width: 560px) {
    body.fml-matchday .fml-rules :is(.fml-rulebook-toolbar, .fml-rulebook-filter-fields) {
        grid-template-columns: minmax(0,1fr);
    }
}

body.fml-matchday :is(.fml-match-calendar, .fml-transfer-filter, .fml-index-app, .fml-rulebook-tools,
    .fml-portal-group-rows, .fml-transfer-summary) :is(button, summary) {
    touch-action: manipulation;
}

body.fml-matchday :is(.fml-directory-card, .fml-home-card, .fml-news-card, .fml-fixture-card,
    .fml-index-scroll, .fml-rulebook-entry, .fml-manager-collapsible) {
    border-color: var(--md-line);
    border-radius: var(--md-radius);
}

body.fml-matchday :is(.fml-directory-card, .fml-home-card)[data-matchday-squad] {
    --md-squad: var(--md-gold);
    --md-squad-on-dark: var(--md-yellow);
    --md-squad-surface: #f3ebd2;
    --md-squad-ink: #574213;
    border-top: 3px solid var(--md-squad);
}
body.fml-matchday :is(.fml-directory-card, .fml-home-card)[data-matchday-squad="u21"] {
    --md-squad: var(--md-youth);
    --md-squad-on-dark: #efbdd0;
    --md-squad-surface: #f3e7ef;
    --md-squad-ink: #63314d;
}
body.fml-matchday .fml-directory-card[data-matchday-squad] {
    --directory-accent: var(--md-squad);
}
body.fml-matchday :is(.fml-directory-card[data-matchday-squad], .fml-club-directory .fml-directory-card)
    :is(.fml-directory-portrait, .fml-directory-back) {
    border-top-width: 0;
    border-inline-start-width: 0;
}
body.fml-matchday .fml-directory-grid--list
    :is(.fml-directory-card[data-matchday-squad], .fml-club-directory .fml-directory-card) {
    border-top: 1px solid var(--md-line);
    border-inline-start: 3px solid var(--md-squad, var(--md-gold));
}
body.fml-matchday .fml-matchday-squad {
    display: inline-block;
    grid-column: 1 / -1;
    max-width: 100%;
    width: max-content;
    margin-bottom: .4rem;
    padding: .21rem .4rem;
    color: var(--md-squad-ink);
    background: var(--md-squad-surface);
    border-inline-start: 2px solid var(--md-squad);
    border-radius: 4px;
    font: 750 .71rem/1.25 var(--md-font);
    text-transform: uppercase;
    letter-spacing: .045em;
}
body.fml-matchday .fml-directory-card .fml-directory-portrait,
body.fml-matchday .fml-home-card [data-fml-front].fml-home-player-front {
    background-color: var(--md-dark);
    background-image: repeating-linear-gradient(139deg, transparent 0 52px, #ffffff13 53px 55px, transparent 56px 92px);
}
body.fml-matchday .fml-directory-card .fml-directory-rating {
    color: var(--md-squad-on-dark, var(--md-yellow));
}
body.fml-matchday .fml-directory-card:has(.fml-directory-name) .fml-directory-rating {
    align-self: center;
    justify-self: stretch;
    justify-items: start;
    min-width: 0;
    gap: .25rem;
    margin: 0;
    padding: .55rem .4rem .55rem .75rem;
    border-radius: 0;
    background: transparent;
    text-align: start;
}
body.fml-matchday .fml-directory-card:has(.fml-directory-name) .fml-directory-rating strong {
    font-size: clamp(1.45rem, 3.1vw, 2.15rem);
    font-variant-numeric: tabular-nums;
}
body.fml-matchday .fml-directory-card:has(.fml-directory-name) .fml-directory-rating .fml-eafc-missing small {
    color: var(--md-paper);
}
body.fml-matchday .fml-directory-card:has(.fml-directory-name) :is(.fml-directory-identity, .fml-directory-back) {
    color: var(--md-ink);
    background: var(--md-soft);
}
body.fml-matchday .fml-directory-card:has(.fml-directory-name) :is(
    .fml-directory-name > :is(h2, h4), .fml-directory-back > [data-fml-back-focus]
) {
    margin: 0;
    color: var(--md-ink);
    font: 800 var(--md-item)/1.22 var(--md-font);
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}
body.fml-matchday .fml-directory-card :is(.fml-directory-name a, .fml-directory-back a.fml-directory-profile) {
    color: var(--md-ink);
    text-decoration: none;
    text-underline-offset: .15em;
}
body.fml-matchday .fml-directory-card :is(.fml-directory-name a, .fml-directory-back a.fml-directory-profile):is(:hover, :focus-visible) {
    text-decoration: underline;
}
body.fml-matchday .fml-home-card:not(.fml-home-card--team)[data-matchday-squad] { background: var(--md-dark); }
body.fml-matchday .fml-home-card[data-matchday-squad] .fml-home-flip:not([hidden]),
body.fml-matchday .fml-directory-card .fml-directory-flip:not([hidden]) {
    position: static;
    inset: auto;
    width: 100%;
    min-height: 44px;
    padding: .54rem .8rem;
    color: var(--md-ink);
    background: var(--md-paper);
    border: 0;
    border-top: 1px solid var(--md-line);
    border-radius: 0;
    font: 750 var(--md-label)/1.25 var(--md-font);
    justify-content: space-between;
    text-align: start;
}

body.fml-matchday .fml-player-page .fml-player-season-history-table :is(th, td).fml-history-col-club {
    text-align: start !important;
}
body.fml-matchday .fml-player-page .fml-history-col-club .fml-history-team-cell {
    justify-content: flex-start;
}
body.fml-matchday .fml-player-page .fml-player-transfers-refresh :is(.fml-transfer-col-team, .fml-transfer-col-type, .fml-transfer-col-route) {
    text-align: start !important;
}
body.fml-matchday .fml-player-page .fml-player-transfers-refresh :is(.fml-transfer-col-money, .fml-transfer-history-total) {
    text-align: end !important;
}
body.fml-matchday .fml-transfer-col-money {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
body.fml-matchday .fml-player-transfers-refresh:not([data-fml-columns-ready]) .fml-transfer-col-route {
    display: none;
}
body.fml-matchday :is(.fml-transfer-history-team, .fml-transfer-history-type) {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .4rem;
}
body.fml-matchday .fml-transfer-history-team > span:last-child {
    overflow-wrap: anywhere;
}
body.fml-matchday .fml-transfer-history-crest {
    inline-size: 20px;
    block-size: 20px;
}
body.fml-matchday .fml-transfer-history-crest img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: contain;
    display: block;
}
body.fml-matchday :is(.fml-transfer-history-outside, .fml-transfer-history-type svg, .fml-transfer-route-arrow) {
    color: var(--md-muted);
}
body.fml-matchday .fml-transfer-history-route {
    display: grid;
    gap: .15rem;
}
body.fml-matchday .fml-transfer-route-type { display: none; }
body.fml-matchday tr:has(> .fml-transfer-col-type[data-fml-col-hidden]) .fml-transfer-route-type {
    display: block;
    font-size: .92em;
    margin-block-end: .2rem;
}
body.fml-matchday .fml-transfer-route-arrow {
    inline-size: 20px;
    text-align: center;
    line-height: 1;
}
body.fml-matchday .fml-player-page .fml-player-transfers-refresh[data-fml-columns-layout="compact"] :is(th, td) {
    padding: .45rem .35rem !important;
    font-size: var(--md-caption);
    line-height: 1.25;
}
body.fml-matchday .fml-transfer-card { border-block-start: 3px solid var(--md-gold); }
body.fml-matchday .fml-transfer-directory .fml-directory-grid--list .fml-transfer-card {
    border-block-start: 2px solid var(--md-gold);
    border-inline-start: 1px solid var(--md-line);
}
body.fml-matchday .fml-transfer-card .fml-transfer-card-fee,
body.fml-matchday .fml-transfer-summary {
    background: var(--md-dark);
    color: var(--md-paper);
    border-radius: 8px;
}
body.fml-matchday :is(.fml-transfer-card-fee strong, .fml-transfer-summary h4, .fml-transfer-summary dd) { color: var(--md-yellow); }

body.fml-matchday :is(.fml-columns-toolbar, .fml-columns-scroll) {
    --columns-ink: var(--md-ink);
    --columns-muted: var(--md-muted);
    --columns-surface: var(--md-soft);
    --columns-border: var(--md-line);
    --columns-gold: var(--md-yellow);
}
body.fml-matchday .fml-season-hub.fml-season-profile {
    --season-ink: var(--md-ink);
    --season-muted: var(--md-muted);
    --season-gold: var(--md-yellow);
    --season-wash: var(--md-sort);
    --season-paper: var(--md-paper);
    --season-surface: var(--md-soft);
    --season-line: var(--md-line);
}
body.fml-matchday .fml-season-hub.fml-season-profile:has(> .fml-season-cover + .fml-season-tabs) {
    row-gap: var(--md-section-space);
}
body.fml-matchday :is(
    .fml-index-app .fml-index-table, .fml-public-data-table, .fml-public-table, .fml-comparison-table,
    .fml-analytics-stat-table, .fml-season-overview-table, .fml-season-standings-table, .fml-season-stats-table
) {
    font-family: var(--md-font);
    color: var(--md-ink);
}
body.fml-matchday :is(
    .fml-index-app .fml-index-table, .fml-public-data-table, .fml-public-table, .fml-comparison-table,
    .fml-analytics-stat-table, .fml-season-overview-table, .fml-season-standings-table, .fml-season-stats-table
) thead th {
    color: var(--md-ink) !important;
    background: var(--md-soft) !important;
    font: 750 var(--md-label)/1.3 var(--md-font);
    letter-spacing: normal;
    text-transform: none;
}
body.fml-matchday :is(
    .fml-index-app .fml-index-table, .fml-public-data-table, .fml-public-table, .fml-comparison-table,
    .fml-analytics-stat-table, .fml-season-overview-table, .fml-season-standings-table, .fml-season-stats-table
) thead th:is(.is-active, [aria-sort="ascending"], [aria-sort="descending"]),
body.fml-matchday .fml-season-profile :is(.fml-season-overview-table, .fml-season-standings-table) thead th:last-child {
    background: var(--md-sort) !important;
}
body.fml-matchday :is(
    .fml-index-app .fml-index-table, .fml-public-data-table, .fml-public-table, .fml-comparison-table,
    .fml-analytics-stat-table, .fml-season-overview-table, .fml-season-standings-table, .fml-season-stats-table
) :is(td, th) {
    border-bottom-color: var(--md-line) !important;
    font-variant-numeric: tabular-nums;
    padding: .65rem .75rem;
}
body.fml-matchday table:is(.fml-public-data-table, .fml-public-table):not(.fml-player-season-history-table) > tbody > tr {
    --md-row-surface: var(--md-paper);
}
body.fml-matchday table:is(.fml-public-data-table, .fml-public-table):not(.fml-player-season-history-table) > tbody > tr:nth-child(even) {
    --md-row-surface: var(--md-soft);
}
body.fml-matchday table:is(.fml-public-data-table, .fml-public-table):not(.fml-player-season-history-table) > tbody > tr:hover {
    --md-row-surface: var(--md-sort);
}
body.fml-matchday table:is(.fml-public-data-table, .fml-public-table):not(.fml-player-season-history-table) > tbody > tr > :is(th, td) {
    background: var(--md-row-surface) !important;
}
body.fml-matchday table:is(.fml-public-data-table, .fml-public-table) > tbody > tr > th {
    color: var(--md-ink) !important;
}
body.fml-matchday .fml-matchday-club-identity {
    display: flex;
    align-items: center;
    gap: .4rem;
    overflow-wrap: anywhere;
}
body.fml-matchday .fml-matchday-club-identity img { width: 22px; height: 22px; flex: none; object-fit: contain; }
body.fml-matchday .fml-index-scroll { overflow-x: auto; }
body.fml-matchday .fml-index-table .fml-index-player-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
body.fml-matchday .fml-index-player-photo {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    background: var(--md-soft);
}

body.fml-matchday :is(.fml-matchday-score-card, .fml-match-list > .fml-match-row, .fml-fixture-card) {
    border-color: var(--md-line);
    border-radius: var(--md-radius);
}
body.fml-matchday .fml-matchday-score-card {
    min-width: 0;
    border: 1px solid var(--md-line);
    border-top-width: 3px;
    background: var(--md-paper);
    color: var(--md-ink);
}
body.fml-matchday .fml-matchday-score-card[data-matchday-kind="result"] { border-top-color: var(--md-gold); }
body.fml-matchday .fml-matchday-score-card[data-matchday-kind="live"] { border-top-color: var(--md-live); }
body.fml-matchday .fml-matchday-score-summary {
    display: grid;
    gap: .78rem;
    min-width: 0;
    padding: clamp(.65rem, 1.5vw, .95rem);
    border-radius: calc(var(--md-radius) - 2px);
    color: var(--md-ink);
}
body.fml-matchday [data-matchday-kind="result"] > .fml-matchday-score-summary {
    background: var(--md-result);
    border-radius: calc(var(--md-radius) - 2px) calc(var(--md-radius) - 2px) 0 0;
}
body.fml-matchday .fml-matchday-score-summary:hover .fml-matchday-open { text-decoration: underline; }
body.fml-matchday .fml-matchday-score-meta { min-width: 0; }
body.fml-matchday .fml-matchday-score-date {
    display: block;
    color: var(--md-muted);
    font: 650 var(--md-caption)/1.4 var(--md-font);
    overflow-wrap: anywhere;
}
body.fml-matchday .fml-matchday-score-teams {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    align-items: start;
    gap: clamp(.35rem, 1.2vw, .85rem);
    min-width: 0;
    text-align: center;
}
body.fml-matchday .fml-matchday-score-team {
    display: grid;
    justify-items: center;
    gap: .35rem;
    min-width: 0;
}
body.fml-matchday .fml-matchday-score-team img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}
body.fml-matchday .fml-matchday-score-name {
    color: var(--md-ink);
    font: 750 clamp(.83rem, 1.45vw, 1rem)/1.15 var(--md-font);
    overflow-wrap: anywhere;
}
body.fml-matchday .fml-matchday-score-value {
    display: grid;
    place-items: center;
    padding: .3rem .55rem;
    min-width: 2.2rem;
    min-height: 2rem;
    margin-top: .33rem;
    border-radius: 6px;
    background: var(--md-soft);
    color: var(--md-ink);
    font: 800 clamp(1.04rem, 2.25vw, 1.5rem)/1 var(--md-font);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
body.fml-matchday :is([data-matchday-kind="result"],[data-matchday-kind="live"]) .fml-matchday-score-value {
    background: var(--md-dark);
    color: var(--md-paper);
}
body.fml-matchday [data-matchday-kind="live"] .fml-matchday-score-value { font-size: .82rem; }
body.fml-matchday .fml-home .fml-home-match:has(> .fml-matchday-score-card) {
    display: grid;
    align-content: start;
    gap: .55rem;
    padding: 0;
    border: 0;
    background: transparent;
}
body.fml-matchday .fml-team-profile .fml-team-hero {
    padding: var(--md-heading-inset);
    border: 1px solid #e9cb76;
    border-radius: 14px;
    background: linear-gradient(120deg, var(--md-yellow), #ffe79a);
    color: var(--md-ink);
}
body.fml-matchday .fml-club-directory .fml-directory-card {
    border-color: var(--md-line);
    border-top: 3px solid var(--md-squad, var(--md-gold));
    border-radius: var(--md-radius);
    background: var(--md-paper);
}
body.fml-matchday .fml-club-directory .fml-directory-portrait {
    background: repeating-linear-gradient(-42deg, #ffffff09 0 1px, transparent 1px 32px), var(--md-dark);
    color: var(--md-paper);
}
body.fml-matchday .fml-club-directory .fml-directory-portrait .fml-directory-rating strong { color: inherit; }
body.fml-matchday .fml-club-directory .fml-directory-crest {
    padding: .38rem;
    border-radius: 8px;
    background: var(--md-paper);
}
body.fml-matchday .fml-club-directory .fml-directory-identity,
body.fml-matchday .fml-club-directory .fml-directory-back { background: var(--md-soft); }
body.fml-matchday .fml-club-directory .fml-directory-entity-links a { min-height: 44px; }
body.fml-matchday .fml-club-detail .fml-team-hero .fml-team-crest,
body.fml-matchday .fml-team-profile .fml-team-crest {
    padding: .45rem;
    border-radius: 10px;
    background: var(--md-paper);
}
body.fml-matchday .fml-season-overview-card.is-honour {
    border-color: var(--md-line);
    border-radius: var(--md-radius);
    background: var(--md-soft);
}
body.fml-matchday .fml-season-overview-card.is-honour::before { content: none; }
body.fml-matchday .fml-home-match > .fml-home-match-heading > .fml-home-kicker { font-size: var(--md-label); letter-spacing: .02em; }
body.fml-matchday #fml-home-matches { scroll-margin-top: 4.2rem; }
body.fml-matchday .fml-home-week-columns ul:has(> li > .fml-matchday-score-card) {
    display: grid;
    gap: var(--md-card-space);
    margin-top: .65rem;
}
body.fml-matchday .fml-home-week-columns li:has(> .fml-matchday-score-card) { border: 0; }
body.fml-matchday .fml-match-list > .fml-match-row + .fml-match-row,
body.fml-matchday .fml-fixture-card + .fml-fixture-card { margin-top: var(--md-card-space); }
body.fml-matchday :is(.fml-fixture-card, .fml-matchday-score) > summary { min-height: 44px; cursor: pointer; }
body.fml-matchday .fml-matchday-score > summary { list-style: none; position: relative; }
body.fml-matchday .fml-matchday-score > summary::-webkit-details-marker { display: none; }
body.fml-matchday .fml-matchday-score > summary.fml-home-scoreboard > .fml-result-meta { grid-column: 1 / -1; }
body.fml-matchday .fml-fixture-card[data-matchday-kind="live"] {
    border-top: 3px solid var(--md-live);
}
body.fml-matchday .fml-match-list-details[data-matchday-kind="result"] > summary.fml-result-scoreboard {
    border-top: 3px solid var(--md-gold);
    background: var(--md-result);
    color: var(--md-ink);
}
body.fml-matchday :is(
    .fml-matchday-score-card, .fml-fixture-card, .fml-match-list-details > summary.fml-result-scoreboard,
    .fml-match-row.is-fixture, .fml-report-hero, .fml-portal-match-card, .fml-away-review, .fml-bracket-match
)[data-matchday-squad="u21"] {
    border-top: 3px solid var(--md-youth);
}
body.fml-matchday .fml-match-list-details[data-matchday-kind="result"] > summary .fml-result-meta { color: var(--md-muted); }
body.fml-matchday .fml-match-list-details[data-matchday-kind="result"] > summary .fml-home-match-team { color: var(--md-ink); }
body.fml-matchday .fml-match-list-details[data-matchday-kind="result"] > summary .fml-home-score,
body.fml-matchday [data-matchday-kind="live"] > summary :is(.fml-fixture-versus, .fml-home-score) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--md-dark);
    color: var(--md-paper);
    border-radius: 6px;
    padding: .16em .42em;
    font-variant-numeric: tabular-nums;
}
body.fml-matchday .fml-matchday-kind {
    display: block;
    margin-bottom: .2rem;
    color: var(--md-muted);
    font: 800 .74rem/1.25 var(--md-font);
    letter-spacing: .06em;
    text-transform: uppercase;
}
body.fml-matchday [data-matchday-kind="result"] > summary .fml-matchday-kind { color: #674909; }
body.fml-matchday [data-matchday-kind="live"] > summary .fml-matchday-kind {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .23rem .44rem;
    border-radius: 1rem;
    background: #fff0f2;
    color: #a9152b;
}
body.fml-matchday [data-matchday-kind="live"] > summary .fml-matchday-kind::before {
    content: "";
    width: .45rem;
    height: .45rem;
    background: var(--md-live);
    border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
    body.fml-matchday [data-matchday-kind="live"] > summary .fml-matchday-kind::before {
        animation: fml-matchday-live-pulse 2.2s ease-out infinite;
    }
}
@keyframes fml-matchday-live-pulse {
    0% { box-shadow: 0 0 0 0 rgb(197 31 55 / 38%); }
    70%, 100% { box-shadow: 0 0 0 .32rem rgb(197 31 55 / 0%); }
}
body.fml-matchday [data-matchday-kind="live"] > summary .fml-fixture-versus { font-size: .85rem; white-space: nowrap; }
body.fml-matchday .fml-match-list-details[data-matchday-kind] > summary.fml-result-scoreboard::after { content: none; }
body.fml-matchday .fml-matchday-open {
    grid-column: 1 / -1;
    display: inline-flex;
    gap: .54rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 1.5rem;
    color: #614a16;
    font: 750 var(--md-caption)/1.25 var(--md-font);
}
body.fml-matchday details > summary { --md-chevron-angle: 45deg; }
body.fml-matchday details[open] > summary { --md-chevron-angle: 225deg; }

body.fml-matchday .fml-matchday-open::after {
    content: "";
    width: .46rem;
    height: .46rem;
    border: solid currentColor;
    border-width: 0 1.6px 1.6px 0;
    transform: rotate(var(--md-chevron-angle, 45deg));
}
body.fml-matchday .fml-matchday-report-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 0 .85rem;
    padding-inline: .85rem;
    border-top: 1px solid var(--md-line);
    background: var(--md-paper);
    border-radius: 0 0 var(--md-radius) var(--md-radius);
}
body.fml-matchday .fml-matchday-report-links a {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    min-height: 44px;
    color: #614a16;
    font: 750 var(--md-caption)/1.35 var(--md-font);
    text-decoration: underline;
    text-underline-offset: .17em;
}

body.fml-matchday :is(.fml-report-key-stats, .fml-capture-key-stats) { border-color: var(--md-gold); }
body.fml-matchday .fml-season-profile .fml-season-overview-columns:has(:is(.fml-match-list-details, .fml-matchday-score)[open]) {
    grid-template-columns: minmax(0, 1fr);
}
body.fml-matchday .fml-match-report { container: match-report / inline-size; }
body.fml-matchday :is(.fml-report-overview-grid.has-two-columns, .fml-report-stat-grid, .fml-report-ratings-grid) {
    grid-template-columns: minmax(0, 1fr);
}
@container match-report (min-width: 46rem) {
    body.fml-matchday .fml-report-overview-grid.has-two-columns { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
    body.fml-matchday :is(.fml-report-stat-grid, .fml-report-ratings-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container match-report (max-width: 22rem) {
    body.fml-matchday .fml-report-stat-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.fml-matchday .fml-report-stat-name { grid-column: 1 / -1; grid-row: 1; }
}
body.fml-matchday :is(.fml-rulebook-chapter, .fml-rulebook-current, .fml-rulebook-history) { border-color: var(--md-line); }
body.fml-matchday .fml-rulebook-entry > summary { min-height: 44px; }
body.fml-matchday :is(.fml-portal-group h3, .fml-manager-portal-notification .fml-notice-heading) {
    font-size: var(--md-section);
    line-height: 1.17;
}
body.fml-matchday .fml-portal-group-rows > details > summary,
body.fml-matchday .fml-portal-group-rows > .fml-portal-nav-row { min-height: 44px; }
body.fml-matchday .fml-portal-group-rows > details > summary:has(> .fml-status-chip) {
    grid-template-columns: 28px minmax(0, 1fr) auto 10px;
}
body.fml-matchday .fml-portal-group-rows > .fml-portal-static-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    cursor: default;
}
body.fml-matchday .fml-portal-group-rows > .fml-portal-static-row:hover { background: transparent; }
body.fml-matchday .fml-portal-group-rows > .fml-portal-static-row::after { content: none; }
body.fml-matchday .fml-status-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    width: fit-content;
    max-width: 100%;
    padding: .25rem .5rem;
    border-radius: 999px;
    background: var(--md-soft);
    color: var(--md-muted);
    font: 750 var(--md-caption)/1.2 var(--md-font);
}
body.fml-matchday .fml-status-chip[data-tone="done"],
body.fml-matchday #fml-youtube-settings .fml-youtube-status.is-connected {
    background: var(--md-status-done-bg);
    color: var(--md-status-done-ink);
}
body.fml-matchday .fml-status-chip[data-tone="action"] {
    background: var(--md-status-action-bg);
    color: var(--md-status-action-ink);
}
body.fml-matchday .fml-status-chip[data-tone="debt"] {
    background: var(--fml-rose, #faeaeb);
    color: #7f1d1d;
    font-variant-numeric: tabular-nums;
}
body.fml-matchday .fml-status-chip[data-tone="info"] {
    background: #e8efff;
    color: #204aa0;
}

/* Highlight the kind of achievement at the card edge and keep its status in the label. */
body.fml-matchday :is([data-fml-achievement="milestone"], [data-fml-achievement-tone="milestone"]) {
    --md-achievement-accent: var(--md-milestone);
}
body.fml-matchday :is([data-fml-achievement="record"], [data-fml-achievement-tone="record"]) {
    --md-achievement-accent: var(--md-record);
}
body.fml-matchday :is([data-fml-achievement="award"], [data-fml-achievement="honour"],
                     [data-fml-achievement-tone="award"], [data-fml-achievement-tone="honour"]) {
    --md-achievement-accent: var(--md-recognition);
}
body.fml-matchday [data-fml-achievement] {
    border: 1px solid var(--md-line);
    border-block-start: var(--md-achievement-edge) solid var(--md-achievement-accent);
    border-radius: var(--md-radius);
}
body.fml-matchday [data-fml-achievement] .fml-achievement-top {
    border-block-start: 0;
    border-radius: calc(var(--md-radius) - var(--md-achievement-edge)) calc(var(--md-radius) - var(--md-achievement-edge)) 0 0;
    color: var(--md-paper);
}
body.fml-matchday [data-fml-achievement] .fml-achievement-kicker { color: inherit; }
body.fml-matchday .fml-achievement-kicker .fml-status-chip { text-transform: none; letter-spacing: normal; }
body.fml-matchday .fml-achievement-progress { accent-color: var(--md-muted); }
body.fml-matchday .fml-achievement-flip[open] > summary .fml-achievement-toggle,
body.fml-matchday .fml-achievement-flip > summary:hover .fml-achievement-toggle {
    background: var(--md-soft);
    color: var(--md-ink);
}
body.fml-matchday .fml-achievement-flip > summary:focus-visible {
    outline: 3px solid var(--md-focus);
    outline-offset: 2px;
}
body.fml-matchday .fml-season-award {
    grid-template-columns: 34px 46px minmax(0, 1fr) auto;
    grid-template-areas: "award portrait title value" "award portrait player value" ". team team team";
    gap: .25rem .5rem;
}
body.fml-matchday .fml-season-award::before { content: none; }
body.fml-matchday .fml-season-award .fml-season-award-icon { grid-area: award; }
body.fml-matchday :is(.fml-season-highlights, .fml-season-overview) .fml-season-award-icon[data-fml-award-icon] {
    inline-size: 34px;
    block-size: 34px;
    justify-self: center;
    border: 1px solid var(--md-recognition, #966536);
    border-radius: 50%;
    background: #f4e7d5;
    color: #79502c;
    font-size: 0;
}
body.fml-matchday :is(.fml-season-highlights, .fml-season-overview) .fml-season-award-icon[data-fml-award-icon]::before {
    content: "";
    inline-size: 20px;
    block-size: 20px;
    background: currentColor;
    mask: var(--md-award-glyph) center / contain no-repeat;
}
body.fml-matchday :is([data-fml-award-icon="trophy"], [data-fml-achievement-symbol="trophy"]) {
    --md-award-glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%203h8v6a4%204%200%200%201-8%200V3ZM8%205H4v2a4%204%200%200%200%204%204m8-6h4v2a4%204%200%200%201-4%204m-4%202v6m-4%202h8m-6-2h4%22%2F%3E%3C%2Fsvg%3E");
}
body.fml-matchday :is([data-fml-award-icon="goal"], [data-fml-achievement-symbol="goal"]) {
    --md-award-glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2019V5h14l4%2014H3Zm0-10h15M3%2014h16M7%205v14m5-14v14m5-14v14%22%2F%3E%3C%2Fsvg%3E");
}
body.fml-matchday :is([data-fml-award-icon="assist"], [data-fml-achievement-symbol="assist"]) {
    --md-award-glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%225%22%20cy%3D%2217%22%20r%3D%222.5%22%2F%3E%3Cpath%20d%3D%22M8%2017h6a3%203%200%201%200%200-6h-3a3%203%200%200%201%200-6h7m-3-3%203%203-3%203%22%2F%3E%3C%2Fsvg%3E");
}
body.fml-matchday :is([data-fml-award-icon="potm"], [data-fml-achievement-symbol="potm"]) {
    --md-award-glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%202.8%205.7%206.2.9-4.5%204.4%201%206.2-5.5-3-5.5%203%201-6.2L3%209.6l6.2-.9L12%203Z%22%2F%3E%3C%2Fsvg%3E");
}
body.fml-matchday :is([data-fml-award-icon="glove"], [data-fml-achievement-symbol="glove"]) {
    --md-award-glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%2012V6a1.5%201.5%200%200%201%203%200v4-6a1.5%201.5%200%200%201%203%200v6-5a1.5%201.5%200%200%201%203%200v6-4a1.5%201.5%200%200%201%203%200v6c0%203.5-1.4%205.5-3%207h-6c-2.2-1.5-4.3-4-6-6.4a1.7%201.7%200%200%201%202.7-2l1.4%201.7M10%2020v2h6v-2%22%2F%3E%3C%2Fsvg%3E");
}
body.fml-matchday [data-fml-achievement-symbol="appearances"] {
    --md-award-glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m8%204-5%203%202%205%203-1v9h8v-9l3%201%202-5-5-3a4%204%200%200%201-8%200Z%22%2F%3E%3C%2Fsvg%3E");
}
body.fml-matchday [data-fml-achievement-symbol="managed"] {
    --md-award-glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%206%201.5%201.5L7%205m-4%207%201.5%201.5L7%2011m-4%207%201.5%201.5L7%2017m4-11h10m-10%206h10m-10%206h10%22%2F%3E%3C%2Fsvg%3E");
}
body.fml-matchday [data-fml-achievement-symbol="clean-sheet"] {
    --md-award-glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203c2%202%205%203%208%203v5c0%205-3%208-8%2010-5-2-8-5-8-10V6c3%200%206-1%208-3Zm-3%209%202%202%204-4%22%2F%3E%3C%2Fsvg%3E");
}
body.fml-matchday [data-fml-achievement-symbol="win"] {
    --md-award-glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2021V4c4-3%207%203%2014%200v11c-7%203-10-3-14%200%22%2F%3E%3C%2Fsvg%3E");
}
body.fml-matchday [data-fml-achievement-symbol="opponents"] {
    --md-award-glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m5%203%204%201%2010%2010-3%203L6%207%205%203Zm14%200-4%201-4%204M5%2015l4-4m-6%205%205%205m-4-1%202-2m12-2%203%203m-5%200%203-3m-1%203%202%202%22%2F%3E%3C%2Fsvg%3E");
}
body.fml-matchday [data-fml-achievement-symbol="hat-trick"] {
    --md-award-glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m10%203-3%2018m10-18-3%2018M4%209h16M3%2015h16%22%2F%3E%3C%2Fsvg%3E");
}
body.fml-matchday [data-fml-achievement-symbol="promotion"] {
    --md-award-glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%2018%2018%206M8%206h10v10%22%2F%3E%3C%2Fsvg%3E");
}
body.fml-matchday [data-fml-achievement-symbol="honour"] {
    --md-award-glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%203h12l-4%207h-4L6%203Zm3%200%203%207%203-7%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2215%22%20r%3D%225%22%2F%3E%3C%2Fsvg%3E");
}
body.fml-matchday [data-fml-achievement-symbol="medal"] {
    --md-award-glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%229%22%20r%3D%225%22%2F%3E%3Cpath%20d%3D%22m9%2013-2%208%205-2%205%202-2-8%22%2F%3E%3C%2Fsvg%3E");
}
body.fml-matchday [data-fml-achievement-symbol="chart"] {
    --md-award-glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%204v16h16M7%2015l5-5%203%203%205-6m-4%200h4v4%22%2F%3E%3C%2Fsvg%3E");
}
body.fml-matchday [data-fml-achievement-symbol="purchase"] {
    --md-award-glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207h17m-4-4%204%204-4%204M21%2017H4m4-4-4%204%204%204%22%2F%3E%3C%2Fsvg%3E");
}
body.fml-matchday [data-fml-achievement-symbol="sale"] {
    --md-award-glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%207H4m4-4L4%207l4%204m-5%206h17m-4-4%204%204-4%204%22%2F%3E%3C%2Fsvg%3E");
}
body.fml-matchday [data-fml-achievement-symbol="runner-up"] {
    --md-award-glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%203%204%207m8-7-4%207%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2215%22%20r%3D%227%22%2F%3E%3Cpath%20d%3D%22M10%2013a2%202%200%201%201%203%201.7l-3%203.3h4%22%2F%3E%3C%2Fsvg%3E");
}
body.fml-matchday [data-fml-achievement-symbol="lineup"] {
    --md-award-glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%207h.01M12%207h.01M17%207h.01M7%2012h.01M12%2012h.01M17%2012h.01M6%2016h.01M10%2016h.01M14%2016h.01M18%2016h.01M12%2019h.01%22%20stroke-width%3D%222.3%22%2F%3E%3C%2Fsvg%3E");
}
body.fml-matchday .fml-profile-achievement-title {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .4rem;
    align-items: center;
}
body.fml-matchday .fml-profile-achievement-title > :last-child {
    overflow-wrap: anywhere;
}
body.fml-matchday .fml-profile-record-list {
    border: 1px solid var(--md-line);
    border-radius: var(--md-radius);
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 0;
}
body.fml-matchday .fml-profile-record-item {
    margin: 0;
    padding: .55rem .65rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .6rem;
    font-size: var(--md-caption);
}
body.fml-matchday .fml-profile-record-item + .fml-profile-record-item {
    border-block-start: 1px solid var(--md-line);
}
body.fml-matchday .fml-profile-record-item:nth-child(even) {
    background: var(--md-soft);
}
body.fml-matchday .fml-profile-record-item > strong {
    font-variant-numeric: tabular-nums;
}
body.fml-matchday .fml-achievement-mark {
    display: inline-grid;
    flex: none;
    place-items: center;
    inline-size: 34px;
    block-size: 34px;
    color: var(--md-paper);
    background: var(--md-achievement-accent, var(--md-record));
    border-radius: 50%;
}
body.fml-matchday .fml-achievement-mark::before {
    content: "";
    inline-size: 20px;
    block-size: 20px;
    background: currentColor;
    mask: var(--md-award-glyph) center / contain no-repeat;
}
body.fml-matchday .fml-achievement-card:has(.fml-achievement-mark) {
    background: var(--md-soft);
}
body.fml-matchday .fml-achievement-card:has(.fml-achievement-mark) .fml-achievement-top {
    background: var(--md-soft);
    color: var(--md-ink);
    padding-bottom: .3rem;
}
body.fml-matchday .fml-achievement-card:has(.fml-achievement-mark) .fml-achievement-kicker {
    color: var(--md-ink);
    font-size: var(--md-caption);
    letter-spacing: normal;
    text-transform: none;
    gap: .5rem;
}
body.fml-matchday .fml-achievement-card--milestone .fml-achievement-top {
    justify-content: space-between;
}
body.fml-matchday .fml-milestone-card-identity {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
}
body.fml-matchday .fml-milestone-card-identity .fml-achievement-photo {
    inline-size: 30px;
    border-radius: 50%;
}
body.fml-matchday .fml-milestone-card-identity .fml-achievement-value {
    margin-inline-start: auto;
    white-space: nowrap;
    font-size: clamp(1.25rem, 2.25vw, 1.65rem);
}
body.fml-matchday [data-fml-achievement="milestone"] .fml-achievement-progress {
    accent-color: var(--md-milestone);
}
body.fml-matchday .fml-records-row :is(.fml-records-rank, .fml-records-value) {
    background: var(--md-soft);
    color: var(--md-ink);
}
body.fml-matchday :is(.fml-records-row, .fml-profile-achievement-title, .fml-profile-milestone-row) .fml-achievement-mark {
    inline-size: 26px;
    block-size: 26px;
}
body.fml-matchday :is(.fml-records-row, .fml-profile-achievement-title, .fml-profile-milestone-row) .fml-achievement-mark::before {
    inline-size: 15px;
    block-size: 15px;
}
body.fml-matchday .fml-season-award .fml-season-award-main,
body.fml-matchday .fml-season-award .fml-season-award-main > div { display: contents; }
body.fml-matchday .fml-season-award :is(.fml-season-award-photo, .fml-season-award-photo-placeholder) {
    grid-area: portrait;
    border-color: var(--md-line);
}
body.fml-matchday .fml-season-award .fml-season-award-title {
    grid-area: title;
    align-self: end;
    margin: 0;
}
body.fml-matchday .fml-season-award .fml-season-award-player {
    grid-area: player;
    align-self: start;
    white-space: normal;
    overflow-wrap: anywhere;
}
body.fml-matchday .fml-season-award .fml-season-award-value { grid-area: value; }
body.fml-matchday .fml-season-award .fml-season-award-team { grid-area: team; }
body.fml-matchday .fml-season-award .fml-season-award-team > span {
    white-space: normal;
    overflow-wrap: anywhere;
}

body.fml-matchday :is(.fml-news-card h3, .fml-news-page--story h1, .fml-news-story-title) {
    font-family: var(--md-editorial);
    letter-spacing: -.035em;
}
body.fml-matchday :is(.fml-draw-page, #fml-news-editorial .fml-draw-news-feature) .fml-draw-news-emblem {
    background: var(--md-dark);
}
body.fml-matchday :is(.fml-draw-page, #fml-news-editorial .fml-draw-news-feature) .fml-draw-news-emblem img {
    width: min(76%, 9.5rem);
    height: auto;
    border-radius: var(--md-control-radius);
    object-fit: contain;
}
body.fml-matchday .fml-draw-page a.fml-draw-news-card {
    border-color: var(--md-line);
    border-top-color: var(--md-gold);
    border-radius: var(--md-radius);
    background: var(--md-paper);
}
body.fml-matchday #fml-news-editorial .fml-draw-news-feature > header h2 {
    font: 800 var(--md-section)/1.17 var(--md-font);
}
body.fml-matchday #fml-news-editorial .news-section {
    padding-top: .8rem;
    border-top: 2px solid var(--md-gold);
}
body.fml-matchday :is(#fml-news-editorial, .fml-home-news-stories, .fml-news-related) .fml-news-card {
    border: 1px solid var(--md-line);
    border-radius: var(--md-radius);
    background: var(--md-paper);
    overflow: hidden;
}
body.fml-matchday :is(#fml-news-editorial, .fml-home-news-stories, .fml-news-related) .fml-news-card-copy {
    display: grid;
    gap: .45rem;
    padding: clamp(.8rem, 2vw, 1.25rem);
}
body.fml-matchday :is(#fml-news-editorial, .fml-home-news-stories, .fml-news-related) .fml-news-card-copy h3,
body.fml-matchday #fml-news-editorial .rating-copy h3 {
    margin: 0;
    color: var(--md-ink);
    font: 650 clamp(1.25rem, 2.35vw, 1.75rem)/1.12 var(--md-editorial);
}
body.fml-matchday :is(#fml-news-editorial, .fml-home-news-stories, .fml-news-related) .fml-news-card-copy p,
body.fml-matchday #fml-news-editorial .rating-copy p {
    color: var(--md-muted) !important;
    font-weight: 450;
    line-height: 1.47;
}
body.fml-matchday #fml-news-editorial .rating-story {
    grid-template-columns: minmax(0,1fr) minmax(11rem,14rem) auto;
    align-items: center;
    gap: var(--md-card-space);
    padding: var(--md-panel-inset);
    border: 1px solid var(--md-line);
    border-radius: var(--md-radius);
    background: var(--md-paper);
}
body.fml-matchday #fml-news-editorial .rating-story.without-player { grid-template-columns: minmax(0,1fr) auto; }
body.fml-matchday #fml-news-editorial .rating-copy { min-width: 0; gap: .5rem; }
body.fml-matchday #fml-news-editorial .rating-copy .source-logo {
    box-sizing: content-box;
    width: 4.4rem;
    height: 1rem;
    padding: .35rem .5rem;
    border-radius: 6px;
    background: var(--md-dark);
    object-fit: contain;
}
body.fml-matchday #fml-news-editorial .rating-player {
    max-width: none;
    padding: .55rem;
    border: 1px solid var(--md-line);
    border-radius: var(--md-control-radius);
    background: var(--md-soft);
}
body.fml-matchday #fml-news-editorial .rating-player strong {
    color: var(--md-ink);
    font: 750 var(--md-label)/1.2 var(--md-font);
}
body.fml-matchday #fml-news-editorial .rating-player img {
    display: block;
    width: 44px;
    height: 52px;
    object-fit: cover;
}
body.fml-matchday #fml-news-editorial .rating-player span { color: var(--md-muted); white-space: normal; }
body.fml-matchday #fml-news-editorial .rating-player b {
    display: inline-block;
    padding: .15rem .45rem;
    border-radius: 5px;
    background: var(--md-dark);
    color: var(--md-yellow);
    font-variant-numeric: tabular-nums;
}
body.fml-matchday #fml-news-editorial .rating-player b.is-up { background: #e2f1e9; color: #205c3d; }
body.fml-matchday #fml-news-editorial .rating-player b.is-down { background: #fae7eb; color: #8a273c; }
body.fml-matchday #fml-news-editorial .rating-arrow { display: inline-block; color: var(--md-ink); }
@media (max-width: 720px) {
    body.fml-matchday #fml-news-editorial .rating-story {
        grid-template-columns: minmax(0,1fr) auto;
        grid-template-areas: "copy arrow" "player player";
    }
    body.fml-matchday #fml-news-editorial .rating-story.without-player { grid-template-areas: "copy arrow"; }
    body.fml-matchday #fml-news-editorial .rating-copy { grid-area: copy; }
    body.fml-matchday #fml-news-editorial .rating-player { grid-area: player; }
    body.fml-matchday #fml-news-editorial .rating-arrow { grid-area: arrow; }
}
body.fml-matchday :is(.fml-news-card, .fml-matchday-news-media) .fml-news-editorial-figure { margin: 0; }
body.fml-matchday :is(.fml-news-card, .fml-matchday-news-media) .fml-news-editorial-art {
    min-height: 0;
    aspect-ratio: 16 / 8.5;
    border-radius: 0;
    border-top: 3px solid var(--md-gold);
    background: repeating-linear-gradient(-42deg, #ffffff09 0 1px, transparent 1px 32px), var(--md-dark);
}
body.fml-matchday :is(.fml-news-card, .fml-matchday-news-media) .fml-news-editorial-portrait {
    width: min(39%, 124px) !important;
    height: 84% !important;
    object-fit: cover !important;
    object-position: center top;
    border-radius: 6px;
}
body.fml-matchday :is(.fml-news-card, .fml-matchday-news-media) img.fml-news-editorial-crest {
    width: 32px;
    height: 32px;
    padding: 3px;
    border-radius: 5px;
    background: var(--md-paper);
}
body.fml-matchday :is(.fml-news-card, .fml-matchday-news-media) .fml-news-editorial-art > strong {
    color: var(--md-yellow) !important;
    background: #242731;
    border: 1px solid #59543e;
    border-radius: 6px;
    font: 800 clamp(.88rem, 1.9vw, 1.18rem)/1.15 var(--md-font);
    font-variant-numeric: tabular-nums;
}
body.fml-matchday :is(.fml-news-card, .fml-matchday-news-media) .fml-data-news-cover {
    min-height: 8rem;
    border-radius: 0;
    background: var(--md-dark);
    color: var(--md-paper);
}
body.fml-matchday :is(.fml-news-card, .fml-matchday-news-media) .fml-data-news-cover-copy > strong { color: var(--md-yellow) !important; }
body.fml-matchday .fml-matchday-news-illustration {
    position: relative;
    margin: 0;
    background: var(--md-dark);
}
body.fml-matchday .fml-matchday-news-illustration img,
body.fml-matchday .fml-matchday-news-media > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 8.5;
    object-fit: cover;
}
body.fml-matchday .fml-matchday-news-illustration figcaption {
    position: absolute;
    right: .65rem;
    bottom: .6rem;
    padding: .24rem .45rem;
    border-radius: 4px;
    background: #171a23e8;
    color: var(--md-paper);
    font: 650 .71rem/1.25 var(--md-font);
}
body.fml-matchday .fml-news-page .fml-news-archive .fml-news-archive-entry {
    overflow: hidden;
    padding: 0;
    border-color: var(--md-line);
    border-radius: var(--md-radius);
    background: var(--md-paper);
}
body.fml-matchday .fml-news-page .fml-news-archive .fml-news-archive-feature {
    align-items: stretch;
    gap: 0;
    border-top: 3px solid var(--md-gold);
}
body.fml-matchday .fml-news-page .fml-news-archive .fml-news-archive-copy {
    align-self: center;
    min-width: 0;
    padding: clamp(.85rem, 2vw, 1.35rem);
}
body.fml-matchday .fml-news-page .fml-news-archive .fml-news-archive-entry h2 {
    font: 650 clamp(1.3rem, 2.35vw, 1.9rem)/1.12 var(--md-editorial);
    letter-spacing: -.028em;
}
body.fml-matchday .fml-news-page .fml-news-archive .fml-news-archive-entry .fml-news-meta {
    font: 650 var(--md-caption)/1.35 var(--md-font);
}
body.fml-matchday .fml-matchday-story {
    margin: 1rem 0 1.4rem;
    min-width: 0;
}
body.fml-matchday #fml-news-editorial .fml-matchday-story h2 { margin: 0 0 .6rem; }
body.fml-matchday #fml-news-editorial .fml-matchday-story .fml-news-card {
    border-top: 3px solid var(--md-gold);
    background: var(--md-soft);
}
body.fml-matchday .fml-matchday-story .fml-news-card > a {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
}
body.fml-matchday .fml-matchday-story .fml-news-card > a > img { width: 100%; object-fit: cover; }
body.fml-matchday #fml-news-editorial .fml-matchday-story .fml-news-card-copy h3 {
    font-size: clamp(1.55rem, 3.3vw, 2.65rem);
}
@media (max-width: 640px) {
    body.fml-matchday .fml-matchday-story .fml-news-card > a,
    body.fml-matchday .fml-news-page .fml-news-archive .fml-news-archive-feature.has-cover {
        grid-template-columns: minmax(0,1fr);
    }
}

body.fml-matchday :is(.fml-matchday-report-links, .fml-match-list-details, .fml-matchday-score,
    .fml-rulebook-entry, .fml-directory-card, .fml-index-app, .fml-transfer-summary) :focus-visible {
    outline: 3px solid #207183;
    outline-offset: 2px;
}
body.fml-matchday :is(.fml-match-list-details, .fml-matchday-score) > summary:focus-visible { outline-offset: -4px; }

body.fml-matchday .fml-fixture-preview-body {
    --report-ink: var(--md-ink);
    --report-muted: var(--md-muted);
    --report-line: var(--md-line);
    --report-paper: var(--md-soft);
    font-family: var(--md-font);
}
body.fml-matchday .fml-fixture-preview-body h2 {
    margin-block: 1.35rem .55rem;
    font: 800 var(--md-section)/1.17 var(--md-font);
    letter-spacing: -.036em;
}
body.fml-matchday .fml-fixture-preview-body :is(h3,h4) {
    font: 750 var(--md-item)/1.28 var(--md-font) !important;
    letter-spacing: -.01em;
}
body.fml-matchday :is(
    .fml-editorial-sources, .fml-match-preview-details, .fml-lineup-alternatives, .fml-portal-eafc-link-edit,
    .fml-profile-disclosure, .fml-team-archive, .fml-player-profile-section, .fml-profile-per90-details,
    .fml-player-rating-explainer, .fml-rating-explainer-collapsible, .fml-squad-overview-availability,
    .fml-recap-notes, .fml-match-capture-summary, .fml-capture-report-section, .fml-index-app details,
    :is(.fml-club-community, .fcc-football-evidence) details:not(.fml-matchday-score, .fml-match-list-details, .fml-fixture-card)
) > summary {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--md-card-space);
    min-height: 44px;
    padding: .55rem .75rem;
    border: 1px solid var(--md-line);
    border-radius: var(--md-control-radius);
    background: var(--md-soft);
    color: var(--md-ink);
    font: 750 var(--md-label)/1.25 var(--md-font);
    list-style: none;
    cursor: pointer;
}
body.fml-matchday :is(
    .fml-editorial-sources, .fml-match-preview-details, .fml-lineup-alternatives, .fml-portal-eafc-link-edit,
    .fml-profile-disclosure, .fml-team-archive, .fml-player-profile-section, .fml-profile-per90-details,
    .fml-player-rating-explainer, .fml-rating-explainer-collapsible, .fml-squad-overview-availability,
    .fml-recap-notes, .fml-match-capture-summary, .fml-capture-report-section, .fml-index-app details,
    :is(.fml-club-community, .fcc-football-evidence) details:not(.fml-matchday-score, .fml-match-list-details, .fml-fixture-card)
) > summary::-webkit-details-marker { display: none; }
body.fml-matchday :is(
    .fml-editorial-sources, .fml-match-preview-details, .fml-lineup-alternatives, .fml-portal-eafc-link-edit,
    .fml-profile-disclosure, .fml-team-archive, .fml-player-profile-section, .fml-profile-per90-details,
    .fml-player-rating-explainer, .fml-rating-explainer-collapsible, .fml-squad-overview-availability,
    .fml-recap-notes, .fml-match-capture-summary, .fml-capture-report-section, .fml-index-app details,
    :is(.fml-club-community, .fcc-football-evidence) details:not(.fml-matchday-score, .fml-match-list-details, .fml-fixture-card)
) > summary::after {
    display: block;
    content: "";
    flex: none;
    width: .45rem;
    height: .45rem;
    margin-inline: .1rem;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(var(--md-chevron-angle));
}
body.fml-matchday .fml-match-preview-details > summary::before { content: none; }

@media (max-width: 640px) {
    body.fml-matchday :is(.fml-matchday-report-links, .fml-matchday-score-card) { min-width: 0; }
    body.fml-matchday .fml-matchday-report-links { justify-content: start; }
    body.fml-matchday .fml-matchday-open { font-size: .82rem; }
    body.fml-matchday .fml-matchday-kind { letter-spacing: .04em; }
}

/* Team, club and player profiles use the same sections, metrics and disclosures. */
body.fml-matchday :is(.fml-team-profile, .fml-profile-page, .fml-club-community, .fcc-football-evidence) h2 {
    font: 800 var(--md-section)/1.17 var(--md-font);
    letter-spacing: -.035em;
}
body.fml-matchday :is(.fml-team-profile, .fml-profile-page, .fml-club-community, .fcc-football-evidence) h3 {
    font: 800 var(--md-item)/1.25 var(--md-font);
    letter-spacing: -.015em;
}
body.fml-matchday :is(.fml-team-profile, .fml-profile-page, .fml-club-community, .fcc-football-evidence) h4 {
    font: 750 var(--md-label)/1.3 var(--md-font);
}
body.fml-matchday :is(.fml-team-profile, .fml-profile-page) { padding-block-end: var(--md-section-space); }
body.fml-matchday .fml-team-profile .fml-team-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: var(--md-section-space);
    padding-block: var(--md-section-space) 0;
}
body.fml-matchday .fml-team-profile .fml-team-panel > :where(:not(style, link)) { min-width: 0; margin-block: 0; }
body.fml-matchday .fml-profile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem var(--md-card-space);
}
body.fml-matchday .fml-profile-actions a {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    min-height: 44px;
}
body.fml-matchday .fml-club-squad-tools {
    display: grid;
    gap: var(--md-card-space);
    margin-block-start: var(--md-section-space);
    scroll-margin-top: 6rem;
}
body.fml-matchday .fml-club-squad-tools > * { margin: 0; }

body.fml-matchday :is(.fml-profile-panel-box, .fml-profile-disclosure, .fml-team-archive, .fml-player-profile-section,
    .fml-club-community :is(.fcc-satisfaction, .fcc-supporter-participation, .fcc-attendance, .fcc-supporter-groups, .fcc-matchday-economy)) {
    min-width: 0;
    border: 1px solid var(--md-line);
    border-radius: var(--md-radius);
    background: var(--md-paper);
}
body.fml-matchday :is(.fml-profile-panel-box,
    .fml-club-community :is(.fcc-satisfaction, .fcc-supporter-participation, .fcc-attendance, .fcc-supporter-groups, .fcc-matchday-economy)) {
    padding: var(--md-panel-inset);
}
body.fml-matchday :is(.fml-profile-disclosure, .fml-team-archive, .fml-player-page .fml-player-profile-section) { padding: 0; }
body.fml-matchday :is(.fml-profile-disclosure, .fml-team-archive, .fml-player-profile-section) > summary {
    border: 0;
    border-radius: calc(var(--md-radius) - 1px);
    margin: 0;
}
body.fml-matchday :is(.fml-profile-disclosure, .fml-team-archive, .fml-player-profile-section)[open] > summary {
    border-radius: calc(var(--md-radius) - 1px) calc(var(--md-radius) - 1px) 0 0;
    border-bottom: 1px solid var(--md-line);
}
body.fml-matchday :is(.fml-profile-disclosure-body, .fml-team-archive > div,
    .fml-player-page .fml-player-profile-section-body) {
    display: grid;
    gap: var(--md-card-space);
    min-width: 0;
    padding: var(--md-panel-inset);
}
body.fml-matchday :is(.fml-profile-disclosure-body, .fml-team-archive > div, .fml-player-page .fml-player-profile-section-body) > * {
    margin-block: 0;
}
body.fml-matchday :is(.fml-profile-panel-box, .fml-profile-disclosure-body, .fml-club-community) :is(p, li) {
    line-height: 1.5;
}
body.fml-matchday :is(.fml-profile-disclosure-body, .fml-club-community .fcc-hero,
    .fml-profile-page .fml-editorial, .fml-club-community .fcc-section-head, .fcc-group-list) :is(p,li) {
    font-weight: 400;
}
body.fml-matchday :is(.fml-profile-disclosure-body, .fcc-hero, .fcc-section-head) p { max-inline-size: 76ch; }
body.fml-matchday :is(.fml-profile-note, .fml-profile-metrics dd.fml-profile-note) {
    color: var(--md-metric-note, var(--md-muted));
    font: 500 var(--md-caption)/1.45 var(--md-font);
}
body.fml-matchday .fml-profile-disclosure-body :is(.fml-public-wrap, .fml-public-table-wrap) { min-width: 0; overflow-x: auto; }
body.fml-matchday .fml-profile-disclosure-body .fml-public-data-table { margin: 0; }
body.fml-matchday .fml-profile-spell-disclosure { margin-block-start: var(--md-card-space); }
body.fml-matchday table.fml-profile-spells {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}
body.fml-matchday .fml-spell-player-col { width: 37%; }
body.fml-matchday .fml-spell-tenure-col { width: 24%; }
body.fml-matchday .fml-spell-minutes-col { width: 23%; }
body.fml-matchday .fml-spell-rating-col { width: 16%; }
body.fml-matchday .fml-profile-spells :is(th, td) {
    vertical-align: middle;
    overflow-wrap: anywhere;
}
body.fml-matchday .fml-profile-spells :is(th, td):nth-child(n + 3) { text-align: end; }
body.fml-matchday .fml-profile-spells :is(td small, th small) { display: block; }
body.fml-matchday .fml-profile-spells td small {
    margin-block-start: .2rem;
    color: var(--md-muted);
}
body.fml-matchday .fml-profile-spells [data-pathway] small {
    width: fit-content;
    padding: .13rem .38rem;
    border-radius: var(--md-control-radius);
    background: var(--md-line);
}
body.fml-matchday .fml-profile-spells [data-pathway="promotion"] small {
    background: #f2e6ee;
    color: #693b57;
}
body.fml-matchday .fml-profile-spell-coverage {
    margin: 0 0 var(--md-card-space);
}
body.fml-matchday .fml-profile-spell-method { margin: var(--md-card-space) 0 0; }
@media (max-width: 560px) {
    body.fml-matchday table.fml-profile-spells :is(th, td) {
        padding: .55rem .35rem;
        line-height: 1.3;
        font-size: .79rem;
    }
    body.fml-matchday .fml-profile-spells small { font-size: .72rem; }
    body.fml-matchday .fml-profile-spells .fml-portal-promotion-identity { gap: .3rem; }
    body.fml-matchday .fml-profile-spells .fml-portal-promotion-identity .fml-portal-roster-photo {
        width: 1.35rem;
        flex-basis: 1.35rem;
    }
}
body.fml-matchday .fml-profile-disclosure-body .fml-public-wrap:has(> .fml-profile-spells) {
    border: 1px solid var(--md-line);
    border-radius: var(--md-radius);
}

body.fml-matchday :is(.fml-profile-metrics, .fml-profile-key-values, .fml-team-figures,
    .fcc-live-numbers, .fml-player-page .fml-player-profile-section-body > .fml-public-grid, .fml-index-kpis) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
    gap: var(--md-card-space);
    margin: 0;
    padding: 0;
}
body.fml-matchday :is(.fml-profile-metrics, .fml-profile-key-values, .fml-team-figures, .fcc-live-numbers,
    .fml-player-page .fml-player-profile-section-body > .fml-public-grid, .fml-index-kpis) > :is(div, article) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: .22rem;
    min-width: 0;
    margin: 0;
    padding: .75rem .85rem;
    border: 1px solid var(--md-metric-border, var(--md-line));
    border-radius: var(--md-control-radius);
    background: var(--md-metric-surface, var(--md-soft));
    text-align: start;
}
body.fml-matchday :is(.fml-profile-metrics, .fml-profile-key-values, .fml-team-figures, .fml-index-kpis) dt,
body.fml-matchday .fcc-live-numbers > article > span,
body.fml-matchday .fml-public-stat > strong {
    color: var(--md-metric-label, var(--md-muted));
    font: 650 var(--md-caption)/1.35 var(--md-font);
    letter-spacing: normal;
    text-transform: none;
}
body.fml-matchday :is(.fml-profile-metrics, .fml-profile-key-values, .fml-team-figures, .fml-index-kpis) dd:not(.fml-profile-note),
body.fml-matchday :is(.fcc-live-numbers > article > strong, .fml-public-stat > span) {
    margin: 0;
    color: var(--md-metric-value, var(--md-ink));
    font: 750 var(--md-stat-value)/1.18 var(--md-font);
    font-variant-numeric: tabular-nums;
    overflow-wrap: break-word;
    max-width: 100%;
}
body.fml-matchday :is(.fml-profile-metrics, .fml-profile-key-values, .fml-team-figures, .fcc-live-numbers, .fml-index-kpis) :is(dd,dt,small) {
    margin-inline: 0;
}
body.fml-matchday .fml-public-stat { background: var(--md-soft) !important; }
body.fml-matchday .fml-public-stat::before { content: none; }
body.fml-matchday :is(.fml-profile-metrics, .fcc-live-numbers, .fml-team-figures) + p { margin-top: var(--md-card-space); }
body.fml-matchday .fml-profile-panel-box > h3 { margin: 0 0 var(--md-card-space); }
body.fml-matchday .fml-profile-panel-box > :is(dl, p) + details { margin-top: var(--md-card-space); }

body.fml-matchday .fml-profile-timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .2rem;
}
body.fml-matchday .fml-profile-timeline-list > li {
    display: flex;
    align-items: start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .25rem var(--md-card-space);
    margin: 0;
    padding: .6rem .75rem;
    border-inline-start: 2px solid var(--md-gold);
    border-radius: 0 var(--md-control-radius) var(--md-control-radius) 0;
    background: var(--md-soft);
}
body.fml-matchday .fml-profile-timeline-list :is(time, li > div > span) { font-weight: 750; }
body.fml-matchday .fml-profile-timeline-list a {
    color: var(--md-ink) !important;
    text-underline-offset: .15em;
}
body.fml-matchday .fml-profile-timeline-list > li p { margin: .2rem 0 0; color: var(--md-muted); }
body.fml-matchday .fml-profile-timeline-list > li > strong {
    font-size: var(--md-item);
    font-variant-numeric: tabular-nums;
}
body.fml-matchday .fml-profile-facts { margin: var(--md-card-space) 0 0; }
body.fml-matchday .fml-profile-facts > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .25rem var(--md-card-space);
    padding: .7rem 0;
    border-top: 1px solid var(--md-line);
}
body.fml-matchday .fml-profile-facts dd { margin: 0; font-weight: 750; }

body.fml-matchday .fml-profile-transfer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    align-items: start;
    gap: var(--md-card-space);
}
body.fml-matchday :is(.fml-window-overview, .fml-profile-transfer-slot) { margin: 0; min-width: 0; }
body.fml-matchday :is(.fml-window-overview, .fml-window-card) .fml-window-card-banner {
    padding: .65rem var(--md-panel-inset);
    background: var(--md-dark);
}
body.fml-matchday .fml-window-card--ongoing .fml-window-card-status {
    background: var(--md-yellow);
    color: var(--md-ink);
}
body.fml-matchday .fml-window-overview .fml-window-overview-body { padding: var(--md-panel-inset); }
body.fml-matchday .fml-window-overview .fml-window-overview-heading h3 { margin: 0; }
body.fml-matchday .fml-profile-transfer-layout .fml-team-sheet header { padding: var(--md-panel-inset); }
body.fml-matchday .fml-profile-transfer-layout .fml-team-facts > div {
    padding: .65rem var(--md-panel-inset);
    gap: .35rem var(--md-card-space);
}
body.fml-matchday .fml-profile-transfer-layout .fml-profile-actions { margin-top: var(--md-card-space); }

body.fml-matchday .fml-club-community {
    --fcc-ink: var(--md-ink);
    --fcc-muted: var(--md-muted);
    --fcc-paper: var(--md-soft);
    display: grid;
    gap: var(--md-section-space);
    padding: 0;
}
body.fml-matchday .fml-club-community > :not(style, link) { min-width: 0; margin-block: 0; }
body.fml-matchday .fml-club-community .fcc-hero { display: block; }
body.fml-matchday .fml-club-community .fcc-hero article { padding-top: var(--md-card-space); border-top-color: var(--md-gold); }
body.fml-matchday .fml-club-community .fcc-hero p { font-size: 1rem; }
body.fml-matchday .fml-club-community :is(.fcc-section-head, .fcc-section-head p, .fcc-section-head h3, .fcc-hero h3) { margin-block: 0 .4rem; }
body.fml-matchday .fml-club-community :is(.fcc-attendance a, a:not([class])),
body.fml-matchday .fml-profile-page :is(.fml-profile-source-links a, .fml-profile-info-grid a) {
    color: var(--md-ink) !important;
    text-underline-offset: .15em;
}
body.fml-matchday .fcc-following-section { display: grid; gap: var(--md-card-space); }
body.fml-matchday .fml-club-community .fcc-following {
    background: var(--md-dark);
    color: var(--md-paper);
    border-color: var(--md-dark);
    border-top: 3px solid var(--md-gold);
}
body.fml-matchday .fcc-following :is(h3, .fcc-section-head p) { color: var(--md-paper); }
body.fml-matchday .fcc-following .fml-profile-metrics {
    --md-metric-surface: #222630;
    --md-metric-border: #424954;
    --md-metric-label: var(--md-paper);
    --md-metric-value: var(--md-yellow);
    --md-metric-note: #dee1e8;
}
body.fml-matchday .fml-club-community .fcc-group-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: var(--md-card-space);
    list-style: none;
    margin: 0;
    padding: 0;
}
body.fml-matchday .fcc-group-list .fcc-group {
    padding: var(--md-panel-inset);
    border: 1px solid var(--md-line);
    border-radius: var(--md-control-radius);
    background: var(--md-soft);
}
body.fml-matchday .fcc-group-list .fcc-group > * { margin: 0; }
body.fml-matchday .fcc-group-list .fcc-group p + p { margin-top: .45rem; }
body.fml-matchday .fcc-group-list .fcc-group .fcc-role { color: var(--md-muted); font-size: var(--md-caption); }
body.fml-matchday .fml-club-community .fcc-recruitment ul { padding-inline-start: 1.15rem; }
body.fml-matchday .fml-club-community .fcc-recruitment li + li { margin-top: .35rem; }
body.fml-matchday .fml-club-community .fcc-recruitment h4 { margin-top: .45rem; }

body.fml-matchday main:has(.fml-profile-page) > .page-header { display: none; }
body.fml-matchday .fml-profile-page .fml-player-profile-name h1 {
    color: var(--md-paper);
    margin: 0;
    font: 800 var(--md-page)/1.08 var(--md-font);
    letter-spacing: -.045em;
}
body.fml-matchday .fml-profile-page .fml-profile-panel { gap: var(--md-section-space); }
body.fml-matchday .fml-profile-page .fml-profile-overview { gap: var(--md-card-space); }
body.fml-matchday .fml-profile-page .fml-profile-overview { align-items: start; }
body.fml-matchday .fml-profile-page :is(.fml-profile-surface, .fml-profile-match-log) {
    padding: var(--md-panel-inset);
    border-color: var(--md-line);
    border-radius: var(--md-radius);
}
body.fml-matchday .fml-profile-page .fml-profile-latest-match {
    background: var(--md-result);
    border-top: 3px solid var(--md-gold);
}
body.fml-matchday .fml-profile-page .fml-profile-match-score {
    margin-inline: .2rem;
    padding: .35rem .45rem;
    color: var(--md-paper);
    background: var(--md-dark);
    border-radius: var(--md-control-radius);
}
body.fml-matchday .fml-profile-page .fml-profile-match-score small { color: var(--md-paper); }
body.fml-matchday .fml-profile-eafc-attributes { margin-block-start: var(--md-card-space); }
body.fml-matchday .fml-profile-eafc-attributes:not(:has(.fml-profile-key-values > div, details)) { display: none; }
body.fml-matchday .fml-profile-page :is(.fml-profile-stars, .fml-ir) {
    font-size: var(--md-label);
    white-space: nowrap;
}
body.fml-matchday .fml-profile-page .fml-profile-numbers .fml-profile-key-values {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.2rem), 1fr));
    margin-top: var(--md-card-space);
}
body.fml-matchday .fml-profile-page .fml-profile-numbers .fml-profile-eafc-attributes .fml-profile-key-values { margin-top: 0; }
body.fml-matchday .fml-profile-page .fml-profile-numbers dd.fml-profile-note { margin: 0; }
body.fml-matchday .fml-profile-page .fml-profile-source-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--md-card-space);
}
body.fml-matchday .fml-profile-page .fml-profile-source-links a {
    display: inline-flex;
    gap: .3rem;
    align-items: center;
    min-height: 44px;
}

body.fml-matchday .fml-profile-page .fml-index-profile {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
body.fml-matchday .fml-index-app .fml-index-player {
    padding: var(--md-panel-inset);
    border-color: var(--md-line);
    border-radius: var(--md-radius);
}
body.fml-matchday .fml-index-app .fml-index-player > header {
    margin: calc(-1 * var(--md-panel-inset)) calc(-1 * var(--md-panel-inset)) var(--md-card-space);
    padding: var(--md-panel-inset);
    border: 0;
    border-radius: calc(var(--md-radius) - 1px) calc(var(--md-radius) - 1px) 0 0;
    background: var(--md-dark);
    color: var(--md-paper);
}
body.fml-matchday .fml-index-app .fml-index-player > header h2 {
    color: var(--md-paper);
    font: 800 var(--md-section)/1.17 var(--md-font);
}
body.fml-matchday .fml-index-app .fml-index-player > header :is(.fml-index-eyebrow, .fml-index-score) { color: var(--md-yellow); }
body.fml-matchday .fml-index-app .fml-index-player .fml-index-score { font-size: clamp(1.7rem, 4vw, 2.65rem); }
body.fml-matchday .fml-index-app .fml-index-player .fml-index-button {
    margin-top: .65rem;
    min-height: 44px;
    border-radius: var(--md-control-radius);
}
body.fml-matchday .fml-profile-page .fml-profile-tabs a[aria-selected="true"] {
    background: var(--md-yellow);
    border-bottom-color: var(--md-yellow);
}
body.fml-matchday .fml-season-tab-panel > .fml-season-standings-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: var(--md-card-space);
}
body.fml-matchday .fml-season-standings-panel > :is(h3, .fml-season-standings-phases, .fml-season-format) { margin: 0; }
body.fml-matchday .fml-season-standings-panel > .fml-season-standings-phases {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
body.fml-matchday .fml-season-phase-tabs > :is(a, button) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .4rem .65rem;
    border: 1px solid var(--md-line) !important;
    border-radius: var(--md-control-radius);
    background: var(--md-paper);
    color: var(--md-ink) !important;
    font: 750 var(--md-label)/1.25 var(--md-font);
    transition: none;
}
body.fml-matchday .fml-season-phase-tabs > :is(a, button):hover { background: var(--md-soft); }
body.fml-matchday .fml-season-phase-tabs > :is(a, button):is(.is-active, [aria-selected="true"], [aria-pressed="true"]) {
    background: var(--md-yellow) !important;
    border-color: var(--md-yellow) !important;
}
body.fml-matchday .fml-player-page .fml-player-season-history-table tbody tr.fml-season-band-muted > td { background: var(--md-soft) !important; }
body.fml-matchday .fml-player-page .fml-player-season-history-table :is(tfoot, tbody > tr.fml-public-total-row) :is(th, td) {
    border-top: 1px solid var(--md-line) !important;
    background: var(--md-soft) !important;
}
body.fml-matchday :is(.fml-profile-disclosure, .fml-team-archive, .fml-player-profile-section, .fml-club-community) > summary:focus-visible,
body.fml-matchday :is(.fml-club-community, .fml-team-profile, .fml-profile-page) :focus-visible {
    outline: 3px solid var(--md-focus);
    outline-offset: 2px;
}
body.fml-matchday :is(.fml-player-profile-section, .fml-profile-disclosure, .fml-team-archive) > summary:focus-visible { outline-offset: -4px; }

@media (max-width: 760px) {
    body.fml-matchday .fml-profile-transfer-layout { grid-template-columns: minmax(0, 1fr); }
}

body.fml-matchday .fml-manager-collapsible {
    --fml-portal-disclosure-inset: clamp(12px, 2vw, var(--md-panel-inset, 18px));
}

body.fml-matchday .fml-manager-collapsible > .fml-manager-collapsible-body {
    padding-block-start: var(--fml-portal-disclosure-inset);
}

body.fml-matchday .fml-portal-roster-list {
    background: var(--md-paper);
}

body.fml-matchday .fml-portal-roster-list > .fml-portal-roster-player > summary {
    grid-template-columns: 2rem minmax(0, 1fr) max-content 10px;
    min-height: 3.25rem;
    column-gap: .55rem;
}

body.fml-matchday .fml-portal-roster-photo {
    display: grid;
    place-items: center;
    width: 2rem;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    background: var(--md-soft);
}

body.fml-matchday .fml-portal-roster-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.fml-matchday .fml-portal-roster-name,
body.fml-matchday .fml-portal-roster-value {
    display: grid;
    gap: .12rem;
    min-width: 0;
    line-height: 1.2;
}

body.fml-matchday .fml-portal-roster-name small,
body.fml-matchday .fml-portal-roster-value small {
    color: var(--md-muted);
    font-size: var(--md-caption);
    font-weight: 500;
}

body.fml-matchday .fml-portal-roster-value {
    text-align: end;
    font-variant-numeric: tabular-nums;
}

body.fml-matchday .fml-portal-roster-facts { margin-block: 0 .6rem; }
body.fml-matchday .fml-portal-roster-facts .is-gain { color: var(--md-status-done-ink); }
body.fml-matchday .fml-portal-roster-facts .is-loss { color: var(--md-live); }
body.fml-matchday .fml-portal-roster-method { margin-block-start: .65rem; }

body.fml-matchday .fml-squad-overview .fml-squad-overview-team {
    background: transparent;
    border: 0;
    padding: 0;
}

body.fml-matchday .fml-portal-team-row-label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .15rem .55rem;
}

body.fml-matchday .fml-portal-team-row-label small,
body.fml-matchday .fml-squad-transfer-hold-list li > span,
body.fml-matchday .fml-squad-transfer-hold-list small {
    color: var(--md-muted);
    font: 500 var(--md-caption)/1.4 var(--md-font);
}

body.fml-matchday .fml-squad-transfer-hold-list { margin: 0; }
body.fml-matchday .fml-squad-transfer-hold-list li {
    align-items: baseline;
    padding: .5rem 0;
    border-bottom: 1px solid var(--md-line);
}

body.fml-matchday .fml-squad-transfer-hold-list li:last-child { border-bottom: 0; }
body.fml-matchday .fml-squad-transfer-hold-list small { display: block; }
body.fml-matchday .fml-squad-transfer-hold-list a {
    color: var(--md-ink);
    text-decoration: underline;
    text-decoration-color: var(--md-gold);
    text-underline-offset: .17em;
}

body.fml-matchday .fml-portal-team-structure {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: var(--md-card-space);
}

body.fml-matchday .fml-portal-team-structure h5 {
    margin: 0 0 .4rem;
    color: var(--md-ink);
    font: 750 var(--md-label)/1.25 var(--md-font);
}

body.fml-matchday .fml-squad-overview-team .fml-portal-team-facts > div {
    grid-template-columns: minmax(0, 1fr) auto;
    border-color: var(--md-line);
}

body.fml-matchday .fml-portal-team-structure .fml-portal-team-facts dd { font-variant-numeric: tabular-nums; }

body.fml-matchday .fml-squad-overview .fml-manager-collapsible-body {
    padding-inline: var(--fml-portal-disclosure-inset);
}

body.fml-matchday .fml-squad-overview .fml-squad-overview-team > h4 {
    margin: 0 0 var(--md-card-space);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--md-ink);
    font: 750 var(--md-item)/1.25 var(--md-font);
}

body.fml-matchday .fml-eafc-badge {
    --fml-eafc-ink: var(--md-yellow);
    display: inline-grid;
    justify-items: center;
    align-content: start;
    gap: .22rem;
    color: var(--md-muted);
    font: 750 var(--md-caption)/1.15 var(--md-font);
    white-space: nowrap;
}

body.fml-matchday .fml-eafc-badge[data-squad="u21"] {
    --fml-eafc-ink: #efbdd0;
}

body.fml-matchday .fml-eafc-badge-number {
    display: grid;
    place-items: center;
    width: 2.6rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--md-dark);
    color: var(--fml-eafc-ink);
    box-shadow: inset 0 0 0 1px #ffffff38;
    font: 800 1.2rem/1 var(--md-font);
    font-variant-numeric: tabular-nums;
}

body.fml-matchday .fml-eafc-badge small {
    color: inherit;
    font: inherit;
}

body.fml-matchday .fml-directory-rating .fml-eafc-badge {
    color: var(--md-paper);
}

@media (max-width: 650px) {
    body.fml-matchday .fml-player-directory--search .fml-directory-grid--list > .fml-directory-card {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        background: var(--md-soft);
    }

    body.fml-matchday .fml-player-directory--search .fml-directory-grid--list .fml-directory-front {
        grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
        align-items: center;
        gap: .55rem;
        padding: .6rem 0 .6rem .65rem;
    }

    body.fml-matchday .fml-player-directory--search .fml-directory-grid--list .fml-directory-portrait {
        display: contents;
    }

    body.fml-matchday .fml-player-directory--search .fml-directory-grid--list .fml-directory-photo {
        grid-area: 1 / 1;
        align-self: center;
        overflow: hidden;
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        border-radius: 50%;
        background-color: var(--md-dark);
    }

    body.fml-matchday .fml-player-directory--search .fml-directory-grid--list .fml-directory-photo img {
        object-fit: cover;
        object-position: center;
    }

    body.fml-matchday .fml-player-directory--search .fml-directory-grid--list .fml-directory-identity {
        grid-area: 1 / 2;
        gap: .24rem;
        padding: 0;
    }

    body.fml-matchday .fml-player-directory--search .fml-directory-grid--list .fml-matchday-squad {
        margin: 0;
    }

    body.fml-matchday .fml-player-directory--search .fml-directory-grid--list .fml-directory-rating {
        grid-area: 1 / 3;
        justify-items: center;
        padding: 0;
        color: var(--md-muted);
        text-align: center;
    }

    body.fml-matchday .fml-player-directory--search .fml-directory-grid--list .fml-eafc-badge {
        color: var(--md-muted);
        font-size: .66rem;
    }

    body.fml-matchday .fml-player-directory--search .fml-directory-grid--list .fml-eafc-badge-number {
        width: 2.35rem;
        font-size: 1rem;
    }

    body.fml-matchday .fml-player-directory--search .fml-directory-grid--list .fml-directory-rating .fml-eafc-missing small {
        color: var(--md-muted);
        font-size: .63rem;
        overflow-wrap: anywhere;
    }

    body.fml-matchday .fml-player-directory--search .fml-directory-grid--list .fml-directory-flip:not([hidden]) {
        justify-content: center;
        width: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        font-size: 1rem;
    }

    body.fml-matchday .fml-player-directory--search .fml-directory-grid--list .fml-directory-flip:is(:hover, :focus-visible) {
        background: var(--md-paper);
    }
}

body.fml-matchday .fml-profile-eafc-overall:has(.fml-eafc-badge) > dt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

body.fml-matchday .fml-portal-roster-list .fml-portal-roster-details {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
    gap: .6rem var(--md-card-space);
    align-items: center;
    background: var(--md-soft);
    border-top: 1px solid var(--md-line);
}

body.fml-matchday .fml-portal-roster-details .fml-portal-roster-facts {
    margin: 0;
}

body.fml-matchday .fml-portal-roster-details .fml-portal-roster-facts > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: .15rem .5rem;
    border: 0;
    padding: .18rem 0;
}

body.fml-matchday .fml-portal-roster-details .fml-portal-roster-facts dt {
    color: var(--md-muted);
    font: 600 var(--md-caption)/1.3 var(--md-font);
}

body.fml-matchday .fml-portal-roster-profile {
    grid-column: 1 / -1;
    justify-self: start;
    color: var(--md-ink);
    text-decoration: underline;
    text-decoration-color: var(--md-gold);
    text-underline-offset: .17em;
}

body.fml-matchday .fml-portal-roster-rating:has(.fml-eafc-missing) {
    grid-column: 1 / -1;
}

body.fml-matchday .fml-portal-roster-rating:has(.fml-eafc-missing) + dl {
    grid-column: 1 / -1;
}

body.fml-matchday .fml-eafc-unavailable {
    display: grid;
    gap: .2rem;
    color: inherit;
    font: 650 var(--md-caption)/1.35 var(--md-font);
}

body.fml-matchday .fml-portal-roster-list > .fml-portal-roster-position {
    margin: 0;
    padding: .5rem .75rem;
    color: var(--md-muted);
    background: var(--md-soft);
    font: 750 var(--md-caption)/1.3 var(--md-font);
}

body.fml-matchday .fml-portal-roster-position:first-child {
    border-start-start-radius: inherit;
    border-start-end-radius: inherit;
}

body.fml-matchday .fml-portal-squad-metric {
    min-width: 0;
    padding: var(--md-card-space);
    border: 1px solid var(--md-line);
    border-radius: var(--md-control-radius);
    background: var(--md-soft);
}

body.fml-matchday .fml-portal-squad-metric h5 { margin-block-end: .65rem; }
body.fml-matchday .fml-portal-squad-metric dl { display: grid; gap: .55rem; }
body.fml-matchday .fml-squad-overview-team .fml-portal-squad-metric dl > div {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .18rem .45rem;
    align-items: baseline;
    padding: 0;
    border: 0;
}
body.fml-matchday .fml-portal-squad-metric dt {
    color: var(--md-muted);
    font: 600 var(--md-caption)/1.35 var(--md-font);
}
body.fml-matchday .fml-portal-squad-metric dd { font-weight: 750; font-variant-numeric: tabular-nums; }
body.fml-matchday .fml-portal-squad-share {
    grid-column: 1 / -1;
    display: block;
    overflow: hidden;
    height: .2rem;
    border-radius: 1rem;
    background: var(--md-line);
}
body.fml-matchday .fml-portal-squad-share > span { display: block; height: 100%; background: var(--md-gold); }

body.fml-matchday .fml-squad-overview-team .fml-portal-transfer-overview {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
body.fml-matchday .fml-squad-overview-team .fml-portal-transfer-overview > div:not(.fml-portal-compact-grid) {
    border: 1px solid var(--md-line);
    padding: var(--md-card-space);
    gap: .35rem;
}
body.fml-matchday .fml-portal-transfer-overview > div > dd {
    width: 100%;
    font: 650 var(--md-label)/1.35 var(--md-font);
}
body.fml-matchday .fml-portal-transfer-overview dd > small {
    display: block;
    margin-block-start: .25rem;
    color: var(--md-muted);
    font: 500 var(--md-caption)/1.4 var(--md-font);
}
body.fml-matchday .fml-portal-transfer-total { font: 800 var(--md-stat-value)/1.2 var(--md-font); }
body.fml-matchday .fml-portal-transfer-overview a,
body.fml-matchday .fml-portal-promotion-identity > span > a {
    color: var(--md-ink);
    text-decoration: underline;
    text-decoration-color: var(--md-gold);
    text-underline-offset: .17em;
}
body.fml-matchday .fml-portal-transfer-overview .fml-squad-promotion-list {
    display: grid;
    gap: .35rem;
    margin-block: .6rem 0;
}

body.fml-matchday .fml-portal-allowance { grid-column: 1 / -1; }
body.fml-matchday .fml-portal-allowance-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: .25rem .75rem;
}
body.fml-matchday .fml-portal-allowance-summary small {
    color: var(--md-muted);
    font: 500 var(--md-caption)/1.4 var(--md-font);
}
body.fml-matchday .fml-portal-allowance-slots {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 4.65rem), 1fr));
    gap: .4rem;
    margin: .55rem 0 0;
    padding: 0;
}
body.fml-matchday .fml-portal-allowance-slots > li {
    display: grid;
    justify-items: center;
    gap: .14rem;
    padding: .5rem .3rem;
    border-radius: var(--md-control-radius);
    text-align: center;
    background: var(--md-status-done-bg);
    color: var(--md-status-done-ink);
    font: 650 var(--md-caption)/1.3 var(--md-font);
}
body.fml-matchday .fml-portal-allowance-slots > li[data-state="used"] {
    background: var(--md-line);
    color: var(--md-ink);
}
body.fml-matchday .fml-portal-allowance-slots strong { font: 800 var(--md-item)/1.2 var(--md-font); }
body.fml-matchday .fml-portal-allowance-slots small { color: inherit; font: inherit; font-weight: 500; }

@media (max-width: 520px) {
    body.fml-matchday .fml-portal-allowance-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

body.fml-matchday .fml-portal-position-details { margin-block-start: var(--md-card-space); }
body.fml-matchday .fml-portal-position-details ul {
    display: grid;
    gap: .3rem;
    margin: .55rem 0 0;
    padding: 0;
    list-style: none;
}
body.fml-matchday .fml-portal-position-details li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: .15rem .65rem;
    padding: .3rem 0;
    border-bottom: 1px solid var(--md-line);
}
body.fml-matchday .fml-portal-position-details li > span,
body.fml-matchday .fml-portal-position-details li small {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem .5rem;
    color: var(--md-muted);
    font: 500 var(--md-caption)/1.35 var(--md-font);
}

body.fml-matchday .fml-squad-overview-team .fml-portal-transfer-overview--first {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--md-card-space);
}

body.fml-matchday :is(.fml-portal-allowance, .fml-portal-special-card, .fml-portal-promotion-card) {
    display: grid;
    min-width: 0;
    gap: .55rem;
    padding: var(--md-card-space);
    border: 1px solid var(--md-line);
    border-radius: var(--md-radius);
    background: var(--md-soft);
}

body.fml-matchday .fml-portal-transfer-overview--first h5 {
    margin: 0;
    color: var(--md-ink);
    font: 750 var(--md-label)/1.25 var(--md-font);
}

body.fml-matchday .fml-portal-allowance-slots > li {
    align-content: center;
    border: 1px solid var(--md-line);
    background: var(--md-paper);
    color: var(--md-ink);
}

body.fml-matchday .fml-portal-allowance-slots > li[data-state="used"] {
    background: var(--md-soft);
    color: var(--md-muted);
}

body.fml-matchday .fml-portal-allowance-slots > li[data-paid] > span {
    color: var(--md-status-action-ink);
}

body.fml-matchday .fml-portal-allowance-slots .fml-portal-slot-status {
    padding: .14rem .45rem;
    border-radius: 999px;
    background: var(--md-status-done-bg);
    color: var(--md-status-done-ink);
}
body.fml-matchday .fml-portal-allowance-slots > li[data-state="used"] .fml-portal-slot-status {
    background: var(--md-line);
    color: var(--md-ink);
}

body.fml-matchday .fml-portal-special-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) max-content;
    align-items: center;
    gap: .65rem;
}

body.fml-matchday .fml-portal-special-head .fml-portal-roster-photo { width: 3rem; }
body.fml-matchday .fml-portal-special-player { display: block; margin-block: .2rem .12rem; font-size: var(--md-item); }
body.fml-matchday .fml-portal-special-head:has(.fml-eafc-unavailable) { grid-template-columns: auto minmax(0, 1fr); }
body.fml-matchday .fml-portal-special-head:has(.fml-eafc-unavailable) > :last-child { grid-column: 2; }

body.fml-matchday .fml-portal-special-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
    gap: .5rem;
}

body.fml-matchday .fml-squad-overview-team .fml-portal-special-facts > div {
    display: block;
    padding: .48rem .55rem;
    border: 1px solid var(--md-line);
    border-radius: var(--md-control-radius);
    background: var(--md-paper);
}

body.fml-matchday .fml-portal-special-facts dt { color: var(--md-muted); font: 600 var(--md-caption)/1.3 var(--md-font); }
body.fml-matchday .fml-portal-special-facts dd { font-weight: 750; font-variant-numeric: tabular-nums; }
body.fml-matchday .fml-portal-special-facts .is-gain { color: var(--md-status-done-ink); }
body.fml-matchday .fml-portal-special-facts .is-loss { color: var(--md-live); }
body.fml-matchday .fml-portal-special-card p { margin: 0; }

body.fml-matchday .fml-portal-promotion-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .2rem .55rem;
}

body.fml-matchday .fml-portal-promotion-card .fml-squad-promotion-list {
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    font: 650 var(--md-label)/1.3 var(--md-font);
}
body.fml-matchday .fml-portal-promotion-card .fml-squad-promotion-list > li {
    padding: .42rem 0;
    border-top: 1px solid var(--md-line);
}

body.fml-matchday .fml-portal-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    align-items: start;
    gap: var(--md-card-space);
}
body.fml-matchday .fml-portal-compact-panel :is(h5, p) { margin: 0; }
body.fml-matchday .fml-portal-compact-panel h5 {
    color: var(--md-ink);
    font: 750 var(--md-label)/1.3 var(--md-font);
}
body.fml-matchday .fml-portal-compact-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .35rem .7rem;
    font: 600 var(--md-label)/1.3 var(--md-font);
}
body.fml-matchday .fml-portal-compact-line :is(strong, time) { font-variant-numeric: tabular-nums; }
body.fml-matchday .fml-portal-compact-detail {
    padding-block-start: .55rem;
    border-block-start: 1px solid var(--md-line);
}
body.fml-matchday .fml-u21-pathway-status {
    margin-block-start: var(--md-card-space);
    padding: .55rem .75rem;
    border: 1px solid var(--md-line);
    border-radius: var(--md-control-radius);
    background: var(--md-soft);
}
body.fml-matchday .fml-u21-pathway-details { padding-block-start: var(--md-card-space); }
body.fml-matchday .fml-u21-pathway-details .fml-portal-promotion-card > p { margin: 0; }
body.fml-matchday .fml-u21-pathway-debut {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .55rem;
    font-variant-numeric: tabular-nums;
}
body.fml-matchday .fml-u21-pathway-debut > span { color: var(--md-muted); }
body.fml-matchday .fml-u21-pathway .fcc-method + .fcc-method { margin-block-start: var(--md-card-space); }
body.fml-matchday .fml-portal-eafc-link-edit {
    margin-block-start: var(--md-card-space);
    max-inline-size: 40rem;
}
body.fml-matchday .fml-portal-eafc-link-edit > summary { background: var(--md-paper); }
body.fml-matchday .fml-portal-eafc-link-edit form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: var(--md-card-space);
    margin: var(--md-card-space) 0 0;
}
body.fml-matchday .fml-portal-eafc-link-edit label {
    display: grid;
    flex: 1 1 17rem;
    min-width: 0;
    gap: .3rem;
}
body.fml-matchday .fml-portal-eafc-link-edit input[type="url"] {
    width: 100%;
    padding: .55rem .75rem;
}
@media (max-width: 520px) {
    body.fml-matchday .fml-portal-eafc-link-edit form button { width: 100%; }
}

@media (max-width: 380px) {
    body.fml-matchday .fml-portal-special-head .fml-portal-roster-photo { width: 2.4rem; }
    body.fml-matchday .fml-portal-special-head { gap: .45rem; }
}

body.fml-matchday .fml-squad-overview-team dl.fml-squad-overview-metrics > .fml-squad-overview-eafc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas: "label badge" "coverage badge";
    align-content: center;
    align-items: center;
    gap: .12rem .45rem;
}
body.fml-matchday .fml-squad-overview-eafc dt { grid-area: label; }
body.fml-matchday .fml-squad-overview-eafc dd:first-of-type { grid-area: badge; }
body.fml-matchday .fml-squad-overview-eafc dd.fml-profile-note { grid-area: coverage; }
body.fml-matchday .fml-squad-overview-eafc .fml-eafc-badge-number { font-size: 1.02rem; }

body.fml-matchday .fml-portal-promotion-card .fml-portal-promotion-player {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) max-content;
    grid-template-areas: "identity values rating";
    align-items: center;
    gap: .45rem .8rem;
    padding-block: .7rem;
}

body.fml-matchday .fml-portal-promotion-identity {
    grid-area: identity;
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}
body.fml-matchday .fml-portal-promotion-identity .fml-portal-roster-photo { flex: 0 0 2rem; }
body.fml-matchday .fml-portal-promotion-identity small { display: block; margin-block-start: .2rem; }
body.fml-matchday .fml-portal-promotion-rating { grid-area: rating; justify-self: end; }
body.fml-matchday .fml-portal-promotion-values {
    grid-area: values;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .4rem;
}
body.fml-matchday .fml-squad-overview-team .fml-portal-promotion-values > div {
    display: block;
    padding: 0;
    border: 0;
}
body.fml-matchday .fml-portal-promotion-values > :only-child { grid-column: 1 / -1; }
body.fml-matchday .fml-portal-promotion-values dt {
    color: var(--md-muted);
    font: 600 var(--md-caption)/1.3 var(--md-font);
}
body.fml-matchday .fml-portal-promotion-values dd {
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}
body.fml-matchday .fml-portal-promotion-values .is-gain { color: var(--md-status-done-ink); }
body.fml-matchday .fml-portal-promotion-values .is-loss { color: var(--md-live); }

@media (max-width: 650px) {
    body.fml-matchday .fml-portal-promotion-card .fml-portal-promotion-player {
        grid-template-columns: minmax(0, 1fr) max-content;
        grid-template-areas: "identity rating" "values values";
    }
    body.fml-matchday .fml-portal-promotion-values { padding-inline-start: 2.5rem; }
}

@media (max-width: 540px) {
    body.fml-matchday .fml-squad-overview-team dl.fml-squad-overview-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* FML Index monthly news and the linked ranking. */
body.fml-matchday .fml-index-news {
    display: grid;
    gap: 1.25rem;
    margin-block-start: 1.25rem;
    font: 400 1rem/1.45 var(--md-font);
    color: var(--md-ink);
}
body.fml-matchday .fml-index-news-sections,
body.fml-matchday .fml-index-news-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
}
body.fml-matchday .fml-index-news-panel,
body.fml-matchday .fml-index-news-highlights > div,
body.fml-matchday .fml-index-news-coverage {
    min-width: 0;
    border: 1px solid var(--md-line);
    border-radius: var(--md-radius);
    background: var(--md-paper);
}
body.fml-matchday .fml-index-news-panel--leaders {
    grid-column: 1 / -1;
    border-block-start: 3px solid var(--md-gold);
}
body.fml-matchday .fml-news-content .fml-index-news-panel > h2 {
    margin: 0;
    padding: .8rem 1rem;
    border-block-end: 1px solid var(--md-line);
    background: var(--md-soft);
    border-radius: calc(var(--md-radius) - 1px) calc(var(--md-radius) - 1px) 0 0;
    font: 750 1.08rem/1.3 var(--md-font);
}
body.fml-matchday .fml-news-content .fml-index-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
body.fml-matchday .fml-index-news-list > li {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem;
    margin: 0;
    padding: .65rem .875rem;
    font: 400 .9rem/1.35 var(--md-font);
}
body.fml-matchday .fml-index-news-list > li + li { border-block-start: 1px solid var(--md-line); }
body.fml-matchday .fml-index-news-rank {
    color: var(--md-muted);
    font-size: .79rem;
    font-variant-numeric: tabular-nums;
}
body.fml-matchday .fml-index-news-person {
    display: flex;
    align-items: center;
    gap: .5rem;
    overflow-wrap: anywhere;
}
body.fml-matchday .fml-index-news-person img { margin: 0; }
body.fml-matchday .fml-news-content .fml-index-news-person a,
body.fml-matchday .fml-news-content .fml-index-news-highlights a {
    color: var(--md-ink);
    font-weight: 750;
    text-decoration: underline;
    text-decoration-color: var(--md-gold);
    text-underline-offset: .2em;
}
body.fml-matchday .fml-index-news-score {
    text-align: end;
    font-variant-numeric: tabular-nums;
}
body.fml-matchday .fml-index-news-score strong { font-size: 1.03rem; white-space: nowrap; }
body.fml-matchday .fml-index-news-score [data-change="up"] { color: #176140; }
body.fml-matchday .fml-index-news-score [data-change="down"] { color: #a12a35; }
body.fml-matchday .fml-index-news-list small {
    display: block;
    margin-block-start: .16rem;
    color: var(--md-muted);
    font-size: .74rem;
    font-weight: 400;
}
body.fml-matchday .fml-index-news-highlights { margin: 0; }
body.fml-matchday .fml-index-news-highlights > div { padding: .75rem .875rem; background: var(--md-soft); }
body.fml-matchday .fml-index-news :is(dt, .fml-index-news-note) {
    color: var(--md-muted);
    font: 400 .88rem/1.45 var(--md-font);
}
body.fml-matchday .fml-index-news dd { margin: .2rem 0 0; }
body.fml-matchday .fml-index-news-highlights dd:not(.fml-index-news-note) {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
}
body.fml-matchday .fml-index-news > p { margin: 0; }
body.fml-matchday .fml-news-content a.fml-index-news-action {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .55rem .95rem;
    border-radius: 8px;
    background: var(--md-yellow);
    color: var(--md-ink);
    font-weight: 750;
    text-decoration: none;
}
body.fml-matchday .fml-news-content a.fml-index-news-action:hover { background: var(--md-sort); }
body.fml-matchday .fml-index-news-coverage { padding: 0 .875rem; background: var(--md-soft); }
body.fml-matchday .fml-index-news-coverage summary {
    cursor: pointer;
    padding-block: .72rem;
    font-weight: 750;
}
body.fml-matchday .fml-index-news-coverage dl { margin: .55rem 0 0; }
body.fml-matchday .fml-index-news-coverage dl > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .15rem .65rem;
    padding-block: .4rem;
    border-block-start: 1px solid var(--md-line);
}
body.fml-matchday .fml-index-news-coverage dd { margin: 0; font-variant-numeric: tabular-nums; }
body.fml-matchday .fml-index-news-coverage > p { margin: .4rem 0 .8rem; }

body.fml-matchday .fml-index-scroll:has(table[data-fml-columns-profile="fml-index"]) {
    border-color: var(--md-line);
    border-radius: var(--md-radius);
}
body.fml-matchday table[data-fml-columns-profile="fml-index"] tbody th[scope="row"] .fml-index-player-link {
    display: flex;
    width: fit-content;
    line-height: 1.25;
}
body.fml-matchday table[data-fml-columns-profile="fml-index"] .fml-matchday-club-identity {
    margin-block-start: .2rem;
    color: var(--md-muted);
    font-size: .76rem;
}
body.fml-matchday table[data-fml-columns-profile="fml-index"] .fml-matchday-club-identity img {
    width: 16px;
    height: 16px;
}
body.fml-matchday table[data-fml-columns-profile="fml-index"] .fml-index-badge {
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--md-muted);
    padding: 0;
    font-size: .72rem;
    line-height: 1.25;
}
body.fml-matchday table[data-fml-columns-profile="fml-index"] :is([data-fml-column-key="rating"], [data-fml-column-key="delta-points"], [data-fml-column-key="delta-rank"]),
body.fml-matchday table[data-fml-columns-profile="fml-index"] tbody td:nth-child(n+3) {
    text-align: end;
}

@media (max-width: 640px) {
    body.fml-matchday .fml-index-news-sections,
    body.fml-matchday .fml-index-news-highlights {
        grid-template-columns: minmax(0, 1fr);
    }
    body.fml-matchday .fml-index-news-list > li {
        grid-template-columns: 1.65rem minmax(0, 1fr) auto;
        padding-inline: .65rem;
        gap: .45rem;
    }
    body.fml-matchday .fml-index-news-person img {
        width: 26px;
        height: 26px;
    }
    body.fml-matchday table[data-fml-columns-profile="fml-index"] .fml-index-player-photo {
        width: 26px;
        height: 26px;
    }
}

body.fml-matchday #fml-index-results {
    scroll-margin-block-start: 1rem;
}
body.fml-matchday .fml-index-pagination {
    display: grid;
    gap: .45rem;
    margin-block: 1rem;
}
body.fml-matchday .fml-index-page-numbers,
body.fml-matchday .fml-index-page-select {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}
body.fml-matchday .fml-index-page-numbers { list-style: none; }
body.fml-matchday .fml-index-page-steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: .35rem;
    align-items: center;
}
body.fml-matchday .fml-index-pagination .fml-index-page-total {
    grid-column: 2;
    color: var(--md-muted);
    text-align: center;
    font-size: var(--md-caption);
}
body.fml-matchday .fml-index-page-previous { grid-column: 1; justify-self: start; }
body.fml-matchday .fml-index-page-next { grid-column: 3; justify-self: end; }
body.fml-matchday .fml-index-pagination :is(a, [aria-current="page"], button, select) {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: .25rem .55rem;
    border: 1px solid var(--md-line);
    border-radius: var(--md-control-radius);
    background: var(--md-paper);
    color: var(--md-ink);
    font: 700 var(--md-caption)/1.2 var(--md-font);
    text-decoration: none;
    text-align: center;
}
body.fml-matchday .fml-index-pagination a:hover {
    background: var(--md-soft);
    color: var(--md-ink) !important;
}
body.fml-matchday .fml-index-pagination :is([aria-current="page"], button) {
    border-color: var(--md-gold);
    background: var(--md-yellow);
    color: var(--md-ink);
}
body.fml-matchday .fml-index-page-select button[type="submit"] { cursor: pointer; }

body.fml-matchday .fml-index-news-editorial {
    border-block-start: 3px solid var(--md-gold);
    padding-block: 1.15rem .25rem;
}
body.fml-matchday .fml-index-news-editorial > :is(.fml-news-meta, .fml-news-byline) {
    margin: 0;
    color: var(--md-muted);
}
body.fml-matchday .fml-news-content .fml-index-news-editorial > h2 {
    margin: .4rem 0 .45rem;
    color: var(--md-ink);
    font: 650 clamp(1.7rem, 4vw, 2.45rem)/1.07 var(--md-editorial);
    text-wrap: balance;
}
body.fml-matchday .fml-index-news-editorial .fml-news-byline a {
    color: var(--md-ink);
    text-decoration-color: var(--md-gold);
    text-underline-offset: .2em;
}
body.fml-matchday .fml-index-news-editorial > .fml-index-news-editorial-copy {
    max-width: 66ch;
    margin: .8rem 0 0;
    font: 400 1rem/1.58 var(--md-font);
}

body.fml-matchday .fml-squad-overview-team dl.fml-squad-overview-metrics {
    margin-block-end: 0;
}
body.fml-matchday .fml-squad-overview-team .fml-squad-overview-metrics > div {
    padding: .65rem .75rem;
    background: var(--md-soft);
}
body.fml-matchday .fml-squad-overview-team dl.fml-squad-overview-metrics > .fml-squad-overview-eafc {
    grid-template-areas: "label badge" "coverage badge" "reference reference";
}
body.fml-matchday .fml-squad-overview-eafc .fml-squad-metric-reference { grid-area: reference; }
body.fml-matchday .fml-squad-overview-team :is(.fml-squad-overview-metrics, .fml-portal-u21-tenure-metrics, .fml-portal-club-tenure-metrics) dd.fml-squad-metric-reference {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: .25rem .4rem;
    width: 100%;
    padding-block-start: .45rem;
    margin: .45rem 0 0;
    border-block-start: 1px solid var(--md-line);
    color: var(--md-muted);
    font: 400 var(--md-caption)/1.35 var(--md-font);
    font-variant-numeric: tabular-nums;
}
body.fml-matchday .fml-squad-metric-reference strong { color: var(--md-ink); }
body.fml-matchday .fml-squad-metric-rank {
    padding: .12rem .45rem;
    border-radius: 999px;
    background: var(--md-sort);
    color: var(--md-status-action-ink);
    font-weight: 750;
    white-space: nowrap;
}
body.fml-matchday .fml-squad-overview--u21 .fml-squad-metric-rank {
    background: #f2e6ee;
    color: #693b57;
}
body.fml-matchday .fml-squad-overview-team > .fml-squad-reference-scope { margin: .45rem 0 .75rem; }
body.fml-matchday .fml-squad-overview-team .fml-portal-u21-tenure-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 470px) {
    body.fml-matchday .fml-squad-overview-team dl.fml-squad-overview-metrics,
    body.fml-matchday .fml-squad-overview-team .fml-portal-u21-tenure-metrics {
        grid-template-columns: minmax(0, 1fr);
    }
}

body.fml-matchday .fml-squad-overview-team .fml-portal-club-tenure-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.fml-matchday .fml-portal-club-tenure-metrics .fml-profile-note {
    margin-block-start: .45rem;
}
body.fml-matchday :is(.fml-portal-club-tenure-metrics, .fml-u21-comparison-metrics) dd.fml-portal-club-tenure-track {
    position: relative;
    align-self: stretch;
    height: .42rem;
    margin: .55rem 0 .1rem;
    border-radius: 999px;
    background: var(--md-line);
}
body.fml-matchday .fml-portal-club-tenure-track > span {
    display: block;
    width: var(--fml-tenure-own);
    height: 100%;
    border-radius: inherit;
    background: var(--md-gold);
}
body.fml-matchday .fml-portal-club-tenure-track::after {
    content: "";
    position: absolute;
    inset-block: -.22rem;
    inset-inline-start: clamp(0px, var(--fml-tenure-average), calc(100% - 2px));
    width: 2px;
    border-radius: 1px;
    background: var(--md-ink);
}
body.fml-matchday .fml-squad-overview-team .fml-portal-club-tenure-metrics dd.fml-squad-metric-reference {
    padding-block-start: 0;
    margin-block-start: .2rem;
    border-block-start: 0;
}
body.fml-matchday .fml-portal-club-tenure-key {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .85rem;
    margin: .65rem 0 .85rem;
}
body.fml-matchday .fml-portal-club-tenure-key span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
body.fml-matchday .fml-portal-club-tenure-key span::before {
    content: "";
    width: 1rem;
    height: .38rem;
    border-radius: 999px;
    background: var(--md-gold);
}
body.fml-matchday .fml-portal-club-tenure-key span + span::before {
    width: 2px;
    height: .9rem;
    background: var(--md-ink);
}
@media (max-width: 540px) {
    body.fml-matchday .fml-squad-overview-team .fml-portal-club-tenure-metrics {
        grid-template-columns: minmax(0, 1fr);
    }
}

body.fml-matchday .fml-u21-pathway .fml-u21-comparison-metrics {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
body.fml-matchday .fml-u21-comparison-metrics .fml-portal-club-tenure-track > span {
    background: var(--md-youth);
}
body.fml-matchday .fml-u21-comparison-metrics dd.fml-squad-metric-reference {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: .3rem .45rem;
    width: 100%;
    margin: .2rem 0 0;
    color: var(--md-muted);
    font: 400 var(--md-caption)/1.35 var(--md-font);
}
body.fml-matchday .fml-u21-comparison-metrics .fml-squad-metric-rank {
    background: #f2e6ee;
    color: #693b57;
}
body.fml-matchday .fml-u21-pathway .fml-u21-reference-key { margin-block: .6rem 0; }
body.fml-matchday .fml-u21-minute-card {
    display: grid;
    gap: .55rem;
    padding: var(--md-panel-inset);
    margin-block: var(--md-card-space);
    border: 1px solid var(--md-line);
    border-block-start: 3px solid var(--md-youth);
    border-radius: var(--md-radius);
    background: var(--md-soft);
}
body.fml-matchday .fml-u21-minute-card > :is(h4, p, dl) { margin: 0; }
body.fml-matchday .fml-u21-minute-share {
    font-size: var(--md-stat-value);
    font-variant-numeric: tabular-nums;
}
body.fml-matchday .fml-u21-minute-track {
    height: .6rem;
    border-radius: 999px;
    background: var(--md-line);
}
body.fml-matchday .fml-u21-minute-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--md-youth);
}
body.fml-matchday .fml-u21-minute-split {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .55rem 1rem;
    color: var(--md-muted);
    font-size: var(--md-caption);
}
body.fml-matchday .fml-u21-minute-split dd {
    margin: .15rem 0 0;
    color: var(--md-ink);
    font-weight: 750;
}
body.fml-matchday .fml-u21-minute-card > p:not(.fml-profile-note) {
    font-weight: 400;
}

body.fml-matchday .fml-transfer-clauses,
body.fml-matchday .fml-clause-list {
    display: grid;
    gap: var(--md-card-space);
    min-width: 0;
}
body.fml-matchday .fml-transfer-clauses > .fml-directory-tools,
body.fml-matchday .fml-clause-directory-link,
body.fml-matchday .fml-clause-card > :is(header, p, dl, details, ul) {
    margin: 0;
}
body.fml-matchday form.fml-clause-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: var(--md-card-space);
    margin: 0;
}
body.fml-matchday .fml-clause-filters label {
    display: grid;
    gap: .3rem;
    flex: 0 1 11rem;
    min-width: 0;
}
body.fml-matchday .fml-clause-filters :is(select, input) { width: 100%; }
body.fml-matchday :is(form button.fml-matchday-primary, .fml-portal-eafc-link-edit form button)[type="submit"] {
    min-height: 44px;
    padding: .55rem 1rem;
    border: 1px solid var(--md-gold);
    border-radius: var(--md-control-radius);
    background: var(--md-yellow);
    color: var(--md-ink);
    font: 750 var(--md-label)/1.25 var(--md-font);
    cursor: pointer;
}
body.fml-matchday :is(form button.fml-matchday-primary, .fml-portal-eafc-link-edit form button)[type="submit"]:hover { background: var(--md-sort); }
body.fml-matchday .fml-clause-card {
    display: grid;
    gap: .65rem;
    margin: 0;
    padding: var(--md-panel-inset);
    min-width: 0;
    border: 1px solid var(--md-line);
    border-block-start: 3px solid var(--md-gold);
    border-radius: var(--md-radius);
    background: var(--md-paper);
}
body.fml-matchday .fml-clause-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .4rem .8rem;
}
body.fml-matchday .fml-clause-card-head h3 {
    margin: .15rem 0 0;
    color: var(--md-ink);
    font: 800 var(--md-item)/1.25 var(--md-font);
}
body.fml-matchday .fml-clause-card-head time,
body.fml-matchday .fml-clause-amount small,
body.fml-matchday .fml-clause-status {
    color: var(--md-muted);
    font: 500 var(--md-caption)/1.4 var(--md-font);
}
body.fml-matchday .fml-clause-amount {
    display: grid;
    justify-items: end;
    gap: .12rem;
    margin-inline-start: auto;
}
body.fml-matchday .fml-clause-amount strong {
    color: var(--md-ink);
    font-size: var(--md-stat-value);
    font-variant-numeric: tabular-nums;
}
body.fml-matchday :is(.fml-clause-parties, .fml-clause-status) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .65rem;
}
body.fml-matchday .fml-clause-parties {
    min-width: 0;
    padding-block: .2rem;
    font: 700 var(--md-label)/1.35 var(--md-font);
}
body.fml-matchday .fml-clause-direction { color: var(--md-muted); }
body.fml-matchday .fml-clause-card > p,
body.fml-matchday .fml-clause-card .fml-profile-disclosure-body > p {
    font: 400 var(--md-label)/1.45 var(--md-font);
}
body.fml-matchday .fml-clause-card .fml-profile-disclosure-body > p { margin: 0; }
body.fml-matchday .fml-clause-directory-link { margin-block-end: .1rem; }
body.fml-matchday .fml-clause-page > .fml-clause-directory-link { margin-block-end: var(--md-card-space); }
body.fml-matchday :is(.fml-clause-directory-link, .fml-clause-card) a {
    color: var(--md-ink);
    text-decoration: underline;
    text-decoration-color: var(--md-gold);
    text-underline-offset: .18em;
}
@media (max-width: 520px) {
    body.fml-matchday .fml-clause-filters label { flex: 1 1 7.5rem; }
    body.fml-matchday .fml-clause-card { gap: .55rem; }
}

body.fml-matchday .fml-clause-quote .fml-profile-metrics > div:last-child,
body.fml-matchday .fml-clause-payment-today {
    background: var(--md-dark);
    border-color: var(--md-dark);
}
body.fml-matchday .fml-clause-quote .fml-profile-metrics > div:last-child {
    --md-metric-value: var(--md-yellow);
    --md-metric-label: var(--md-paper);
    --md-metric-note: var(--md-paper);
}
body.fml-matchday .fml-clause-payment-body {
    display: grid;
    gap: var(--md-card-space);
}
body.fml-matchday .fml-clause-payment-body > :is(dl, p, form) { margin: 0; }
body.fml-matchday .fml-clause-payment-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
    gap: var(--md-card-space);
}
body.fml-matchday .fml-clause-payment-facts > div {
    min-width: 0;
    padding: .6rem .75rem;
    border-radius: var(--md-control-radius);
    background-color: var(--md-soft);
}
body.fml-matchday .fml-clause-payment-facts dt {
    color: var(--md-muted);
    font: 650 var(--md-caption)/1.35 var(--md-font);
}
body.fml-matchday .fml-clause-payment-facts dd {
    margin: .2rem 0 0;
    color: var(--md-ink);
    font: 750 var(--md-label)/1.35 var(--md-font);
    font-variant-numeric: tabular-nums;
}
body.fml-matchday .fml-clause-payment-facts > .fml-clause-payment-today { background: var(--md-dark); }
body.fml-matchday .fml-clause-payment-today dt { color: var(--md-paper); }
body.fml-matchday .fml-clause-payment-today dd { color: var(--md-yellow); }
body.fml-matchday form button.fml-matchday-primary:focus-visible {
    outline: 2px solid var(--md-focus);
    outline-offset: 3px;
}
@media (max-width: 520px) {
    body.fml-matchday .fml-clause-payment-body button.fml-matchday-primary { width: 100%; }
}


body.fml-matchday .fml-news-availability-highlights > li > .fml-news-absence-label {
    display: flex;
    align-items: center;
    gap: .45rem;
}
body.fml-matchday .fml-news-absence-icon {
    display: inline-grid;
    place-items: center;
    width: 1.65rem;
    height: 1.65rem;
    flex: none;
    border-radius: var(--md-control-radius);
    background: var(--md-soft);
    color: var(--md-muted);
}
body.fml-matchday .fml-news-absence-icon:is([data-kind="injuries"], [data-kind="red-card"]) {
    background: #fae9e9;
    color: var(--md-live);
}

body.fml-matchday .fml-draw-portal :is(.fml-draw-portal-card, .fml-draw-portal-card > form) {
    display: grid;
    gap: var(--md-card-space);
    min-width: 0;
    margin: 0;
}
body.fml-matchday .fml-draw-portal .fml-draw-portal-card {
    padding: var(--md-panel-inset);
    border: 1px solid var(--md-line);
    border-radius: var(--md-radius);
    background: var(--md-soft);
}
body.fml-matchday .fml-draw-portal .fml-draw-portal-head h3 {
    margin: 0;
    color: var(--md-ink);
    font: 800 var(--md-item)/1.28 var(--md-font);
}
body.fml-matchday .fml-draw-portal :is(.fml-draw-portal-list, .fml-draw-field-group, .fml-draw-team-picker) {
    min-width: 0;
    margin: 0;
    border: 1px solid var(--md-line);
    border-radius: var(--md-control-radius);
    background: var(--md-paper);
}
body.fml-matchday .fml-draw-portal .fml-draw-portal-list > a {
    min-height: 44px;
    color: var(--md-ink);
    text-decoration-color: var(--md-gold);
}
body.fml-matchday .fml-draw-portal .fml-draw-portal-list > a span {
    padding: .18rem .55rem;
    border-radius: 999px;
    background: var(--md-status-action-bg);
    color: var(--md-status-action-ink);
}
body.fml-matchday .fml-draw-portal :is(.fml-draw-fields, .fml-draw-team-picker) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: var(--md-card-space);
}
body.fml-matchday .fml-draw-portal :is(.fml-draw-field-group, .fml-draw-team-picker) {
    padding: .65rem var(--md-panel-inset) var(--md-panel-inset);
}
body.fml-matchday .fml-draw-portal legend {
    padding-inline: .35rem;
    color: var(--md-ink);
    font: 750 var(--md-label)/1.35 var(--md-font);
}
body.fml-matchday .fml-draw-portal .fml-draw-fields label {
    display: grid;
    align-content: start;
    gap: .3rem;
    min-width: 0;
    margin: 0;
    color: var(--md-ink);
    font: 750 var(--md-label)/1.35 var(--md-font);
}
body.fml-matchday .fml-draw-portal .fml-draw-fields :is(select, input:not([type="checkbox"])) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: .45rem .65rem;
    border: 1px solid var(--md-line);
    border-radius: var(--md-control-radius);
    background-color: var(--md-paper);
    color: var(--md-ink);
    font: 500 1rem/1.25 var(--md-font);
}
body.fml-matchday .fml-draw-portal :is(.fml-draw-fields .fml-draw-notify, .fml-draw-team-picker label) {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
    min-height: 44px;
    margin: 0;
}
body.fml-matchday .fml-draw-portal input[type="checkbox"] {
    flex: none;
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--md-yellow);
}
body.fml-matchday .fml-draw-portal .fml-draw-team-picker > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    padding-inline: .55rem;
    border: 1px solid var(--md-line);
    border-radius: var(--md-control-radius);
    background: var(--md-soft);
}
body.fml-matchday .fml-draw-portal .fml-draw-team-picker > div:has(input[name="participants[]"]:checked) {
    border-color: var(--md-gold);
    background: var(--md-result);
}
body.fml-matchday .fml-draw-portal [data-draw-seed] {
    color: var(--md-muted);
    font: 700 var(--md-caption)/1.3 var(--md-font);
}
body.fml-matchday .fml-draw-portal [data-draw-seed]:has(input:disabled) { opacity: .7; }
body.fml-matchday .fml-draw-portal [data-draw-format-note] {
    margin: 0;
    font: 500 var(--md-caption)/1.45 var(--md-font);
}
body.fml-matchday .fml-draw-portal :is(.fml-draw-actions, .fml-draw-portal-card > form) button[type="submit"] {
    min-height: 44px;
    padding: .45rem .8rem;
    border: 1px solid var(--md-line);
    border-radius: var(--md-control-radius);
    background: var(--md-paper);
    color: var(--md-ink);
    font: 750 var(--md-label)/1.25 var(--md-font);
}
body.fml-matchday .fml-draw-portal .fml-draw-portal-card button.fml-draw-play[type="submit"] {
    border-color: var(--md-gold);
    background: var(--md-yellow);
}
body.fml-matchday .fml-draw-portal :is(button,input,select,a):focus-visible {
    outline: 2px solid var(--md-focus);
    outline-offset: 2px;
}
body.fml-matchday .fml-draw-portal [hidden] { display: none !important; }
@media (max-width: 520px) {
    body.fml-matchday .fml-draw-portal .fml-draw-actions {
        display: grid;
        width: 100%;
    }
}

/* Season selection uses the same dark pitch and brass edge as Matchday awards. */
body.fml-matchday .fml-team-season[data-fml-season-xi] {
    background: var(--md-paper);
    color: var(--md-ink);
    border: 1px solid var(--md-line);
    border-top: 4px solid #946337;
    border-radius: var(--md-radius);
    overflow: hidden;
}
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-header {
    align-items: center;
    gap: .65rem;
    padding: var(--md-panel-inset);
}
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-header h4 {
    margin: 0;
    color: var(--md-ink);
    font: 850 var(--md-section)/1.08 var(--md-font);
    letter-spacing: -.035em;
    text-wrap: balance;
}
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-subtitle {
    flex: none;
    margin: 0;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: var(--md-result);
    color: var(--md-status-action-ink);
    font: 800 var(--md-caption)/1.4 var(--md-font);
    white-space: nowrap;
}
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-pitch {
    --xi-marking: #f3e8cd3b;
    gap: clamp(.55rem, 2vw, 1.15rem);
    margin: 0 clamp(.32rem, 1.6vw, 1rem);
    padding: clamp(1rem, 3vw, 1.7rem) clamp(.25rem, 1.4vw, .9rem);
    border: 0;
    border-radius: var(--md-radius);
    background: radial-gradient(ellipse at 50% 0%, transparent 20%, #141821cc 92%),
        repeating-linear-gradient(0deg,#242a32 0 12.5%,#292f37 12.5% 25%);
    color: var(--md-paper);
}
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-pitch::before,
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-pitch::after { content: none; }
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-markings {
    position: absolute;
    inset: 8px;
    border: 1px solid var(--xi-marking);
    border-radius: 6px;
    pointer-events: none;
}
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-markings span {
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid var(--xi-marking);
}
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-markings span::before {
    content: "";
    position: absolute;
    left: 50%;
    width: min(25%, 8rem);
    aspect-ratio: 1;
    border: 1px solid var(--xi-marking);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-markings :is(i,b) {
    position: absolute;
    left: 50%;
    width: 57%;
    height: 16.5%;
    border: 1px solid var(--xi-marking);
    transform: translateX(-50%);
}
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-markings i { top: -1px; border-top: 0; }
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-markings b { bottom: -1px; border-bottom: 0; }
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-line {
    grid-template-columns: repeat(var(--xi-columns), minmax(0, 1fr));
    align-items: stretch;
    justify-items: stretch;
    width: 100%;
    margin-inline: auto;
    gap: 2px;
}
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-line[style="--xi-columns:3"] { max-width: 77%; }
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-line[style="--xi-columns:2"] { max-width: 59%; }
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-line-keeper { max-width: 6.5rem; }
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-player {
    width: 100%;
    align-content: start;
    grid-template-rows: auto minmax(1.35em, auto) auto;
    row-gap: 4px;
    padding: 4px 1px;
    border: 1px solid transparent;
    border-radius: var(--md-control-radius);
    background: transparent;
    color: var(--md-paper);
    font: 650 clamp(.62rem, 2.85vw, .95rem)/1.2 var(--md-font);
    text-transform: none;
    box-shadow: none;
}
body.fml-matchday .fml-team-season[data-fml-season-xi] button.fml-team-season-player:is(:hover, :focus-visible) { background: #ffffff10; }
body.fml-matchday .fml-team-season[data-fml-season-xi] button.fml-team-season-player:focus-visible { outline: 2px solid var(--md-yellow); outline-offset: -2px; }
body.fml-matchday .fml-team-season[data-fml-season-xi] button.fml-team-season-player[aria-pressed="true"] { border-color: #f7ce4d62; background: #f7ce4d13; }
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-media {
    display: block;
    width: clamp(35px, 12.8vw, 68px);
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto 3px;
}
body.fml-matchday .fml-team-season[data-fml-season-xi] :is(.fml-team-season-photo,.fml-team-season-photo-placeholder) {
    position: static;
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid #ffffff62;
    border-radius: 50%;
    background: #d3d1c9;
    object-fit: cover;
    object-position: center 27%;
}
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-empty .fml-team-season-photo-placeholder { background: transparent; border-style: dashed; }
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-crest {
    right: -3px;
    bottom: -3px;
    width: clamp(17px, 4.7vw, 25px);
    height: clamp(17px, 4.7vw, 25px);
    padding: 2px;
    border-radius: 50%;
    background: var(--md-paper);
}
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-name {
    display: grid;
    align-content: center;
    max-width: 100%;
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: anywhere;
    font: inherit;
    font-weight: 750;
}
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-rating {
    position: static;
    min-width: 0;
    height: auto;
    padding: .12em .48em;
    border: 1px solid #b5b8c158;
    border-radius: 999px;
    background: #11141bd9;
    color: var(--md-paper);
    font: inherit;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-player[aria-pressed="true"] .fml-team-season-rating {
    border-color: var(--md-yellow);
    background: var(--md-yellow);
    color: var(--md-ink);
}
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-detail {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: .6rem;
    padding: var(--md-panel-inset);
}
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-detail img { width: 30px; height: 30px; object-fit: contain; }
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-detail img[hidden] { display: block; visibility: hidden; }
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-detail strong { display: block; font-size: var(--md-label); line-height: 1.25; }
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-detail small { display: block; color: var(--md-muted); font-size: var(--md-caption); }
body.fml-matchday .fml-team-season[data-fml-season-xi] .fml-team-season-detail-rating { text-align: end; font-variant-numeric: tabular-nums; }

/* The brass disc carries the result. The ribbon identifies the competition and phase. */
body.fml-matchday .fml-competition-medal {
    --medal-size: 34px;
    --medal-band: #282b32;
    --medal-text: #fff;
    --md-achievement-accent: var(--md-recognition);
    display: inline-flex;
    position: relative;
    flex: none;
    align-items: flex-start;
    justify-content: center;
    min-inline-size: var(--medal-size);
    block-size: calc(var(--medal-size) + 6px);
    vertical-align: middle;
}
body.fml-matchday .fml-competition-medal[data-medal-competition="lc"] {
    --medal-band: var(--md-yellow);
    --medal-text: var(--md-ink);
}
body.fml-matchday .fml-competition-medal[data-medal-competition="bv"] { --medal-band: #7b3b64; }
body.fml-matchday .fml-competition-medal[data-medal-competition="pc"] { --medal-band: #31587b; }
body.fml-matchday .fml-competition-medal[data-medal-competition="ss"] { --medal-band: #3f655b; }
body.fml-matchday .fml-competition-medal .fml-achievement-mark {
    inline-size: var(--medal-size);
    block-size: var(--medal-size);
}
body.fml-matchday .fml-competition-medal .fml-achievement-mark::before {
    inline-size: calc(var(--medal-size) * .63);
    block-size: calc(var(--medal-size) * .63);
}
body.fml-matchday .fml-competition-medal-code {
    position: absolute;
    inset-block-end: 0;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 3px;
    border: 1px solid var(--md-paper);
    border-radius: 4px;
    background: var(--medal-band);
    color: var(--medal-text);
    font: 800 .59rem/1.2 var(--md-font);
    white-space: nowrap;
}
body.fml-matchday .fml-competition-medal-code small {
    color: inherit;
    border-inline-start: 1px solid currentColor;
    padding-inline-start: 2px;
    font: inherit;
}
body.fml-matchday .fml-competition-medal:is([data-medal-result="finalist"], [data-medal-result="played"]) {
    block-size: auto;
}
body.fml-matchday .fml-competition-medal:is([data-medal-result="finalist"], [data-medal-result="played"]) .fml-competition-medal-code {
    position: static;
    background: var(--md-soft);
    color: var(--md-ink);
    border-color: var(--medal-band);
}
body.fml-matchday .fml-competition-medal-plus {
    display: inline-grid;
    place-items: start center;
    inline-size: var(--medal-size);
    block-size: var(--medal-size);
    padding-block-start: 1px;
    border: 1px dashed var(--medal-band);
    border-radius: 50%;
    color: var(--medal-band);
    background: var(--md-paper);
    font: 800 1rem/1.1 var(--md-font);
}
body.fml-matchday .fml-standings-medals {
    display: block;
    margin: 0;
    max-inline-size: 100%;
    white-space: normal;
    text-align: start;
}
body.fml-matchday .fml-standings-medals > summary {
    display: flex;
    flex-wrap: wrap;
    min-block-size: 36px;
    align-items: center;
    gap: 4px;
    padding: 0;
    cursor: pointer;
    list-style: none;
}
body.fml-matchday .fml-standings-medals > summary::-webkit-details-marker { display:none; }
body.fml-matchday .fml-standings-medals > summary:focus-visible { outline: 2px solid var(--md-focus); outline-offset: 2px; }
body.fml-matchday .fml-standings-medals .fml-competition-medal { --medal-size: 24px; }
body.fml-matchday .fml-standings-medals .fml-competition-medal-code { font-size: .53rem; }
body.fml-matchday .fml-standings-medals > ul {
    margin: 3px 0;
    padding: 5px 8px;
    color: var(--md-ink);
    background: var(--md-soft);
    border-radius: 6px;
    list-style: none;
    font: 600 .75rem/1.4 var(--md-font);
}
