:root {
    --fs-sidebar-width: 220px;
}

html, body { min-height: 100%; }
body { font-feature-settings: "cv03", "cv04", "cv11"; }

.fs-main-navbar { min-height: 68px; }
.fs-secondary-navbar { border-bottom: 1px solid var(--tblr-border-color); background: var(--tblr-bg-surface); }
.fs-secondary-navbar .navbar { min-height: 48px; }
.fs-brand { min-width: 235px; display: inline-flex; align-items: center; gap: .65rem; }
.fs-brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 50px;
    flex: 0 0 50px;
    overflow: hidden;
    border-radius: var(--tblr-border-radius-lg);
    background: #fff;
    padding: 2px;
}
.fs-brand-logo { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.fs-brand-text { font-size: 1rem; font-weight: 500; letter-spacing: -.01em; }
.fs-header-search { width: 260px; }
.fs-theme-option svg { width: 18px; height: 18px; }

.fs-sidebar-stack { position: sticky; top: 132px; }
.fs-league-sidebar { overflow: hidden; }
.fs-league-sidebar .card-header { min-height: auto; }
.fs-league-link { display: flex; align-items: center; min-width: 0; padding-top: .6rem; padding-bottom: .6rem; }
.fs-league-link .avatar img { object-fit: contain; max-width: 100%; max-height: 100%; }

.min-width-0 { min-width: 0; }

.fs-date-nav .btn { min-width: 92px; }
.fs-date-nav .btn.active { pointer-events: none; }

.fs-fixture-group { overflow: hidden; }
.fs-fixture-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px minmax(0, 1fr) 28px;
    align-items: center;
    gap: .75rem;
    min-height: 58px;
}
.fs-fixture-team { display: flex; align-items: center; min-width: 0; font-weight: 500; }
.fs-fixture-team-home { justify-content: flex-end; text-align: right; }
.fs-fixture-team-away { justify-content: flex-start; text-align: left; }
.fs-fixture-score { font-variant-numeric: tabular-nums; }
.fs-score-badge { min-width: 52px; font-size: .9rem; }
.fs-fixture-arrow svg { width: 18px; height: 18px; }

.fs-stat-card .avatar { width: 48px; height: 48px; }
.fs-league-card-logo { width: 52px; height: 52px; object-fit: contain; }
.fs-team-logo-lg { width: 76px; height: 76px; object-fit: contain; }
.fs-team-logo-md { width: 40px; height: 40px; object-fit: contain; }

.fs-match-hero .fs-team-block { min-width: 0; }
.fs-match-hero .fs-match-score { font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.fs-match-hero .fs-kickoff { font-size: 1.125rem; font-weight: 600; }

.fs-stat-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr); align-items: center; gap: 1rem; padding: .625rem 0; border-bottom: 1px solid var(--tblr-border-color); }
.fs-stat-row:last-child { border-bottom: 0; }
.fs-stat-home { text-align: right; font-weight: 600; }
.fs-stat-away { text-align: left; font-weight: 600; }
.fs-stat-name { text-align: center; color: var(--tblr-secondary); font-size: .875rem; }

.fs-event-row { display: grid; grid-template-columns: 64px 1fr; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--tblr-border-color); }
.fs-event-row:last-child { border-bottom: 0; }

.fs-form-strip { display: flex; gap: .25rem; flex-wrap: wrap; }
.fs-form-dot { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: .7rem; font-weight: 700; }
.fs-form-W { background: var(--tblr-success-lt); color: var(--tblr-success); }
.fs-form-D { background: var(--tblr-warning-lt); color: var(--tblr-warning); }
.fs-form-L { background: var(--tblr-danger-lt); color: var(--tblr-danger); }

.fs-blog-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--tblr-bg-surface-secondary); }
.fs-blog-article img { max-width: 100%; height: auto; border-radius: var(--tblr-border-radius-lg); }
.fs-blog-article { font-size: 1.05rem; line-height: 1.75; }
.fs-blog-article h2, .fs-blog-article h3 { margin-top: 2rem; }

.fs-country-section + .fs-country-section { margin-top: 1rem; }

@media (max-width: 991.98px) {
    .fs-brand { min-width: 0; }
    .fs-brand-logo-wrap { width: 46px; height: 46px; flex-basis: 46px; }
}

