/* Football Rwanda - joined theme styles (34 files). Built automatically, do not edit. */

/* ---- fonts.css ---- */
/* Inter (variable, latin) — self-hosted, no Google Fonts request */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('https://footballtalentsdata.com/wp-content/themes/football-rwanda-v4-nettoye/assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Saira (variable weight + width, latin) — display face: titles and match numerals.
   SIL Open Font License 1.1, see assets/fonts/LICENSE-Saira.txt. Only downloaded
   by pages that use it.
   Weight capped at 600 (2026-10-18): titles were too heavy at 800/900. Any
   heavier request in the stylesheets renders at 600 (no faux bold); to allow
   heavier again, raise the second number. */
@font-face {
    font-family: 'Saira';
    font-style: normal;
    font-weight: 100 600;
    font-stretch: 50% 125%;
    font-display: swap;
    src: url('https://footballtalentsdata.com/wp-content/themes/football-rwanda-v4-nettoye/assets/fonts/saira-latin-wdth-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ---- variables.css ---- */
/* ======================================================
   Football Rwanda Design System v1.0
====================================================== */

:root{

    /* COLORS */

    --fr-primary:#009879;
    --fr-primary-dark:#007863;

    --fr-secondary:#F4B400;

    --fr-blue:#1E88E5;

    --fr-danger:#E53935;

    --fr-warning:#FFC107;

    --fr-success:#43A047;

    /* BACKGROUND */

    --fr-bg:#F5F7FA;

    --fr-card:#FFFFFF;

    /* TEXT */

    --fr-text:#222;

    --fr-text-light:#666;

    --fr-border:#E5E5E5;

    /* TYPOGRAPHY */

    --fr-font:'Inter',sans-serif;

    /* SPACING */

    --fr-radius:16px;

    --fr-shadow:0 8px 24px rgba(0,0,0,.08);

    --fr-transition:.3s;

    --fr-container:1400px;

}

/* ---- global.css ---- */
/* ==========================================================
   Football Rwanda
   Global Styles
========================================================== */

/* ==========================================================
   RESET
========================================================== */

*,
*::before,
*::after{

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    margin:0;

    padding:0;

    font-family:'Inter',sans-serif;

    font-size:16px;

    line-height:1.7;

    color:#334155;

    background:#f8fafc;

    -webkit-font-smoothing:antialiased;

    text-rendering:optimizeLegibility;

}

/* ==========================================================
   CONTAINER
========================================================== */

.fr-container{

    max-width:1200px;

    margin:auto;

    padding:20px 20px;

}

/* ==========================================================
   TYPOGRAPHY
========================================================== */

h1,
h2,
h3,
h4,
h5,
h6{

    margin-top:0;

    margin-bottom:15px;

    color:#0f172a;

    font-weight:700;

    line-height:1.3;

}

h1{

    font-size:42px;

}

h2{

    font-size:32px;

}

h3{

    font-size:24px;

}

h4{

    font-size:20px;

}

p{

    margin:0 0 18px;

}

/* ==========================================================
   LINKS
========================================================== */

a{

    color:#2563eb;

    text-decoration:none;

    transition:.25s;

}

a:hover{

    color:#1d4ed8;

}

/* ==========================================================
   IMAGES
========================================================== */

img{

    max-width:100%;

    height:auto;

    display:block;

}

/* ==========================================================
   LISTS
========================================================== */

ul,
ol{

    margin:0 0 20px;

    padding-left:20px;

}

li{

    margin-bottom:8px;

}

/* ==========================================================
   BUTTONS
========================================================== */

button,
input[type="submit"]{

    cursor:pointer;

    transition:.30s;

}

/* ==========================================================
   FORMS
========================================================== */

input,
select,
textarea{

    width:100%;

    padding:12px 15px;

    border:1px solid #d1d5db;

    border-radius:10px;

    font-size:15px;

    transition:.25s;

}

input:focus,
select:focus,
textarea:focus{

    outline:none;

    border-color:#2563eb;

    box-shadow:0 0 0 3px rgba(37,99,235,.15);

}

/* ==========================================================
   TABLES
========================================================== */

table{

    width:100%;

    border-collapse:collapse;

}

th{

    background:#f1f5f9;

    text-align:left;

    padding:14px;

}

td{

    padding:14px;

    border-bottom:1px solid #e5e7eb;

}

/* ==========================================================
   UTILITIES
========================================================== */

.text-center{

    text-align:center;

}

.text-right{

    text-align:right;

}

.text-left{

    text-align:left;

}

.mt-20{

    margin-top:20px;

}

.mt-30{

    margin-top:30px;

}

.mt-40{

    margin-top:40px;

}

.mb-20{

    margin-bottom:20px;

}

.mb-30{

    margin-bottom:30px;

}

.mb-40{

    margin-bottom:40px;

}

.hidden{

    display:none;

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media(max-width:992px){

    h1{

        font-size:36px;

    }

    h2{

        font-size:28px;

    }

}

@media(max-width:768px){

    .fr-container{

        padding:25px 15px;

    }

    h1{

        font-size:30px;

    }

    h2{

        font-size:24px;

    }

}

/* ==========================================================
   HEADER
========================================================== */

.fr-header{

    background:#ffffff;

    border-bottom:1px solid #e5e7eb;

    position:sticky;

    top:0;

    z-index:999;

}

.fr-header-inner{

    display:flex;

    justify-content:space-between;

    align-items:center;

    min-height:80px;

}

.fr-logo{

    font-size:28px;

    font-weight:800;

    color:var(--fr-primary);

}

.fr-main{

    min-height:70vh;

}

/* ==========================================================
   FOOTER
========================================================== */

.fr-footer{

    background:#0f172a;

    color:#fff;

    margin-top:80px;

}

.fr-footer h3,
.fr-footer h4{

    color:#fff;

}

.fr-footer ul{

    list-style:none;

    margin:0;

    padding:0;

}

.fr-footer li{

    margin-bottom:12px;

}

.fr-footer a{

    color:#cbd5e1;

}

.fr-footer a:hover{

    color:#fff;

}

/* ---------- BK Pro League logo (card + home table) ---------- */
html body .fr-competition-image .fr-competition-logo-img {
    display: block;
    width: auto;
    max-width: 70%;
    height: 130px;
    margin: 0 auto;
    object-fit: contain;
    padding: 0;
    background: none;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, .9)) drop-shadow(0 4px 10px rgba(0, 0, 0, .35));
}


/* ---- components.css ---- */
/*
==========================================================
FOOTBALL RWANDA
COMPONENTS
File: components.css
==========================================================
*/

/*
 * Shared component styles will be added here.
 *
 * Page Header styles are handled separately by:
 * components/page-header.css
 */

/* ---- header.css ---- */
/* ==========================================================
   FOOTBALL RWANDA
   GLOBAL HEADER / NAVIGATION
   Final clean version
   ========================================================== */


/* ==========================================================
   1. HEADER
   ========================================================== */

.fr-header {
    position: sticky;
    top: 0;
    z-index: 9999;

    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e7edf3;

    box-sizing: border-box;
}


/* WordPress Admin Bar
   Keep the site header below the admin bar for logged-in users. */

body.admin-bar .fr-header {
    top: 32px;
}


/* ==========================================================
   2. HEADER INNER
   ========================================================== */

.fr-header-inner {
    width: 100%;
    min-width: 0;
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
    box-sizing: border-box;
}


/* ==========================================================
   3. BRANDING
   ========================================================== */

.fr-branding {
    flex: 0 0 auto;
    min-width: 0;

    display: flex;
    align-items: center;
}

.fr-branding a {
    display: flex;
    align-items: center;

    text-decoration: none;
}

.fr-branding .custom-logo-link {
    display: flex;
    align-items: center;
}

.fr-branding .custom-logo,
.fr-branding img {
    display: block;

    width: auto;
    max-width: 155px;
    max-height: 54px;

    object-fit: contain;
}


/* ==========================================================
   4. TEXT LOGO FALLBACK
   ========================================================== */

.fr-logo {
    display: inline-flex;
    align-items: center;

    color: var(--fr-primary, #009f83);
    text-decoration: none;

    font-size: 26px;
    line-height: 1;
    font-weight: 800;

    white-space: nowrap;
}

.fr-logo:hover {
    color: var(--fr-primary, #009f83);
}

.fr-logo-image {
    display: block;

    width: auto;
    height: 54px;
    max-width: 220px;

    object-fit: contain;

    transition: opacity 0.2s ease;
}

.fr-logo:hover .fr-logo-image {
    opacity: 0.9;
}


/* ==========================================================
   5. PRIMARY NAVIGATION
   ========================================================== */

.fr-navigation {
    flex: 0 1 auto;
    min-width: 0;

    margin-left: auto;

    display: flex;
    align-items: center;
}

.fr-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 4px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.fr-menu > li {
    position: relative;

    margin: 0;
    padding: 0;
}

.fr-menu > li > a {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 72px;
    padding: 0 12px;

    color: var(--fr-navy, #0f1f35);

    font-size: 15px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    border-radius: 8px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.fr-menu > li > a:hover {
    color: var(--fr-green, #009b84);
}


/* ==========================================================
   6. ACTIVE MENU ITEM
   ========================================================== */

.fr-menu > li.current-menu-item > a,
.fr-menu > li.current-menu-parent > a,
.fr-menu > li.current-menu-ancestor > a {
    color: var(--fr-green, #009b84);
}

.fr-menu > li.current-menu-item > a::before,
.fr-menu > li.current-menu-parent > a::before,
.fr-menu > li.current-menu-ancestor > a::before {
    content: "";

    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;

    height: 3px;

    background: var(--fr-green, #009b84);
    border-radius: 3px 3px 0 0;
}


/* ==========================================================
   7. DROPDOWN
   ========================================================== */

.fr-menu .sub-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;

    min-width: 220px;

    margin: 0;
    padding: 8px;

    list-style: none;

    background: #ffffff;
    border: 1px solid #e5ebf0;
    border-radius: 0 0 10px 10px;

    box-shadow: 0 12px 30px rgba(15, 31, 53, 0.12);

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;

    z-index: 10000;
}

.fr-menu > li:hover > .sub-menu,
.fr-menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Dropdown links */

.fr-menu .sub-menu li {
    margin: 0;
    padding: 0;
}

.fr-menu .sub-menu a {
    display: block;

    padding: 11px 14px;

    color: #24364d;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;

    text-decoration: none;

    border-radius: 7px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.fr-menu .sub-menu a:hover {
    color: var(--fr-green, #009b84);
    background: #f0f8f6;
}


/* Dropdown arrow */

.fr-menu > .menu-item-has-children > a::after {
    content: "⌄";

    margin-left: 7px;

    font-size: 12px;
    line-height: 1;

    transition: transform 0.2s ease;
}

.fr-menu > .menu-item-has-children:hover > a::after,
.fr-menu > .menu-item-has-children:focus-within > a::after {
    transform: rotate(180deg);
}


/* ==========================================================
   8. MOBILE TOGGLE
   ========================================================== */

.fr-menu-toggle {
    display: none;

    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    padding: 8px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.fr-menu-toggle span {
    display: block;

    width: 100%;
    height: 3px;

    margin: 6px 0;

    background: #111827;
    border-radius: 20px;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* ==========================================================
   9. MOBILE MENU
   ========================================================== */

@media (max-width: 1080px) {

    .fr-header-inner {
        min-height: 72px;
        gap: 16px;
    }

    .fr-navigation {
        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        display: none;

        width: 100%;
        min-width: 0;

        margin: 0;
        padding: 18px 24px;

        box-sizing: border-box;

        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;

        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    }

    .fr-navigation.is-open {
        display: block;
    }

    .fr-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        width: 100%;
        gap: 0;
    }

    .fr-menu > li {
        width: 100%;
    }

    .fr-menu > li > a {
        min-height: auto;
        width: 100%;

        padding: 13px 0;

        font-size: 16px;
        line-height: 1.3;

        border-radius: 0;
    }

    .fr-menu > li.current-menu-item > a::before,
    .fr-menu > li.current-menu-parent > a::before,
    .fr-menu > li.current-menu-ancestor > a::before {
        display: none;
    }

    .fr-menu > li.current-menu-item > a,
    .fr-menu > li.current-menu-parent > a,
    .fr-menu > li.current-menu-ancestor > a {
        background: transparent;
    }

    .fr-menu .sub-menu {
        position: static;

        display: none;

        min-width: 0;

        padding: 0 0 6px;

        border: 0;
        border-radius: 0;

        box-shadow: none;

        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .fr-menu > li:hover > .sub-menu,
    .fr-menu > li:focus-within > .sub-menu {
        display: block;
    }

    .fr-menu .sub-menu a {
        padding: 10px 12px;

        font-size: 14px;
        background: #f7fafb;
    }

    .fr-menu > .menu-item-has-children > a::after {
        margin-left: auto;
    }

    .fr-menu-toggle {
        display: block;
    }
}


/* ==========================================================
   10. TABLET / NARROW DESKTOP
   ========================================================== */

@media (max-width: 1299px) and (min-width: 1081px) {

    .fr-header-inner {
        gap: 14px;
    }

    .fr-menu {
        gap: 0;
    }

    .fr-menu > li > a {
        min-height: 78px;
        padding: 0 9px;

        font-size: 14px;
    }

    .fr-branding .custom-logo,
    .fr-branding img {
        max-width: 140px;
        max-height: 60px;
    }

    .fr-logo-image {
        height: 58px;
        max-width: 200px;
    }
}


/* ==========================================================
   11. MOBILE LOGO
   ========================================================== */

@media (max-width: 1080px) {

    .fr-branding .custom-logo,
    .fr-branding img {
        max-width: 140px;
        max-height: 58px;
    }

    .fr-logo-image {
        height: 52px;
        max-width: 200px;
    }
}


/* ==========================================================
   12. SMALL MOBILE
   ========================================================== */

@media (max-width: 576px) {

    .fr-header-inner {
        min-height: 68px;
        gap: 10px;
    }

    .fr-branding .custom-logo,
    .fr-branding img {
        max-width: 120px;
        max-height: 50px;
    }

    .fr-logo {
        font-size: 22px;
    }

    .fr-logo-image {
        height: 45px;
        max-width: 175px;
    }

    .fr-navigation {
        padding: 14px 20px;
    }

    .fr-menu-toggle {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
}


/* ==========================================================
   13. WORDPRESS ADMIN BAR — MOBILE
   ========================================================== */

@media (max-width: 782px) {

    body.admin-bar .fr-header {
        top: 46px;
    }
}


/* ==========================================================
   14. MOBILE TOGGLE ACTIVE STATE
   ========================================================== */

.fr-menu-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.fr-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.fr-menu-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


/* ==========================================================
   15. SAFE BOX SIZING
   ========================================================== */

.fr-header,
.fr-header-inner,
.fr-navigation,
.fr-menu,
.fr-menu > li,
.fr-menu > li > a {
    box-sizing: border-box;
}


/* ==========================================================
   HEADER — COMPACT DESKTOP + LOGIN
   Based on current header.css.
   Only header sizing/navigation is adjusted.
   ========================================================== */

.fr-header-inner {
    min-height: 72px;
}

.fr-navigation {
    flex: 1 1 auto;
    justify-content: flex-end;
}

.fr-menu {
    gap: 2px;
}

.fr-menu > li > a {
    min-height: 72px;
    padding: 0 11px;
}

/* Login button added in header.php */
.fr-header-login {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 0 18px;

    margin-left: 12px;

    background: var(--fr-green, #009f83);
    color: #ffffff !important;

    border: 1px solid var(--fr-green, #009f83);
    border-radius: 8px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;

    white-space: nowrap;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.fr-header-login:hover {
    background: #008b76;
    border-color: #008b76;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.fr-header-login:focus-visible {
    outline: 2px solid #123c66;
    outline-offset: 3px;
}

/* Mobile: Login stays in the compact header beside the menu toggle. */
@media (max-width: 1080px) {
    .fr-header-inner {
        min-height: 72px;
    }

    .fr-header-login {
        min-height: 38px;
        padding: 0 15px;
        margin-left: auto;
        margin-right: 8px;
        font-size: 13px;
    }
}

/* Very small screens */
@media (max-width: 576px) {
    .fr-header-inner {
        min-height: 68px;
    }

    .fr-header-login {
        min-height: 36px;
        padding: 0 12px;
        font-size: 12px;
    }
}


/* ==========================================================
   HEADER SEARCH ICON
========================================================== */

.fr-header-search {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 8px;
    color: #123c66;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #ffffff;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease;
}

.fr-header-search:hover,
.fr-header-search:focus-visible {
    color: #009f83;
    border-color: #009f83;
}


/* ---- header-pro.css ---- */
/* Football Rwanda - Header PRO (loaded after header.css) */

html body .fr-header {
    background: rgba(255,255,255,.88);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid #e3e9ef;
    transition: box-shadow .2s ease, background .2s ease;
}
html body .fr-header.is-scrolled { background: rgba(255,255,255,.96); box-shadow: 0 1px 2px rgba(6,24,47,.05), 0 10px 30px rgba(6,24,47,.08); }
html body .fr-header-inner { min-height: 76px; gap: 20px; }

/* Nav links = pills */
html body .fr-menu { gap: 2px; }
html body .fr-menu > li > a {
    min-height: 42px; padding: 0 14px; border-radius: 12px;
    color:#06182f; font-size: 14.5px; font-weight: 700; letter-spacing: -.005em;
}
html body .fr-menu > li > a:hover { background:#f1f5f8; color:#06182f; }
html body .fr-menu > li.current-menu-item > a,
html body .fr-menu > li.current-menu-parent > a,
html body .fr-menu > li.current-menu-ancestor > a { background:#e6f4f2; color:#0a7f78; }
html body .fr-menu > li.current-menu-item > a::before,
html body .fr-menu > li.current-menu-parent > a::before,
html body .fr-menu > li.current-menu-ancestor > a::before { display:none; }
html body .fr-menu > .menu-item-has-children > a::after {
    content:""; width:6px; height:6px; margin: -3px 0 0 9px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); opacity:.7; font-size:0;
}
html body .fr-menu > .menu-item-has-children:hover > a::after,
html body .fr-menu > .menu-item-has-children:focus-within > a::after { transform: rotate(225deg); margin-top: 3px; }

/* Dropdown */
html body .fr-menu .sub-menu {
    top: 100%; left: -6px; min-width: 232px; padding: 8px; margin-top: 8px;
    border: 1px solid #e3e9ef; border-radius: 18px;
    box-shadow: 0 1px 2px rgba(6,24,47,.04), 0 18px 44px rgba(6,24,47,.14);
}
html body .fr-menu .sub-menu::before { content:""; position:absolute; left:0; right:0; top:-10px; height:10px; } /* hover bridge */
html body .fr-menu .sub-menu a { padding: 11px 14px; border-radius: 12px; color:#06182f; font-weight:600; }
html body .fr-menu .sub-menu a:hover { background:#e6f4f2; color:#0a7f78; }
html body .fr-menu .sub-menu .current-menu-item > a { background:#e6f4f2; color:#0a7f78; }

/* Search + login */
html body .fr-header-search { border:1px solid #e3e9ef; border-radius: 12px; width:42px; height:42px; color:#06182f; transition: background .15s, border-color .15s; }
html body .fr-header-search:hover { background:#f1f5f8; border-color:#cfd9e2; }
html body .fr-header-login {
    min-height: 42px; padding: 0 20px; border: 0; box-shadow:none; border-radius: 12px; background:#06182f; color:#fff;
    font-weight: 700; transition: background .15s, transform .15s;
}
html body .fr-header-login:hover { background:#0a7f78; color:#fff; }

/* Mobile */
html body .fr-menu-toggle { border-radius: 12px; border:1px solid #e3e9ef; flex-basis:42px; width:42px; height:42px; padding: 11px 10px; }
html body .fr-menu-toggle span { height:2px; margin:5px 0; background:#06182f; }
html body .fr-menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
html body .fr-menu-toggle.is-active span:nth-child(2) { opacity:0; }
html body .fr-menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
    html body .fr-header-inner { min-height: 68px; gap: 10px; }
    html body .fr-navigation {
        left: 12px; right: 12px; top: calc(100% + 8px); width: auto;
        max-height: calc(100vh - 110px); overflow-y: auto;
        padding: 10px; border: 1px solid #e3e9ef; border-radius: 18px;
        background:#fff; box-shadow: 0 1px 2px rgba(6,24,47,.04), 0 22px 50px rgba(6,24,47,.18);
    }
    html body .fr-menu > li > a { padding: 14px 14px; border-radius: 12px; font-size: 16px; min-height: 0; justify-content: space-between; }
    html body .fr-menu > li + li { border-top: 1px solid #f0f3f6; }
    html body .fr-menu > .menu-item-has-children > a::after { margin: -3px 4px 0 auto; }
    html body .fr-menu > .menu-item-has-children:hover > a::after,
    html body .fr-menu > .menu-item-has-children:focus-within > a::after { transform: rotate(45deg); margin-top:-3px; }
    html body .fr-menu > .menu-item-has-children.is-expanded > a::after { transform: rotate(225deg); margin-top: 3px; }
    html body .fr-menu .sub-menu { display:none; margin:0 0 6px 8px; padding: 2px 0 4px 10px; border:0; border-left: 2px solid #e6f4f2; border-radius:0; box-shadow:none; background:transparent; }
    html body .fr-menu .sub-menu::before { display:none; }
    html body .fr-menu > li:hover > .sub-menu,
    html body .fr-menu > li:focus-within > .sub-menu { display:none; }
    html body .fr-menu > li.is-expanded > .sub-menu { display:block; }
    html body .fr-menu .sub-menu a { background:transparent; padding: 11px 12px; }
}
@media (max-width: 420px) {
    html body .fr-header-login { padding: 0 14px; }
}

/* ===== Rich sub-menus (icon + label + description) ===== */
html body .fr-menu .sub-menu { min-width: 320px; padding: 10px; }
html body .fr-menu .sub-menu a { display:flex; align-items:center; gap: 14px; padding: 10px 12px; }
html body .fr-menu .sub-menu .fr-menu-icon {
    flex: 0 0 40px; width: 40px; height: 40px; display:grid; place-items:center;
    border-radius: 12px; background:#f1f5f8; color:#0a7f78; transition: background .15s, color .15s;
}
html body .fr-menu .sub-menu a:hover .fr-menu-icon,
html body .fr-menu .sub-menu .current-menu-item > a .fr-menu-icon { background:#0a7f78; color:#fff; }
html body .fr-menu .sub-menu .fr-menu-icon--logo,
html body .fr-menu .sub-menu a:hover .fr-menu-icon--logo,
html body .fr-menu .sub-menu .current-menu-item > a .fr-menu-icon--logo { background: transparent; }
html body .fr-menu .sub-menu .fr-menu-icon--logo img { width: 34px; height: 34px; object-fit: contain; display: block; }
html body .fr-menu .sub-menu .fr-menu-text { display:flex; flex-direction:column; gap:2px; min-width:0; }
html body .fr-menu .sub-menu .fr-menu-label { font-size:14.5px; font-weight:700; line-height:1.25; color:#06182f; }
html body .fr-menu .sub-menu a:hover .fr-menu-label,
html body .fr-menu .sub-menu .current-menu-item > a .fr-menu-label { color:#0a7f78; }
html body .fr-menu .sub-menu .fr-menu-desc { font-size:12.5px; font-weight:500; line-height:1.3; color:#62748a; }
html body .fr-menu .sub-menu .fr-menu-competition + .fr-menu-competition,
html body .fr-menu .sub-menu li { margin: 0; }

@media (max-width: 1080px) {
    html body .fr-menu .sub-menu { min-width: 0; }
    html body .fr-menu .sub-menu .fr-menu-icon { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; }
    html body .fr-menu .sub-menu .fr-menu-label { font-size: 15px; }
}

/* Last dropdown opens towards the left so it never leaves the screen */
@media (min-width: 1081px) {
    html body .fr-menu > li:last-child > .sub-menu { left: auto; right: -6px; }
}

/* ===== Account area (Sign in / Create account / member chip) ===== */
html body .fr-header-signin {
    display:inline-flex; align-items:center; min-height:42px; padding: 0 14px; border-radius:12px;
    color:#06182f; font-size:14.5px; font-weight:700; text-decoration:none; white-space:nowrap;
    transition: background .15s;
}
html body .fr-header-signin:hover { background:#f1f5f8; }

.fr-account-chip { position:relative; }
.fr-account-chip-link {
    display:inline-flex; align-items:center; gap:10px; min-height:42px; padding: 0 12px 0 5px;
    border:1px solid #e3e9ef; border-radius: 999px; color:#06182f; text-decoration:none; font-weight:700; font-size:14.5px;
    transition: background .15s;
}
.fr-account-chip-link:hover { background:#f1f5f8; }
.fr-account-chip .fr-account-avatar { flex:0 0 32px; width:32px; height:32px; font-size:14px; }
.fr-account-menu {
    position:absolute; right:0; top:100%; min-width: 210px; margin:8px 0 0; padding:8px; list-style:none;
    background:#fff; border:1px solid #e3e9ef; border-radius:16px;
    box-shadow: 0 1px 2px rgba(6,24,47,.04), 0 18px 44px rgba(6,24,47,.14);
    opacity:0; visibility:hidden; transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s; z-index: 10000;
}
.fr-account-menu::before { content:""; position:absolute; left:0; right:0; top:-10px; height:10px; }
.fr-account-chip:hover .fr-account-menu,
.fr-account-chip:focus-within .fr-account-menu { opacity:1; visibility:visible; transform:none; }
.fr-account-menu a { display:block; padding: 11px 14px; border-radius:10px; color:#06182f; font-size:14px; font-weight:600; text-decoration:none; }
.fr-account-menu a:hover { background:#e6f4f2; color:#0a7f78; }

.fr-nav-account { display:none; }

@media (max-width: 1080px) {
    html body .fr-header-signin { display:none; }
    html body .fr-header-login { padding: 0 14px; font-size: 13.5px; }
    .fr-account-chip-name { display:none; }
    .fr-account-chip-link { padding: 4px; }
    .fr-account-menu { display:none; }
    .fr-nav-account { display:flex; gap:8px; margin-top: 8px; padding-top: 12px; border-top:1px solid #f0f3f6; }
    .fr-nav-account a {
        flex:1; text-align:center; padding: 13px 10px; border-radius:12px; border:1px solid #e3e9ef;
        color:#06182f; font-weight:700; font-size:15px; text-decoration:none;
    }
    .fr-nav-account a.is-primary { background:#06182f; border-color:#06182f; color:#fff; }
}
.fr-account-chip-link, .fr-account-chip-link:hover, .fr-account-chip-link:focus { color:#06182f; }
.fr-account-chip-name { color:#06182f; }
.fr-btn-short { display:none; }
@media (max-width: 480px) {
    .fr-btn-long { display:none; }
    .fr-btn-short { display:inline; }
    html body .fr-header-inner { gap: 8px; }
}


/* ==========================================================
   BRAND MARK (emblem + wordmark, template-parts/header/branding.php)
   ========================================================== */

html body .fr-brandmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

html body .fr-brandmark-icon {
    display: block;
    flex: 0 0 auto;
}

html body .fr-brandmark-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: var(--fr-display, 'Saira', 'Inter', sans-serif);
    font-stretch: 87.5%;
    line-height: .95;
    text-transform: uppercase;
    white-space: nowrap;
}

html body .fr-brandmark-text b {
    color: #031826;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .01em;
}

html body .fr-brandmark-text i {
    color: #00a07f;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .2em;
}

html body .fr-brandmark:hover .fr-brandmark-text b {
    color: #0a7f78;
}

/* Mid-size screens (full menu, little room): emblem only, no "Home"
   item (the emblem leads home), tighter links. */
@media (max-width: 1299px) and (min-width: 1081px) {
    html body .fr-brandmark-text { display: none; }
    html body .fr-menu > li.fr-menu-home { display: none; }
}

/* Desktop: links a little tighter than the original 14px, so the
   wordmark, the menu and the buttons fit side by side. */
@media (min-width: 1081px) {
    html body .fr-header-inner { gap: 12px; }
    html body .fr-menu > li > a { padding: 0 10px; font-size: 14px; }
    html body .fr-header-login { padding: 0 16px; }
}

/* Never let the menu slide under the logo if it is still too wide. */
html body .fr-navigation,
html body .fr-menu { justify-content: safe flex-end; }

/* Small phones: shorter wordmark lines. */
@media (max-width: 420px) {
    html body .fr-brandmark { gap: 8px; }
    html body .fr-brandmark-icon { width: 38px; height: 38px; }
    html body .fr-brandmark-text b,
    html body .fr-brandmark-text i { font-size: 13.5px; }
}

/* ---- header-bar.css ---- */
/* ==========================================================
   Football Rwanda - Header "score bar" (loaded after header-pro.css)
   header.php + template-parts/header/{ticker,subnav}.php

   1. Match ticker   white strip, scrolls away with the page
   2. Green bar      logo, menu, search, account (sticky)
   3. Competitions   pills under the bar (part of the sticky header)

   Site teal #007863 (was #3A9D23, too bright next to the site's teal
   and navy). White text on it: 5.4:1. The active item is a white pill
   with dark teal text.
   ========================================================== */

:root {
    --hb-green: #007863;      /* site teal (Top Scorers, buttons) */
    --hb-green-2: #00624f;    /* competitions row, a shade darker */
    --hb-green-ink: #005343;  /* text on white pills */
    --hb-white-08: rgba(255, 255, 255, .08);
    --hb-white-16: rgba(255, 255, 255, .16);
    --hb-white-28: rgba(255, 255, 255, .28);
    --hb-navy: #06182f;
    --hb-line: #e3e9ef;
    --hb-live: #e5484d;
}

.fr-hwrap {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    box-sizing: border-box;
}


/* ==========================================================
   1. MATCH TICKER
   ========================================================== */

.fr-ticker {
    background: #fff;
    border-bottom: 1px solid var(--hb-line);
}

.fr-ticker-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
}

.fr-ticker-tag {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--hb-green);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
}

.fr-ticker-tag.is-live {
    background: var(--hb-live);
}

.fr-ticker-dot,
.fr-tk-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: fr-hb-pulse 1.4s ease-in-out infinite;
}

.fr-ticker-arrow {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--hb-navy);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.fr-ticker-arrow:hover {
    background: #f1f5f8;
}

.fr-ticker-arrow[hidden] {
    display: none;
}

.fr-ticker-list {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.fr-ticker-list::-webkit-scrollbar {
    display: none;
}

.fr-tk-day {
    flex: 0 0 auto;
    margin: 0 2px 0 6px;
    color: var(--hb-navy);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.fr-tk-day:first-child {
    margin-left: 0;
}

.fr-tk-item {
    flex: 0 0 auto;
    margin: 0;
}

.fr-tk-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--hb-line);
    border-radius: 10px;
    background: #fff;
    color: var(--hb-navy);
    font-size: 13.5px;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s, box-shadow .15s;
}

.fr-tk-item a:hover {
    border-color: #c9d6e2;
    box-shadow: 0 4px 12px rgba(6, 24, 47, .08);
}

.fr-tk-state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 34px;
    color: #5b6b7b;
    font-size: 12.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.fr-tk-item.is-scheduled .fr-tk-state {
    color: var(--hb-navy);
}

.fr-tk-item.is-live a {
    border-color: #f5c2c4;
    background: #fff5f5;
}

.fr-tk-item.is-live .fr-tk-state {
    color: var(--hb-live);
}

.fr-tk-item.is-live .fr-live-clock:empty::before {
    content: "LIVE";
}

.fr-tk-item.is-postponed .fr-tk-state {
    color: #b45309;
}

.fr-tk-team {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
}

.fr-tk-team img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.fr-tk-code {
    font-size: 10px;
    font-weight: 800;
    color: var(--hb-navy);
    letter-spacing: -.02em;
}

.fr-tk-score {
    min-width: 34px;
    color: var(--hb-navy);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.fr-tk-item.is-live .fr-tk-score {
    color: var(--hb-live);
}

@keyframes fr-hb-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.7); }
}


/* ==========================================================
   2. GREEN BAR
   ========================================================== */

html body .fr-header.fr-header--bar,
html body .fr-header.fr-header--bar.is-scrolled {
    background: var(--hb-green);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 0;
}

html body .fr-header.fr-header--bar.is-scrolled {
    box-shadow: 0 8px 24px rgba(6, 24, 47, .18);
}

html body .fr-header--bar .fr-header-inner {
    min-height: 64px;
    gap: 14px;
}

/* Logo on green: white wordmark, flag-yellow "DATA" */
html body .fr-header--bar .fr-brandmark-text b,
html body .fr-header--bar .fr-brandmark:hover .fr-brandmark-text b {
    color: #fff;
}

html body .fr-header--bar .fr-brandmark-text i {
    color: #FAD201;
}

html body .fr-header--bar .fr-brandmark-icon {
    box-shadow: 0 0 0 1px var(--hb-white-28);
    border-radius: 11px;
}

/* Desktop menu: white links, active item = white pill (like "SCORES") */
@media (min-width: 1081px) {

    html body .fr-header--bar .fr-menu > li > a {
        min-height: 40px;
        padding: 0 12px;
        border-radius: 10px;
        color: #fff;
        font-size: 14.5px;
        font-weight: 700;
    }

    html body .fr-header--bar .fr-menu > li > a:hover,
    html body .fr-header--bar .fr-menu > li:focus-within > a {
        background: var(--hb-white-16);
        color: #fff;
    }

    html body .fr-header--bar .fr-menu > li.current-menu-item > a,
    html body .fr-header--bar .fr-menu > li.current-menu-parent > a,
    html body .fr-header--bar .fr-menu > li.current-menu-ancestor > a {
        background: #fff;
        color: var(--hb-green-ink);
        box-shadow: 0 2px 8px rgba(6, 24, 47, .12);
    }

    html body .fr-header--bar .fr-menu .sub-menu {
        margin-top: 12px;
    }

    html body .fr-header--bar .fr-menu .sub-menu::before {
        top: -14px;
        height: 14px;
    }
}

/* Search field */
.fr-hsearch {
    position: relative;
    flex: 0 1 260px;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 8px 0 14px;
    border: 1px solid var(--hb-white-28);
    border-radius: 999px;
    background: var(--hb-white-16);
    color: #fff;
    box-sizing: border-box;
    transition: background .15s, border-color .15s;
}

.fr-hsearch:hover {
    background: rgba(255, 255, 255, .22);
}

.fr-hsearch:focus-within {
    background: #fff;
    border-color: #fff;
    color: var(--hb-navy);
}

.fr-hsearch svg {
    flex: 0 0 auto;
}

.fr-hsearch input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    -webkit-appearance: none;
    appearance: none;
}

.fr-hsearch input::placeholder {
    color: rgba(255, 255, 255, .85);
    opacity: 1;
}

.fr-hsearch:focus-within input::placeholder {
    color: #8193a6;
}

.fr-hsearch kbd {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 6px;
    background: var(--hb-white-16);
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.fr-hsearch:focus-within kbd {
    display: none;
}

.fr-hsearch .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Search icon (smaller screens) + account: round white-line buttons */
html body .fr-header--bar .fr-header-search,
.fr-header-user {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    text-decoration: none;
    transition: background .15s;
}

html body .fr-header--bar .fr-header-search:hover,
.fr-header-user:hover,
.fr-header-user:focus-visible {
    background: var(--hb-white-16);
    color: #fff;
}

/* Wide screens: the field; below: the icon */
html body .fr-header--bar .fr-header-search {
    display: none;
}

/* Field on every desktop width (it shrinks, the menu does not);
   the icon only with the mobile menu. */
@media (max-width: 1080px) {
    .fr-hsearch {
        display: none;
    }

    html body .fr-header--bar .fr-header-search {
        display: inline-grid;
    }
}

/* Narrower desktops: no "Ctrl K" hint, shorter field. */
@media (min-width: 1081px) and (max-width: 1299px) {
    .fr-hsearch kbd {
        display: none;
    }
}

/* Member chip on green */
html body .fr-header--bar .fr-account-chip-link,
html body .fr-header--bar .fr-account-chip-link:hover,
html body .fr-header--bar .fr-account-chip-link:focus {
    border-color: var(--hb-white-28);
    color: #fff;
}

html body .fr-header--bar .fr-account-chip-link:hover {
    background: var(--hb-white-16);
}

html body .fr-header--bar .fr-account-chip-name {
    color: #fff;
}

html body .fr-header--bar .fr-account-chip .fr-account-avatar {
    background: #fff;
    color: var(--hb-green-ink);
}

/* Burger: white lines, no frame */
html body .fr-header--bar .fr-menu-toggle {
    border-color: var(--hb-white-28);
}

html body .fr-header--bar .fr-menu-toggle span {
    background: #fff;
}

@media (max-width: 1080px) {
    html body .fr-header--bar .fr-header-inner {
        min-height: 60px;
        gap: 6px;
    }

    html body .fr-header--bar .fr-header-search {
        margin-left: auto;
    }

    /* The mobile menu panel stays white (header-pro.css), active item in teal. */
    html body .fr-header--bar .fr-menu > li.current-menu-item > a,
    html body .fr-header--bar .fr-menu > li.current-menu-parent > a,
    html body .fr-header--bar .fr-menu > li.current-menu-ancestor > a,
    html body .fr-header--bar .fr-menu .sub-menu .current-menu-item > a {
        background: #e6f4f2;
        color: var(--hb-green-ink);
    }
}


/* ==========================================================
   3. COMPETITIONS ROW
   ========================================================== */

.fr-hsub {
    border-top: 1px solid var(--hb-white-16);
    background: var(--hb-green-2);
}

.fr-hsub-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    overflow-x: auto;
    scrollbar-width: none;
}

.fr-hsub-inner::-webkit-scrollbar {
    display: none;
}

.fr-hsub-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fr-hsub-list li {
    flex: 0 0 auto;
    margin: 0;
}

.fr-hsub-pill,
.fr-hsub-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.fr-hsub-pill:hover,
.fr-hsub-link:hover {
    background: var(--hb-white-16);
    color: #fff;
}

.fr-hsub-pill.is-active,
.fr-hsub-link.is-active {
    background: #fff;
    color: var(--hb-green-ink);
}

.fr-hsub-logo {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-left: -6px;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
}

.fr-hsub-logo img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.fr-hsub-links .fr-hsub-link {
    font-weight: 600;
}

/* Laptops: competitions + 5 rankings links on one row. */
@media (min-width: 1081px) and (max-width: 1400px) {
    .fr-hsub-pill,
    .fr-hsub-link {
        padding: 0 9px;
    }
}

@media (max-width: 1080px) {
    .fr-hsub-inner {
        justify-content: flex-start;
        min-height: 44px;
        gap: 4px;
    }

    .fr-hsub-pill,
    .fr-hsub-link {
        height: 32px;
        padding: 0 12px;
        font-size: 13.5px;
    }
}

@media (max-width: 600px) {
    .fr-hwrap {
        width: calc(100% - 24px);
    }

    .fr-ticker-inner {
        min-height: 50px;
        gap: 8px;
    }

    .fr-ticker-tag {
        padding: 5px 10px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fr-ticker-dot,
    .fr-tk-live-dot {
        animation: none;
    }

    .fr-ticker-list {
        scroll-behavior: auto;
    }
}


/* ==========================================================
   Fit: the menu keeps its width, the search field gives way.
   Logged-in members: round avatar only (no name), like the
   visitors' round account icon.
   ========================================================== */

@media (min-width: 1081px) {
    html body .fr-header--bar .fr-navigation {
        flex: 0 0 auto;
    }

    html body .fr-header--bar .fr-hsearch {
        flex: 1 1 240px;
        max-width: 260px;
        min-width: 150px;
    }

    html body .fr-header--bar .fr-account-chip-name {
        display: none;
    }

    html body .fr-header--bar .fr-account-chip-link {
        gap: 0;
        min-height: 40px;
        padding: 3px;
        border: 1px solid var(--hb-white-28);
        border-radius: 50%;
    }
}

html body .fr-header--bar .fr-account-chip .fr-account-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: var(--hb-green-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

/* ==========================================================
   Long drop-down menus (7 entries or more, e.g. "More"):
   two columns on desktop, still one column in the mobile menu.
   ========================================================== */

@media (min-width: 1081px) {
    html body .fr-header--bar .fr-menu .sub-menu:has(> li:nth-child(7)) {
        display: grid;
        grid-template-columns: repeat(2, minmax(260px, 1fr));
        gap: 2px 6px;
        min-width: 600px;
    }

    html body .fr-header--bar .fr-menu .sub-menu:has(> li:nth-child(7)) > li {
        min-width: 0;
    }
}

/* ==========================================================
   Sticky filter sidebars (Clubs, Academies, Players,
   Nationalities, Positions) used to stop 30-100px from the top:
   under this sticky header (113px on desktop) their title and
   first field were hidden. They now stop just below it. Under
   901px they are not sticky (one column), so nothing changes.
   ========================================================== */

@media (min-width: 901px) {
    html body .fr-club-filters,
    html body .fr-player-filters,
    html body .fr-directory-filters {
        top: 129px;
    }
}

/* ---- block-titles.css ---- */
/* ==========================================================
   Football Rwanda - Block titles, the same on every page
   (as on the home page: light band #f3f7f6, navy title,
   thin line under it). Loaded on every page (inc/enqueue.php).

   1. Title at the top of a white card (club, competition,
      player pages): the band fills the whole top of the card,
      whatever the card's padding (box-shadow trick + overflow
      hidden on the card), with a 1px line under it.
   2. Title on its own above a list (Statistics, Dashboard,
      match page): a light rounded bar.
   ========================================================== */

:root {
    --fr-title-band: #f3f7f6;
    --fr-title-line: #dbe6e3;
    --fr-title-ink: #071b35;
    --fr-title-eyebrow: #007863;
}


/* ---------- 1. Band at the top of a card ---------- */

html body main .fr-club-pro-side-card,
html body main .fr-club-sidebar-section,
html body main .fr-comp-card,
html body main .fr-single-competition-details,
html body main .frp-card:has(> .frp-card-heading:first-child),
html body main .frp-card:has(> .fr-scout-head:first-child) {
    overflow: hidden;
}

html body main .fr-club-pro-side-card > header,
html body main .fr-club-sidebar-section > .fr-club-sidebar-heading,
html body main .fr-comp-card > h2:first-child,
html body main .fr-single-competition-details > .fr-single-competition-details-header,
html body main .frp-card > .frp-card-heading:first-child,
html body main .frp-card > .fr-scout-head:first-child {
    position: relative;
    margin-bottom: 18px;
    padding-top: 12px;
    padding-bottom: 14px;
    border-bottom: 0;
    background: var(--fr-title-band);
    /* Paint the band up to the card's edges, then the line under it. */
    box-shadow:
        0 0 0 100vmax var(--fr-title-band),
        0 1px 0 100vmax var(--fr-title-line);
    clip-path: inset(-100vmax -100vmax -1px -100vmax);
}

html body main .fr-club-pro-side-card > header h2,
html body main .fr-club-sidebar-heading h2,
html body main .fr-comp-card > h2:first-child,
html body main .fr-single-competition-details-header h2,
html body main .frp-card-heading h2,
html body main .fr-scout-head h2 {
    color: var(--fr-title-ink);
}


/* ---------- 2. Bar above a list ---------- */

html body main .fr-statistics-section-header,
html body main .fr-dashboard-section-header,
html body main .fr-match-context-heading,
html body main .fr-match-lineups-heading,
html body main .fr-match-events-heading,
html body main .fr-match-featured-video-heading {
    padding: 14px 18px;
    border: 1px solid var(--fr-title-line);
    border-radius: 14px;
    background: var(--fr-title-band);
    box-shadow: none;
}

html body main .fr-statistics-section-header h2,
html body main .fr-dashboard-section-header h2,
html body main .fr-match-context-heading h2,
html body main .fr-match-lineups-heading h2,
html body main .fr-match-events-heading h2,
html body main .fr-match-featured-video-heading h2 {
    color: var(--fr-title-ink);
}

/* Small word above the title ("Goals", "Performance", "MATCH DATA"…) */
html body main .fr-statistics-section-header .fr-statistics-subtitle,
html body main .fr-dashboard-section-header > span,
html body main .fr-match-context-heading > span,
html body main .fr-match-lineups-heading span,
html body main .fr-match-events-heading span,
html body main .fr-match-featured-video-heading span {
    color: var(--fr-title-eyebrow);
}

html body main .fr-match-lineups-heading p,
html body main .fr-match-events-heading p,
html body main .fr-match-featured-video-heading p {
    color: #5b6b7b;
}


/* ---- footer-pro.css ---- */
/* Football Rwanda - Footer PRO (v3) */

.fr-ft {
    margin-top: 72px;
    color: #c5d2e0;
    background:
        radial-gradient(90% 120% at 12% 0%, rgba(0,190,160,.14), rgba(0,190,160,0) 60%),
        linear-gradient(180deg, #08213b 0%, #06182f 100%);
    border-top: 3px solid #0a7f78;
}
.fr-ft-container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

/* ----- numbers strip ----- */
.fr-ft-stats { border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); }
.fr-ft-stats-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.fr-ft-stat { padding: 24px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.fr-ft-stat:last-child { border-right: 0; }
.fr-ft-stat strong { display:block; color:#fff; font-size: 28px; font-weight: 800; letter-spacing:-.02em; line-height:1; }
.fr-ft-stat span { display:block; margin-top: 8px; color:#7f95ad; font-size: 12px; font-weight: 700; letter-spacing:.08em; text-transform: uppercase; }

/* ----- main grid ----- */
.fr-ft-main { display:grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding: 56px 0 44px; }

.fr-ft-logo { display:inline-flex; padding: 0; margin-bottom: 18px; background: none; border-radius: 0; }
.fr-ft-logo img { display:block; height: 52px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); width:auto; max-width: 200px; object-fit: contain; }
.fr-ft-tagline { max-width: 340px; margin: 0 0 22px; color:#9fb2c7; font-size: 14.5px; line-height: 1.65; }
.fr-ft-cta {
    display:inline-flex; align-items:center; gap:8px; padding: 11px 18px; border-radius: 12px;
    background: rgba(94,234,212,.12); color:#5eead4; font-size: 14px; font-weight:700; text-decoration:none;
    border: 1px solid rgba(94,234,212,.25); transition: background .15s, transform .15s;
}
.fr-ft-cta:hover { background: rgba(94,234,212,.2); transform: translateX(2px); color:#5eead4; }

/* ----- social channels ----- */
.fr-ft-social { display:flex; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.fr-ft-social a {
    display:grid; place-items:center; width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color:#b4c4d6;
    transition: background .15s, color .15s, transform .15s;
}
.fr-ft-social a:hover { transform: translateY(-2px); color:#fff; }
.fr-ft-social .fr-ft-social-youtube:hover { background:#ff0033; border-color:#ff0033; }
.fr-ft-social .fr-ft-social-facebook:hover { background:#1877f2; border-color:#1877f2; }
html:root body .fr-ft .fr-ft-social .fr-ft-social-x:hover { background:#000 !important; border-color:#000 !important; }

.fr-ft-title { margin: 4px 0 18px; color:#fff; font-size: 13px; font-weight: 800; letter-spacing:.09em; text-transform: uppercase; }
.fr-ft-col ul { margin:0; padding:0; list-style:none; display:grid; gap: 0; }
.fr-ft-col a {
    display:inline-block; padding: 6px 0; color:#b4c4d6; font-size: 14.5px; font-weight: 500; text-decoration:none;
    transition: color .15s, transform .15s;
}
.fr-ft-col a:hover { color:#fff; transform: translateX(3px); }

/* ----- bottom bar ----- */
.fr-ft-bottom { border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.18); }
.fr-ft-bottom-inner { display:flex; align-items:center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; padding: 20px 0; font-size: 13px; }
.fr-ft-copy { color:#8ea3b9; }
.fr-ft-copy strong { color:#fff; }
.fr-ft-legal { display:flex; gap: 10px; align-items:center; color:#4f6580; }
.fr-ft-legal a { color:#9fb2c7; text-decoration:none; }
.fr-ft-legal a:hover { color:#fff; }

@media (max-width: 1000px) {
    .fr-ft-main { grid-template-columns: 1fr 1fr; gap: 36px 32px; padding: 44px 0 36px; }
    .fr-ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .fr-ft { margin-top: 48px; }
    .fr-ft-stats-inner { grid-template-columns: 1fr 1fr; }
    .fr-ft-stat { padding: 18px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
    .fr-ft-stat:nth-child(2n) { border-right: 0; }
    .fr-ft-stat:nth-last-child(-n+2) { border-bottom: 0; }
    .fr-ft-main { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
    .fr-ft-bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* ----- floating Back to top (all pages) ----- */
.fr-btt {
    position: fixed; right: 22px; bottom: 22px; z-index: 9000;
    width: 46px; height: 46px; display: grid; place-items: center;
    border: 0; border-radius: 14px; cursor: pointer;
    background: #06182f; color: #fff;
    box-shadow: 0 1px 2px rgba(6,24,47,.2), 0 10px 28px rgba(6,24,47,.28);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .2s, transform .2s, visibility .2s, background .15s;
}
.fr-btt.is-visible { opacity: 1; visibility: visible; transform: none; }
.fr-btt:hover { background: #0a7f78; }
.fr-btt:focus-visible { outline: 3px solid rgba(10,127,120,.45); outline-offset: 2px; }
@media (max-width: 600px) { .fr-btt { right: 14px; bottom: 14px; width: 42px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { .fr-btt { transition: none; } }
.fr-ft-bottom-inner { padding-right: 64px; }
@media (max-width: 600px) { .fr-ft-bottom-inner { padding-right: 56px; } }

.fr-ft-cookie { background:none; border:0; padding:0; font:inherit; color:#9fb2c7; cursor:pointer; }
.fr-ft-cookie:hover { color:#fff; }
.fr-ft-legal { flex-wrap: wrap; }

/* Brand mark on the dark footer */
html body .fr-ft-logo.fr-brandmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
html body .fr-ft-logo .fr-brandmark-icon { display: block; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(255,255,255,.18); border-radius: 11px; }
html body .fr-ft-logo .fr-brandmark-text { display: flex; flex-direction: column; gap: 3px; font-family: var(--fr-display, 'Saira', 'Inter', sans-serif); font-stretch: 87.5%; line-height: .95; text-transform: uppercase; white-space: nowrap; }
html body .fr-ft-logo .fr-brandmark-text b { color: #fff; font-size: 18px; font-weight: 800; letter-spacing: .01em; }
html body .fr-ft-logo .fr-brandmark-text i { color: #2fd3ad; font-size: 18px; font-style: normal; font-weight: 800; letter-spacing: .2em; }

/* Visitor counter (inc/stats/visitor-counter.php), after All rights reserved. */
.fr-ft-visits { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; color: #8ea3b9; white-space: nowrap; }
.fr-ft-visits[hidden] { display: none; }
/* "visitors": read by screen readers only (icon + number on screen) */
.fr-ft-visits .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fr-ft-visits svg { color: #2ec4a6; flex: 0 0 auto; }
.fr-ft-visits strong { color: #fff; font-variant-numeric: tabular-nums; }
.fr-ft-visits-sep { margin-right: 2px; color: #4f6580; }
.fr-ft-visits-today { color: #8ea3b9; }
@media (max-width: 600px) {
    .fr-ft-visits { display: flex; margin: 8px 0 0; }
    .fr-ft-visits[hidden] { display: none; }
    .fr-ft-visits-sep { display: none; }
}

/* Counter: numbers and words in the same size, weight and colour */
.fr-ft-visits, .fr-ft-visits-today { color: #c3d0dd; font-size: 13px; font-weight: 500; }
.fr-ft-visits strong { color: inherit; font-size: inherit; font-weight: inherit; }

/* Counter: exactly the font of "All rights reserved." (no bold, same colour) */
.fr-ft-visits, .fr-ft-visits strong, .fr-ft-visits [data-fr-visits-total] { color: inherit; font-size: inherit; font-weight: inherit; }


/* ==========================================================
   2026-11: plain navy footer (#071b35), no teal: matches the
   navy of the buttons and scores; green stays in the header.
   ========================================================== */

html:root body .fr-ft {
    background: #071b35 !important;
    border-top: 3px solid #f4b400 !important;
}

html:root body .fr-ft::before,
html:root body .fr-ft::after {
    display: none !important;
}

html:root body .fr-ft .fr-ft-title {
    color: #f4b400 !important;
}

html:root body .fr-ft .fr-brandmark-text i {
    color: #f4b400 !important;
}

html:root body .fr-ft .fr-ft-cta {
    color: #071b35 !important;
    background: #f4b400 !important;
    border-color: #f4b400 !important;
    border-radius: 0 !important;
}

html:root body .fr-ft .fr-ft-cta svg {
    color: #071b35 !important;
}

html:root body .fr-ft .fr-ft-social-facebook,
html:root body .fr-ft .fr-ft-social-x,
html:root body .fr-ft .fr-ft-social-youtube {
    background: rgba(255, 255, 255, .08) !important;
    border-color: rgba(255, 255, 255, .16) !important;
    border-radius: 0 !important;
}

html:root body .fr-ft .fr-ft-visits svg {
    color: #c3d0dd !important;
}

html:root body .fr-ft .fr-ft-bottom {
    background: rgba(0, 0, 0, .22) !important;
}


/* ---- page-header.css ---- */
/**
 * ==========================================================
 * Football Rwanda
 * Global Page Header
 * File: page-header.css
 * ==========================================================
 */


/* ==========================================================
   HEADER
========================================================== */

.fr-page-header {

    width: 100%;

    margin-bottom: 32px;

    background:
        linear-gradient(
            135deg,
            #009b83 0%,
            #008f7a 50%,
            #007f70 100%
        );

    color: #ffffff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 15px 40px rgba(0, 128, 110, 0.18);
}


/* ==========================================================
   CONTENT
========================================================== */

.fr-page-header-content {

    padding: 28px 42px 24px;
}


/* ==========================================================
   SUBTITLE
========================================================== */

.fr-page-subtitle {

    display: block;

    margin-bottom: 6px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 12px;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* ==========================================================
   TITLE
========================================================== */

.fr-page-title {

    margin: 0 0 8px;

    color: #ffffff;

    font-size: 34px;

    line-height: 1.15;

    font-weight: 800;
}


/* ==========================================================
   DESCRIPTION
========================================================== */

.fr-page-description {

    max-width: 700px;

    margin: 0;

    color: rgba(255, 255, 255, 0.88);

    font-size: 14px;

    line-height: 1.5;
}


/* ==========================================================
   STATS
========================================================== */

.fr-page-stats {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    background: rgba(0, 0, 0, 0.08);

    border-top:
        1px solid rgba(255, 255, 255, 0.18);
}


/* ==========================================================
   STAT
========================================================== */

.fr-page-stat {

    min-height: 72px;

    padding: 14px 24px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    border-right:
        1px solid rgba(255, 255, 255, 0.18);
}


.fr-page-stat:last-child {
    border-right: none;
}


/* ==========================================================
   STAT VALUE
========================================================== */

.fr-page-stat-value {

    color: #ffffff;

    font-size: 22px;

    line-height: 1.15;

    font-weight: 800;
}


/* ==========================================================
   STAT LABEL
========================================================== */

.fr-page-stat-label {

    margin-top: 3px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 10px;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: 0.06em;

    text-transform: uppercase;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 992px) {

    .fr-page-header-content {

        padding: 25px 30px 22px;
    }


    .fr-page-title {

        font-size: 31px;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    .fr-page-header {

        margin-bottom: 24px;

        border-radius: 14px;
    }


    .fr-page-header-content {

        padding: 24px 24px 20px;
    }


    .fr-page-title {

        font-size: 28px;
    }


    .fr-page-description {

        font-size: 13px;
    }


    .fr-page-stats {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .fr-page-stat {

        min-height: 68px;

        padding: 13px 18px;
    }


    .fr-page-stat:nth-child(2) {

        border-right: none;
    }


    .fr-page-stat:nth-child(-n + 2) {

        border-bottom:
            1px solid rgba(255, 255, 255, 0.18);
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .fr-page-header-content {

        padding: 21px 18px 18px;
    }


    .fr-page-subtitle {

        font-size: 10px;
    }


    .fr-page-title {

        font-size: 25px;
    }


    .fr-page-description {

        font-size: 12px;
    }


    .fr-page-stat {

        min-height: 64px;

        padding: 11px 12px;
    }


    .fr-page-stat-value {

        font-size: 19px;
    }


    .fr-page-stat-label {

        font-size: 9px;
    }

}

/* ---- brand.css ---- */
/* ==========================================================
   Football Rwanda - Brand layer (every page)
   The identity introduced on the home page, for the parts
   every page shares. CSS only.

   - Display face: Saira (assets/css/base/fonts.css) for page
     titles and their key numbers.
   - Rwanda flag band closing the page header, as on the home
     hero and the match hero.
   - The generic "Football Rwanda" eyebrow above every page
     title is removed: the title speaks for itself.
   ========================================================== */

:root {
    --fr-display: 'Saira', 'Inter', system-ui, sans-serif;
}


/* ---------- Page header (template-parts/components/page-header.php) ---------- */

html body .fr-page-header .fr-page-subtitle {
    display: none;
}

html body .fr-page-header .fr-page-title {
    font-family: var(--fr-display);
    font-stretch: 87.5%;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1;
    text-transform: uppercase;
}

html body .fr-page-header .fr-page-stat-value {
    font-family: var(--fr-display);
    font-stretch: 87.5%;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

html body .fr-page-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 5px;
    background: linear-gradient(90deg, #00A1DE 0 50%, #FAD201 50% 75%, #20603D 75% 100%);
    pointer-events: none;
}


/* ---------- Directory header (template-parts/components/directory-header.php:
   Statistics, Players, Clubs, Coaches, Academies, Nationalities...) ---------- */

/* The flag band is absolutely positioned: the header must be its
   containing block (it is position: static on some pages). */
html body .fr-directory-header,
html body .fr-page-header {
    position: relative;
    overflow: hidden;
}

html body .fr-directory-header .fr-directory-subtitle {
    display: none;
}

html body .fr-directory-header .fr-directory-title {
    font-family: var(--fr-display);
    font-stretch: 87.5%;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1;
    text-transform: uppercase;
}

html body .fr-directory-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 5px;
    background: linear-gradient(90deg, #00A1DE 0 50%, #FAD201 50% 75%, #20603D 75% 100%);
    pointer-events: none;
}

/* Directory filters: same green button on every directory (Academies and
   Coaches do not load pro-pages.css and fell back to a blue button). */
html body .fr-filter-button {
    border-color: #0a7f78;
    background: #0a7f78;
    color: #fff;
}

html body .fr-filter-button:hover,
html body .fr-filter-button:focus-visible {
    border-color: #07665f;
    background: #07665f;
    color: #fff;
}

/* SVG icons (inc/ui/icons.php): inline, aligned with the text, text colour. */
.fr-ui-icon {
    display: inline-block;
    flex: 0 0 auto;
    vertical-align: -2px;
}


/* ---------- Browser surfaces ---------- */

::selection {
    background: rgba(0, 152, 121, .22);
    color: #0f172a;
}


/* ---- directory-header.css ---- */
/**
 * ==========================================================
 * Football Rwanda
 * Global Directory Header
 * File: directory-header.css
 * ==========================================================
 */


/* ==========================================================
   HEADER
========================================================== */

.fr-directory-header {

    width: 100%;

    margin-bottom: 32px;

    background:
        radial-gradient(120% 90% at 20% 0%, rgba(0,190,160,.22), rgba(0,190,160,0) 60%),
        linear-gradient(160deg,#06182f 0%,#0a2c47 55%,#08524f 100%);

    color: #ffffff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 16px 40px rgba(6, 24, 47, 0.16);
}


/* ==========================================================
   CONTENT
========================================================== */

.fr-directory-header-content {

    padding: 38px 42px 32px;
}


.fr-directory-subtitle {

    display: block;

    margin-bottom: 8px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 13px;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.fr-directory-title {

    margin: 0 0 10px;

    color: #ffffff;

    font-size: 36px;

    line-height: 1.15;

    font-weight: 800;
}


.fr-directory-description {

    max-width: 700px;

    margin: 0;

    color: rgba(255, 255, 255, 0.88);

    font-size: 15px;

    line-height: 1.6;
}


/* ==========================================================
   STATS
========================================================== */

.fr-directory-stats {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    background: rgba(0, 0, 0, 0.08);

    border-top:
        1px solid rgba(255, 255, 255, 0.18);
}


.fr-directory-stat {

    min-height: 86px;

    padding: 18px 24px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    border-right:
        1px solid rgba(255, 255, 255, 0.18);
}


.fr-directory-stat:last-child {
    border-right: none;
}


.fr-directory-stat strong {

    color: #ffffff;

    font-size: 24px;

    line-height: 1.2;

    font-weight: 800;
}


.fr-directory-stat span {

    margin-top: 4px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 11px;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: 0.06em;

    text-transform: uppercase;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 992px) {

    .fr-directory-header-content {

        padding: 32px 30px 28px;
    }


    .fr-directory-title {

        font-size: 32px;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    .fr-directory-header {

        margin-bottom: 24px;

        border-radius: 14px;
    }


    .fr-directory-header-content {

        padding: 28px 24px;
    }


    .fr-directory-title {

        font-size: 28px;
    }


    .fr-directory-description {

        font-size: 14px;
    }


    .fr-directory-stats {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .fr-directory-stat {

        min-height: 76px;

        padding: 15px 18px;
    }


    .fr-directory-stat:nth-child(2) {

        border-right: none;
    }


    .fr-directory-stat:nth-child(-n + 2) {

        border-bottom:
            1px solid rgba(255, 255, 255, 0.18);
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .fr-directory-header-content {

        padding: 24px 20px;
    }


    .fr-directory-subtitle {

        font-size: 11px;
    }


    .fr-directory-title {

        font-size: 25px;
    }


    .fr-directory-description {

        font-size: 13px;
    }


    .fr-directory-stat {

        min-height: 70px;

        padding: 13px 12px;
    }


    .fr-directory-stat strong {

        font-size: 20px;
    }


    .fr-directory-stat span {

        font-size: 9px;
    }

}

/* ---- section.css ---- */
/* ==========================================================
   SECTION HEADER
========================================================== */

.fr-section-header{

    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:20px;
    margin-bottom:24px;

}

.fr-section-subtitle{

    display:block;
    color:var(--fr-primary);
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1px;
    margin-bottom:8px;

}

.fr-section-title{

    margin:0;
    font-size:38px;
    color:var(--fr-dark);

}

.fr-section-link{

    text-decoration:none;
    font-weight:700;
    color:var(--fr-primary);

}

.fr-section-link:hover{

    text-decoration:underline;

}

@media(max-width:768px){

.fr-section-header{

    flex-direction:column;
    align-items:flex-start;

}

.fr-section-title{

    font-size:30px;

}

}

/* ---- stat-card.css ---- */
/*
====================================================
Football Rwanda
Stat Card
====================================================
*/

.fr-stats-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
    gap:20px;

}

.fr-stat-card{

    background:#fff;
    border-radius:14px;
    padding:20px;
    text-align:center;
    box-shadow:0 6px 18px rgba(0,0,0,.08);
    transition:.3s;

}

.fr-stat-card:hover{

    transform:translateY(-4px);
    box-shadow:0 12px 30px rgba(0,0,0,.12);

}

.fr-stat-icon{

    font-size:34px;
    margin-bottom:10px;

}

.fr-stat-value{

    font-size:32px;
    font-weight:700;
    color:var(--fr-primary);
    line-height:1;

}

.fr-stat-label{

    margin-top:10px;
    font-size:14px;
    color:#666;

}

/* ---- search.css ---- */
/**
 * ==========================================================
 * Football Rwanda
 * Search Pro
 * Version 5.0
 * ==========================================================
 */


/* ==========================================================
   SEARCH WRAPPER
========================================================== */

.fr-search {
    position: relative;
    width: 100%;
    max-width: 730px;
    
}


/* ==========================================================
   INPUT
========================================================== */

.fr-search input {
    width: 80%;
    height: 58px;

    padding: 0 22px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;

    background: #ffffff;

    color: #111827;

    font-size: 16px;
    font-weight: 500;

    box-sizing: border-box;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.fr-search input::placeholder {
    color: #94a3b8;
}

.fr-search input:focus {
    border-color: #00a889;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.14),
        0 0 0 3px rgba(0, 168, 137, 0.12);
}


/* ==========================================================
   RESULTS CONTAINER
========================================================== */

#fr-search-results {
    position: absolute;

    top: 66px;
    left: 0;

    width: 100%;

    display: none;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.18),
        0 5px 15px rgba(15, 23, 42, 0.08);

    z-index: 999999;

    max-height: 430px;

    overflow-y: auto;
}

#fr-search-results.is-visible {
    display: block;

    animation: frSearchFade 0.18s ease;
}


/* ==========================================================
   ANIMATION
========================================================== */

@keyframes frSearchFade {

    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ==========================================================
   SEARCH GROUP
========================================================== */

.fr-search-group {
    border-bottom: 1px solid #edf0f3;
}

.fr-search-group:last-child {
    border-bottom: none;
}


/* ==========================================================
   GROUP TITLE
========================================================== */

.fr-search-group-title {

    display: flex;
    align-items: center;

    min-height: 38px;

    padding: 0 16px;

    background: #f7f9fb;

    color: #008f79;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}


/* ==========================================================
   SEARCH ITEM
========================================================== */

.fr-search-item {

    display: flex;

    align-items: center;

    gap: 12px;

    min-height: 66px;

    padding: 9px 16px;

    text-decoration: none;

    color: #1f2937;

    background: #ffffff;

    transition:
        background 0.18s ease,
        transform 0.18s ease;
}

.fr-search-item:hover {
    background: #f5f8fa;
}


/* ==========================================================
   IMAGE
========================================================== */

.fr-search-item img {

    width: 44px;
    height: 44px;

    border-radius: 50%;

    object-fit: cover;

    flex: 0 0 44px;

    border: 1px solid #e5e7eb;

    background: #f3f4f6;
}


/* ==========================================================
   SEARCH CONTENT
========================================================== */

.fr-search-content {

    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 3px;
}


.fr-search-content strong {

    display: block;

    color: #111827;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.25;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.fr-search-content span {

    display: block;

    color: #6b7280;

    font-size: 12px;

    line-height: 1.3;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* ==========================================================
   TAXONOMY ITEMS
========================================================== */

/*
 * Clubs, Nationalities and Positions can also use
 * .fr-search-item without a player photo.
 */

.fr-search-group .fr-search-item:not(:has(img)) {

    min-height: 48px;

    padding-top: 7px;
    padding-bottom: 7px;
}


/* ==========================================================
   EMPTY RESULT
========================================================== */

.fr-search-empty {

    padding: 20px 16px;

    text-align: center;

    color: #6b7280;

    font-size: 13px;

    background: #ffffff;
}


/* ==========================================================
   SCROLLBAR
========================================================== */

#fr-search-results::-webkit-scrollbar {
    width: 5px;
}

#fr-search-results::-webkit-scrollbar-track {
    background: transparent;
}

#fr-search-results::-webkit-scrollbar-thumb {
    background: #cbd5e1;

    border-radius: 20px;
}

#fr-search-results::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    .fr-search {
        max-width: 100%;
    }


    .fr-search input {

        height: 54px;

        padding: 0 18px;

        border-radius: 12px;

        font-size: 15px;
    }


    #fr-search-results {

        top: 61px;

        border-radius: 12px;

        max-height: 380px;
    }


    .fr-search-group-title {

        min-height: 36px;

        padding: 0 14px;

        font-size: 10px;
    }


    .fr-search-item {

        gap: 10px;

        min-height: 60px;

        padding: 8px 14px;
    }


    .fr-search-item img {

        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }


    .fr-search-content strong {
        font-size: 13px;
    }


    .fr-search-content span {
        font-size: 11px;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    #fr-search-results {

        left: 0;

        width: 100%;

        max-height: 350px;
    }


    .fr-search-item {
        padding-left: 12px;
        padding-right: 12px;
    }

}

/* ==========================================================
   SEARCH RESULTS PAGE (search.php)
========================================================== */

.fr-search-page {
    padding: 40px 0 70px;
}

.fr-search-page .fr-container {
    max-width: 860px;
    margin: 0 auto;
}

.fr-search-page-header {
    margin-bottom: 24px;
}

.fr-search-page-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #009f88;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fr-search-page-header h1 {
    margin: 0 0 18px;
    font-size: 36px;
    line-height: 1.15;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.fr-search-page-form {
    display: flex;
    gap: 10px;
}

.fr-search-page-form input {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    padding: 0 18px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    font-size: 16px;
    box-sizing: border-box;
}

.fr-search-page-form input:focus {
    border-color: #00a889;
    outline: none;
}

.fr-search-page-form button {
    flex: 0 0 auto;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: #009f88;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.fr-search-page-results .fr-search-list {
    background: #ffffff;
    border: 1px solid #e5ebf0;
    border-radius: 16px;
    overflow: hidden;
}

@media (max-width: 600px) {
    .fr-search-page-header h1 {
        font-size: 28px;
    }
}


/* ---- player-card.css ---- */
/**
 * Football Rwanda
 * Component: Player Card
 * Version: 8.0
 *
 * IMPORTANT:
 * - Based on the real player-card.php structure.
 * - Does NOT change the player grid.
 * - Does NOT modify global stat-card.css.
 * - Only styles stat-card instances INSIDE .fr-player-stats.
 */

/* ==========================================================
   PLAYER CARD
========================================================== */

.fr-player-card {
    width: 100%;
    min-width: 0;
    height: 160px;
    min-height: 160px;
    max-height: 160px;

    display: flex;
    flex-direction: row;

    overflow: hidden;

    border: 1px solid #dfe5ec;
    border-radius: 14px;

    background: #f7f9fb;

    box-sizing: border-box;
}

/* ==========================================================
   PLAYER IMAGE
========================================================== */

.fr-player-card .fr-player-image {
    position: relative;

    flex: 0 0 140px;
    width: 140px;
    min-width: 140px;
    max-width: 140px;

    height: 160px;

    display: block;

    overflow: hidden;

    background: #e3e3e3;

    box-sizing: border-box;
}

.fr-player-card .fr-player-photo {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* ==========================================================
   SHIRT NUMBER
========================================================== */

.fr-player-card .fr-shirt-number {
    position: absolute;

    top: 10px;
    right: 10px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--fr-primary);
    color: #fff;

    font-size: 14px;
    line-height: 1;
    font-weight: 700;

    z-index: 2;
}

/* ==========================================================
   CONTENT
========================================================== */

.fr-player-card .fr-player-content {
    flex: 1 1 auto;

    width: auto;
    min-width: 0;
    min-height: 0;

    padding: 11px 13px 10px;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    box-sizing: border-box;

    overflow: hidden;
}

/* ==========================================================
   PLAYER NAME
========================================================== */

.fr-player-card .fr-player-name {
    flex: 0 0 auto;

    width: 100%;
    min-width: 0;

    margin: 0 0 5px;

    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fr-player-card .fr-player-name a {
    display: block;

    width: 100%;
    max-width: 100%;

    color: inherit;
    text-decoration: none;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================
   META
========================================================== */

.fr-player-card .fr-player-meta {
    flex: 0 0 auto;

    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 3px;

    margin: 0;

    font-size: 11px;
    line-height: 1.25;

    overflow: hidden;
}

/* Each metadata item stays on its own line */
.fr-player-card .fr-meta-item {
    display: flex;
    align-items: center;

    width: 100%;
    min-width: 0;
    max-width: 100%;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fr-player-card .fr-meta-item a {
    display: block;

    max-width: 100%;

    color: inherit;
    text-decoration: none;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================
   NATIONALITY / FLAG
========================================================== */

/*
 * Supports the real flag image returned by fr_get_flag().
 *
 * The selector is intentionally generic so it can work with
 * existing nationality markup without affecting other images.
 */

.fr-player-card .fr-player-meta img.fr-nationality-flag {
    display: inline-block;

    width: 18px !important;
    height: 12px !important;

    min-width: 18px !important;
    max-width: 18px !important;

    min-height: 12px !important;
    max-height: 12px !important;

    margin: 0 6px 0 0 !important;

    object-fit: cover;

    vertical-align: middle;

    border-radius: 2px;

    flex: 0 0 auto;
}

/* ==========================================================
   STATS AREA
========================================================== */

.fr-player-card .fr-player-stats {
    flex: 0 0 auto;

    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 18px;

    margin: 7px 0 6px;

    overflow: hidden;
}

/* ==========================================================
   NESTED STAT CARDS
========================================================== */

.fr-player-card .fr-player-stats > * {
    flex: 0 1 auto !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    min-height: 0 !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 4px !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    overflow: visible !important;
}

.fr-player-card .fr-player-stats .fr-stat-card {
    flex: 0 1 auto !important;

    width: auto !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 0 !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.fr-player-card .fr-player-stats .fr-stat-icon {
    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    font-size: 16px !important;
    line-height: 1 !important;
}

.fr-player-card .fr-player-stats .fr-stat-value {
    margin: 0 !important;
    padding: 0 !important;

    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
}

.fr-player-card .fr-player-stats .fr-stat-label {
    margin: 0 !important;
    padding: 0 !important;

    font-size: 8px !important;
    line-height: 1 !important;
    font-weight: 700 !important;

    text-transform: uppercase;
    letter-spacing: .35px;
}

/* Generic stat-card support */

.fr-player-card .fr-player-stats .stat-card {
    flex: 0 1 auto !important;

    width: auto !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;

    gap: 4px !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* ==========================================================
   BUTTON
========================================================== */

.fr-player-card .fr-player-button {
    flex: 0 0 auto;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: auto;
    padding: 6px 10px;

    min-height: 25px;

    border: 0;
    border-radius: 6px;

    background: var(--fr-primary);
    color: #fff !important;

    font-size: 10px;
    line-height: 1.1;
    font-weight: 700;

    text-decoration: none;

    box-sizing: border-box;
}

.fr-player-card .fr-player-button:hover {
    color: #fff !important;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 992px) {

    .fr-player-card {
        height: 160px;
        min-height: 160px;
        max-height: 160px;
    }

    .fr-player-card .fr-player-image {
        flex-basis: 120px;
        width: 120px;
        min-width: 120px;
        max-width: 120px;

        height: 160px;
    }

    .fr-player-card .fr-player-content {
        padding: 10px 12px;
    }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {

    .fr-player-card .fr-player-image {
        flex-basis: 110px;
        width: 110px;
        min-width: 110px;
        max-width: 110px;
    }

    .fr-player-card .fr-player-content {
        padding: 10px 11px;
    }

    .fr-player-card .fr-player-name {
        font-size: 15px;
    }

    .fr-player-card .fr-player-meta {
        font-size: 10px;
    }

    .fr-player-card .fr-player-stats {
        gap: 12px;
        margin-top: 6px;
    }

    .fr-player-card .fr-player-button {
        min-height: 24px;
        padding: 5px 8px;
    }
}

/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 420px) {

    .fr-player-card {
        height: 150px;
        min-height: 150px;
        max-height: 150px;
    }

    .fr-player-card .fr-player-image {
        flex-basis: 100px;
        width: 100px;
        min-width: 100px;
        max-width: 100px;

        height: 150px;
    }

    .fr-player-card .fr-player-content {
        padding: 9px 10px;
    }

    .fr-player-card .fr-player-name {
        font-size: 14px;
    }

    .fr-player-card .fr-player-meta {
        font-size: 9px;
    }

    .fr-player-card .fr-player-stats {
        gap: 10px;
    }

    .fr-player-card .fr-player-stats .fr-stat-icon {
        font-size: 14px !important;
    }

    .fr-player-card .fr-player-stats .fr-stat-value {
        font-size: 14px !important;
    }

    .fr-player-card .fr-player-stats .fr-stat-label {
        font-size: 7px !important;
    }
}

/* ==========================================================
   PLAYER GRID
   DO NOT CHANGE
========================================================== */

.fr-player-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;

    width: 100%;
}

@media (max-width: 992px) {

    .fr-player-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {

    .fr-player-grid {
        grid-template-columns: 1fr;
    }
}

/* Club logo in the card meta (replaces the stadium emoji) */
.fr-player-card .fr-meta-club-logo {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-right: 7px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
}

/* Current club line (Players Abroad cards) */
html body .fr-player-card .fr-meta-club-current {
    align-items: center;
}
html body .fr-player-card .fr-meta-club-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}
html body .fr-player-card .fr-meta-club-text small {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #0a7f78;
}
html body .fr-player-card .fr-meta-club-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #06182f;
}
html body .fr-player-card .fr-meta-club-text em.fr-meta-club-country {
    font-style: normal;
    font-size: 12px;
    font-weight: 500;
    color: #62748a;
}

/* Abroad cards: extra club + country lines need more height */
html body .fr-player-card.fr-player-card--abroad {
    height: auto;
    min-height: 190px;
    max-height: none;
}
html body .fr-player-card.fr-player-card--abroad .fr-player-image {
    height: auto;
    min-height: 190px;
    align-self: stretch;
}
html body .fr-player-card.fr-player-card--abroad .fr-player-content {
    overflow: visible;
}

/* Country · league line: wrap instead of being cut */
html body .fr-player-card .fr-meta-club-text em.fr-meta-club-country {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
}

/* ---- club-card.css ---- */


/* ==================================================
   CLUB CARD
================================================== */

.fr-club-card {
    width: 100%;
    min-width: 0;
    height: 100%;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border: 1px solid #e4ebf0;
    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 6px 20px rgba(18, 60, 102, .07);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.fr-club-card:hover {
    transform: translateY(-4px);

    border-color: #d2dfe7;

    box-shadow:
        0 14px 32px rgba(18, 60, 102, .12);
}

/* ==================================================
   CLUB IMAGE
   Balanced logo presentation
================================================== */

.fr-club-image {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 170px;

    padding: 16px;

    box-sizing: border-box;

    background: linear-gradient(
        180deg,
        #f8fafc 0%,
        #f2f6f8 100%
    );

    border-bottom: 1px solid #edf2f5;

    overflow: hidden;
}

/* ==================================================
   CLUB LOGO
================================================== */

.fr-club-image img {
    display: block;

    width: auto;
    height: auto;

    /*
     * Limits the logo while preserving
     * its original proportions.
     */
    max-width: 135px;
    max-height: 135px;

    object-fit: contain;
    object-position: center;

    transition:
        transform .25s ease;
}

/* ==================================================
   LOGO HOVER
================================================== */

.fr-club-card:hover
.fr-club-image img {
    transform: scale(1.06);
}

/* ==================================================
   CLUB CONTENT
================================================== */

.fr-club-content {
    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 16px 16px 15px;

    gap: 9px;

    text-align: center;
}

/* ==================================================
   CLUB NAME
================================================== */

.fr-club-name {
    margin: 0;

    font-size: 17px;

    line-height: 1.25;

    font-weight: 800;
}

.fr-club-name a {
    color: #123c66;

    text-decoration: none;

    transition:
        color .2s ease;
}

.fr-club-name a:hover {
    color: #009f83;
}

/* ==================================================
   CLUB META
================================================== */

.fr-club-meta {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    color: #718096;

    font-size: 11px;

    line-height: 1.3;

    min-height: 22px;
}

.fr-club-meta-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 12px;
}

/* ==================================================
   PLAYERS COUNT
================================================== */

.fr-club-players {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    margin-top: auto;

    padding-top: 5px;

    color: #009f83;

    font-size: 11px;

    font-weight: 800;
}

.fr-club-players::before {
    content: "👥";

    font-size: 12px;
}

/* ==================================================
   BUTTON
================================================== */

.fr-club-button {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    width: 100%;

    box-sizing: border-box;

    margin-top: 5px;

    padding: 9px 12px;

    border-radius: 8px;

    background: #123c66;

    color: #ffffff;

    text-align: center;

    text-decoration: none;

    font-size: 11px;

    font-weight: 800;

    transition:
        background .2s ease,
        transform .2s ease;
}

.fr-club-button:hover {
    background: #009f83;

    color: #ffffff;

    text-decoration: none;

    transform: translateY(-1px);
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 992px) {

.fr-club-image {
        height: 155px;
    }

}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 576px) {

@media (max-width: 576px) {

    .fr-club-image {
        height: 145px;
        padding: 16px;
    }

    .fr-club-image img {
        max-width: 110px;
        max-height: 110px;
    }

}
    .fr-club-content {
        padding: 15px;
    }

.fr-club-name {
        font-size: 16px;
    }

.fr-club-meta {
        font-size: 11px;
    }

}

/* ---- player-navigation.css ---- */
/* ==========================================================
   FOOTBALL RWANDA
   PLAYER NAVIGATION
========================================================== */

.fr-player-navigation {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;

    width: 100%;

}


/* ==========================================================
   NAVIGATION ITEM
========================================================== */

.fr-player-navigation-item {

    min-width: 0;

}


/* ==========================================================
   LINK
========================================================== */

.fr-player-navigation-link {

    display: flex;

    align-items: center;

    gap: 16px;

    width: 100%;

    min-height: 82px;

    padding: 16px 20px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;

}


/* ==========================================================
   HOVER
========================================================== */

.fr-player-navigation-link:hover {

    transform: translateY(-2px);

    border-color: #d1d5db;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

}


/* ==========================================================
   PREVIOUS
========================================================== */

.fr-player-navigation-previous
.fr-player-navigation-link {

    justify-content: flex-start;

}


/* ==========================================================
   NEXT
========================================================== */

.fr-player-navigation-next
.fr-player-navigation-link {

    justify-content: flex-end;

    text-align: right;

}


/* ==========================================================
   ARROW
========================================================== */

.fr-player-navigation-arrow {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 42px;

    min-width: 42px;

    height: 42px;

    background: #f3f4f6;

    border-radius: 10px;

    font-size: 22px;

    font-weight: 700;

    color: #009f83;

}


/* ==========================================================
   CONTENT
========================================================== */

.fr-player-navigation-content {

    display: flex;

    flex-direction: column;

    min-width: 0;

}


/* ==========================================================
   LABEL
========================================================== */

.fr-player-navigation-content small {

    margin-bottom: 5px;

    font-size: 12px;

    line-height: 1.3;

    font-weight: 500;

    color: #6b7280;

}


/* ==========================================================
   PLAYER NAME
========================================================== */

.fr-player-navigation-content strong {

    overflow: hidden;

    font-size: 15px;

    line-height: 1.4;

    font-weight: 700;

    color: #111827;

    text-overflow: ellipsis;

    white-space: nowrap;

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    .fr-player-navigation {

        grid-template-columns: 1fr;

        gap: 12px;

    }


    .fr-player-navigation-next
    .fr-player-navigation-link {

        justify-content: flex-start;

        text-align: left;

    }


    .fr-player-navigation-link {

        min-height: 72px;

        padding: 14px 16px;

    }


    .fr-player-navigation-arrow {

        width: 38px;

        min-width: 38px;

        height: 38px;

        font-size: 20px;

    }

}

/* ---- competition-card.css ---- */
/*
====================================================
Football Rwanda
Competition Card
File: competition-card.css
====================================================
*/


/* ==================================================
   COMPETITION GRID
================================================== */

.fr-competition-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 30px;

    width: 100%;

    margin-top: 10px;
}


/* ==================================================
   COMPETITION CARD
================================================== */

.fr-competition-card {

    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
    height: 100%;

    background: #ffffff;

    border: 1px solid #e5ebf0;

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 6px 20px rgba(18, 60, 102, 0.07);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}


.fr-competition-card:hover {

    transform: translateY(-5px);

    border-color: #d3e0e8;

    box-shadow:
        0 16px 34px rgba(18, 60, 102, 0.13);
}


/* ==================================================
   COMPETITION IMAGE
================================================== */

.fr-competition-image {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 190px;

    padding: 22px;

    box-sizing: border-box;

    background: #f7fafc;

    overflow: hidden;

    text-decoration: none;
}


.fr-competition-image img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    object-position: center;

    transition:
        transform .3s ease;
}


.fr-competition-card:hover
.fr-competition-image img {

    transform: scale(1.05);
}


/* ==================================================
   PLACEHOLDER
================================================== */

.fr-competition-placeholder {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    border-radius: 50%;

    background: #eaf7f4;

    color: #009f83;

    font-size: 30px;
}


/* ==================================================
   CONTENT
================================================== */

.fr-competition-content {

    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 20px;
}


/* ==================================================
   NAME
================================================== */

.fr-competition-name {

    margin: 0 0 10px;

    font-size: 21px;

    line-height: 1.3;

    font-weight: 800;

    text-align: center;
}


.fr-competition-name a {

    color: #123c66;

    text-decoration: none;

    transition:
        color .2s ease;
}


.fr-competition-name a:hover {

    color: #009f83;
}


/* ==================================================
   SEASON
================================================== */

.fr-competition-season {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-bottom: 12px;

    color: #68798a;

    font-size: 13px;

    line-height: 1.4;
}


.fr-competition-meta-icon {

    font-size: 13px;
}


/* ==================================================
   DESCRIPTION
================================================== */

.fr-competition-description {

    margin-bottom: 20px;

    color: #68798a;

    font-size: 13px;

    line-height: 1.6;

    text-align: center;
}


/* ==================================================
   BUTTON
================================================== */

.fr-competition-button {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    width: 100%;

    margin-top: auto;

    padding: 11px 14px;

    box-sizing: border-box;

    border-radius: 8px;

    background: #123c66;

    color: #ffffff;

    text-decoration: none;

    font-size: 12px;

    font-weight: 800;

    transition:
        background .2s ease,
        transform .2s ease;
}


.fr-competition-button:hover {

    background: #009f83;

    color: #ffffff;

    text-decoration: none;

    transform: translateY(-1px);
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 992px) {

    .fr-competition-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 24px;
    }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 576px) {

    .fr-competition-grid {

        grid-template-columns: 1fr;

        gap: 20px;
    }


    .fr-competition-image {

        height: 180px;

        padding: 20px;
    }


    .fr-competition-content {

        padding: 18px;
    }


    .fr-competition-name {

        font-size: 19px;
    }

}

/* ---- home.css ---- */
/*==========================================================
   FOOTBALL RWANDA
   HOME PAGE
   ==========================================================*/
/*==========================================================
   1. HOME GLOBAL
   ==========================================================*/
.fr-site-main {
    width: 100%;
    overflow: hidden;
}
.fr-home-dashboard-section {
    width: 100%;
    padding: 20px 0;
}
.fr-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

/*==========================================================
   2. HERO
   ==========================================================*/
.fr-hero {
    background-color: #031826; /* fallback if image is missing */
}

/*Stronger readability on the left, while keeping the players visible.*/
.fr-hero::before {
    background: linear-gradient(
            90deg,
            rgba(3, 24, 38, .78) 0%,
            rgba(3, 24, 38, .62) 32%,
            rgba(3, 24, 38, .18) 62%,
            rgba(3, 24, 38, 0) 100%
        );
}
.fr-hero-badge {
    justify-content: flex-start;
}
.fr-hero-actions {
    margin-bottom: 0;
}

/*==========================================================
   HERO — TABLET
   ==========================================================*/
@media (max-width: 1100px) {
    .fr-hero {
        background-position: center center;
    }
}

/*==========================================================
   HERO — MOBILE
   ==========================================================*/
@media (max-width: 767px) {
    .fr-hero::before {
        background: linear-gradient(
                90deg,
                rgba(3, 24, 38, .84) 0%,
                rgba(3, 24, 38, .68) 55%,
                rgba(3, 24, 38, .32) 100%
            );
    }
    .fr-hero-actions {
        justify-content: flex-start;
    }
}

/*==========================================================
   HERO — MOBILE
   ==========================================================*/
@media (max-width: 767px) {
    .fr-hero-content {
        max-width: 100%;
    }
    .fr-hero-badge {
        margin-bottom: 18px;
    }
    .fr-hero-title {
        margin-bottom: 14px;
        line-height: 1.08;
        white-space: normal;
    }
    .fr-hero-text {
        max-width: 500px;
        margin-bottom: 20px;
        font-size: 13px;
    }
    .fr-hero-actions {
        flex-wrap: wrap;
    }
    .fr-hero-button {
        min-width: 140px;
    }
    .fr-hero-stats {
        margin-top: 26px;
    }
    .fr-hero-stat {
        padding: 13px 7px;
    }
    .fr-hero-stat strong {
        font-size: 18px;
    }
    .fr-hero-stat span {
        font-size: 7px;
    }
}

/*==========================================================
   HERO — SMALL MOBILE
   ==========================================================*/
@media (max-width: 480px) {
    .fr-hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .fr-hero-button {
        width: 100%;
        max-width: 220px;
    }
    .fr-hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .fr-hero-stat:nth-child(2) {
        border-right: 0;
    }
    .fr-hero-stat:nth-child(3),
    .fr-hero-stat:nth-child(4) {
        border-top: 1px solid rgba(0,159,136,.35);
    }
    .fr-hero-stat:nth-child(4) {
        border-right: 0;
    }
}

/*==========================================================
   8. FEATURED MATCH
   ==========================================================*/
.fr-home-featured-match {
    width: 100%;
    background: #066138;
    padding: 65px 0;
}
.fr-home-featured-inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}
.fr-home-featured-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}
.fr-home-featured-header h2 {
    margin: 0;
    color: #123c66;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
}
.fr-home-featured-card {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(
            100deg,
            #164b75 0%,
            #07536f 50%,
            #009f88 100%
        );
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(18,60,102,.14);
    transition: transform .2s ease,
        box-shadow .2s ease;
}
.fr-home-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(18,60,102,.20);
}
.fr-home-featured-date {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 15px;
    background: rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.85);
    font-size: 9px;
    font-weight: 800;
}
.fr-home-featured-match-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr)
        180px
        minmax(0, 1fr);
    align-items: center;
    gap: 25px;
    padding: 30px 45px;
}
.fr-home-featured-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.fr-home-featured-logo {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.fr-home-featured-logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}
.fr-home-featured-team strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}
.fr-home-featured-team small {
    margin-top: 3px;
    color: rgba(255,255,255,.65);
    font-size: 7px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
}
.fr-home-featured-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.fr-home-featured-ft {
    display: inline-flex;
    margin-bottom: 9px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    color: #ffffff;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .8px;
}
.fr-home-featured-score > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.fr-home-featured-score strong {
    font-size: 38px;
    line-height: 1;
    font-weight: 900;
}
.fr-home-featured-score > div span {
    color: rgba(255,255,255,.65);
    font-size: 22px;
}
.fr-home-featured-footer {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(0,0,0,.10);
    border-top: 1px solid rgba(255,255,255,.10);
    color: #ffffff;
    font-size: 8px;
    font-weight: 900;
}

/*POSITION*/
.table-position {
    width: 45px;
}

/*CLUB*/
.table-club {
    width: 40%;
    text-align: left !important;
}

/*POINTS*/
.table-points {
    width: 55px;
}

/*GOAL DIFFERENCE*/
.gd-positive {
    color: #009f88;
    font-weight: 800;
}
.gd-negative {
    color: #d66b6b;
    font-weight: 800;
}
.gd-zero {
    color: #70839a;
    font-weight: 700;
}

/*==========================================================
   PLAYERS GRID
   ==========================================================*/
.fr-home-players .fr-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}
.fr-home-players .fr-player-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

/*==========================================================
   PLAYERS — TABLET
   ==========================================================*/
@media (max-width: 900px) {
    .fr-home-players .fr-player-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/*==========================================================
   PLAYERS — MOBILE
   ==========================================================*/
@media (max-width: 600px) {
    .fr-home-players {
        padding: 50px 0;
    }
    .fr-home-players .fr-container {
        width: calc(100% - 28px);
    }
    .fr-home-players .fr-player-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/*==========================================================
   14. CTA
   ==========================================================*/
.fr-home-cta {
    width: 100%;
    padding: 45px 0;
}
.fr-cta {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 32px 40px;
    box-sizing: border-box;
    border-radius: 20px;
    background: linear-gradient(
        100deg,
        #007e6d,
        #009f88
    );
    color: #ffffff;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0, 126, 109, .16);
}
.fr-cta-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}
.fr-cta-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(20px, 4vw, 32px);
    line-height: 1.1;
    font-weight: 800;
}
.fr-cta-text {
    max-width: 650px;
    margin: 10px auto 18px;
    color: rgba(255,255,255,.90);
    font-size: 14px;
    line-height: 1.5;
}
.fr-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.fr-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 150px;
    padding: 12px 20px;
    box-sizing: border-box;
    border: 1px solid #ffffff;
    border-radius: 8px;
    background: #ffffff;
    color: #007e6d;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    transition: background .2s ease,
        color .2s ease,
        transform .2s ease;
}
.fr-cta-button:hover {
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}
.fr-cta-button-secondary {
    background: transparent;
    color: #ffffff;
}
.fr-cta-button-secondary:hover {
    background: #ffffff;
    color: #007e6d;
}

/*==========================================================
   CTA — MOBILE
   ==========================================================*/
@media (max-width: 600px) {
    .fr-home-cta {
        padding: 50px 0;
    }
    .fr-cta {
        padding: 42px 22px;
        border-radius: 16px;
    }
    .fr-cta-title {
        font-size: 30px;
    }
    .fr-cta-text {
        font-size: 13px;
        margin-bottom: 22px;
    }
    .fr-cta-actions {
        flex-direction: column;
    }
    .fr-cta-button {
        width: 100%;
        max-width: 240px;
    }
}

/*==========================================================
   15. TABLET
   ==========================================================*/
@media (max-width: 900px) {
    .fr-home-featured-match-body {
        grid-template-columns: minmax(0, 1fr)
            150px
            minmax(0, 1fr);
        padding: 28px 30px;
    }
    .fr-hero {
        min-height: 580px;
    }
}

/*==========================================================
   16. MOBILE
   ==========================================================*/
@media (max-width: 600px) {
    .fr-container,
    .fr-home-featured-inner,
    .fr-home-players,
    .fr-home-cta {
        width: min(
            calc(100% - 28px),
            600px
        );
    }
    /*HERO*/
    .fr-hero {
        min-height: 650px;
        background-position: center;
    }
    .fr-hero-title {
        font-size: clamp(
            36px,
            10vw,
            50px
        );
        letter-spacing: -1px;
    }
    .fr-hero-text {
        font-size: 13px;
    }
    .fr-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .fr-hero-button {
        width: 100%;
    }
    .fr-hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    .fr-hero-stat {
        padding: 13px 8px;
        border-right: 0;
        border-bottom: 1px solid rgba(0,159,136,.30);
    }
    .fr-hero-stat:nth-child(odd) {
        border-right: 1px solid rgba(0,159,136,.30);
    }
    .fr-hero-stat:nth-child(3),
    .fr-hero-stat:nth-child(4) {
        border-bottom: 0;
    }
    /*SECTION HEADINGS*/
    .fr-home-featured-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
    .fr-home-featured-header h2 {
        font-size: 30px;
    }
    /*SECTIONS*/
    .fr-home-dashboard-section,
    .fr-home-featured-match,
    .fr-home-players {
        padding: 50px 0;
    }

    /*FEATURED MATCH*/
    .fr-home-featured-match-body {
        grid-template-columns: minmax(0, 1fr)
            90px
            minmax(0, 1fr);
        gap: 8px;
        padding: 25px 12px;
    }
    .fr-home-featured-logo,
    .fr-home-featured-logo img {
        width: 48px;
        height: 48px;
    }
    .fr-home-featured-team strong {
        font-size: 11px;
    }
    .fr-home-featured-score strong {
        font-size: 30px;
    }
    .fr-home-featured-score > div {
        gap: 5px;
    }
    .fr-home-featured-score > div span {
        font-size: 19px;
    }

/*TABLE*/

    .table-position {
        width: 32px;
    }
    .table-club {
        width: 40%;
    }
}

/*==========================================================
   17. VERY SMALL SCREENS
   ==========================================================*/
@media (max-width: 400px) {
    .fr-hero-title {
        font-size: 34px;
    }
    .fr-hero-stats {
        width: 100%;
    }
    .fr-home-featured-match-body {
        grid-template-columns: minmax(0, 1fr)
            75px
            minmax(0, 1fr);
    }
    .fr-home-featured-score strong {
        font-size: 27px;
    }
}

/*==========================================================
   LATEST PLAYERS
   ==========================================================*/
.fr-home-players {
    width: 100%;
    padding: 25px 0;
    background: #ffffff;
}

/*==========================================================
   FEATURED MATCH + FEATURED VIDEO
   ==========================================================*/
.fr-home-featured-columns {
    width: 100%;
    padding: 65px 0;
}
.fr-home-featured-columns-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}

/** The existing Featured Match component already has its own
 * spacing. Inside the two-column wrapper, remove that outer
 * spacing only so both columns align correctly.*/
.fr-home-featured-columns-grid > .fr-home-featured-match,
.fr-home-featured-columns-grid > .fr-home-featured-video {
    width: 100%;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
}
.fr-home-featured-columns-grid > .fr-home-featured-match
.fr-home-featured-inner {
    width: 100%;
}

/*==========================================================
   FEATURED VIDEO
   ==========================================================*/
.fr-home-featured-video {
    width: 100%;
}
.fr-home-featured-video-inner {
    width: 100%;
}
.fr-home-featured-video-card {
    overflow: hidden;
    width: 100%;
    border-radius: 10px;
    background: linear-gradient(
            100deg,
            #164b75 0%,
            #07536f 50%,
            #009f88 100%
        );
    box-shadow: 0 12px 32px rgba(18,60,102,.14);
}
.fr-home-featured-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #102f55;
}
.fr-home-featured-video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.fr-home-featured-video-empty {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 25px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px dashed #d5e0e8;
    border-radius: 10px;
    text-align: center;
}
.fr-home-featured-video-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #e8f7f3;
    color: #009f88;
    font-size: 18px;
}
.fr-home-featured-video-empty h3 {
    margin: 0;
    color: #123c66;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
}
.fr-home-featured-video-empty p {
    margin: 7px 0 0;
    color: #8190a0;
    font-size: 10px;
    line-height: 1.5;
}

/*==========================================================
   TABLET
   ==========================================================*/
@media (max-width: 900px) {
    .fr-home-featured-columns-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
}

/*==========================================================
   MOBILE
   ==========================================================*/
@media (max-width: 600px) {
    .fr-home-featured-columns {
        padding: 50px 0;
    }
    .fr-home-featured-columns-grid {
        gap: 45px;
    }
    .fr-home-featured-video-empty {
        min-height: 220px;
    }
}

/*==========================================================
   FOOTBALL RWANDA — HOME LIVE MATCHES
   ==========================================================*/
.fr-home-live-matches {
    width: 100%;
    padding: 30px 0;
    background: #f5f8fb;
}
.fr-home-live-matches .fr-container {
    width: 100%;
}

/*==========================================================
   LIVE BADGE
   ==========================================================*/

@keyframes fr-live-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.75);
    }
}

/*==========================================================
   MOBILE
   ==========================================================*/
@media (max-width: 900px) {
    .fr-home-live-matches {
        padding: 55px 0;
    }
}

/*==========================================================
   FEATURED MATCH + FEATURED VIDEO — VISUAL HARMONIZATION
   Scoped only to this two-column block.
   ==========================================================*/
.fr-home-featured-columns-grid > .fr-home-featured-match,
.fr-home-featured-columns-grid > .fr-home-featured-video {
    background: #ffffff;
    border: 1px solid #e5ebf0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(18, 60, 102, .06);
}

/*Remove the old outer card treatment from Featured Video.
   The video itself remains unchanged.*/
.fr-home-featured-columns-grid .fr-home-featured-video-card {
    border-radius: 10px;
    box-shadow: none;
}

/*Remove the border from the full-width sections*/
.fr-home-players {
    border: 0;
    border-radius: 0;
}

/*Put the border around the actual content container*/
.fr-home-players > .fr-container {
    background: #ffffff;
    border: 1px solid #e5ebf0;
    border-radius: 16px;
    padding: 24px;
    box-sizing: border-box;
}

/*Keep the existing player cards and grid unchanged*/
.fr-home-players .fr-player-grid {
    width: 100%;
}

/*==========================================================
   FEATURED CLUBS — CONTAINER HARMONIZATION
   Border wraps the content area only.
   Club cards and club data remain unchanged.
   ==========================================================*/
.fr-home-featured-clubs > .fr-container {
    background: #ffffff;
    border: 1px solid #e5ebf0;
    border-radius: 16px;
    padding: 24px;
    box-sizing: border-box;
}

/*Mobile*/
@media (max-width: 600px) {
    .fr-home-featured-clubs > .fr-container {
        padding: 18px;
        border-radius: 14px;
    }
}

/*Mobile*/
@media (max-width: 600px) {
    .fr-home-players > .fr-container {
        padding: 18px;
        border-radius: 14px;
    }
}

/*==========================================================
   FOOTBALL RWANDA — FRONT PAGE WHITE BACKGROUND
   Scoped to the homepage sections only.
   Hero image/background remains unchanged.
   ==========================================================*/
.fr-site-main,
.fr-home-dashboard-section,
.fr-home-featured-match,
.fr-home-players,
.fr-home-cta {
    background: #ffffff;
}

/*Mobile*/
@media (max-width: 767px) {
    .fr-hero-title {
        letter-spacing: -1.2px;
    }
}

/*Keep the desktop composition compact.*/
@media (min-width: 1101px) {
    .fr-hero-content {
        transform: translateY(4px);
    }
}

/*The search dropdown must sit above the image and buttons.*/
.fr-hero .fr-search-results {
    position: relative;
    z-index: 101 !important;
}

/*Ensure the following homepage sections stay underneath
   an open search result panel.*/
.fr-home-dashboard-section,
.fr-home-featured-columns,
.fr-home-players,
.fr-home-cta {
    position: relative;
    z-index: 1;
}

/*Desktop*/
@media (min-width: 768px) {
    .fr-hero-actions {
        gap: 9px;
    }
}

/*Mobile*/
@media (max-width: 767px) {
    .fr-hero {
        overflow: visible;
    }
    .fr-hero-actions {
        margin-top: 0;
    }
}

/*==========================================================
   HERO — FINAL CLEAN OVERRIDE
   Based on the exact current server home.css.
   ==========================================================*/
.fr-hero {
    position: relative;
    height: 500px;
    display: flex;
    overflow: visible;
    z-index: 20;
    background-image: linear-gradient(
            90deg,
            rgba(3,24,38,.78) 0%,
            rgba(3,24,38,.58) 34%,
            rgba(3,24,38,.16) 65%,
            rgba(3,24,38,0) 100%
        ),
        url("https://footballtalentsdata.com/wp-content/themes/football-rwanda-v4-nettoye/assets/images/hero.webp") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    color: #fff;
}
.fr-hero::before {
    content: none;
}
.fr-hero-content {
    position: relative;
    z-index: 3;
    margin: 0 auto;
    padding: 24px 0;
    box-sizing: border-box;
    text-align: left;
}
.fr-hero-badge {
    display: inline-flex;
    align-items: center;
    margin: 0 0 10px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: rgba(0,159,136,.24);
    color: #fff;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.fr-hero-title {
    margin: 0 0 10px;
    color: #fff;
    font-weight: 900;
    text-align: left;
    white-space: normal;
    text-shadow: 0 2px 10px rgba(0,0,0,.24);
}
.fr-hero-text {
    margin: 0 0 15px;
    color: rgba(255,255,255,.94);
    text-align: left;
}
.fr-hero .fr-search-results,
.fr-hero .search-results {
    position: relative !important;
    z-index: 101 !important;
}
.fr-hero-actions {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}
.fr-hero-button {
    border-radius: 7px;
    font-weight: 800;
}
.fr-hero-button-primary {
    border: 1px solid #fff;
    background: #fff;
    color: #007e6d;
}
.fr-hero-button-secondary {
    border: 1px solid rgba(255,255,255,.65);
    background: rgba(0,35,48,.30);
    color: #fff;
}
.fr-hero-stats {
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(0,159,136,.50);
    border-radius: 10px;
    background: rgba(0,45,42,.70);
    backdrop-filter: blur(5px);
}
.fr-hero-stat {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(0,159,136,.35);
    text-align: center;
}
.fr-hero-stat:last-child {
    border-right: 0;
}
.fr-hero-stat strong {
    display: block;
    color: #fff;
    line-height: 1;
}
.fr-hero-stat span {
    display: block;
    color: rgba(255,255,255,.82);
    line-height: 1.2;
    text-transform: uppercase;
}
@media (max-width: 1100px) and (min-width: 768px) {
    .fr-hero {
        min-height: 500px;
        height: 500px;
    }
    .fr-hero-title {
        max-width: 560px;
        font-size: 46px;
    }
}
@media (max-width: 767px) {
    .fr-hero {
        height: 620px;
        background-position: 63% center !important;
    }
    .fr-hero-content {
        width: min(100%,calc(100% - 30px));
        padding: 28px 0;
    }
    .fr-hero-stats {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .fr-hero-stat {
        border-right: 0;
        border-bottom: 1px solid rgba(0,159,136,.30);
    }
    .fr-hero-stat:nth-child(odd) {
        border-right: 1px solid rgba(0,159,136,.30);
    }
    .fr-hero-stat:nth-child(3),
    .fr-hero-stat:nth-child(4) {
        border-bottom: 0;
    }
}
@media (max-width: 480px) {
    .fr-hero {
        min-height: 680px;
        height: 680px;
        background-position: 67% center !important;
    }
}

/*==========================================================
   HERO — COMPACT FINAL TUNING
   Add at the end of assets/css/pages/home.css
   ==========================================================*/
.fr-hero {
    min-height: 500px;
    padding: 0;
    align-items: center;
}
.fr-hero-content {
    width: min(1200px, calc(100% - 40px));
    max-width: 1200px;
}
.fr-hero-badge {
    gap: 10px;
    margin-bottom: 14px;
    padding: 7px 16px 7px 8px;
    font-size: 14px;
    letter-spacing: 1px;
}
.fr-hero-flag {
    display: block;
    flex: 0 0 auto;
    width: 30px;
    height: 20px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.35);
}
@media (max-width: 480px) {
    .fr-hero-badge {
        gap: 8px;
        padding: 6px 12px 6px 7px;
        font-size: 11.5px;
        letter-spacing: .6px;
    }
    .fr-hero-flag {
        width: 26px;
        height: 17px;
    }
}
.fr-hero-title {
    max-width: 700px;
    margin-bottom: 12px;
    font-size: clamp(40px, 4.3vw, 56px);
    line-height: 1.03;
    letter-spacing: -1.5px;
}
.fr-hero-text {
    max-width: 600px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
}
.fr-hero-actions {
    gap: 9px;
}
.fr-hero-button {
    min-width: 140px;
    min-height: 38px;
    padding: 9px 16px;
    font-size: 14px;
}
.fr-hero-stats {
    width: min(700px, 100%);
    margin-top: 22px;
}
.fr-hero-stat {
    padding: 13px 10px;
}
.fr-hero-stat strong {
    font-size: 28px;
}
.fr-hero-stat span {
    margin-top: 4px;
    font-size: 10px;
}

/*Tablet*/
@media (max-width: 1100px) {
    .fr-hero {
        min-height: 500px;
    }
    .fr-hero-title {
        max-width: 650px;
        font-size: clamp(38px, 4.8vw, 52px);
    }
}

/*Mobile*/
@media (max-width: 767px) {
    .fr-hero {
        min-height: 620px;
    }
    .fr-hero-title {
        max-width: 100%;
        font-size: clamp(36px, 9vw, 46px);
    }
    .fr-hero-stats {
        width: 100%;
    }
}

/*Réduction de l'espace entre la recherche et les boutons*/
.fr-hero-actions {
    margin-top: 10px;
    padding-top: 0;
}

/* =========================================================
   FEATURED MATCH + FEATURED VIDEO — FINAL HEADER ALIGNMENT
   Both cards use the same 24px inner top spacing.
   !important is intentional because the Featured Match
   component contains its own later <style> block.
   ========================================================= */

.fr-home-featured-columns-grid > .fr-home-featured-match,
.fr-home-featured-columns-grid > .fr-home-featured-video {
    padding: 24px !important;
    box-sizing: border-box !important;
}

.fr-home-featured-columns-grid > .fr-home-featured-match .fr-home-featured-inner,
.fr-home-featured-columns-grid > .fr-home-featured-video .fr-home-featured-video-inner {
    width: 100%;
    margin: 0;
    padding: 0;
}

.fr-home-featured-columns-grid
.fr-home-featured-match .fr-home-featured-header,
.fr-home-featured-columns-grid
.fr-home-featured-video .fr-home-featured-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.fr-home-featured-columns-grid
.fr-home-featured-match .fr-home-featured-header > div,
.fr-home-featured-columns-grid
.fr-home-featured-video .fr-home-featured-header > div {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hero: four actions (Players / Clubs / Players Abroad / Academies) */
html body .fr-hero-actions .fr-hero-button {
    min-width: 0;
    flex: 0 1 auto;
    justify-content: center;
}
html body .fr-hero-actions .fr-hero-button-secondary { padding-left: 18px; padding-right: 18px; }
@media (max-width: 600px) {
    html body .fr-hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    html body .fr-hero-actions .fr-hero-button-primary { grid-column: 1 / -1; }
    html body .fr-hero-actions .fr-hero-button { width: 100%; padding: 10px 8px; font-size: 13px; }
}

/* ==========================================================
   HERO : darker background, everything centred (search, buttons, stats)
========================================================== */
html body .fr-hero {
    background-image:
        radial-gradient(ellipse at 50% 45%, rgba(3,20,32,.50) 0%, rgba(3,20,32,.78) 100%),
        linear-gradient(rgba(3,20,32,.42), rgba(3,20,32,.42)),
        url("https://footballtalentsdata.com/wp-content/themes/football-rwanda-v4-nettoye/assets/images/hero.webp") !important;
    background-size: cover !important;
    background-position: center center !important;
    justify-content: center;
}

html body .fr-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

html body .fr-hero-title,
html body .fr-hero-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

html body .fr-hero-title { max-width: 820px; }
html body .fr-hero-text  { max-width: 640px; }

html body .fr-hero .fr-search {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

html body .fr-hero .fr-search input {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

html body .fr-hero .fr-search-results,
html body .fr-hero .search-results { text-align: left; }

html body .fr-hero-actions {
    justify-content: center;
    margin-top: 14px;
}

html body .fr-hero-stats {
    margin-left: auto;
    margin-right: auto;
}

html body .fr-hero-stats--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); width: min(800px, 100%); }

html body .fr-hero-button-coaches {
    border-color: #ffd54a;
    color: #ffd54a;
}
html body .fr-hero-button-coaches:hover { background: #ffd54a; color: #06182f; }

@media (max-width: 767px) {
    html body .fr-hero-stats--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html body .fr-hero-stats--5 .fr-hero-stat:last-child { grid-column: 1 / -1; border-right: 0; }
    html body .fr-hero-stats--5 .fr-hero-stat { border-bottom: 1px solid rgba(0,159,136,.35); }
}

@media (max-width: 600px) {
    html body .fr-hero-actions { grid-template-columns: 1fr 1fr; }
    html body .fr-hero-actions .fr-hero-button-primary { grid-column: 1 / -1; }
}
html body .fr-hero-title { text-wrap: balance; }
@media (max-width: 600px) {
    html body .fr-hero-actions { width: 100%; }
    html body .fr-hero-actions .fr-hero-button { width: 100%; max-width: none; }
}

/* Hero title on a single line (tablet and desktop) */
@media (min-width: 700px) {
    html body .fr-hero-title {
        max-width: none;
        white-space: nowrap;
        font-size: clamp(32px, 4.3vw, 56px);
    }
}

/* Hero description on a single line (desktop); wraps normally on small screens */
@media (min-width: 1024px) {
    html body .fr-hero .fr-hero-text {
        max-width: none;
        width: max-content;
        white-space: nowrap;
        font-size: 15px;
    }
}

/*==========================================================
   HERO — NEVER CLIP THE CONTENT (phones + tablets)
   The hero had a fixed height; when the content was taller
   (narrow tablets, large system fonts, long stats) it was
   centred and cut at the top, hiding the
   "Rwanda Football Data Platform" badge.
   The height is now a minimum: the hero grows with its content.
   ==========================================================*/
html body .fr-hero {
    height: auto !important;
    min-height: 500px;
}
html body .fr-hero .fr-hero-content {
    padding-top: 32px;
    padding-bottom: 32px;
}
@media (max-width: 767px) {
    html body .fr-hero { min-height: 620px; }
}
@media (max-width: 480px) {
    html body .fr-hero { min-height: 680px; }
}


/* ---- live-matches.css ---- */
/* ==========================================================
   Football Rwanda - Home: Live now
   template-parts/home/live-matches.php

   Same structure as the other home blocks: a light teal-tinted box
   framed in the site green, a #f3f7f6 title bar, then one compact
   row per game (Sofascore / FotMob style), grouped by competition:
   minute in red with a pulsing dot, home team, score on navy, away
   team. Two rows per line on desktop, one on phones. Shown only
   while a game is live.
   ========================================================== */

.fr-home-live-matches {
    --hl-navy: #031826;
    --hl-ink: #071b35;
    --hl-muted: #5b6b7a;
    --hl-red: #e5484d;
    --hl-green: #007863;
    --hl-tint: #eaf3f0;
    --hl-band: #f3f7f6;
    --hl-line: #dbe6e3;
    /* band background: rhythm.css, padding: layout.css */
}


/* ---------- Box + title bar ---------- */

.fr-hlive-box {
    padding: 12px;
    border: 1px solid var(--hl-green);
    border-radius: 20px;
    background: var(--hl-tint);
}

.fr-hlive-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    min-height: 52px;
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--hl-band);
    box-sizing: border-box;
}

html body .fr-site-main .fr-home-live-matches h2.fr-hlive-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--hl-ink);
    font-family: var(--fr-display, 'Saira', 'Inter', sans-serif);
    font-size: 24px;
    font-stretch: 87.5%;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.fr-hlive-pulse {
    position: relative;
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hl-red);
}

.fr-hlive-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--hl-red);
    animation: fr-hlive-pulse 1.6s ease-out infinite;
}

@keyframes fr-hlive-pulse {
    from { transform: scale(1); opacity: .55; }
    to   { transform: scale(2.6); opacity: 0; }
}

.fr-hlive-count {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--hl-red);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.fr-site-main a.fr-hlive-standings {
    color: var(--hl-green);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
}

.fr-site-main a.fr-hlive-standings:hover {
    text-decoration: underline;
}


/* ---------- Competition group ---------- */

.fr-hlive-group + .fr-hlive-group {
    margin-top: 14px;
}

.fr-hlive-group-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 4px 8px;
    color: var(--hl-ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
}

.fr-hlive-group-head img {
    flex: none;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.fr-site-main .fr-hlive-group-head a {
    color: inherit;
    text-decoration: none;
}

.fr-site-main .fr-hlive-group-head a:hover {
    color: var(--hl-green);
}

.fr-hlive-group-head small {
    color: var(--hl-muted);
    font-size: 12px;
    font-weight: 600;
}

.fr-hlive-group-head small::before {
    content: "·";
    margin-right: 8px;
}


/* ---------- Rows ---------- */

.fr-hlive-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.fr-site-main a.fr-hlive-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 16px 10px 12px;
    border: 1px solid var(--hl-line);
    border-left: 3px solid var(--hl-red);
    border-radius: 12px;
    background: #fff;
    color: var(--hl-ink);
    text-decoration: none;
    transition: border-color .15s ease-out, box-shadow .15s ease-out;
}

.fr-site-main a.fr-hlive-row:hover {
    border-color: var(--hl-green);
    border-left-color: var(--hl-red);
    box-shadow: 0 6px 18px rgba(3, 24, 38, .08);
}

.fr-site-main a.fr-hlive-row:focus-visible {
    outline: 2px solid var(--hl-green);
    outline-offset: 2px;
}

/* Minute */
.fr-hlive-min {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fr-hlive-min-now {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hl-red);
    font-family: var(--fr-display, 'Saira', 'Inter', sans-serif);
    font-size: 17px;
    font-stretch: 87.5%;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.fr-hlive-dot {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hl-red);
    animation: fr-hlive-blink 1.4s ease-in-out infinite;
}

@keyframes fr-hlive-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .25; }
}

/* Clock not computed yet (or no kick-off time): "LIVE" */
.fr-hlive-min-now .fr-live-clock:empty::after {
    content: "LIVE";
    font-size: 13px;
    letter-spacing: .06em;
}

.fr-hlive-min small {
    color: var(--hl-muted);
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Teams */
.fr-hlive-side {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.fr-hlive-side--home {
    justify-content: flex-end;
    text-align: right;
}

.fr-hlive-side img {
    flex: none;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.fr-hlive-side strong {
    min-width: 0;
    overflow: hidden;
    color: var(--hl-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fr-hlive-side.is-leading strong {
    font-weight: 800;
}

/* Score */
.fr-hlive-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 70px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--hl-navy);
    color: #fff;
    font-family: var(--fr-display, 'Saira', 'Inter', sans-serif);
    font-stretch: 87.5%;
    line-height: 1;
}

.fr-hlive-score b {
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.fr-hlive-score i {
    color: #7f97a8;
    font-size: 16px;
    font-style: normal;
}

/* Scorers: second line, under each team */
.fr-hlive-goals {
    grid-row: 2;
    min-width: 0;
    margin-top: -6px;
    color: var(--hl-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}

.fr-hlive-goals--home {
    grid-column: 2;
    text-align: right;
}

.fr-hlive-goals--away {
    grid-column: 4;
}


/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
    .fr-hlive-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
    .fr-hlive-box { padding: 8px; border-radius: 16px; }

    .fr-site-main a.fr-hlive-row {
        grid-template-columns: 46px minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 8px;
        padding: 10px 10px 10px 8px;
    }

    .fr-hlive-side { gap: 6px; }
    .fr-hlive-side img { width: 22px; height: 22px; }
    .fr-hlive-side strong { font-size: 13px; }
    .fr-hlive-score { min-width: 58px; padding: 5px 8px; }
    .fr-hlive-score b { font-size: 19px; }
    .fr-hlive-goals { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .fr-hlive-pulse::after,
    .fr-hlive-dot { animation: none; }
    .fr-site-main a.fr-hlive-row { transition: none; }
}


/* ---- matchday-timeline.css ---- */
/* ==========================================================
   Football Rwanda - Home: Matchday Timeline
   template-parts/home/matchday-timeline.php

   Colour jobs (site + flag palette, nothing new):
   - navy      #031826  structure: day headers, league table
   - teal      #009879  results, Top Scorers, "Next up"
   - blue      #0B6FA4  Top Assists (flag blue, darkened for text)
   - flag yellow #FAD201 reserved for "now": the live game or
                 the next kick-off. Nothing else uses it.
   - state pills: green FT, blue scheduled, amber pending,
                  red live / postponed.
   ========================================================== */

.fr-mdt {
    --mdt-navy: #031826;
    --mdt-navy-2: #0B2A3C;
    --mdt-teal: #009879;
    --mdt-teal-ink: #007863;
    --mdt-blue: #0B6FA4;
    --mdt-now: #FAD201;
    --mdt-line: #dbe6e3;
    --mdt-muted: #5b6b7b;

    padding: 56px 0 64px;
    background: #EAF3F1;
}

.fr-mdt .fr-container {
    padding-top: 0;
    padding-bottom: 0;
}

.fr-mdt a {
    color: inherit;
}


/* ---------- Bar: title, stepper, "now" ---------- */

.fr-mdt-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    margin-bottom: 28px;
}

html body.home .fr-mdt-title {
    margin: 0;
    color: var(--mdt-navy);
    font-family: var(--fr-display, 'Saira', 'Inter', sans-serif);
    font-size: clamp(28px, 3.1vw, 40px);
    font-stretch: 87.5%;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.005em;
    text-transform: uppercase;
}

/* BK Pro League logo before the title (round crop: the file has a white square) */
.fr-mdt-league-logo {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    margin-right: .25em;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: -.2em;
    box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(3, 24, 38, .18);
}

.fr-mdt-title-md {
    color: var(--mdt-teal-ink);
    white-space: nowrap;
}

.fr-mdt-stepper {
    display: flex;
    gap: 6px;
}

.fr-mdt-stepper a,
.fr-mdt-stepper span {
    min-width: 46px;
    padding: 9px 13px;
    border: 1px solid #c6d6d2;
    border-radius: 9px;
    background: #fff;
    color: var(--mdt-navy);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.fr-mdt-stepper a:hover {
    border-color: var(--mdt-teal);
    color: var(--mdt-teal-ink);
}

.fr-mdt-stepper .is-current {
    border-color: var(--mdt-navy);
    background: var(--mdt-navy);
    color: #fff;
}

.fr-mdt-now {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--mdt-now);
    color: var(--mdt-navy) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(250, 210, 1, .30);
}

.fr-mdt-now:hover {
    box-shadow: 0 8px 22px rgba(250, 210, 1, .45);
}

.fr-mdt-now-label {
    flex: 0 0 auto;
    white-space: nowrap;
    font-weight: 800;
    font-size: 11.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.fr-mdt-now.is-live .fr-mdt-now-label::before,
.fr-mdt-fixture--live .fr-mdt-stamp::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: #c81e1e;
    vertical-align: 1px;
}


/* ---------- Layout ---------- */

/* Days | rail, with the leaders under the days (the rail is the taller column). */
.fr-mdt-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "days rail"
        "leaders rail";
    gap: 28px;
    align-items: start;
}

.fr-mdt-days {
    grid-area: days;
    min-width: 0;
}

/* The matchday: always 3 columns x 2 rows (6 latest games), same on every matchday. */
.fr-mdt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 14px;
}

.fr-mdt-grid .fr-mdt-fixture {
    margin-bottom: 0;
    /* Cards share the row height: keep the content at the top so the
       team lines and the date line up across cards (a postponed game
       has no score box and no "Match details" link). */
    align-content: start;
}

.fr-mdt-rail {
    grid-area: rail;
    display: grid;
    gap: 22px;
}

.fr-mdt-leaders {
    grid-area: leaders;
    display: grid;
    gap: 22px;
}


/* ---------- Day headers ---------- */

html body.home .fr-mdt-day-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 14px;
    padding: 11px 14px;
    border: 0;
    border-radius: 10px;
    background: var(--mdt-navy);
    color: #fff;
    font-family: var(--fr-display, 'Saira', 'Inter', sans-serif);
    font-size: 20px;
    font-stretch: 87.5%;
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
}

.fr-mdt-day-title small {
    color: #9fd9cc;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    white-space: nowrap;
}

html body.home .fr-mdt-day--next .fr-mdt-day-title {
    background: var(--mdt-teal-ink);
}

.fr-mdt-day--next .fr-mdt-day-title small {
    color: #d3f2ea;
}


/* ---------- Fixture card ---------- */

.fr-mdt-fixture {
    position: relative;
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid var(--mdt-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(3, 24, 38, .05), 0 6px 16px rgba(3, 24, 38, .04);
    text-decoration: none;
    transition: border-color .15s ease-out, box-shadow .15s ease-out, transform .15s ease-out;
}

.fr-mdt-fixture:hover {
    border-color: var(--mdt-teal);
    box-shadow: 0 2px 4px rgba(3, 24, 38, .06), 0 10px 24px rgba(3, 24, 38, .08);
    transform: translateY(-1px);
}

.fr-mdt-fixture--scheduled {
    padding-right: 84px;
}

.fr-mdt-team {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 28px; /* height of the score box, with or without a score */
    color: var(--mdt-navy);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.fr-mdt-team-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fr-mdt-team.is-winner {
    font-weight: 800;
}

/* Live game: scorers under the team name */
.fr-mdt-team-goals {
    grid-column: 2 / -1;
    margin-top: -6px;
    color: #4b5a6a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}

.fr-mdt-team.is-loser {
    color: #4b5a6a;
}

.fr-mdt-crest {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.fr-mdt-crest--empty {
    display: block;
    border-radius: 50%;
    background: #e3e9f0;
}

.fr-mdt-score,
.fr-mdt-kickoff {
    color: var(--mdt-navy);
    font-family: var(--fr-display, 'Saira', 'Inter', sans-serif);
    font-stretch: 87.5%;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.fr-mdt-score {
    min-width: 30px;
    padding: 3px 0;
    border-radius: 6px;
    background: #eef3f6;
    font-size: 22px;
    text-align: center;
}

.fr-mdt-team.is-winner .fr-mdt-score {
    background: var(--mdt-teal);
    color: #fff;
}

.fr-mdt-team.is-loser .fr-mdt-score {
    color: #5b6b7b;
}

.fr-mdt-kickoff {
    position: absolute;
    top: 14px;
    right: 16px;
    padding: 6px 9px;
    border-radius: 8px;
    background: #eef3f6;
    font-size: 22px;
}

.fr-mdt-fixture.is-now .fr-mdt-kickoff {
    background: var(--mdt-now);
}

.fr-mdt-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-top: 2px;
}

.fr-mdt-when {
    color: var(--mdt-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
}

.fr-mdt-stamp {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: #E3F4EF;
    color: #00614c;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.4;
    text-transform: uppercase;
}

.fr-mdt-fixture--scheduled .fr-mdt-stamp {
    background: #E4EFF8;
    color: #0B4F7A;
}

.fr-mdt-fixture.is-pending .fr-mdt-stamp {
    background: #FEF3C7;
    color: #8A3B0B;
}

.fr-mdt-fixture--live .fr-mdt-stamp,
.fr-mdt-fixture--postponed .fr-mdt-stamp,
.fr-mdt-fixture--cancelled .fr-mdt-stamp {
    background: #FDE8E8;
    color: #A61B1B;
}

.fr-mdt-details {
    color: var(--mdt-teal-ink);
    font-size: 12px;
    font-weight: 700;
}

.fr-mdt-fixture:hover .fr-mdt-details {
    text-decoration: underline;
}

/* "Now": the live game or the next kick-off */
.fr-mdt-fixture.is-now {
    border: 2px solid var(--mdt-now);
    padding: 13px 15px;
    box-shadow: 0 8px 22px rgba(250, 210, 1, .30);
}

.fr-mdt-fixture--scheduled.is-now {
    padding-right: 83px;
}

.fr-mdt-fixture.is-now .fr-mdt-stamp {
    background: var(--mdt-now);
    color: var(--mdt-navy);
}

.fr-mdt-more {
    display: inline-block;
    margin-top: 2px;
    color: var(--mdt-teal-ink) !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
}

.fr-mdt-more:hover {
    text-decoration: underline;
}


/* ---------- Panels (league table, leaders) ---------- */

.fr-mdt-panel {
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(3, 24, 38, .05), 0 8px 22px rgba(3, 24, 38, .06);
}

.fr-mdt-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: var(--mdt-navy);
}

html body.home .fr-mdt-panel-head h3 {
    margin: 0;
    color: #fff;
    font-family: var(--fr-display, 'Saira', 'Inter', sans-serif);
    font-size: 22px;
    font-stretch: 87.5%;
    font-weight: 600;
    line-height: 1.1;
}

.fr-mdt-panel-head a {
    color: #F4B400 !important;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.fr-mdt-panel-head a:hover {
    text-decoration: underline;
}

.fr-mdt-leaders-panel--goals .fr-mdt-panel-head {
    background: var(--mdt-teal-ink);
}

.fr-mdt-leaders-panel--assists .fr-mdt-panel-head {
    background: var(--mdt-blue);
}

.fr-mdt-leaders-panel .fr-mdt-panel-head a {
    color: #fff !important;
}


/* ---------- League table ---------- */

.fr-mdt-table {
    width: calc(100% - 40px);
    margin: 8px 20px 14px;
    border-collapse: collapse;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.fr-mdt-table th {
    padding: 8px 4px;
    border-bottom: 1px solid #e3e9f0;
    background: none;
    color: var(--mdt-muted);
    font-size: 11px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
}

.fr-mdt-table td {
    padding: 10px 4px;
    border-bottom: 1px solid #eef2f6;
    color: #334155;
}

.fr-mdt-table tr:last-child td {
    border-bottom: 0;
}

.fr-mdt-table th:last-child,
.fr-mdt-table td:last-child {
    text-align: right;
}

.fr-mdt-table tbody tr:first-child td {
    background: #E8F5F1;
}

.fr-mdt-table tbody tr:first-child td:first-child {
    border-radius: 8px 0 0 8px;
}

.fr-mdt-table tbody tr:first-child td:last-child {
    border-radius: 0 8px 8px 0;
}

/* A span inside the cell: a flex <td> breaks the table's row borders. */
.fr-mdt-table-club {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--mdt-navy) !important;
    font-weight: 600;
}

.fr-mdt-table-club a {
    text-decoration: none;
}

.fr-mdt-table-club a:hover {
    color: var(--mdt-teal-ink);
}

.fr-mdt-pts {
    color: var(--mdt-navy) !important;
    font-family: var(--fr-display, 'Saira', 'Inter', sans-serif);
    font-size: 18px;
    font-stretch: 87.5%;
    font-weight: 600;
}

.fr-mdt-table tbody tr:first-child .fr-mdt-pts {
    color: var(--mdt-teal-ink) !important;
}


/* ---------- Leaders (Top Scorers / Top Assists) ---------- */

.fr-mdt-scorers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0 28px;
    margin: 0;
    padding: 10px 20px 14px;
    list-style: none;
}

.fr-mdt-scorers li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 10px 0;
}

.fr-mdt-scorers a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
}

.fr-mdt-scorer-photo {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #e8eef4;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #bfe5dc;
}

.fr-mdt-leaders-panel--assists .fr-mdt-scorer-photo {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #bcdcef;
}

.fr-mdt-scorer-text {
    min-width: 0;
}

.fr-mdt-scorer-name {
    display: block;
    color: var(--mdt-navy);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
}

.fr-mdt-scorers a:hover .fr-mdt-scorer-name {
    color: var(--mdt-teal-ink);
}

.fr-mdt-scorers small {
    display: block;
    margin-top: 2px;
    color: var(--mdt-muted);
    font-size: 12.5px;
}

/* Club line: crest + name */
.fr-mdt-scorers .fr-mdt-scorer-club {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.fr-mdt-scorer-club img {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.fr-mdt-goals {
    flex: 0 0 auto;
    min-width: 40px;
    padding: 6px 8px;
    border-radius: 10px;
    background: #E3F4EF;
    color: var(--mdt-teal-ink);
    font-family: var(--fr-display, 'Saira', 'Inter', sans-serif);
    font-size: 22px;
    font-stretch: 87.5%;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
}

.fr-mdt-leaders-panel--assists .fr-mdt-goals {
    background: #E4EFF8;
    color: var(--mdt-blue);
}


/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .fr-mdt-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        grid-template-areas:
            "days"
            "rail"
            "leaders";
    }

    .fr-mdt-rail {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 820px) {
    .fr-mdt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .fr-mdt {
        padding: 36px 0 44px;
    }

    .fr-mdt-now {
        width: 100%;
        margin-left: 0;
    }

    .fr-mdt-title-sep {
        display: none;
    }

    /* Phones: Top 3 only (the 6 leaders are for the two-column layout). */
    .fr-mdt-scorers li:nth-child(n+4) {
        display: none;
    }

    .fr-mdt-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fr-mdt-fixture {
        transition: none;
    }

    .fr-mdt-fixture:hover {
        transform: none;
    }
}


/* ==========================================================
   LIVE in red (same badge as the Standings page: .fr-ls-live-badge).
   Yellow stays for the next kick-off when nothing is live.
   ========================================================== */

/* "Now" pill next to the matchday title, when a match is live */
html body .fr-mdt-now.is-live {
    border: 1px solid #f5c2c4;
    background: #fff1f1;
}

html body .fr-mdt-now.is-live:hover {
    box-shadow: 0 8px 22px rgba(229, 72, 77, .25);
}

html body .fr-mdt-now.is-live .fr-mdt-now-label,
html body .fr-mdt-fixture--live .fr-mdt-stamp,
html body .fr-mdt-fixture--live.is-now .fr-mdt-stamp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e5484d;
    color: #fff;
    font-weight: 800;
    letter-spacing: .08em;
}

html body .fr-mdt-now.is-live .fr-mdt-now-label::before,
html body .fr-mdt-fixture--live .fr-mdt-stamp::before {
    width: 8px;
    height: 8px;
    margin-right: 0;
    background: #fff;
    animation: fr-live-pulse 1.4s ease-in-out infinite;
}

/* The live match card: red frame instead of yellow */
html body .fr-mdt-fixture--live.is-now {
    border-color: #e5484d;
    box-shadow: 0 8px 22px rgba(229, 72, 77, .22);
}

@keyframes fr-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.7); }
}

@media (prefers-reduced-motion: reduce) {
    html body .fr-mdt-now.is-live .fr-mdt-now-label::before,
    html body .fr-mdt-fixture--live .fr-mdt-stamp::before { animation: none; }
}


/* ==========================================================
   Clean Sheets panel (goalkeepers): navy, next to teal / blue
   ========================================================== */

.fr-mdt-leaders-panel--clean-sheets .fr-mdt-panel-head {
    background: var(--mdt-navy-2);
}

.fr-mdt-leaders-panel--clean-sheets .fr-mdt-scorer-photo {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #c9d3dc;
}

.fr-mdt-leaders-panel--clean-sheets .fr-mdt-goals {
    background: #E6EBF0;
    color: var(--mdt-navy-2);
}

/* League table rows revealed by the script in matchday-timeline.php */
html body .fr-mdt-table tr[hidden] {
    display: none;
}


/* ==========================================================
   Top Ranked Player (rail, under the League Table)
   ========================================================== */

.fr-mdt-topplayer .fr-mdt-panel-head {
    background: var(--mdt-navy-2);
}

.fr-mdt-topplayer .fr-mdt-panel-head a {
    color: #fff !important;
}

.fr-mdt-topplayer-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px 12px;
    color: inherit;
    text-decoration: none;
}

.fr-mdt-topplayer-rank {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, #f5c542, #d99a00);
    color: #fff;
    font-family: var(--fr-display, 'Saira', 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(217, 154, 0, .3);
}

.fr-mdt-topplayer-photo {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8eef4;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f5d77a;
}

.fr-mdt-topplayer-text {
    min-width: 0;
}

.fr-mdt-topplayer-text strong {
    display: block;
    color: var(--mdt-navy);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.fr-mdt-topplayer-card:hover .fr-mdt-topplayer-text strong {
    color: var(--mdt-teal-ink);
}

.fr-mdt-topplayer-text small {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: var(--mdt-muted);
    font-size: 12.5px;
}

.fr-mdt-topplayer-text small img {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.fr-mdt-topplayer-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0 20px 18px;
}

.fr-mdt-topplayer-stats div {
    padding: 8px 6px;
    border-radius: 10px;
    background: #f3f7f6;
    text-align: center;
}

.fr-mdt-topplayer-stats dt {
    color: var(--mdt-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fr-mdt-topplayer-stats dd {
    margin: 2px 0 0;
    color: var(--mdt-navy);
    font-family: var(--fr-display, 'Saira', 'Inter', sans-serif);
    font-size: 20px;
    font-stretch: 87.5%;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

/* Top Ranked Player: ranking score (percentage) */
.fr-mdt-topplayer-stats {
    padding-bottom: 12px;
}

.fr-mdt-topplayer-score {
    padding: 0 20px 18px;
}

.fr-mdt-topplayer-score-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.fr-mdt-topplayer-score-head span {
    color: var(--mdt-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fr-mdt-topplayer-score-head strong {
    color: var(--mdt-teal-ink);
    font-family: var(--fr-display, 'Saira', 'Inter', sans-serif);
    font-size: 22px;
    font-stretch: 87.5%;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.fr-mdt-topplayer-bar {
    height: 8px;
    border-radius: 999px;
    background: #e3ece9;
    overflow: hidden;
}

.fr-mdt-topplayer-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--mdt-teal), var(--mdt-teal-ink));
}

.fr-mdt-topplayer-score small {
    display: block;
    margin-top: 6px;
    color: var(--mdt-muted);
    font-size: 11.5px;
}

/* Rail fitted to the left column (script in matchday-timeline.php):
   the last block takes the remaining height, its score sits at the bottom. */
.fr-mdt-rail.is-fitted {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.fr-mdt-rail.is-fitted > :last-child {
    flex: 1 1 auto;
}

.fr-mdt-topplayer {
    display: flex;
    flex-direction: column;
    border: 1px solid #007863;
}

/* Rail set apart from the middle column: a light teal-tinted
   column behind Next up / League Table / Top Ranked (desktop, when
   it sits beside the results), and the League Table framed in the
   site green like Top Ranked. */
html body .fr-mdt-rail > .fr-mdt-panel {
    border: 1px solid #007863;
}

/* Same green frame on the other blocks of the section: Top Scorers,
   Top Assists, Clean Sheets, and the "Results & fixtures" / "Next up"
   title bars. */
html body .fr-mdt-leaders-panel {
    border: 1px solid #007863;
}

html body .fr-mdt .fr-mdt-day-title {
    border-color: #007863;
}

/* Second Division (next 2 fixtures) under the main league's results,
   same title bar, two cards per row (one on phones). */
html body .fr-mdt-d2 {
    margin-top: 18px;
}

html body .fr-mdt-d2-logo {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

html body .fr-mdt-grid.fr-mdt-grid--d2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 600px) {
    html body .fr-mdt-grid.fr-mdt-grid--d2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* "Results & fixtures" in the same tinted box as the rail: both
   titles start on the same line. The "Next kick-off" pill joins the
   title row when it fits (right edge), else it goes below on the right. */
html body .fr-mdt-bar {
    column-gap: 14px;
}

html body .fr-mdt-now {
    margin-left: auto;
}

/* Desktop: title, stepper and "Next kick-off" on one line, centred on
   the same axis. The title is a touch smaller; a long fixture name in
   the pill is cut with "…" rather than pushing the pill to a new line. */
@media (min-width: 1101px) {
    html body .fr-mdt-bar {
        flex-wrap: nowrap;
    }

    html body.home .fr-mdt-title {
        flex: 0 1 auto;
        min-width: 0;
        font-size: clamp(28px, 2.5vw, 36px);
        white-space: nowrap;
    }

    html body .fr-mdt-stepper {
        flex: none;
    }

    html body .fr-mdt-now {
        flex: 0 1 auto;
        min-width: 0;
    }

    html body .fr-mdt-now-text {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (min-width: 1101px) {
    html body .fr-mdt-rail,
    html body .fr-mdt-days {
        padding: 12px;
        border-radius: 20px;
        background: #eaf3f0;
        box-shadow: inset 0 0 0 1px #d4e4df;
    }
}

.fr-mdt-topplayer .fr-mdt-topplayer-score {
    margin-top: auto;
}

/* Top Ranked: Player | Club switch, one pane at a time */
.fr-mdt-toptabs {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 3px;
    border-radius: 999px;
    background: #e3ece9;
}

.fr-mdt-toptabs button {
    padding: 5px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--mdt-muted);
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.fr-mdt-toptabs button[aria-selected="true"] {
    background: #007863;
    color: #fff;
}

.fr-mdt-toptabs button:focus-visible {
    outline: 2px solid #007863;
    outline-offset: 2px;
}

.fr-mdt-toppane {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.fr-mdt-toppane[hidden] {
    display: none;
}

.fr-mdt-topclub-logo {
    padding: 8px;
    background: #fff;
    object-fit: contain;
    object-position: center;
}

.fr-mdt-topplayer-score small a {
    float: right;
    color: #007863;
    font-weight: 700;
    text-decoration: none;
}

.fr-mdt-topplayer-score small a:hover {
    text-decoration: underline;
}

/* ==========================================================
   Block titles like "Featured Match" / "Featured Video":
   no coloured bar, teal outline icon + navy Saira title,
   a thin line between the title and the content.
   ========================================================== */

html body.home .fr-mdt .fr-mdt-panel-head,
html body.home .fr-mdt .fr-mdt-leaders-panel .fr-mdt-panel-head,
html body.home .fr-mdt .fr-mdt-topplayer .fr-mdt-panel-head {
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--mdt-line);
    background: #fff;
}

html body.home .fr-mdt .fr-mdt-panel-head h3,
html body.home .fr-mdt .fr-mdt-day-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #071b35;
    font-family: var(--fr-display, 'Saira', 'Inter', sans-serif);
    font-size: 24px;
    font-stretch: 87.5%;
    font-weight: 550;
    letter-spacing: -0.005em;
    line-height: 1.1;
}

.fr-mdt-title-icon {
    flex: 0 0 auto;
    display: inline-flex;
    color: #009f88;
}

.fr-mdt-title-icon svg {
    display: block;
}

/* Link on the right: same pill as "All highlights" */
html body.home .fr-mdt .fr-mdt-panel-head a,
html body.home .fr-mdt .fr-mdt-leaders-panel .fr-mdt-panel-head a,
html body.home .fr-mdt .fr-mdt-topplayer .fr-mdt-panel-head a {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e6f4f2;
    color: #007863 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, color .15s;
}

html body.home .fr-mdt .fr-mdt-panel-head a:hover {
    background: #007863;
    color: #fff !important;
    text-decoration: none;
}

/* "Results & fixtures" / "Next up": same title, line under it */
html body.home .fr-mdt .fr-mdt-day-title,
html body.home .fr-mdt .fr-mdt-day--next .fr-mdt-day-title {
    justify-content: flex-start;
    margin: 0 0 16px;
    padding: 4px 2px 12px;
    border-bottom: 1px solid #cfdcd9;
    border-radius: 0;
    background: transparent;
    text-transform: none;
}

html body.home .fr-mdt .fr-mdt-day-title small,
html body.home .fr-mdt .fr-mdt-day--next .fr-mdt-day-title small {
    margin-left: auto;
    color: var(--mdt-muted);
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
}

@media (max-width: 600px) {
    html body.home .fr-mdt .fr-mdt-panel-head h3,
    html body.home .fr-mdt .fr-mdt-day-title {
        font-size: 21px;
    }

    html body.home .fr-mdt .fr-mdt-panel-head a {
        padding: 5px 10px;
        font-size: 12px;
    }
}
/* Narrow rail: titles stay on one line */
html body.home .fr-mdt .fr-mdt-rail .fr-mdt-panel-head h3 {
    white-space: nowrap;
}

/* Title background #f3f7f6 (panels and "Results & fixtures" / "Next up") */
html body.home .fr-mdt .fr-mdt-panel-head,
html body.home .fr-mdt .fr-mdt-leaders-panel .fr-mdt-panel-head,
html body.home .fr-mdt .fr-mdt-topplayer .fr-mdt-panel-head {
    background: #f3f7f6;
}

html body.home .fr-mdt .fr-mdt-day-title,
html body.home .fr-mdt .fr-mdt-day--next .fr-mdt-day-title {
    padding: 12px 14px;
    border: 1px solid var(--mdt-line);
    border-radius: 12px;
    background: #f3f7f6;
}

/* Link pill: white on the light title background */
html body.home .fr-mdt .fr-mdt-panel-head a,
html body.home .fr-mdt .fr-mdt-leaders-panel .fr-mdt-panel-head a,
html body.home .fr-mdt .fr-mdt-topplayer .fr-mdt-panel-head a {
    background: #fff;
    box-shadow: 0 0 0 1px #d6e6e2;
}
/* ==========================================================
   Team of the Matchday teaser (between the league and the
   Second Division)
========================================================== */

.fr-mdt-totm {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    margin: 18px 0 6px;
    padding: 14px 18px;
    border-radius: 16px;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(0, 190, 160, .22) 0%, rgba(0, 190, 160, 0) 60%),
        linear-gradient(160deg, #06182f 0%, #0a2c47 55%, #08524f 100%);
    color: #fff;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.fr-mdt-totm:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(6, 24, 47, .18);
}

.fr-mdt-totm-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.fr-mdt-totm-text small {
    color: #5eead4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.fr-mdt-totm-text strong {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    font-size: 17px;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fr-mdt .fr-mdt-totm .fr-mdt-totm-text strong { color: #fff; }
.fr-mdt-totm-text strong i { color: #facc15; font-style: normal; }

.fr-mdt-totm-text strong b {
    padding: 1px 8px;
    border-radius: 999px;
    background: #facc15;
    color: #06182f;
    font-size: 13px;
}

.fr-mdt-totm-text em { color: rgba(255, 255, 255, .7); font-size: 12px; font-style: normal; }

.fr-mdt-totm-faces { display: flex; }

.fr-mdt-totm-faces span {
    width: 34px;
    height: 34px;
    margin-left: -10px;
    border: 2px solid #0a2c47;
    border-radius: 50%;
    background-color: #e8eef3;
    background-position: center top;
    background-size: cover;
}

.fr-mdt-totm-faces span:first-child { margin-left: 0; }

.fr-mdt-totm-cta {
    padding: 9px 14px;
    border-radius: 10px;
    background: #fff;
    color: #06182f;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .fr-mdt-totm-faces span:nth-child(n+8) { display: none; }
}

@media (max-width: 600px) {
    .fr-mdt-totm { grid-template-columns: minmax(0, 1fr) auto; }
    .fr-mdt-totm-faces { display: none; }
    .fr-mdt-totm-cta { padding: 8px 10px; }
}

/* ---- league-overview.css ---- */
/* Football Rwanda - Home / league-overview
   Extrait de template-parts/home/league-overview.php */

/* ==========================================================
   LEAGUE OVERVIEW — COMPACT DASHBOARD STYLE
   ========================================================== */

.fr-league-overview {
    width: 100%;
    padding: 28px 0 34px;
    background: #ffffff;
}

.fr-league-overview > .fr-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.fr-league-overview-panel {
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 20% 0%, rgba(0,190,160,.22), rgba(0,190,160,0) 60%),
        linear-gradient(160deg,#06182f 0%,#0a2c47 55%,#08524f 100%);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(6, 24, 47, .16);
}

.fr-league-overview-heading {
    padding: 26px 42px 22px;
}

.fr-league-overview-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.025em;
}

.fr-league-overview-heading p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    line-height: 1.35;
}

.fr-league-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.fr-league-overview-card {
    min-width: 0;
    min-height: 76px;
    padding: 12px 20px 11px;
    border-right: 1px solid rgba(255, 255, 255, .18);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.fr-league-overview-card:nth-child(4n) {
    border-right: 0;
}

.fr-league-overview-card:nth-last-child(-n + 4) {
    border-bottom: 0;
}

.fr-league-overview-card-label {
    margin: 0 0 4px;
    color: rgba(255, 255, 255, .82);
    font-size: 9px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.fr-league-overview-card-value {
    color: #ffffff;
    font-size: 27px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.025em;
}

/* Compact 4-column statistics rows */
.fr-league-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

/* ==========================================================
   LEAGUE OVERVIEW — 12 STATISTICS ON ONE ROW
   ========================================================== */

.fr-league-overview-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0;
    width: 100%;
}

@media (max-width: 900px) {
    .fr-league-overview-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .fr-league-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* FINAL NUMERIC ALIGNMENT — targets the actual League Overview markup */
.fr-league-overview-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 0 !important;
}

.fr-league-overview-card {
    min-width: 0;
    min-height: 76px;
    padding: 12px 12px 11px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    border-right: 1px solid rgba(255,255,255,.16);
    border-bottom: 0;
}

.fr-league-overview-card:nth-child(4n),
.fr-league-overview-card:nth-child(12n) {
    border-right: 1px solid rgba(255,255,255,.16);
}

.fr-league-overview-card:last-child {
    border-right: 0;
}

.fr-league-overview-card-label {
    width: 100%;
    margin: 0 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255,255,255,.82);
    font-size: 9px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.fr-league-overview-card-value {
    display: block;
    min-width: 3ch;
    margin: 0;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    text-align: left;
}

@media (max-width: 900px) {
    .fr-league-overview-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .fr-league-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .fr-league-overview-card {
        padding: 10px 7px;
        min-height: 68px;
    }

    .fr-league-overview-card-value {
        font-size: 21px;
    }

    .fr-league-overview-card-label {
        font-size: 9px;
    }
}

/* Final label fit for the 12-column desktop layout */
.fr-league-overview-card-label {
    font-size: 9px !important;
    letter-spacing: .025em !important;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}


/* ---- featured-match.css ---- */
/* Football Rwanda - Home / featured-match
   Extrait de template-parts/home/featured-match.php */

/* =========================================================
   SECTION
   ========================================================= */

.fr-home-featured-match {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 70px 0;
}

/* =========================================================
   HEADER
   ========================================================= */

.fr-home-featured-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;

}

.fr-home-featured-heading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.fr-home-featured-heading-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 1px;

    color: #009f88;
}

.fr-home-featured-heading-icon svg {
    display: block;
    width: 22px;
    height: 22px;

    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fr-home-featured-heading h2 {
    margin: 0;
    color: #123c66;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
}

/* =========================================================
   CARD
   ========================================================= */

.fr-home-featured-card {
    display: block;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #123c66 0%,
            #0d5277 55%,
            #009f88 100%
        );

    border-radius: 24px;

    color: #ffffff;
    text-decoration: none;

    box-shadow:
        0 18px 45px rgba(18, 60, 102, .16);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.fr-home-featured-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 25px 55px rgba(18, 60, 102, .23);
}

/* =========================================================
   DATE
   ========================================================= */

.fr-home-featured-date {
    padding: 14px 20px;

    background: rgba(255,255,255,.08);

    border-bottom:
        1px solid rgba(255,255,255,.12);

    text-align: center;

    color: rgba(255,255,255,.78);

    font-size: 12px;
    font-weight: 700;
}

/* =========================================================
   MATCH BODY
   ========================================================= */

.fr-home-featured-match-body {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        220px
        minmax(0, 1fr);

    align-items: center;

    gap: 30px;

    padding: 50px 50px 45px;
}

/* =========================================================
   TEAM
   ========================================================= */

.fr-home-featured-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fr-home-featured-logo {
    width: 105px;
    height: 105px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;
}

.fr-home-featured-logo img {
    width: 105px;
    height: 105px;
    object-fit: contain;
}

.fr-home-featured-logo-placeholder {
    width: 90px;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,.12);

    font-size: 35px;
}

.fr-home-featured-team strong {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
}

.fr-home-featured-team small {
    margin-top: 5px;

    color: rgba(255,255,255,.65);

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================================
   SCORE
   ========================================================= */

.fr-home-featured-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.fr-home-featured-ft {
    display: inline-flex;

    padding: 6px 12px;
    margin-bottom: 15px;

    border-radius: 999px;

    background: rgba(255,255,255,.13);

    color: #ffffff;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1px;
}

.fr-home-featured-score > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.fr-home-featured-score strong {
    font-size: 56px;
    line-height: 1;
    font-weight: 900;
}

.fr-home-featured-score > div span {
    color: rgba(255,255,255,.65);
    font-size: 32px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.fr-home-featured-footer {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 50px;

    background: rgba(0,0,0,.12);

    border-top:
        1px solid rgba(255,255,255,.10);

    font-size: 12px;
    font-weight: 800;
}

.fr-home-featured-footer span:last-child {
    transition: transform .2s ease;
}

.fr-home-featured-card:hover
.fr-home-featured-footer span:last-child {
    transform: translateX(5px);
}

/* =========================================================
   EMPTY
   ========================================================= */

.fr-home-featured-empty {
    padding: 60px 20px;

    background: #ffffff;

    border:
        1px dashed #d7e1e8;

    border-radius: 22px;

    text-align: center;
}

.fr-home-featured-empty > span {
    display: block;

    margin-bottom: 12px;

    font-size: 30px;
}

.fr-home-featured-empty h3 {
    margin: 0;

    color: #123c66;

    font-size: 19px;
}

.fr-home-featured-empty p {
    margin: 8px 0 0;

    color: #7b8b9d;

    font-size: 13px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .fr-home-featured-match-body {
        grid-template-columns:
            1fr
            160px
            1fr;

        gap: 15px;

        padding: 40px 25px;
    }

.fr-home-featured-logo,
    .fr-home-featured-logo img {
        width: 80px;
        height: 80px;
    }

.fr-home-featured-team strong {
        font-size: 16px;
    }

.fr-home-featured-score strong {
        font-size: 44px;
    }

}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 550px) {

    .fr-home-featured-match {
        width: min(
            calc(100% - 28px),
            600px
        );

        padding: 50px 0;
    }

.fr-home-featured-header {
        align-items: flex-start;
        flex-direction: column;
    }

.fr-home-featured-match-body {
        grid-template-columns:
            1fr
            100px
            1fr;

        gap: 6px;

        padding: 30px 12px;
    }

.fr-home-featured-logo,
    .fr-home-featured-logo img {
        width: 58px;
        height: 58px;
    }

.fr-home-featured-team strong {
        font-size: 13px;
    }

.fr-home-featured-score strong {
        font-size: 32px;
    }

.fr-home-featured-score > div {
        gap: 5px;
    }

.fr-home-featured-score > div span {
        font-size: 22px;
    }

}

/* ==========================================================
   FRONT PAGE — KEEP FEATURED MATCH COMPACT
   ========================================================== */
.fr-home-featured-columns .fr-home-featured-match {
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
}

.fr-home-featured-columns .fr-home-featured-header {
    margin-bottom: 16px;
}

.fr-home-featured-columns .fr-home-featured-header h2 {
    font-size: 24px;
    line-height: 1.1;
}

.fr-home-featured-columns .fr-home-featured-card {
    border-radius: 10px;
}

.fr-home-featured-columns .fr-home-featured-date {
    padding: 9px 14px;
    font-size: 9px;
}

.fr-home-featured-columns .fr-home-featured-match-body {
    grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
    gap: 8px;
    padding: 18px 18px;
}

.fr-home-featured-columns .fr-home-featured-logo,
.fr-home-featured-columns .fr-home-featured-logo img {
    width: 48px;
    height: 48px;
}

.fr-home-featured-columns .fr-home-featured-team strong {
    font-size: 13px;
}

.fr-home-featured-columns .fr-home-featured-score strong {
    font-size: 30px;
}

.fr-home-featured-columns .fr-home-featured-footer {
    padding: 10px 14px;
}

/* ==========================================================
   FRONT PAGE — AD BANNER UNDER FEATURED MATCH
   Keep the Featured Match card at its existing compact size.
   The banner simply uses the empty space below it.
   ========================================================== */
.fr-home-featured-columns .fr-home-featured-match {
    width: 100%;
    box-sizing: border-box;
}

.fr-home-featured-columns .fr-home-featured-ad-banner {
    width: 100%;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 10px;
    box-sizing: border-box;
}

.fr-home-featured-columns .fr-home-featured-ad-banner img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}

  /* Keep the Featured Match card at its existing compact size.
  /*The banner simply uses the empty space below it.
  /* ========================================================== */
  
.fr-home-featured-columns .fr-home-featured-match {
    width: 100%;
    box-sizing: border-box;
}

.fr-home-featured-columns .fr-home-featured-ad-banner {
    width: 100%;
    margin-top: 18px;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 10px;
    box-sizing: border-box;
}

.fr-home-featured-columns .fr-home-featured-ad-banner img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}


/* Featured Video: link to the Highlights page (/highlights/) */
.fr-home-featured-video .fr-home-featured-header {
    align-items: center;
}

.fr-home-featured-more {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e6f4f2;
    color: #007863;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.fr-home-featured-more:hover {
    background: #007863;
    color: #fff;
}

@media (max-width: 767px) {
    .fr-home-featured-video .fr-home-featured-header {
        flex-direction: row;
        align-items: center;
    }
}


/* ---- players-tabs.css ---- */
/* Football Rwanda - Home / players-tabs */

.fr-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

.fr-tab {
    appearance: none;
    padding: 9px 18px;
    border: 1px solid #e3e8ef;
    border-radius: 999px;
    background: #ffffff;
    color: #647893;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.fr-tab:hover {
    border-color: #009f88;
    color: #009f88;
}

.fr-tab:focus-visible {
    outline: 3px solid rgba(0, 159, 136, .35);
    outline-offset: 2px;
}

.fr-tab.is-active {
    border-color: #009f88;
    background: #009f88;
    color: #ffffff;
}

/* Without JS every panel stays visible, stacked. */
.fr-tabs.is-ready .fr-tab-panel {
    display: none;
}

.fr-tabs.is-ready .fr-tab-panel.is-active {
    display: block;
}

.fr-tab-panel + .fr-tab-panel {
    margin-top: 24px;
}

.fr-tabs.is-ready .fr-tab-panel + .fr-tab-panel {
    margin-top: 0;
}

@media (max-width: 600px) {
    .fr-tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .fr-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .fr-tab {
        flex: 0 0 auto;
        padding: 8px 15px;
        font-size: 12px;
    }
}


/* ---- clubs.css ---- */
/* Football Rwanda - Home / Clubs (same design as the Players block) */

.fr-home-featured-clubs {
    width: 100%;
    padding: 10px 0;
}

.fr-home-featured-clubs .fr-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.fr-home-club-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin: 0;
}

.fr-home-club-card {
    width: 100%;
    min-width: 0;
    height: 160px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-radius: 14px;
    background: #f7f9fb;
    box-sizing: border-box;
}

.fr-home-club-logo {
    flex: 0 0 140px;
    width: 140px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: #ffffff;
    border-right: 1px solid #e8edf2;
    box-sizing: border-box;
}

.fr-home-club-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fr-home-club-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 11px 13px 10px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.fr-home-club-name {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fr-home-club-name a {
    display: block;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fr-home-club-name a:hover {
    color: #009f88;
}

.fr-home-club-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    line-height: 1.25;
}

.fr-home-club-meta-item {
    display: flex;
    align-items: center;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fr-home-club-icon {
    margin-right: 6px;
}

.fr-home-club-players {
    color: #009f88;
    font-weight: 800;
}

.fr-home-club-button {
    margin-top: auto;
    align-self: flex-start;
    padding: 7px 14px;
    border-radius: 8px;
    background: #123c66;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: background .2s ease;
}

.fr-home-club-button:hover {
    background: #009f88;
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 900px) {
    .fr-home-club-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .fr-home-featured-clubs {
        padding: 50px 0;
    }

    .fr-home-featured-clubs .fr-container {
        width: calc(100% - 28px);
    }

    .fr-home-club-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}


/* ---- academies.css ---- */
/* ==========================================================
   Football Rwanda - Home : Academies block
   Same codes as the home panels: navy head (Saira name, city with
   pin icon, logo only when the academy has one), body with the age
   categories and the figures that matter, in Saira.
   ========================================================== */

.fr-site-main .fr-home-academy-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.fr-site-main a.fr-hac-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    color: #031826;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(3, 24, 38, .05), 0 8px 22px rgba(3, 24, 38, .06);
    transition: box-shadow .15s ease-out, transform .15s ease-out;
}

.fr-site-main a.fr-hac-card:hover {
    box-shadow: 0 2px 4px rgba(3, 24, 38, .06), 0 14px 30px rgba(3, 24, 38, .10);
    transform: translateY(-2px);
}

/* ---------- Head ---------- */

.fr-site-main .fr-hac-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 16px 18px;
    background: #031826;
}

.fr-site-main .fr-hac-logo {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
}

.fr-site-main .fr-hac-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* No logo uploaded: initials */
.fr-site-main .fr-hac-monogram {
    color: #031826;
    font-family: var(--fr-display, 'Saira', 'Inter', sans-serif);
    font-size: 19px;
    font-stretch: 87.5%;
    font-weight: 600;
}

.fr-site-main .fr-hac-id {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.fr-site-main .fr-hac-name {
    color: #fff;
    font-family: var(--fr-display, 'Saira', 'Inter', sans-serif);
    font-size: 19px;
    font-stretch: 87.5%;
    font-weight: 600;
    line-height: 1.1;
    text-wrap: balance;
}

.fr-site-main .fr-hac-city {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #9fd9cc;
    font-size: 12.5px;
    font-weight: 600;
}

.fr-site-main .fr-hac-city .fr-ui-icon {
    color: #7fdcc6;
}

/* ---------- Body ---------- */

.fr-site-main .fr-hac-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px 18px;
}

.fr-site-main .fr-hac-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fr-site-main .fr-hac-cats b {
    padding: 3px 9px;
    border-radius: 999px;
    background: #E3F4EF;
    color: #00614c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.fr-site-main .fr-hac-figures {
    display: flex;
    gap: 22px;
}

.fr-site-main .fr-hac-figure {
    display: flex;
    flex-direction: column;
}

.fr-site-main .fr-hac-figure strong {
    color: #007863;
    font-family: var(--fr-display, 'Saira', 'Inter', sans-serif);
    font-size: 28px;
    font-stretch: 87.5%;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.fr-site-main .fr-hac-figure + .fr-hac-figure strong {
    color: #031826;
}

.fr-site-main .fr-hac-figure small {
    margin-top: 4px;
    color: #5b6b7b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fr-site-main .fr-hac-link {
    margin-top: auto;
    color: #007863;
    font-size: 13px;
    font-weight: 700;
}

.fr-site-main a.fr-hac-card:hover .fr-hac-link {
    text-decoration: underline;
}

/* ---------- Editors-only placeholder ---------- */

.fr-site-main .fr-home-academies--empty p {
    margin: 0;
    padding: 16px 20px;
    font-size: 14px;
    color: #62748a;
    background: #f5f8fa;
    border: 1px dashed #c9d4df;
    border-radius: 14px;
}

.fr-site-main .fr-home-academies--empty a {
    font-weight: 800;
    color: #0a7f78;
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
    .fr-site-main .fr-home-academy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .fr-site-main .fr-home-academy-grid { gap: 14px; }
    /* Phones: keep the block short (2 academies), the rest is one tap away */
    .fr-site-main a.fr-hac-card:nth-child(n+3) { display: none; }
}

@media (max-width: 480px) {
    .fr-site-main .fr-home-academy-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .fr-site-main a.fr-hac-card { transition: none; }
    .fr-site-main a.fr-hac-card:hover { transform: none; }
}


/* ---- rhythm.css ---- */
/* ==========================================================
   FOOTBALL RWANDA — HOME PAGE RHYTHM
   Loaded last. One spacing scale and alternating bands for
   every block of the home page, so the page breathes and each
   block reads as its own section.
   ========================================================== */

.fr-site-main {
    --fr-band-space: clamp(48px, 5.5vw, 80px);
    --fr-band-line: #e3e9f0;
    --fr-band-soft: #f4f7fa;
    --fr-band-white: #ffffff;
}

/* Every block after the hero: same vertical space, same hairline */
.fr-site-main > section:not(.fr-hero) {
    padding-top: var(--fr-band-space);
    padding-bottom: var(--fr-band-space);
    border-top: 1px solid var(--fr-band-line);
    background: var(--fr-band-white);
}

/* Soft bands: live, match centre, standings + scorers, clubs */
.fr-site-main > section.fr-home-live-matches,
.fr-site-main > section.fr-home-featured-clubs {
    background: var(--fr-band-soft);
}

/* The hero already ends on its own dark edge */
.fr-site-main > section.fr-home-live-matches:first-of-type {
    border-top: 0;
}

/* One content column, same left and right edge as the hero.
   The vertical space comes from the band, not from the container. */
.fr-site-main > section:not(.fr-hero) > .fr-container {
    width: min(1200px, calc(100% - 40px));
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    padding: 0;
}

/* Players and Clubs: the container is the card, it keeps its inner space */
.fr-site-main > section.fr-home-players > .fr-container,
.fr-site-main > section.fr-home-featured-clubs > .fr-container {
    padding: 28px 24px;
}

/* Featured Match and Featured Video: same height */
.fr-site-main .fr-home-featured-columns-grid {
    align-items: stretch;
}

.fr-site-main .fr-home-featured-columns-grid > * {
    height: 100%;
}

/* Players and Clubs headers follow the other blocks */
.fr-site-main .fr-home-players .fr-section-subtitle,
.fr-site-main .fr-home-featured-clubs .fr-section-subtitle {
    margin-bottom: 8px;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.fr-site-main .fr-home-players .fr-section-link,
.fr-site-main .fr-home-featured-clubs .fr-section-link {
    font-size: 12px;
}

/* ----------------------------------------------------------
   Block titles: one scale
   32px full-width blocks, 28px blocks in a column or card
   ---------------------------------------------------------- */
.fr-site-main .fr-home-live-matches h2,
.fr-site-main .fr-home-players .fr-section-title,
.fr-site-main .fr-home-featured-clubs .fr-section-title {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #071b35;
}

.fr-site-main .fr-home-featured-match h2,
.fr-site-main .fr-home-featured-video h2 {
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #071b35;
}

@media (max-width: 767px) {
    .fr-site-main > section:not(.fr-hero) > .fr-container {
        width: calc(100% - 32px);
    }

/* Block headings stack from the left edge on phones */

.fr-site-main > section.fr-home-players > .fr-container,
    .fr-site-main > section.fr-home-featured-clubs > .fr-container {
        padding: 20px 16px;
    }

    .fr-site-main .fr-home-live-matches h2,
    .fr-site-main .fr-home-players .fr-section-title,
    .fr-site-main .fr-home-featured-clubs .fr-section-title {
        font-size: 26px;
    }

    .fr-site-main .fr-home-featured-match h2,
    .fr-site-main .fr-home-featured-video h2 {
        font-size: 24px;
    }

    .fr-site-main > section:not(.fr-hero) {
        padding-top: 44px;
        padding-bottom: 44px;
    }
}



/* ---- layout.css ---- */


/* ---------- Show all / fewer (Latest Results, Upcoming) ---------- */

html body .fr-more-toggle {
    display: none;
    width: 100%;
    margin-top: 14px;
    padding: 12px 16px;
    color: #0a7f78;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    background: #fff;
    border: 1px solid #cfe5e2;
    border-radius: 14px;
    transition: background .15s, border-color .15s;
}

html body .fr-more-toggle:hover {
    background: #e6f4f2;
    border-color: #0a7f78;
}

html.fr-more-ready body .fr-more-toggle {
    display: block;
}

html.fr-more-ready body [data-fr-results-list]:not(.is-open) .is-extra {
    display: none;
}

/* ---------- Players Abroad ---------- */

html body .fr-site-main .fr-home-abroad .fr-section-title {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #071b35;
}

html body .fr-site-main .fr-home-abroad-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

html body .fr-site-main a.fr-home-abroad-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #06182f;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e3e9ef;
    border-radius: 18px;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

html body .fr-site-main a.fr-home-abroad-card:hover {
    border-color: #0a7f78;
    box-shadow: 0 10px 28px rgba(6, 24, 47, .08);
    transform: translateY(-2px);
}

html body .fr-site-main .fr-home-abroad-photo {
    display: block;
    aspect-ratio: 16 / 11;
    max-height: 190px;
    background: linear-gradient(160deg, #eaf1f6, #dce7ef);
}

html body .fr-site-main .fr-home-abroad-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

html body .fr-site-main .fr-home-abroad-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px 18px;
}

html body .fr-site-main .fr-home-abroad-name {
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
}

html body .fr-site-main .fr-home-abroad-position {
    color: #62748a;
    font-size: 13px;
    font-weight: 600;
}

html body .fr-site-main .fr-home-abroad-club {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #e3e9ef;
}

html body .fr-site-main .fr-home-abroad-club img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
}

html body .fr-site-main .fr-home-abroad-club span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

html body .fr-site-main .fr-home-abroad-club b {
    font-size: 14px;
    font-weight: 800;
    color: #0a7f78;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html body .fr-site-main .fr-home-abroad-club i {
    color: #62748a;
    font-size: 12px;
    font-style: normal;
}

/* ---------- Band order: soft / white alternation ---------- */
/* hero, quick bar, live (soft), overview (white), match centre (soft),
   featured (white), table + scorers (soft), players (white),
   players abroad (soft), clubs (white), academies (soft), CTA (white) */

html body .fr-site-main > section.fr-home-featured-clubs {
    background: #fff;
}

html body .fr-site-main > section.fr-home-abroad,
html body .fr-site-main > section.fr-home-academies {
    background: var(--fr-band-soft, #f4f7fa);
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
    html body .fr-site-main .fr-home-abroad-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    html body .fr-site-main .fr-home-abroad-grid {
        gap: 12px;
    }

    html body .fr-site-main .fr-home-abroad .fr-section-title {
        font-size: 26px;
    }

    html body .fr-site-main .fr-home-abroad-body {
        padding: 12px 12px 14px;
    }

    html body .fr-site-main .fr-home-abroad-name {
        font-size: 15px;
    }
}

/* ---------- Tighter vertical rhythm ---------- */

html body .fr-site-main {
    --fr-band-space: clamp(36px, 4.4vw, 60px);
}

html body .fr-site-main > section.fr-league-overview {
    padding-top: 36px;
    padding-bottom: 36px;
}

/* Live now: a short band, it sits between two big blocks */
html body .fr-site-main > section.fr-home-live-matches {
    padding-top: 24px;
    padding-bottom: 26px;
}

/* Abroad + Academies headers follow Players and Clubs */
html body .fr-site-main .fr-home-abroad .fr-section-subtitle,
html body .fr-site-main .fr-home-academies .fr-section-subtitle {
    margin-bottom: 8px;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 1.5px;
}

html body .fr-site-main .fr-home-abroad .fr-section-link,
html body .fr-site-main .fr-home-academies .fr-section-link {
    font-size: 12px;
}


/* ---- polish.css ---- */
/* ==========================================================
   Football Rwanda - Home polish pass
   Loaded last on the home page (after layout.css).
   Refinement only: same colors, type and content; fixes the
   defects measured on the live page.
   ========================================================== */

/* ----------------------------------------------------------
   1. One frame per block
   Players and Clubs were a card (the container) inside a
   framed band, holding more cards, and their titles sat 25px
   to the right of "Players Abroad". Same treatment for all.
---------------------------------------------------------- */

html body.home .fr-home-players-tabs > .fr-container,
html body.home .fr-home-featured-clubs > .fr-container,
html body.home .fr-home-academies > .fr-container {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* ----------------------------------------------------------
   2. Readable small text
   95 labels were set at 8-10px, some in #91a0af on white
   (2.6:1 contrast). Floor: 10.5px; muted text in slate-500
   (4.7:1 on white).
---------------------------------------------------------- */

html body.home .fr-stat-label {
    font-size: 10px;
}

html body.home .fr-hero-stat > span,
html body.home .fr-league-overview-card-label,
html body.home .fr-home-featured-ft,
html body.home .fr-home-featured-team > small {
    font-size: 10.5px;
}

html body.home .fr-home-featured-date {
    font-size: 11px;
}

html body.home .fr-player-button {
    font-size: 12px;
}

/* ----------------------------------------------------------
   3. Icons (inc/ui/icons.php replaces the emojis)
---------------------------------------------------------- */

.fr-ui-icon {
    display: inline-block;
    flex: 0 0 auto;
    vertical-align: -2px;
    color: var(--fr-primary, #009879);
}

.fr-stat-icon .fr-ui-icon {
    vertical-align: middle;
}

/* ----------------------------------------------------------
   4. Numbers line up (scores, tables, counters)
---------------------------------------------------------- */

html body.home .fr-hero-stat strong,
html body.home .fr-league-overview,
html body.home .fr-home-featured-score,
html body.home .fr-stat-value {
    font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------
   5. Browser surfaces in the brand colors
---------------------------------------------------------- */

::selection {
    background: rgba(0, 152, 121, .22);
    color: #0f172a;
}

html body.home a:focus-visible,
html body.home button:focus-visible,
html body.home select:focus-visible,
html body.home [tabindex]:focus-visible {
    outline: 2px solid var(--fr-primary, #009879);
    outline-offset: 3px;
    border-radius: 6px;
}

html {
    scrollbar-color: #9fb3c8 transparent;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}


/* ---- display.css ---- */
/* ==========================================================
   Football Rwanda - Home display type + hero (typeset / bolder)
   Loaded last on the home page (after polish.css).

   Type roles
   - Display  : Saira (self-hosted, assets/css/base/fonts.css),
                semi-condensed, heavy: page and section titles.
   - Numerals : Saira, tabular: scores, points, counters - the
                numbers read like a stadium scoreboard.
   - Body/UI  : Inter, unchanged (cards, tables, labels, buttons).

   Hero (bolder): one decisive move - the title at full scale,
   "Rwanda's" in the system gold, the flag colors as a band
   closing the hero. Everything else in the hero is unchanged.
   ========================================================== */

:root {
    --fr-display: 'Saira', 'Inter', system-ui, sans-serif;
}

/* ----------------------------------------------------------
   1. Display role: section titles
---------------------------------------------------------- */

html body.home #primary h2 {
    font-family: var(--fr-display);
    font-stretch: 87.5%;
    font-weight: 550;
    letter-spacing: -0.005em;
    line-height: 1.05;
    text-wrap: balance;
}

html body.home .fr-section-title {
    font-size: clamp(30px, 3.2vw, 38px);
}

html body.home .fr-league-overview h2 {
    font-size: clamp(30px, 3.2vw, 38px);
}

/* ----------------------------------------------------------
   2. Numerals role: scores, points, counters
---------------------------------------------------------- */

html body.home .fr-hero-stat strong,
html body.home .fr-league-overview-card-value,
html body.home .fr-home-featured-score strong,
html body.home .fr-home-featured-score span {
    font-family: var(--fr-display);
    font-stretch: 87.5%;
    font-weight: 550;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

/* ----------------------------------------------------------
   3. Hero
---------------------------------------------------------- */

/* The bigger title needs the hero to grow with its content
   (it had a fixed 500 / 620 / 680px height). */
/* Compact: the matchday timeline right below is the page's spine. */
html body.home .fr-hero {
    height: auto;
    min-height: 0;
}

html body.home .fr-hero-content {
    padding: 40px 0 52px;
}

html body.home .fr-hero-title {
    max-width: 18ch;
    margin: 0 auto 14px;
    font-family: var(--fr-display);
    font-size: clamp(40px, 5.2vw, 72px);
    font-stretch: 87.5%;
    font-weight: 600;
    line-height: .92;
    letter-spacing: -0.005em;
    text-transform: uppercase;
    text-wrap: balance;
    text-shadow: 0 3px 22px rgba(3, 24, 38, .45);
}

html body.home .fr-hero-title-accent {
    color: var(--fr-secondary, #F4B400);
}

html body.home .fr-hero-text {
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
}

/* Rwanda flag colors closing the hero (blue 1/2, yellow 1/4, green 1/4). */
html body.home .fr-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    height: 6px;
    background: linear-gradient(90deg, #00A1DE 0 50%, #FAD201 50% 75%, #20603D 75% 100%);
    pointer-events: none;
}

@media (max-width: 767px) {
    html body.home .fr-hero {
        height: auto;
        min-height: 0;
    }

    html body.home .fr-hero-content {
        padding: 36px 0 44px;
    }

    html body.home .fr-hero-title {
        font-size: clamp(36px, 11vw, 48px);
        line-height: .95;
    }
}


/* "Discover Rwanda's Football Talent" on ONE line from tablets up
   (phones keep the stacked, bigger title). */
@media (min-width: 768px) {
    html body.home .fr-hero-title {
        max-width: none;
        white-space: nowrap;
        font-size: clamp(34px, 4.6vw, 64px);
        text-wrap: nowrap;
    }
}


/* ==========================================================
   Same structure as the matchday section for the blocks below it
   (Featured Match / Video, Players, Players Abroad, Clubs,
   Academies): a light teal-tinted box framed in the site green, a
   title bar without border (#f3f7f6 band, 52px, Saira 24px), the
   cards inside.
   The tinted box from tablets up; phones keep the full-width look.
   ========================================================== */

@media (min-width: 768px) {
    html body.home .fr-home-section:not(.fr-home-cta) > .fr-container,
    html body.home .fr-home-dashboard-section {
        padding: 12px;
        border: 1px solid #007863;
        border-radius: 20px;
        background: #eaf3f0;
        box-shadow: none;
    }
}

html body.home .fr-home-section:not(.fr-home-cta) {
    padding: 28px 0;
    border-top: 0;
}

html body.home .fr-home-featured-columns {
    padding-bottom: 0;
}

html body.home .fr-home-section .fr-section-header,
html body.home .fr-home-featured-header {
    box-sizing: border-box;
    min-height: 52px;
    align-items: center;
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 0;
    border-radius: 12px;
    background: #f3f7f6;
}

html body.home .fr-home-section .fr-section-title {
    font-size: 24px;
    line-height: 1.1;
}

/* Featured Match and Featured Video: same size. The "Your brand here"
   banner is gone; the match card grows to the height of the video and
   keeps the score centred. */
html body.home .fr-home-featured-columns-grid {
    align-items: stretch;
}

html body.home .fr-home-featured-match,
html body.home .fr-home-featured-video {
    display: flex;
    flex-direction: column;
}

html body.home .fr-home-featured-match .fr-home-featured-inner,
html body.home .fr-home-featured-video .fr-home-featured-video-inner {
    display: flex;
    flex: 1;
    flex-direction: column;
}

html body.home .fr-home-featured-match .fr-home-featured-card {
    display: flex;
    flex: 1;
    flex-direction: column;
}

html body.home .fr-home-featured-match .fr-home-featured-match-body {
    flex: 1;
    align-items: center;
}

/* ---- white.css ---- */
/* ==========================================================
   Football Talents Data
   Home - white version (Retouche Novembre 2026)
   File: assets/css/pages/home-sections/white.css
   ==========================================================
   Loaded last on the home page. Every block is white with a
   square border; green is kept for the header only. Accents:
   navy (#071b35), yellow (#f4b400) for "now", red for live.
   ========================================================== */

html body.home {
    --fr-w-navy: #071b35;
    --fr-w-navy-2: #16304f;
    --fr-w-text: #334155;
    --fr-w-muted: #64748b;
    --fr-w-line: #dfe4ea;
    --fr-w-soft: #f4f6f9;
    --fr-w-yellow: #f4b400;
}

/* ----------------------------------------------------------
   1. Square corners everywhere in the page content
   ---------------------------------------------------------- */

html body.home .fr-site-main *:not(img):not(input[type="search"]):not(.fr-hero-flag):not(.fr-tk-live-dot):not([class*="dot"]):not([class*="avatar"]):not([class*="photo"]):not([class*="logo"]):not([class*="crest"]):not([class*="faces"] > span) {
    border-radius: 0 !important;
}

/* ----------------------------------------------------------
   2. HERO: white, texts / buttons / stats bar kept
   ---------------------------------------------------------- */

html body.home .fr-hero {
    background: #fff !important;
    color: var(--fr-w-navy);
    min-height: 0;
    border-bottom: 1px solid var(--fr-w-line);
}

html body.home .fr-hero::before,
html body.home .fr-hero::after,
html body.home .fr-hero-overlay {
    display: none !important;
}

/* Compact hero, about the height of the "Discover Rwanda's Football
   World" block: badge, title, text, statistics, buttons. */
html body.home .fr-hero-content {
    padding-top: 17px !important;
    padding-bottom: 17px !important;
}

html body.home .fr-hero-badge {
    margin-bottom: 12px !important;
}

html body.home .fr-hero-title {
    margin: 0 0 8px !important;
    font-size: clamp(30px, 4.2vw, 46px) !important;
    line-height: 1.08 !important;
}

html body.home .fr-hero-text {
    margin: 0 auto 16px !important;
}

html body.home .fr-hero .fr-hero-stats {
    margin: 0 auto 16px !important;
}

html body.home .fr-hero .fr-hero-stat {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

html body.home .fr-hero .fr-hero-actions {
    margin: 0 !important;
}

/* Search bar under the statistics; its label stays for screen
   readers only (it showed as "Search Football Talents Data"). */
html body.home .fr-hero .fr-search {
    width: 100% !important;
    max-width: 800px !important; /* same width as the statistics bar */
    margin: 0 auto 16px !important;
    padding: 0 !important;
}

html body.home .fr-hero .fr-hero-stats {
    width: 100% !important;
    max-width: 800px !important;
}

html body.home .fr-hero .fr-search::before,
html body.home .fr-hero .fr-search::after {
    display: none !important;
}

html body.home .fr-hero .fr-search .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

html body.home .fr-hero-badge {
    background: #fff;
    color: var(--fr-w-navy);
    border: 1px solid var(--fr-w-line);
}

html body.home .fr-hero-title {
    color: var(--fr-w-navy);
    text-shadow: none;
}

html body.home .fr-hero-title-accent {
    color: var(--fr-w-navy);
    background: none;
    text-decoration: underline;
    text-decoration-color: var(--fr-w-yellow);
    text-decoration-thickness: .12em;
    text-underline-offset: .1em;
}

html body.home .fr-hero-text {
    color: var(--fr-w-text);
    text-shadow: none;
}

html body.home .fr-hero label,
html body.home .fr-hero .fr-search-label {
    color: var(--fr-w-muted);
}

/* Search bar: clearly visible (framed, shadow, tinted field) */
html body.home .fr-site-main .fr-hero .fr-search input[type="search"] {
    background: #f4f6f9 !important;
    color: var(--fr-w-navy) !important;
    border: 2px solid var(--fr-w-line) !important; /* same as the statistics bar */
    border-radius: 14px !important;
    box-shadow: 0 8px 22px rgba(7, 27, 53, .16) !important;
}

html body.home .fr-site-main .fr-hero .fr-search input[type="search"]::placeholder {
    color: #4b5b70 !important;
    opacity: 1;
}

html body.home .fr-site-main .fr-hero .fr-search input[type="search"]:focus {
    background: #fff !important;
    border-color: var(--fr-w-line) !important;
    outline: 3px solid rgba(244, 180, 0, .45) !important;
    outline-offset: 0;
}

html body.home .fr-hero-button {
    box-shadow: none;
}

html body.home .fr-hero-button-primary {
    background: var(--fr-w-navy);
    border-color: var(--fr-w-navy);
    color: #fff;
}

html body.home .fr-hero-button-primary:hover,
html body.home .fr-hero-button-primary:focus-visible {
    background: var(--fr-w-navy-2);
    border-color: var(--fr-w-navy-2);
    color: #fff;
}

html body.home .fr-hero-button-secondary {
    background: #fff;
    border-color: #c9d1db;
    color: var(--fr-w-navy);
}

html body.home .fr-hero-button-secondary:hover,
html body.home .fr-hero-button-secondary:focus-visible {
    background: var(--fr-w-soft);
    border-color: var(--fr-w-navy);
    color: var(--fr-w-navy);
}

html body.home .fr-hero-stats {
    background: #fff;
    border: 1px solid var(--fr-w-line);
    box-shadow: none;
    backdrop-filter: none;
}

html body.home .fr-hero-stat + .fr-hero-stat {
    border-left: 1px solid var(--fr-w-line);
}

html body.home .fr-hero-stat strong {
    color: var(--fr-w-navy);
}

html body.home .fr-hero-stat span {
    color: var(--fr-w-muted);
}

/* ----------------------------------------------------------
   3. BANNER (link to the Highlights page), same width as the
      League Overview panel, 90 px high, no photo
   ---------------------------------------------------------- */

html body.home .fr-home-banner {
    background: #fff;
    padding: 20px 0 0;
}

html body.home .fr-home-banner-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    height: 90px;
    margin: 0;
    padding: 0 24px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background-color: var(--fr-w-navy);
    /* pitch lines: halfway line, centre circle, penalty boxes */
    background-image:
        radial-gradient(circle at 50% 50%, transparent 34px, rgba(255, 255, 255, .10) 35px, rgba(255, 255, 255, .10) 36px, transparent 37px),
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, .10) calc(50% - 1px), rgba(255, 255, 255, .10) calc(50% + 1px), transparent calc(50% + 1px)),
        linear-gradient(90deg, transparent 88px, rgba(255, 255, 255, .08) 88px, rgba(255, 255, 255, .08) 90px, transparent 90px),
        linear-gradient(270deg, transparent 88px, rgba(255, 255, 255, .08) 88px, rgba(255, 255, 255, .08) 90px, transparent 90px);
    border: 1px solid var(--fr-w-navy);
}

html body.home .fr-home-banner-play {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--fr-w-navy);
    background: var(--fr-w-yellow);
}

html body.home .fr-home-banner-text {
    flex: 1 1 auto;
}

html body.home .fr-home-banner-text,
html body.home .fr-home-banner-cta {
    position: relative;
}

html body.home .fr-home-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

html body.home .fr-home-banner-text small {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fr-w-yellow);
}

html body.home .fr-home-banner-text strong {
    font-family: "Saira", "Inter", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.15;
    color: #fff;
}

html body.home .fr-home-banner-cta {
    flex: none;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fr-w-navy);
    background: var(--fr-w-yellow);
}

html body.home .fr-home-banner-link:hover .fr-home-banner-cta,
html body.home .fr-home-banner-link:focus-visible .fr-home-banner-cta {
    background: #fff;
}

@media (max-width: 640px) {
    html body.home .fr-home-banner-link {
        height: 76px;
        padding: 0 14px;
        gap: 12px;
    }

    html body.home .fr-home-banner-play {
        display: none;
    }

    html body.home .fr-home-banner-text strong {
        font-size: 16px;
    }

    html body.home .fr-home-banner-cta {
        padding: 7px 10px;
        font-size: 12px;
    }
}

/* ----------------------------------------------------------
   4. LEAGUE OVERVIEW: white
   ---------------------------------------------------------- */

html body.home .fr-league-overview {
    background: #fff;
}

html body.home .fr-league-overview-panel {
    background: #fff !important;
    border: 1px solid var(--fr-w-line);
    box-shadow: none !important;
}

html body.home .fr-league-overview-panel::before,
html body.home .fr-league-overview-panel::after {
    display: none !important;
}

html body.home .fr-league-overview-heading h2 {
    color: var(--fr-w-navy);
}

html body.home .fr-league-overview-heading p {
    color: var(--fr-w-muted);
}

html body.home .fr-league-overview-grid {
    border-top: 1px solid var(--fr-w-line);
}

html body.home .fr-league-overview-card {
    background: #fff;
    border-color: var(--fr-w-line) !important;
}

html body.home .fr-league-overview-card-label {
    color: var(--fr-w-muted);
}

html body.home .fr-league-overview-card-value {
    color: var(--fr-w-navy);
}

/* ----------------------------------------------------------
   5. BLOCKS: white, neutral borders, no green
   ---------------------------------------------------------- */

/* Containers that were tinted green */
html body.home .fr-mdt-days,
html body.home .fr-mdt-rail,
html body.home .fr-mdt-rail.is-fitted,
html body.home .fr-home-dashboard-section {
    background: #fff !important;
    box-shadow: inset 0 0 0 1px var(--fr-w-line) !important;
    border-color: var(--fr-w-line) !important;
}

/* Panels and cards */
html body.home .fr-mdt-panel,
html body.home .fr-mdt-fixture,
html body.home .fr-home-featured-card,
html body.home .fr-home-featured-video-card,
html body.home .fr-player-card,
html body.home .fr-home-abroad-card,
html body.home .fr-home-club-card,
html body.home .fr-hac-card {
    border-color: var(--fr-w-line) !important;
    box-shadow: none !important;
}

/* Title bands */
html body.home .fr-mdt-day-title,
html body.home .fr-mdt-panel-head,
html body.home .fr-home-featured-header,
html body.home .fr-section-header {
    background: #e3e9f0 !important;
    border-color: var(--fr-w-line) !important;
    box-shadow: inset 0 -1px 0 var(--fr-w-line) !important;
}

/* Titles and their icons */
html body.home .fr-mdt-title,
html body.home .fr-mdt-day-title,
html body.home .fr-mdt-panel-head h3,
html body.home .fr-section-title,
html body.home .fr-home-featured-heading {
    color: var(--fr-w-navy);
}

html body.home .fr-mdt-title-md,
html body.home .fr-mdt-title-icon,
html body.home .fr-home-featured-heading-icon,
html body.home .fr-section-heading svg {
    color: var(--fr-w-navy) !important;
}

/* Links ("All results", "Full standings", "View all"...) */
html body.home .fr-mdt-more,
html body.home .fr-mdt-panel-head a,
html body.home .fr-mdt-details,
html body.home .fr-section-link,
html body.home .fr-home-featured-more {
    color: var(--fr-w-navy) !important;
    background: transparent !important;
}

html body.home .fr-mdt-more:hover,
html body.home .fr-mdt-panel-head a:hover,
html body.home .fr-section-link:hover,
html body.home .fr-home-featured-more:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Score badges, stamps, numbers */
html body.home .fr-mdt-score {
    background: var(--fr-w-navy) !important;
    color: #fff !important;
}

html body.home .fr-mdt-stamp,
html body.home .fr-mdt-goals,
html body.home .fr-mdt-pts,
html body.home .fr-mdt-fixture b {
    background: var(--fr-w-soft) !important;
    color: var(--fr-w-navy) !important;
}

html body.home .fr-mdt-table td {
    background: transparent;
}

html body.home .fr-mdt-scorer-photo {
    box-shadow: 0 0 0 1px var(--fr-w-line) !important;
}

/* Tabs (Players, Clubs) */
html body.home .fr-tab.is-active {
    background: var(--fr-w-navy) !important;
    border-color: var(--fr-w-navy) !important;
    color: #fff !important;
}

/* Buttons and chips inside cards */
html body.home .fr-player-button,
html body.home .fr-home-club-button {
    background: var(--fr-w-navy) !important;
    border-color: var(--fr-w-navy) !important;
    color: #fff !important;
}

/* Academy card link stays a text link */
html body.home .fr-hac-link {
    background: transparent !important;
    color: var(--fr-w-navy) !important;
}

html body.home .fr-shirt-number {
    background: var(--fr-w-navy) !important;
    color: #fff !important;
}

html body.home .fr-stat-value,
html body.home .fr-stat-icon,
html body.home .fr-player-stats svg {
    color: var(--fr-w-navy) !important;
}

/* Top Ranked switch and bar */
html body.home .fr-mdt-toptabs {
    background: var(--fr-w-soft) !important;
}

html body.home .fr-mdt-toptabs [aria-selected="true"] {
    background: var(--fr-w-navy) !important;
    color: #fff !important;
}

html body.home .fr-mdt-topplayer-bar {
    background: var(--fr-w-soft) !important;
}

html body.home .fr-mdt-topplayer-bar i {
    background: var(--fr-w-navy) !important;
}

/* Team of the Matchday teaser: plain navy (no teal glow) */
html body.home .fr-mdt-totm {
    background: var(--fr-w-navy) !important;
}

/* Academies: city label */
html body.home .fr-hac-city {
    color: rgba(255, 255, 255, .78) !important;
}

/* ----------------------------------------------------------
   6. NEW BLOCKS (2026-11)
   ---------------------------------------------------------- */

/* Top Ranked: player and club side by side, in the leaders column */
html body.home .fr-mdt-ranked {
    display: flex;
    flex-direction: column;
}

html body.home .fr-mdt-ranked-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1 1 auto;
}

html body.home .fr-mdt-ranked-grid > .fr-mdt-toppane {
    padding: 4px 0 6px;
}

html body.home .fr-mdt-ranked-grid > .fr-mdt-toppane + .fr-mdt-toppane {
    border-left: 1px solid var(--fr-w-line);
}

html body.home .fr-mdt-ranked-label {
    display: block;
    padding: 12px 18px 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fr-w-muted);
}

html body.home .fr-mdt-ranked .fr-mdt-topplayer-photo {
    width: 64px !important;
    height: 64px !important;
    flex-basis: 64px !important;
}

@media (max-width: 640px) {
    html body.home .fr-mdt-ranked-grid {
        grid-template-columns: 1fr;
    }

    html body.home .fr-mdt-ranked-grid > .fr-mdt-toppane + .fr-mdt-toppane {
        border-left: 0;
        border-top: 1px solid var(--fr-w-line);
    }
}

/* Top 5 Goal Scoring Clubs (rail, under the League Table) */
html body.home .fr-mdt-attack {
    border: 1px solid var(--fr-w-line) !important;
}

/* The title fills the rail width: "Standings" goes under it, on the right. */
html body.home .fr-site-main .fr-mdt-attack .fr-mdt-panel-head {
    flex-wrap: wrap !important;
    row-gap: 6px !important;
}

html body.home .fr-site-main .fr-mdt-attack .fr-mdt-panel-head > a {
    margin-left: auto !important;
}

html body.home .fr-mdt-attack-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

html body.home .fr-mdt-attack-list li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto 40px;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--fr-w-line);
}

html body.home .fr-mdt-attack-list li:last-child {
    border-bottom: 0;
}

html body.home .fr-mdt-attack-rank {
    font-weight: 600;
    color: var(--fr-w-muted);
}

html body.home .fr-mdt-attack-list .fr-mdt-table-club {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-weight: 600;
    color: var(--fr-w-navy);
}

html body.home .fr-mdt-attack-list .fr-mdt-table-club a {
    overflow: hidden;
    color: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

html body.home .fr-mdt-attack-list .fr-mdt-table-club a:hover {
    text-decoration: underline;
}

html body.home .fr-mdt-attack-list small {
    font-size: 12px;
    color: var(--fr-w-muted);
}

html body.home .fr-mdt-attack-list .fr-mdt-goals {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    font-weight: 700;
}

/* Every frame of the matchday section: neutral line, no green */
html body.home .fr-mdt-rail > .fr-mdt-panel,
html body.home .fr-mdt-leaders-panel,
html body.home .fr-mdt .fr-mdt-day-title,
html body.home .fr-mdt-topplayer {
    border-color: var(--fr-w-line) !important;
}

/* Women Division under the Second Division */
html body.home .fr-mdt-d2--women {
    margin-top: 18px;
}

/* Featured: match + video in one block, framed like Players */
html body.home .fr-home-featured {
    padding-top: 0;
}

html body.home .fr-home-featured .fr-home-featured-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

html body.home .fr-home-featured .fr-home-dashboard-section {
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body.home .fr-home-featured .fr-home-featured-header {
    display: none;
}

html body.home .fr-home-featured .fr-home-featured-inner,
html body.home .fr-home-featured .fr-home-featured-video-inner {
    height: 100%;
    padding: 0;
}

html body.home .fr-home-featured .fr-home-featured-card,
html body.home .fr-home-featured .fr-home-featured-video-card {
    height: 100%;
    margin: 0;
    border: 1px solid var(--fr-w-line) !important;
}

html body.home .fr-site-main .fr-home-featured .fr-home-dashboard-section {
    padding: 0 !important;
}

/* Match card: plain navy (the old gradient ended in teal) */
html body.home .fr-site-main .fr-home-featured-card {
    background: var(--fr-w-navy) !important;
}

@media (max-width: 900px) {
    html body.home .fr-home-featured .fr-home-featured-columns-grid {
        grid-template-columns: 1fr;
    }
}

/* Featured in the rail, under Top 5 Goal Scoring Clubs: match card
   then video, one under the other */
html body.home .fr-site-main .fr-mdt-featured {
    border: 1px solid var(--fr-w-line) !important;
}

html body.home .fr-site-main .fr-mdt-featured-body {
    display: grid;
    gap: 14px;
    padding: 14px;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-dashboard-section {
    min-height: 0 !important;
    height: auto !important;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-card,
html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-video-card {
    height: auto !important;
}

/* Narrow column: everything shrinks to the panel width */
html body.home .fr-site-main .fr-mdt-featured-body,
html body.home .fr-site-main .fr-mdt-featured-body > *,
html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-inner,
html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-video-inner,
html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-card,
html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-video-card,
html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-video-frame {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-match-body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    align-items: center;
    gap: 8px !important;
    padding: 18px 12px !important;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-team {
    min-width: 0;
    text-align: center;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-logo,
html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-logo img {
    width: 56px !important;
    height: 56px !important;
    margin: 0 auto 8px !important;
    object-fit: contain;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-team strong {
    display: block;
    font-size: 14px !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-score strong {
    font-size: 30px !important;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-ft {
    font-size: 10px !important;
    padding: 3px 6px !important;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-video-frame {
    aspect-ratio: 16 / 9;
    height: auto !important;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-video-frame iframe {
    width: 100% !important;
    height: 100% !important;
}

/* "Featured Match" / "Featured Video" titles shown above each item,
   without background */
html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-header {
    display: flex !important;
    align-items: center;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-heading-icon {
    width: 20px;
    height: 20px;
    background: none !important;
    color: var(--fr-w-navy) !important;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-heading-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-header h2 {
    margin: 0 !important;
    font-size: 16px !important;
    color: var(--fr-w-navy) !important;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-more {
    display: none !important; /* "All highlights" is already in the block title */
}

/* Match card and video: same size (16:9, the video's shape) */
html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-card {
    display: flex !important;
    flex-direction: column;
    aspect-ratio: 16 / 9;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-date {
    flex: none;
    padding: 6px 10px !important;
    font-size: 11px !important;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-match-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 6px 10px !important;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-logo,
html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-logo img {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 4px !important;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-team strong {
    font-size: 13px !important;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-team small {
    display: none !important;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-score strong {
    font-size: 26px !important;
}

html body.home .fr-site-main .fr-mdt-featured .fr-home-featured-footer {
    flex: none;
    padding: 8px 10px !important;
    font-size: 12px !important;
}

/* Players Abroad: smaller photo frame (150 px), whole photo shown
   (contain) so faces are never cut. */
html body.home .fr-site-main .fr-home-abroad-photo {
    height: 150px !important;
    aspect-ratio: auto !important;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--fr-w-line);
}

html body.home .fr-site-main .fr-home-abroad-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: 50% 100% !important;
}

/* ----------------------------------------------------------
   7. Remaining green spots (stronger selectors)
   ---------------------------------------------------------- */

/* Frame of Players / Players Abroad / Clubs / Academies / Featured */
html body.home .fr-site-main .fr-home-section > .fr-container {
    background: #fff !important;
    border-color: var(--fr-w-line) !important;
    box-shadow: none !important;
}

html body.home .fr-site-main .fr-mdt .fr-mdt-panel .fr-mdt-panel-head a,
html body.home .fr-site-main .fr-mdt-stepper a {
    color: var(--fr-w-navy) !important;
    border-color: var(--fr-w-line) !important;
    box-shadow: none !important;
}

html body.home .fr-site-main .fr-mdt-table td {
    background: transparent !important;
}

html body.home .fr-site-main .fr-mdt-table td.fr-mdt-pts,
html body.home .fr-site-main .fr-mdt-topplayer-score-head strong,
html body.home .fr-site-main .fr-hac-figure strong,
html body.home .fr-site-main .fr-home-club-players,
html body.home .fr-site-main .fr-home-club-icon {
    color: var(--fr-w-navy) !important;
}

html body.home .fr-site-main .fr-mdt .fr-mdt-topplayer-score small a {
    color: var(--fr-w-navy) !important;
}

html body.home .fr-site-main .fr-home-abroad-club b {
    color: var(--fr-w-navy) !important;
}

html body.home .fr-site-main .fr-mdt-topplayer-stats div {
    background: var(--fr-w-soft) !important;
}

html body.home .fr-site-main .fr-hac-cats b {
    background: var(--fr-w-soft) !important;
    color: var(--fr-w-navy) !important;
}

html body.home .fr-site-main .fr-meta-icon,
html body.home .fr-site-main .fr-meta-icon *,
html body.home .fr-site-main .fr-home-club-icon *,
html body.home .fr-site-main .fr-home-club-meta svg {
    color: var(--fr-w-muted) !important;
    stroke: currentColor !important;
}

html body.home .fr-site-main .fr-meta-icon circle[fill]:not([fill="none"]) {
    fill: currentColor !important;
}

html body.home .fr-site-main .fr-mdt-totm-text small {
    color: var(--fr-w-yellow) !important;
}

html body.home .fr-site-main .fr-hac-city,
html body.home .fr-site-main .fr-hac-city svg,
html body.home .fr-site-main .fr-hac-city svg * {
    color: rgba(255, 255, 255, .78) !important;
    stroke: currentColor !important;
}

/* Call to action */
html body.home .fr-cta {
    background: #fff !important;
    border: 1px solid var(--fr-w-line);
    box-shadow: none !important;
    color: var(--fr-w-navy);
}

html body.home .fr-cta-title {
    color: var(--fr-w-navy) !important;
}

html body.home .fr-cta-text {
    color: var(--fr-w-text) !important;
}

html body.home .fr-cta-button {
    background: var(--fr-w-navy) !important;
    border-color: var(--fr-w-navy) !important;
    color: #fff !important;
}

html body.home .fr-cta-button-secondary {
    background: #fff !important;
    border-color: #c9d1db !important;
    color: var(--fr-w-navy) !important;
}


/* League Overview: link to the full /league-overview/ page (2026-11) */
html body.home .fr-site-main .fr-league-overview-heading {
    position: relative;
}

html body.home .fr-site-main .fr-league-overview-more {
    position: absolute;
    top: 50%;
    right: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #071b35;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-50%);
}

html body.home .fr-site-main .fr-league-overview-more:hover {
    background: #f4b400;
    color: #071b35 !important;
}

@media (max-width: 700px) {
    html body.home .fr-site-main .fr-league-overview-more {
        position: static;
        margin-top: 12px;
        transform: none;
    }
}

/* ----------------------------------------------------------
   Home like the other pages (2026-11): grey page background
   (#f8fafc), no full-width white bands; the hero is a boxed
   light-grey header; the buttons row as wide as the search bar.
   ---------------------------------------------------------- */
html body.home .fr-site-main,
html body.home .fr-site-main > section {
    background: transparent !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

html body.home .fr-site-main .fr-hero {
    padding-top: 24px !important;
    padding-bottom: 0 !important;
}

html body.home .fr-site-main .fr-hero-content {
    box-sizing: border-box;
    padding: 34px 40px 30px !important;
    border: 1px solid var(--fr-w-line, #dfe4ea) !important;
    background: #e3e9f0 !important;
}

html body.home .fr-site-main .fr-hero .fr-search input,
html body.home .fr-site-main .fr-hero-stat {
    background: #fff !important;
}

html body.home .fr-site-main .fr-hero-actions {
    display: grid !important;
    grid-template-columns: auto repeat(4, minmax(0, 1fr));
    gap: 10px !important;
    width: 100% !important;
    max-width: 800px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

html body.home .fr-site-main .fr-hero-actions .fr-hero-button {
    justify-content: center !important;
    margin: 0 !important;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 760px) {
    html body.home .fr-site-main .fr-hero-content {
        padding: 24px 16px 22px !important;
    }

    html body.home .fr-site-main .fr-hero-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html body.home .fr-site-main .fr-hero-actions .fr-hero-button:first-child {
        grid-column: 1 / -1;
    }
}

/* Home "Live now" block in the white design (2026-11): white box,
   light-grey title band, navy links; red stays for live. */
html body.home .fr-site-main .fr-home-live-matches {
    --hl-green: #071b35;
    --hl-tint: #fff;
    --hl-band: #e3e9f0;
    --hl-line: #dfe4ea;
    padding-top: 24px !important;
    background: transparent !important;
}

html body.home .fr-site-main .fr-hlive-box {
    border-color: var(--fr-w-line, #dfe4ea) !important;
    border-radius: 0 !important;
    background: #fff !important;
}

html body.home .fr-site-main .fr-hlive-bar,
html body.home .fr-site-main .fr-hlive-row,
html body.home .fr-site-main .fr-hlive-score,
html body.home .fr-site-main .fr-hlive-score b {
    border-radius: 0 !important;
}

html body.home .fr-site-main .fr-hlive-row:hover {
    border-color: #071b35 !important;
    border-left-color: #e5484d !important;
}

/* Home League Table (2026-11): two first in green, two last in red,
   LIVE tag + red dot for clubs playing while games are live. */
html body.home .fr-site-main .fr-mdt-table tr.is-top td {
    background: #ecf8f1 !important;
}

html body.home .fr-site-main .fr-mdt-table tr.is-top td:first-child {
    box-shadow: inset 4px 0 0 #15803d;
    color: #15803d !important;
    font-weight: 700;
}

html body.home .fr-site-main .fr-mdt-table tr.is-bottom td {
    background: #fdf0f0 !important;
}

html body.home .fr-site-main .fr-mdt-table tr.is-bottom td:first-child {
    box-shadow: inset 4px 0 0 #dc2626;
    color: #dc2626 !important;
    font-weight: 700;
}

html body.home .fr-site-main .fr-mdt-table tr.is-playing .fr-mdt-table-club::after {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    margin-left: 6px;
    border-radius: 50%;
    background: #e5484d;
    animation: fr-mdt-playing 1.4s ease-in-out infinite;
}

@keyframes fr-mdt-playing {
    50% { opacity: .25; }
}

html body.home .fr-site-main .fr-mdt-table-livetag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    background: #e5484d;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    vertical-align: middle;
}

/* Rail block heads: the link goes under the title when it has no room. */
html body.home .fr-site-main .fr-mdt-rail .fr-mdt-panel-head {
    flex-wrap: wrap !important;
    row-gap: 6px !important;
}

html body.home .fr-site-main .fr-mdt-rail .fr-mdt-panel-head > a {
    margin-left: auto !important;
}

/* Home Results & fixtures: the next match to kick off framed in yellow (2026-11) */
html body.home .fr-site-main .fr-mdt-fixture.is-now {
    border: 3px solid #f4b400 !important;
    box-shadow: 0 0 0 3px rgba(244, 180, 0, .22) !important;
}

/* Home Featured Match: score in white on the navy card (2026-11) */
html body.home .fr-site-main .fr-home-featured-score strong {
    color: #fff !important;
}

/* ----------------------------------------------------------
   WIDER LAYOUT (2026-11): content and header up to 1440px,
   16px side margin on smaller screens (was 1200 / 1320px).
   ---------------------------------------------------------- */
html:root body.home .fr-container,
html:root body.home .fr-hwrap,
html:root body.home .fixtures-page,
html:root body.home .frp-player-page .frp-player-hero,
html:root body.home .frp-player-page .frp-player-content,
html:root body.home .fr-single-match-container,
html:root body.home .fr-hero-content {
    box-sizing: border-box !important;
    width: min(1440px, calc(100% - 32px)) !important;
    max-width: none !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

html:root body.home .fr-container,
html:root body.home .fixtures-page {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

/* Home: 8 players / 8 clubs per tab, 4 per row on wide screens (2026-11) */
@media (min-width: 1101px) {
    html body.home .fr-site-main .fr-home-players .fr-player-grid,
    html body.home .fr-site-main .fr-home-club-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Home Players Abroad: 5 in one row on wide screens (2026-11) */
@media (min-width: 1101px) {
    html body.home .fr-site-main .fr-home-abroad-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

/* Home Second Division / Women's league: 3 games in one row (2026-11) */
@media (min-width: 1101px) {
    html body.home .fr-site-main .fr-mdt-grid--d2 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
/* Player cards (2026-11): white photo area, so cut-out photos
   (transparent background) look the same as photos on white. */
html body .fr-player-card .fr-player-image {
    background: #fff !important;
}
/* Player photos everywhere (2026-11): white background behind every
   player photo, so cut-outs (transparent) and photos shot on white
   look the same. Club logos and flags are left alone. */
html body img[src*="/images/players/"],
html body a[href*="/player/"] img:not([class*="logo"]):not([class*="flag"]):not([class*="club"]),
html body .fr-player-card .fr-player-image,
html body .fr-ex-photo,
html body .fr-comp-leader-photo,
html body .fr-mdt-scorer-photo,
html body .fr-mdt-topplayer-photo,
html body .fr-ranking-photo:not(.fr-ranking-club-logo),
html body .fr-player-ranking-photo,
html body .fr-leaders-spot-photo,
html body .fr-leaders-spot-photo img,
html body .fr-leaders-player img,
html body .fr-potm-photo,
html body .frp-related-photo,
html body .fr-tm-face {
    background-color: #fff !important;
}
/* Scores everywhere (2026-11): no dark box, numbers in black */
html body.home .fr-site-main .fr-hlive-score,
html body.home .fr-site-main .fr-hlive-score *,
html body.home .fr-site-main .fr-mdt-score,
html body.home .fr-site-main .match-score-value,
html body.home .fr-site-main .fr-ls-live-match strong,
html body.home .fr-site-main .fr-comp-match-score,
html body.home .fr-site-main .fr-comp-match-score *,
html body.home .fr-site-main .fr-club-pro-match-score strong {
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
    color: #111827 !important;
}
html body .fr-hlive-score,
html body .fr-hlive-score *,
html body .fr-mdt-score,
html body .match-score-value,
html body .fr-ls-live-match strong,
html body .fr-comp-match-score,
html body .fr-comp-match-score *,
html body .fr-club-pro-match-score strong {
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
    color: #111827 !important;
}
/* Hero (2026-11): Highlights link inside the hero, under the buttons,
   same width as the buttons row, white like them. */
html body.home .fr-site-main .fr-hero-hl {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 800px;
    margin: 12px auto 0;
    padding: 10px 12px 10px 10px;
    border: 1px solid #c9d1db;
    background: #fff;
    color: #071b35 !important;
    text-align: left;
    text-decoration: none !important;
    box-sizing: border-box;
}

html body.home .fr-site-main .fr-hero-hl:hover {
    border-color: #071b35;
}

html body.home .fr-site-main .fr-hero-hl-play {
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    width: 38px;
    height: 38px;
    background: #f4b400;
    color: #071b35;
}

html body.home .fr-site-main .fr-hero-hl-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

html body.home .fr-site-main .fr-hero-hl-text small {
    color: #6b7686;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

html body.home .fr-site-main .fr-hero-hl-text strong {
    overflow: hidden;
    color: #071b35;
    font-family: var(--fr-display, 'Saira', 'Inter', sans-serif);
    font-size: 18px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html body.home .fr-site-main .fr-hero-hl-cta {
    flex: 0 0 auto;
    padding: 9px 14px;
    background: #071b35;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 640px) {
    html body.home .fr-site-main .fr-hero-hl-cta {
        display: none;
    }

    html body.home .fr-site-main .fr-hero-hl-text strong {
        font-size: 15px;
        white-space: normal;
    }
}
/* Team of the Matchday banner (2026-11): white with a black border,
   dark text, "See the team" with a rounded black border. */
html body.home .fr-site-main a.fr-mdt-totm {
    border: 0 !important;
    background: #e3e9f0 !important;
    box-shadow: none !important;
}

html body.home .fr-site-main a.fr-mdt-totm .fr-mdt-totm-text small {
    color: #071b35 !important;
}

html body.home .fr-site-main a.fr-mdt-totm .fr-mdt-totm-text strong {
    color: #111827 !important;
}

html body.home .fr-site-main a.fr-mdt-totm .fr-mdt-totm-text i {
    color: #f4b400 !important;
}

html body.home .fr-site-main a.fr-mdt-totm .fr-mdt-totm-text b {
    background: #f4b400 !important;
    color: #071b35 !important;
}

html body.home .fr-site-main a.fr-mdt-totm .fr-mdt-totm-text em {
    color: #5a6676 !important;
}

html body.home .fr-site-main a.fr-mdt-totm .fr-mdt-totm-faces span {
    border-color: #fff !important;
    box-shadow: 0 0 0 1px #dfe4ea;
}

html body.home .fr-site-main a.fr-mdt-totm .fr-mdt-totm-cta {
    border: 2px solid #111827 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #111827 !important;
}

html body.home .fr-site-main a.fr-mdt-totm:hover .fr-mdt-totm-cta {
    background: #111827 !important;
    color: #fff !important;
}
/* Rounded 'See the team' button: beats the home rule that squares every corner (very specific selector) */
html body.home .fr-site-main a.fr-mdt-totm .fr-mdt-totm-cta.fr-mdt-totm-cta.fr-mdt-totm-cta.fr-mdt-totm-cta.fr-mdt-totm-cta.fr-mdt-totm-cta.fr-mdt-totm-cta.fr-mdt-totm-cta.fr-mdt-totm-cta.fr-mdt-totm-cta {
    border-radius: 999px !important;
}

/* Home without black (2026-11): no dark backgrounds left in the page
   body (the green site header and the navy footer stay). Buttons are
   white with a navy outline, active tabs light grey, the Featured
   match and the academy headers light. */
html body.home .fr-site-main a.fr-hero-button.fr-hero-button-primary.fr-hero-button-primary,
html body.home .fr-site-main a.fr-league-overview-more.fr-league-overview-more.fr-league-overview-more,
html body.home .fr-site-main a.fr-player-button.fr-player-button.fr-player-button,
html body.home .fr-site-main a.fr-home-club-button.fr-home-club-button.fr-home-club-button,
html body.home .fr-site-main a.fr-cta-button.fr-cta-button.fr-cta-button,
html body.home .fr-site-main .fr-hero-hl .fr-hero-hl-cta.fr-hero-hl-cta.fr-hero-hl-cta {
    border: 1.5px solid #071b35 !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #071b35 !important;
}

html body.home .fr-site-main a.fr-hero-button.fr-hero-button-primary.fr-hero-button-primary:hover,
html body.home .fr-site-main a.fr-league-overview-more.fr-league-overview-more.fr-league-overview-more:hover,
html body.home .fr-site-main a.fr-player-button.fr-player-button.fr-player-button:hover,
html body.home .fr-site-main a.fr-home-club-button.fr-home-club-button.fr-home-club-button:hover,
html body.home .fr-site-main a.fr-cta-button.fr-cta-button.fr-cta-button:hover,
html body.home .fr-site-main .fr-hero-hl:hover .fr-hero-hl-cta.fr-hero-hl-cta.fr-hero-hl-cta {
    background: #e3e9f0 !important;
}

html body.home .fr-site-main a.fr-hero-button-primary *,
html body.home .fr-site-main a.fr-league-overview-more *,
html body.home .fr-site-main a.fr-player-button *,
html body.home .fr-site-main a.fr-home-club-button *,
html body.home .fr-site-main a.fr-cta-button * {
    color: #071b35 !important;
}

/* Active tab / current matchday */
html body.home .fr-site-main button.fr-tab.is-active.is-active.is-active,
html body.home .fr-site-main .fr-mdt-stepper .is-current.is-current.is-current {
    border-color: #071b35 !important;
    background: #e3e9f0 !important;
    color: #071b35 !important;
}

/* Shirt number on player cards */
html body.home .fr-site-main .fr-shirt-number.fr-shirt-number.fr-shirt-number {
    border: 1.5px solid #071b35 !important;
    background: #fff !important;
    color: #071b35 !important;
}

/* Featured match card */
html body.home .fr-site-main a.fr-home-featured-card.fr-home-featured-card.fr-home-featured-card {
    border: 1px solid #dfe4ea !important;
    background: #f5f7fa !important;
}

html body.home .fr-site-main a.fr-home-featured-card.fr-home-featured-card *:not(img) {
    border-color: #dfe4ea !important;
    background-color: transparent !important;
    color: #071b35 !important;
}

/* Featured video frame */
html body.home .fr-site-main .fr-home-featured-video-frame.fr-home-featured-video-frame {
    background: #e3e9f0 !important;
}

/* Academy card headers */
html body.home .fr-site-main .fr-hac-head.fr-hac-head.fr-hac-head {
    background: #e3e9f0 !important;
}

html body.home .fr-site-main .fr-hac-head.fr-hac-head *:not(img) {
    color: #071b35 !important;
}

/* Thin navy bars (leaders) -> yellow */
html body.home .fr-site-main .fr-mdt-topplayer-bar.fr-mdt-topplayer-bar i,
html body.home .fr-site-main .fr-mdt i[style*="width"] {
    background: #f4b400 !important;
}
/* PATCH-260: home buttons not cut, academies spaced and bordered */
html body.home .fr-site-main a.fr-player-button.fr-player-button.fr-player-button, html body.home .fr-site-main a.fr-home-club-button.fr-home-club-button.fr-home-club-button { border: 0 !important; box-shadow: inset 0 0 0 1.5px #071b35 !important; }
html body.home .fr-site-main .fr-player-card.fr-player-card .fr-player-content.fr-player-content { padding-top: 7px !important; padding-bottom: 7px !important; }
html body.home .fr-site-main .fr-player-card.fr-player-card .fr-player-name.fr-player-name { margin-bottom: 3px !important; }
html body.home .fr-site-main .fr-player-card.fr-player-card .fr-player-stats.fr-player-stats { margin-top: 4px !important; margin-bottom: 4px !important; }
html body.home .fr-site-main .fr-home-academy-grid.fr-home-academy-grid.fr-home-academy-grid { padding: 4px 16px 16px !important; }
html body.home .fr-site-main .fr-hac-card.fr-hac-card.fr-hac-card { border: 1px solid #dfe4ea !important; }
/* PATCH-261: Players + Players Abroad in one row, two columns */
html body.home .fr-site-main .fr-home-players-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; max-width: 1440px; margin: 0 auto; padding: 28px 0; align-items: stretch; }
html body.home .fr-site-main .fr-home-players-duo > .fr-home-section { padding: 0 !important; margin: 0 !important; display: flex; min-width: 0; }
html body.home .fr-site-main .fr-home-players-duo > .fr-home-section > .fr-container { max-width: none !important; width: 100% !important; margin: 0 !important; flex: 1; }
html body.home .fr-site-main .fr-home-players-duo .fr-player-grid.fr-player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; padding: 0 14px 14px !important; }
html body.home .fr-site-main .fr-home-players-duo .fr-tabs-nav { padding: 0 14px !important; }
html body.home .fr-site-main .fr-home-players-duo .fr-home-abroad-grid.fr-home-abroad-grid { display: flex !important; flex-direction: column !important; gap: 10px !important; margin: 0 !important; padding: 0 14px 14px !important; }
html body.home .fr-site-main .fr-home-players-duo a.fr-home-abroad-card.fr-home-abroad-card { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 14px !important; height: auto !important; width: auto !important; padding: 0 14px 0 0 !important; }
html body.home .fr-site-main .fr-home-players-duo .fr-home-abroad-photo.fr-home-abroad-photo { flex: 0 0 80px !important; width: 80px !important; height: 72px !important; overflow: hidden; display: block; }
html body.home .fr-site-main .fr-home-players-duo .fr-home-abroad-photo img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: top center !important; }
html body.home .fr-site-main .fr-home-players-duo .fr-home-abroad-body.fr-home-abroad-body { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 14px; align-items: center; padding: 6px 0 !important; flex: 1; min-width: 0; }
html body.home .fr-site-main .fr-home-players-duo .fr-home-abroad-name,
html body.home .fr-site-main .fr-home-players-duo .fr-home-abroad-position { grid-column: 1; }
html body.home .fr-site-main .fr-home-players-duo .fr-home-abroad-club.fr-home-abroad-club { grid-column: 2; grid-row: 1 / span 2; margin: 0 !important; padding: 0 !important; border: 0 !important; }
@media (max-width: 1100px) {
    html body.home .fr-site-main .fr-home-players-duo { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
    html body.home .fr-site-main .fr-home-players-duo > .fr-home-section { padding: 28px 0 !important; }
}
@media (max-width: 760px) {
    html body.home .fr-site-main .fr-home-players-duo .fr-player-grid.fr-player-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 560px) {
    html body.home .fr-site-main .fr-home-players-duo .fr-home-abroad-body.fr-home-abroad-body { grid-template-columns: minmax(0, 1fr); }
    html body.home .fr-site-main .fr-home-players-duo .fr-home-abroad-club.fr-home-abroad-club { grid-column: 1; grid-row: auto; margin-top: 4px !important; }
}
/* PATCH-262: Clubs + Academies in one row, two columns */
html body.home .fr-site-main .fr-home-clubs-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; max-width: 1440px; margin: 0 auto; padding: 28px 0; align-items: stretch; }
html body.home .fr-site-main .fr-home-clubs-duo > .fr-home-section { padding: 0 !important; margin: 0 !important; display: flex; min-width: 0; }
html body.home .fr-site-main .fr-home-clubs-duo > .fr-home-section > .fr-container { max-width: none !important; width: 100% !important; margin: 0 !important; flex: 1; }
html body.home .fr-site-main .fr-home-clubs-duo .fr-home-club-grid.fr-home-club-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; padding: 0 14px 14px !important; }
html body.home .fr-site-main .fr-home-clubs-duo .fr-tabs-nav { padding: 0 14px !important; }
html body.home .fr-site-main .fr-home-clubs-duo .fr-home-academy-grid.fr-home-academy-grid.fr-home-academy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; padding: 4px 14px 14px !important; }
@media (max-width: 1100px) {
    html body.home .fr-site-main .fr-home-clubs-duo { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
    html body.home .fr-site-main .fr-home-clubs-duo > .fr-home-section { padding: 28px 0 !important; }
}
@media (max-width: 760px) {
    html body.home .fr-site-main .fr-home-clubs-duo .fr-home-club-grid.fr-home-club-grid,
    html body.home .fr-site-main .fr-home-clubs-duo .fr-home-academy-grid.fr-home-academy-grid.fr-home-academy-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
/* PATCH-270: newsletter + "Discover" call to action in one row, two columns */
html body.home .fr-site-main .fr-home-nl-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; width: min(1440px, 100% - 32px); margin: 0 auto; padding: 28px 0; align-items: stretch; }
html body.home .fr-site-main .fr-home-nl-duo > .fr-nl { margin: 0 !important; display: flex; }
html body.home .fr-site-main .fr-home-nl-duo > .fr-nl > .ml-form-embedContainer { flex: 1; display: flex; flex-direction: column; justify-content: center; }
html body.home .fr-site-main .fr-home-nl-duo .fr-nl .fr-nl-inner { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; padding: 24px 28px !important; }
html body.home .fr-site-main .fr-home-nl-duo > .fr-home-cta { padding: 0 !important; margin: 0 !important; display: flex; min-width: 0; }
html body.home .fr-site-main .fr-home-nl-duo > .fr-home-cta > .fr-container { width: 100% !important; max-width: none !important; margin: 0 !important; display: flex; border: 1px solid #dfe4ea; background: #fff; }
html body.home .fr-site-main .fr-home-nl-duo > .fr-home-cta .fr-cta { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 28px !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; }
html body.home .fr-site-main .fr-home-nl-duo > .fr-home-cta .fr-cta-title { font-size: 30px !important; }
@media (max-width: 1100px) {
    html body.home .fr-site-main .fr-home-nl-duo { grid-template-columns: minmax(0, 1fr); }
}
/* PATCH-271: View Player / View Club without dark border, smaller shirt numbers */
html body.home:not(#fr-nb) .fr-site-main a.fr-player-button.fr-player-button.fr-player-button,
html body.home:not(#fr-nb) .fr-site-main a.fr-home-club-button.fr-home-club-button.fr-home-club-button { background: #e3e9f0 !important; border: 0 !important; box-shadow: none !important; color: #071b35 !important; }
html body.home:not(#fr-nb) .fr-site-main a.fr-player-button.fr-player-button.fr-player-button:hover,
html body.home:not(#fr-nb) .fr-site-main a.fr-home-club-button.fr-home-club-button.fr-home-club-button:hover { background: #d3dce7 !important; }
html body.home:not(#fr-nb) .fr-site-main .fr-shirt-number.fr-shirt-number.fr-shirt-number { width: 28px !important; height: 28px !important; min-width: 28px !important; font-size: 12px !important; line-height: 28px !important; top: 8px !important; right: 8px !important; background: #e3e9f0 !important; border: 0 !important; box-shadow: none !important; color: #071b35 !important; }
/* PATCH-272: View Player button only as wide as its text */
html body.home:not(#fr-nb) .fr-site-main a.fr-player-button.fr-player-button.fr-player-button { display: inline-flex !important; width: auto !important; max-width: none !important; align-self: flex-start !important; justify-content: center; padding: 5px 12px !important; }

/* ---- consent.css ---- */
html body .fr-consent{position:fixed;left:16px;right:16px;bottom:16px;z-index:99999;max-width:760px;margin:0 auto;display:flex;gap:20px;align-items:center;justify-content:space-between;padding:18px 20px;background:#06182f;color:#dbe6f1;border-radius:18px;box-shadow:0 12px 40px rgba(6,24,47,.35);font-size:14px;line-height:1.5}
html body .fr-consent[hidden]{display:none}
html body .fr-consent strong{color:#fff;font-size:15px}
html body .fr-consent p{margin:4px 0 0;color:#b7c7d8}
html body .fr-consent a{color:#5fe0cf;font-weight:600}
html body .fr-consent-actions{display:flex;gap:8px;flex-shrink:0}
html body .fr-consent-btn{height:42px;padding:0 18px;border:0;border-radius:999px;background:#0a7f78;color:#fff;font:inherit;font-weight:700;cursor:pointer;white-space:nowrap}
html body .fr-consent-btn:hover{background:#0c968d}
html body .fr-consent-btn.is-ghost{background:transparent;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
html body .fr-consent-btn.is-ghost:hover{background:rgba(255,255,255,.1)}
html body .fr-consent-btn:focus-visible{outline:2px solid #5fe0cf;outline-offset:2px}
@media(max-width:600px){html body .fr-consent{flex-direction:column;align-items:stretch;gap:14px}html body .fr-consent-actions{flex-direction:column}}


/* ---- partners.css ---- */
/* ==========================================================
   Football Rwanda — partner slots (banners, sponsor lines)
   Markup: inc/partners/partners-display.php
   ========================================================== */

html body .fr-partner-slot {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

html body .fr-partner-slot--home_top,
html body .fr-partner-slot--home_mid,
html body .fr-partner-slot--home_bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 28px auto;
}

html body .fr-partner-slot--player {
    grid-column: 1 / -1; /* the player sidebar is a 2-column grid */
    margin: 0;
}

/* ---------- Sponsor line: "Presented by" / "Official partners" ---------- */

html body .fr-sponsor-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    padding: 12px 18px;
    border: 1px solid #e3e9ef;
    border-radius: 14px;
    background: #fff;
}

html body .fr-sponsor-label {
    color: #5b6b7b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

html body .fr-sponsor-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 22px;
}

html body .fr-sponsor-logo {
    display: inline-flex;
    align-items: center;
}

html body .fr-sponsor-logo img {
    display: block;
    width: auto;
    max-width: 140px;
    height: 34px;
    object-fit: contain;
}

html body a.fr-sponsor-logo:hover img {
    opacity: .8;
}

/* ---------- Banner ---------- */

html body .fr-ad {
    position: relative;
    display: block;
}

html body .fr-ad-label {
    display: block;
    margin-bottom: 6px;
    color: #8595a5;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

html body .fr-ad-item {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #eef2f6;
}

html body .fr-ad-item[hidden] {
    display: none;
}

html body .fr-ad-item picture,
html body .fr-ad-item img {
    display: block;
    width: 100%;
    height: auto;
}

html body a.fr-ad-item:focus-visible {
    outline: 3px solid #007863;
    outline-offset: 2px;
}

/* ---------- "Advertise here" tile (empty slot) ---------- */

html body .fr-ad-house {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    padding: 18px 22px;
    border: 1px dashed #b9c6d3;
    border-radius: 14px;
    background: #f5f8fa;
    color: #031826;
    text-decoration: none;
}

html body .fr-ad-house:hover {
    border-color: #007863;
    background: #eef7f5;
}

html body .fr-ad-house-title {
    font-family: var(--fr-display, 'Saira', 'Inter', sans-serif);
    font-size: 18px;
    font-stretch: 87.5%;
    font-weight: 600;
}

html body .fr-ad-house-text {
    flex: 1 1 220px;
    color: #5b6b7b;
    font-size: 14px;
}

html body .fr-ad-house-cta {
    color: #007863;
    font-size: 14px;
    font-weight: 700;
}

html body .fr-partner-slot--player .fr-ad-house {
    flex-direction: column;
    align-items: flex-start;
}

html body .fr-partner-slot--player .fr-ad-house-text {
    flex: 0 0 auto;
}

/* ---------- Sponsored article notice ---------- */

html body .fr-sponsored-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-left: 3px solid #007863;
    border-radius: 0 10px 10px 0;
    background: #eef7f5;
    color: #33465c;
    font-size: 14px;
}

html body .fr-sponsored-note > span {
    color: #031826;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    html body .fr-partner-slot {
        margin: 18px 0;
    }

    html body .fr-ad-item {
        border-radius: 10px;
    }

    html body .fr-sponsor-logo img {
        height: 28px;
    }
}