@media (max-width: 767.98px) {
    .fs-main-navbar { min-height: 60px; }
    .fs-brand-logo-wrap { width: 42px; height: 42px; flex-basis: 42px; }
    .fs-fixture-row {
        grid-template-columns: 54px minmax(0, 1fr) 54px 20px;
        gap: .5rem;
    }
    .fs-fixture-team-home { justify-content: flex-start; text-align: left; grid-column: 2; grid-row: 1; }
    .fs-fixture-team-away { justify-content: flex-start; text-align: left; grid-column: 2; grid-row: 2; }
    .fs-fixture-team-home .avatar { order: -1; margin-left: 0 !important; margin-right: .5rem; }
    .fs-fixture-time { grid-column: 1; grid-row: 1 / span 2; }
    .fs-fixture-score { grid-column: 3; grid-row: 1 / span 2; }
    .fs-fixture-arrow { grid-column: 4; grid-row: 1 / span 2; }
    .fs-stat-row { grid-template-columns: 1fr 110px 1fr; gap: .5rem; }
    .fs-date-nav { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .25rem; }
    .fs-date-nav .btn { flex: 0 0 auto; }
}


/* STEP 06.1 navigation polish */
.fs-sticky-header {
    position: sticky;
    top: 0;
    z-index: 1035;
    background: var(--tblr-bg-surface);
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.fs-country-sidebar { overflow: hidden; }
.fs-country-list { max-height: min(52vh, 520px); overflow-y: auto; scrollbar-width: thin; }
.fs-country-list-mobile { max-height: 42vh; }
.fs-country-link { display: flex; align-items: center; min-width: 0; padding-top: .52rem; padding-bottom: .52rem; }
.fs-country-flag { width: 24px; height: 18px; flex: 0 0 24px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 2px; }
.fs-country-flag img { width: 100%; height: 100%; object-fit: contain; }
.fs-country-flag svg { width: 18px; height: 18px; }
.fs-country-card-link:hover { background: var(--tblr-bg-surface-secondary); }
.fs-country-leagues-table .avatar img { object-fit: contain; }

.fs-back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1040;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    box-shadow: 0 .35rem 1rem rgba(0,0,0,.2);
}
.fs-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Match events */
.fs-event-row {
    grid-template-columns: 58px 42px minmax(0,1fr);
    align-items: center;
    gap: .75rem;
}
.fs-event-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tblr-bg-surface-secondary);
    color: var(--tblr-secondary);
}
.fs-event-icon .icon { width: 20px; height: 20px; }
.fs-event-icon.event-goal { background: var(--tblr-success-lt); color: var(--tblr-success); }
.fs-event-icon.event-own-goal, .fs-event-icon.event-missed { background: var(--tblr-danger-lt); color: var(--tblr-danger); }
.fs-event-icon.event-substitution { background: var(--tblr-cyan-lt, rgba(6,182,212,.12)); color: var(--tblr-cyan, #06b6d4); }
.fs-event-icon.event-var { background: var(--tblr-purple-lt, rgba(139,92,246,.12)); color: var(--tblr-purple, #8b5cf6); }
.fs-event-icon.event-yellow-card { background: rgba(245, 183, 0, .15); }
.fs-event-icon.event-red-card { background: var(--tblr-danger-lt); }
.fs-card-icon { display:block; width: 13px; height: 19px; border-radius: 2px; background: #f4c430; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.event-red-card .fs-card-icon { background: #d63939; }
.fs-event-team { font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; }

/* Stronger visual comparison for match statistics */
.fs-stat-row { padding: .75rem 0; }
.fs-stat-value { display: inline-flex; min-width: 62px; justify-content: center; padding: .3rem .55rem; border-radius: .45rem; font-weight: 700; }
.fs-stat-value.is-better { background: var(--tblr-success-lt); color: var(--tblr-success); }
.fs-stat-value.is-worse { background: var(--tblr-danger-lt); color: var(--tblr-danger); }
.fs-stat-value.is-equal { background: var(--tblr-primary-lt); color: var(--tblr-primary); }
.fs-stat-value.is-neutral { background: var(--tblr-bg-surface-secondary); color: var(--tblr-body-color); }
.fs-stat-home .fs-stat-value { margin-left: auto; }
.fs-stat-away .fs-stat-value { margin-right: auto; }
.fs-stat-compare { grid-column: 1 / -1; display: flex; height: 4px; border-radius: 4px; overflow: hidden; margin-top: -.25rem; background: var(--tblr-bg-surface-secondary); }
.fs-stat-compare-home { background: var(--tblr-primary); opacity: .85; }
.fs-stat-compare-away { background: var(--tblr-cyan, #06b6d4); opacity: .85; }

/* Lineups */
.fs-lineup-card { height: 100%; }
.fs-lineup-header { display:flex; align-items:center; gap:.75rem; margin-bottom: 1rem; }
.fs-lineup-section-title { display:flex; align-items:center; gap:.5rem; margin: 1rem 0 .5rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tblr-secondary); font-weight: 700; }
.fs-lineup-section-title::after { content:""; height:1px; background:var(--tblr-border-color); flex:1; }
.fs-lineup-player { min-height: 48px; }
.fs-lineup-player .fs-player-number { width: 34px; flex: 0 0 34px; text-align:center; }
.fs-position-badge { min-width: 30px; text-align:center; }

@media (max-width: 991.98px) {
    .fs-sidebar-stack { position: static; }
}
@media (max-width: 767.98px) {
    .fs-back-to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
    .fs-event-row { grid-template-columns: 50px 36px minmax(0,1fr); gap:.5rem; }
    .fs-stat-row { grid-template-columns: 1fr 105px 1fr; }
}


/* STEP 06.2 — stronger dark-theme contrast */
html[data-bs-theme="dark"] body {
    color: #fff;
}
html[data-bs-theme="dark"] .text-secondary,
html[data-bs-theme="dark"] .text-muted,
html[data-bs-theme="dark"] .form-hint,
html[data-bs-theme="dark"] .breadcrumb-item.active,
html[data-bs-theme="dark"] .fs-stat-name,
html[data-bs-theme="dark"] .fs-lineup-section-title,
html[data-bs-theme="dark"] .fs-event-team {
    color: #f8fafc !important;
    opacity: 1 !important;
}
html[data-bs-theme="dark"] .form-control::placeholder {
    color: #f8fafc !important;
    opacity: .88;
}
html[data-bs-theme="dark"] .nav-link:not(.active),
html[data-bs-theme="dark"] .card-title,
html[data-bs-theme="dark"] .list-group-item {
    color: #fff;
}

/* All enabled competitions stay available in the left navigation.
   The list itself scrolls so the page layout remains compact. */
.fs-league-list {
    max-height: 46vh;
    overflow-y: auto;
    scrollbar-width: thin;
}
.fs-league-list-mobile {
    max-height: 42vh;
    overflow-y: auto;
    scrollbar-width: thin;
}
.fs-league-logo {
    flex: 0 0 auto;
}
.fs-league-country-flag {
    width: 20px;
    height: 14px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(98,105,118,.16);
}
.fs-league-country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fs-league-country-fallback .icon {
    width: 15px;
    height: 15px;
}
.fs-country-sidebar .fs-country-list {
    max-height: 30vh;
}

/* Clickable form / recent-match markers */
a.fs-form-dot {
    color: inherit;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
a.fs-form-dot:hover {
    transform: translateY(-1px) scale(1.08);
    filter: brightness(1.08);
    box-shadow: 0 3px 9px rgba(0,0,0,.16);
}
a.fs-form-dot:focus-visible {
    outline: 2px solid var(--tblr-primary);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .fs-league-list-mobile { max-height: 45vh; }
}


/* STEP 06.2.1 — compact sidebar flags + explicit scroll areas */
.fs-sidebar-stack {
    max-height: calc(100vh - 148px);
}

/* Keep the long enabled-competition list inside the card instead of letting
   200+ rows determine the page height. */
.fs-league-list {
    max-height: min(44vh, 430px);
    overflow-y: scroll;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(98, 105, 118, .55) transparent;
}
.fs-country-sidebar .fs-country-list {
    max-height: min(27vh, 285px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(98, 105, 118, .55) transparent;
}
.fs-league-list::-webkit-scrollbar,
.fs-country-sidebar .fs-country-list::-webkit-scrollbar,
.fs-league-list-mobile::-webkit-scrollbar,
.fs-country-list-mobile::-webkit-scrollbar {
    width: 7px;
}
.fs-league-list::-webkit-scrollbar-track,
.fs-country-sidebar .fs-country-list::-webkit-scrollbar-track,
.fs-league-list-mobile::-webkit-scrollbar-track,
.fs-country-list-mobile::-webkit-scrollbar-track {
    background: transparent;
}
.fs-league-list::-webkit-scrollbar-thumb,
.fs-country-sidebar .fs-country-list::-webkit-scrollbar-thumb,
.fs-league-list-mobile::-webkit-scrollbar-thumb,
.fs-country-list-mobile::-webkit-scrollbar-thumb {
    background: rgba(98, 105, 118, .45);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.fs-league-list::-webkit-scrollbar-thumb:hover,
.fs-country-sidebar .fs-country-list::-webkit-scrollbar-thumb:hover,
.fs-league-list-mobile::-webkit-scrollbar-thumb:hover,
.fs-country-list-mobile::-webkit-scrollbar-thumb:hover {
    background: rgba(98, 105, 118, .75);
    background-clip: padding-box;
}

/* Remote/local flag files have very different intrinsic dimensions. Force
   every flag into the same small frame so an SVG/PNG can never expand a row. */
.fs-league-country-flag {
    width: 18px !important;
    height: 12px !important;
    min-width: 18px !important;
    min-height: 12px !important;
    max-width: 18px !important;
    max-height: 12px !important;
    flex: 0 0 18px !important;
    line-height: 12px;
    overflow: hidden !important;
    border-radius: 2px;
}
.fs-league-country-flag img,
.fs-league-link .fs-league-country-flag img {
    display: block !important;
    width: 18px !important;
    height: 12px !important;
    min-width: 18px !important;
    min-height: 12px !important;
    max-width: 18px !important;
    max-height: 12px !important;
    object-fit: cover !important;
    object-position: center !important;
}
.fs-country-flag {
    width: 22px !important;
    height: 15px !important;
    min-width: 22px !important;
    min-height: 15px !important;
    max-width: 22px !important;
    max-height: 15px !important;
    flex: 0 0 22px !important;
    line-height: 15px;
    overflow: hidden !important;
}
.fs-country-flag img,
.fs-country-link .fs-country-flag img {
    display: block !important;
    width: 22px !important;
    height: 15px !important;
    min-width: 22px !important;
    min-height: 15px !important;
    max-width: 22px !important;
    max-height: 15px !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Also keep competition logos compact and aligned with flags. */
.fs-league-link .fs-league-logo {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    flex: 0 0 24px !important;
}
.fs-league-link .fs-league-logo img {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    object-fit: contain !important;
}
.fs-league-link {
    min-height: 43px;
    padding-top: .45rem;
    padding-bottom: .45rem;
}

html[data-bs-theme="dark"] .fs-league-list,
html[data-bs-theme="dark"] .fs-country-sidebar .fs-country-list {
    scrollbar-color: rgba(255, 255, 255, .38) transparent;
}
html[data-bs-theme="dark"] .fs-league-list::-webkit-scrollbar-thumb,
html[data-bs-theme="dark"] .fs-country-sidebar .fs-country-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .34);
    background-clip: padding-box;
}

@media (max-width: 991.98px) {
    .fs-sidebar-stack { max-height: none; }
    .fs-league-list-mobile {
        max-height: 46vh;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-gutter: stable;
    }
    .fs-country-list-mobile {
        max-height: 34vh;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-gutter: stable;
    }
}

/* STEP 06.2.2 — country-first competition navigator */
.fs-sidebar-stack {
    top: 124px;
    max-height: calc(100vh - 138px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}
.fs-sidebar-stack .fs-sidebar-card {
    min-height: 0;
    overflow: hidden;
}
.fs-sidebar-domestic {
    flex: 1 1 auto;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}
.fs-sidebar-domestic .fs-domestic-country-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: scroll;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
.fs-international-sidebar {
    flex: 0 0 auto;
    max-height: min(34vh, 330px);
    display: flex;
    flex-direction: column;
}
.fs-international-list {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}
.fs-country-link,
.fs-international-link {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: .62rem .72rem;
    font-size: .925rem;
}
.fs-country-link.active,
.fs-international-link.active {
    font-weight: 600;
}
.fs-international-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tblr-primary);
}
.fs-international-icon .icon {
    width: 20px;
    height: 20px;
}
.fs-country-flag-lg {
    width: 32px;
    height: 22px;
    flex-basis: 32px;
}

/* Slightly larger, easier-to-grab vertical scrollbars for both sidebar areas. */
.fs-domestic-country-list::-webkit-scrollbar,
.fs-international-list::-webkit-scrollbar,
.fs-domestic-country-list-mobile::-webkit-scrollbar,
.fs-international-list-mobile::-webkit-scrollbar {
    width: 9px;
}
.fs-domestic-country-list::-webkit-scrollbar-thumb,
.fs-international-list::-webkit-scrollbar-thumb,
.fs-domestic-country-list-mobile::-webkit-scrollbar-thumb,
.fs-international-list-mobile::-webkit-scrollbar-thumb {
    background: rgba(98, 105, 118, .58);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.fs-domestic-country-list::-webkit-scrollbar-thumb:hover,
.fs-international-list::-webkit-scrollbar-thumb:hover,
.fs-domestic-country-list-mobile::-webkit-scrollbar-thumb:hover,
.fs-international-list-mobile::-webkit-scrollbar-thumb:hover {
    background: rgba(98, 105, 118, .82);
    background-clip: padding-box;
}
.fs-domestic-country-list,
.fs-international-list,
.fs-domestic-country-list-mobile,
.fs-international-list-mobile {
    scrollbar-width: auto;
    scrollbar-color: rgba(98, 105, 118, .58) transparent;
}
.fs-domestic-country-list-mobile {
    max-height: 52vh;
    overflow-y: auto;
}
.fs-international-list-mobile {
    max-height: 32vh;
    overflow-y: auto;
}

@media (max-width: 991.98px) {
    .fs-sidebar-stack {
        max-height: none;
        display: block;
        overflow: visible;
    }
}


/* STEP 06.2.3 — taller desktop navigator + fixture dates */
@media (min-width: 992px) {
    .fs-sidebar-stack {
        top: 114px;
        max-height: calc(100vh - 122px);
        min-height: min(720px, calc(100vh - 122px));
    }

    .fs-sidebar-domestic {
        flex: 1.15 1 0;
        min-height: 0;
    }

    .fs-international-sidebar {
        flex: .85 1 0;
        min-height: 0;
        max-height: none;
    }

    .fs-international-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: scroll;
    }
}

.fs-fixture-date {
    font-size: .72rem;
    line-height: 1.15;
    font-weight: 600;
    white-space: nowrap;
    color: var(--tblr-secondary-color, var(--tblr-secondary));
    margin-bottom: .15rem;
}

.fs-fixture-status-time {
    line-height: 1.15;
    white-space: nowrap;
}

html[data-bs-theme="dark"] .fs-fixture-date {
    color: rgba(255,255,255,.82);
}

/* STEP 06.3 — rich league/team/match analytics */
.fs-kpi-card .fs-kpi-value {
    font-size: 1.55rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.02em;
}
.fs-kpi-card .fs-kpi-label {
    margin-top: .35rem;
    font-size: .78rem;
    color: var(--tblr-secondary-color, var(--tblr-secondary));
}
.fs-goal-profile-card .card-body { padding-top: 1rem; }
.fs-goal-profile-summary .fs-mini-stat {
    height: 100%;
    padding: .8rem .9rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
    background: var(--tblr-bg-surface-secondary, rgba(98,105,118,.035));
}
.fs-mini-stat-value { font-size: 1.25rem; font-weight: 700; line-height: 1.1; }
.fs-mini-stat-label { margin-top: .3rem; font-size: .75rem; color: var(--tblr-secondary-color, var(--tblr-secondary)); }
.fs-trend-section-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--tblr-secondary-color, var(--tblr-secondary));
    margin-bottom: .4rem;
}
.fs-trend-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 42px;
    padding: .48rem 0;
    border-bottom: 1px solid var(--tblr-border-color);
}
.fs-trend-row:last-child { border-bottom: 0; }
.fs-form-panel .fs-form-strip { gap: .4rem; }
.fs-form-panel .fs-form-dot { width: 31px; height: 31px; font-size: .75rem; }
.fs-standing-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 .55rem;
    border-radius: 999px;
    font-weight: 800;
    background: var(--tblr-primary-lt, rgba(32,107,196,.12));
    color: var(--tblr-primary);
}
.fs-h2h-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    padding: .72rem 0;
    border-bottom: 1px solid var(--tblr-border-color);
}
.fs-h2h-row:last-child { border-bottom: 0; }
.fs-h2h-score {
    min-width: 52px;
    text-align: center;
    font-weight: 800;
    border-radius: .4rem;
    padding: .32rem .45rem;
    background: var(--tblr-bg-surface-secondary, rgba(98,105,118,.08));
}
.fs-h2h-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: .75rem;
}
.fs-h2h-summary > div {
    text-align: center;
    padding: .75rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
}
.fs-match-team-trends .fs-vs-stat {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    gap: .75rem;
    align-items: center;
    padding: .55rem 0;
    border-bottom: 1px solid var(--tblr-border-color);
}
.fs-match-team-trends .fs-vs-stat:last-child { border-bottom: 0; }
.fs-match-team-trends .fs-vs-stat-label { text-align: center; color: var(--tblr-secondary-color, var(--tblr-secondary)); font-size: .8rem; }
.fs-match-team-trends .fs-vs-stat-home { text-align: right; }
.fs-match-team-trends .fs-vs-stat-away { text-align: left; }
html[data-bs-theme="dark"] .fs-mini-stat-label,
html[data-bs-theme="dark"] .fs-trend-section-title,
html[data-bs-theme="dark"] .fs-match-team-trends .fs-vs-stat-label {
    color: rgba(255,255,255,.82) !important;
}
@media (max-width: 767.98px) {
    .fs-h2h-row { grid-template-columns: 72px minmax(0,1fr) auto; gap: .5rem; }
    .fs-match-team-trends .fs-vs-stat { grid-template-columns: 1fr 88px 1fr; gap: .45rem; }
}

/* STEP 06.3.1 — current-season 83-tip analytics */
.fs-tip-analytics-card .accordion-button {
    min-height: 48px;
    font-weight: 600;
}
.fs-tip-table th {
    white-space: nowrap;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .035em;
}
.fs-tip-table td {
    vertical-align: middle;
}
.fs-tip-table td:first-child {
    min-width: 240px;
    max-width: 380px;
}
.fs-tip-description {
    max-width: 520px;
}
html[data-bs-theme="dark"] .fs-tip-table .text-secondary,
html[data-bs-theme="dark"] .fs-tip-analytics-card .text-secondary {
    color: rgba(255,255,255,.86) !important;
}
@media (max-width: 767.98px) {
    .fs-tip-table td:first-child {
        min-width: 210px;
    }
    .fs-tip-table {
        font-size: .82rem;
    }
}

/* STEP 06.3.3 — date browser, mobile standings, stage-safe form, goal combinations */
.fs-date-browser .form-control[type="date"] {
    min-height: 40px;
}
.fs-date-browser .fs-date-nav {
    flex-wrap: wrap;
}

.fs-standing-group-row td {
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fs-mobile-standings {
    width: 100%;
}
.fs-mobile-standing-group {
    padding: .65rem .85rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .045em;
    color: var(--tblr-secondary-color, var(--tblr-secondary));
    background: var(--tblr-bg-surface-secondary, rgba(98,105,118,.045));
    border-bottom: 1px solid var(--tblr-border-color);
}
.fs-mobile-standing-row {
    padding: .78rem .85rem;
    border-bottom: 1px solid var(--tblr-border-color);
}
.fs-mobile-standing-row:last-child { border-bottom: 0; }
.fs-mobile-standing-main {
    display: grid;
    grid-template-columns: 32px minmax(0,1fr) 42px 48px;
    gap: .5rem;
    align-items: center;
}
.fs-mobile-rank {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: .75rem;
    font-weight: 800;
    background: var(--tblr-primary-lt, rgba(32,107,196,.12));
    color: var(--tblr-primary);
}
.fs-mobile-team {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
}
.fs-mobile-primary-stat {
    text-align: center;
    line-height: 1.05;
}
.fs-mobile-primary-stat span,
.fs-mobile-standing-stats span {
    display: block;
    font-size: .62rem;
    text-transform: uppercase;
    color: var(--tblr-secondary-color, var(--tblr-secondary));
}
.fs-mobile-primary-stat strong { font-size: .92rem; }
.fs-mobile-standing-stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: .4rem;
    margin-top: .72rem;
    padding: .5rem .6rem;
    border-radius: var(--tblr-border-radius);
    background: var(--tblr-bg-surface-secondary, rgba(98,105,118,.045));
}
.fs-mobile-standing-stats > div { text-align: center; }
.fs-mobile-standing-stats strong { font-size: .86rem; }
.fs-mobile-standing-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: .7rem;
    min-width: 0;
}
.fs-mobile-standing-form .fs-form-strip {
    flex-wrap: nowrap;
    gap: .3rem;
}
.fs-mobile-standing-form .fs-form-dot {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
}

.fs-goal-combo-card .accordion-button {
    min-height: 48px;
    font-weight: 650;
}
.fs-goal-combo-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
}
.fs-goal-combo-item {
    min-width: 0;
    padding: .8rem .9rem;
    border-right: 1px solid var(--tblr-border-color);
    border-bottom: 1px solid var(--tblr-border-color);
}
.fs-goal-combo-item:nth-child(3n) { border-right: 0; }
.fs-goal-combo-label {
    font-size: .82rem;
    font-weight: 650;
    margin-bottom: .45rem;
}
.fs-goal-combo-numbers {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .4rem;
}
.fs-goal-combo-numbers strong { font-size: .92rem; }
.fs-goal-combo-numbers span { font-size: .8rem; color: var(--tblr-secondary-color, var(--tblr-secondary)); }

html[data-bs-theme="dark"] .fs-mobile-primary-stat span,
html[data-bs-theme="dark"] .fs-mobile-standing-stats span,
html[data-bs-theme="dark"] .fs-mobile-standing-group,
html[data-bs-theme="dark"] .fs-goal-combo-numbers span,
html[data-bs-theme="dark"] .fs-date-browser .text-secondary {
    color: rgba(255,255,255,.86) !important;
}

@media (max-width: 991.98px) {
    .fs-goal-combo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .fs-goal-combo-item:nth-child(3n) { border-right: 1px solid var(--tblr-border-color); }
    .fs-goal-combo-item:nth-child(2n) { border-right: 0; }
}
@media (max-width: 575.98px) {
    .fs-date-browser .card-body { padding-left: .75rem; padding-right: .75rem; }
    .fs-date-browser .fs-date-picker-form { width: 100%; }
    .fs-date-browser .fs-date-picker-form .form-control { min-width: 0; }
    .fs-date-browser .fs-date-nav { width: 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .4rem; }
    .fs-date-browser .fs-date-nav .btn { margin: 0; padding-left: .45rem; padding-right: .45rem; font-size: .75rem; }
    .fs-goal-combo-grid { grid-template-columns: 1fr; }
    .fs-goal-combo-item,
    .fs-goal-combo-item:nth-child(2n),
    .fs-goal-combo-item:nth-child(3n) { border-right: 0; }
}

/* STEP 06.4 — Blog upgrade */
.fs-blog-taxonomy-card .badge,
.fs-blog-post-card .badge {
    font-size: .78rem;
    font-weight: 600;
}

.fs-blog-taxonomy-badge,
.fs-blog-tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .6rem;
    text-decoration: none;
    border: 1px solid var(--tblr-border-color);
}

.fs-blog-taxonomy-badge span,
.fs-blog-tag span {
    opacity: .75;
    font-weight: 500;
}

.fs-blog-card {
    overflow: hidden;
}

.fs-blog-card-img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.fs-blog-excerpt,
.fs-related-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fs-blog-excerpt { -webkit-line-clamp: 3; }
.fs-related-excerpt { -webkit-line-clamp: 2; }

.fs-blog-hero {
    max-height: 620px;
    object-fit: cover;
}

.fs-related-blog-img {
    min-height: 150px;
    object-fit: cover;
}

.fs-blog-article {
    font-size: 1.04rem;
    line-height: 1.78;
}

.fs-blog-article h2,
.fs-blog-article h3,
.fs-blog-article h4 {
    margin-top: 1.7em;
    margin-bottom: .65em;
}

.fs-blog-article img {
    max-width: 100%;
    height: auto;
    border-radius: var(--tblr-border-radius-lg);
}

.fs-blog-article table {
    width: 100%;
    margin: 1.25rem 0;
}

.fs-comment-list {
    display: grid;
    gap: 1rem;
}

.fs-comment-item {
    padding: 1rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg);
    background: var(--tblr-bg-surface-secondary);
}

.fs-comment-text {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.65;
}

.fs-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 767.98px) {
    .fs-blog-post-card .card-body {
        padding: 1.1rem !important;
    }
    .fs-blog-post-title {
        font-size: 2rem;
        line-height: 1.15;
    }
    .fs-blog-taxonomy-card .card-body {
        overflow-x: auto;
    }
}
