/* ======================================================
   VnScores WordPress Theme - Main Stylesheet
   FlashScore-inspired dark theme
   ====================================================== */

/* === NUCLEAR WIDTH OVERRIDE — defeats WP block CSS === */
html, body { width: 100% !important; max-width: none !important; margin: 0 !important; }
#fs-main { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.fs-league-page, .fs-match-page, .fs-team-page, .fs-player-page,
.fs-page-container, .fs-page-wrap { max-width: none !important; }

/* === NUCLEAR NO-UNDERLINE — kills ALL underlines site-wide === */
a, a:hover, a:focus, a:active, a:visited,
button, .fs-sb-item, .fs-match-row, .fs-fixture-row,
.fs-sub-nav-item, .fs-sec-item, .fs-tab,
.fs-hot-list a, .fs-wg-lg-item, .fs-league-name,
.fs-breadcrumb a, .fs-footer a, .fs-seo-leagues a,
.fs-link-tag, .fs-lg-link, .fs-round-btn {
    text-decoration: none !important;
}

/* Google Fonts loaded via <link preload> in header.php for better performance */

/* === CSS VARIABLES — FlashScore-inspired rich palette === */
:root {
    --fs-primary: #00a83f;
    --fs-primary-bright: #1ecb5e;
    --fs-accent: #e74040;
    --fs-accent-bright: #ff4d4d;
    --fs-yellow: #f5a623;
    --fs-blue: #3399ff;
    --fs-bg-dark: #0a0e14;
    --fs-bg-main: #0d1117;
    --fs-bg-card: #161b26;
    --fs-bg-header: #1c2230;
    --fs-bg-league: #1a1f2b;
    --fs-bg-match: #141924;
    --fs-bg-hover: #1e2536;
    --fs-bg-sidebar: #0f1319;
    --fs-border: #1e2737;
    --fs-border-subtle: rgba(255,255,255,.04);
    --fs-text: #e8eaed;
    --fs-text-sec: #8b95a5;
    --fs-text-muted: #5a6577;
    --fs-nav-bg: #0b0f15;
    --fs-radius: 4px;
}

/* === BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; background: #0a0e14; }
body { font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif; background: #0a0e14; background: var(--fs-bg-dark); color: var(--fs-text); min-height: 100vh; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ============================================================
   SPORT NAV BAR
   ============================================================ */
.fs-sport-nav { background: var(--fs-nav-bg); border-bottom: 1px solid var(--fs-border); }
.fs-sport-nav-inner { width: 100%; padding: 0 24px; box-sizing: border-box; display: flex; overflow-x: auto; scrollbar-width: none; }
.fs-sport-nav-inner::-webkit-scrollbar { display: none; }
.fs-sport-item { display: flex; flex-direction: column; align-items: center; padding: 8px 14px; font-size: 12px; color: var(--fs-text-sec); cursor: pointer; border-bottom: 2px solid transparent; transition: all .2s; flex-shrink: 0; }
.fs-sport-item:hover { color: var(--fs-text); }
.fs-sport-item.active { color: #1ecb5e; border-bottom-color: #00a83f; }
.fs-sport-item.disabled { opacity: 0.5; cursor: default; }
.fs-sport-item.disabled:hover { color: var(--fs-text-sec); }
.fs-sport-icon { font-size: 16px; margin-bottom: 2px; }

/* ============================================================
   DATE BAR
   ============================================================ */
.fs-date-bar { background: var(--fs-bg-card); border-bottom: 1px solid var(--fs-border); }
.fs-date-bar-inner { display: flex; overflow-x: auto; scrollbar-width: none; }
.fs-date-bar-inner::-webkit-scrollbar { display: none; }
.fs-date-item { padding: 8px 14px; font-size: 13px; color: var(--fs-text-sec); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; flex-shrink: 0; text-align: center; transition: all .2s; }
.fs-date-item:hover { color: var(--fs-text); }
.fs-date-item.active { color: #1ecb5e; border-bottom-color: #00a83f; }
.fs-date-item .day { font-size: 11px; display: block; color: var(--fs-text-muted); }
.fs-date-item.active .day { color: #1ecb5e; }

/* ============================================================
   SECONDARY NAV
   ============================================================ */
.fs-secondary-nav { background: var(--fs-bg-card); border-bottom: 1px solid var(--fs-border); }
.fs-secondary-nav-inner { width: 100%; padding: 0 24px; box-sizing: border-box; display: flex; overflow-x: auto; scrollbar-width: none; }
.fs-secondary-nav-inner::-webkit-scrollbar { display: none; }
.fs-sec-item { padding: 10px 16px; font-size: 13px; color: var(--fs-text-sec); white-space: nowrap; flex-shrink: 0; border-bottom: 2px solid transparent; transition: all .2s; }
.fs-sec-item:hover { color: var(--fs-text); }
.fs-sec-item.active { color: #1ecb5e; border-bottom-color: #00a83f; font-weight: 500; }

/* ============================================================
   HOMEPAGE 3-COLUMN LAYOUT — FlashScore Style
   ============================================================ */
.fs-home-wrap { width: 100%; padding: 0; box-sizing: border-box; display: grid; grid-template-columns: 210px 1fr 260px; gap: 0; min-height: calc(100vh - 120px); }

/* LEFT SIDEBAR — Tree Navigation */
.fs-sidebar-l { background: var(--fs-bg-sidebar); border-right: 1px solid var(--fs-border); overflow-y: auto; max-height: calc(100vh - 48px); position: sticky; top: 48px; scrollbar-width: thin; scrollbar-color: var(--fs-border) transparent; }
.fs-sidebar-l::-webkit-scrollbar { width: 3px; }
.fs-sidebar-l::-webkit-scrollbar-thumb { background: var(--fs-border); border-radius: 4px; }

/* Sidebar group */
.fs-sb-group { border-bottom: 1px solid var(--fs-border); padding: 4px 0; }
.fs-sb-group-title { padding: 8px 12px 3px; font-size: 10px; font-weight: 700; color: var(--fs-text-muted); letter-spacing: .8px; text-transform: uppercase; }
.fs-sb-bottom { background: rgba(255,255,255,.02); }

/* Sidebar item */
.fs-sb-item { display: flex; align-items: center; gap: 7px; padding: 6px 12px; font-size: 12px; color: var(--fs-text-sec); cursor: pointer; transition: background .12s, color .12s; text-decoration: none; border: none; background: none; width: 100%; text-align: left; font-family: inherit; line-height: 1.3; }
.fs-sb-item:hover { background: var(--fs-bg-hover); color: var(--fs-text); }
.fs-sb-item.active { background: rgba(0,168,63,0.15); color: #1ecb5e; font-weight: 500; border-left: 3px solid #00a83f; padding-left: 9px; }
.fs-sb-ico { font-size: 13px; width: 20px; text-align: center; flex-shrink: 0; }
.fs-sb-fav { font-weight: 500; }

/* Country code flag badge */
.fs-sb-flag { font-size: 10px; font-weight: 700; font-family: 'Roboto Condensed', monospace; color: var(--fs-text-muted); background: rgba(255,255,255,.06); border-radius: 2px; padding: 1px 0; line-height: 14px; width: 22px; height: 14px; display: inline-flex; align-items: center; justify-content: center; letter-spacing: .3px; }

/* Expandable country group */
.fs-sb-country { position: relative; }
.fs-sb-country-btn { display: flex; align-items: center; gap: 7px; padding: 6px 12px; font-size: 12px; color: var(--fs-text-sec); cursor: pointer; transition: background .12s, color .12s; border: none; background: none; width: 100%; text-align: left; font-family: inherit; line-height: 1.3; }
.fs-sb-country-btn:hover { background: var(--fs-bg-hover); color: var(--fs-text); }
.fs-sb-arrow { margin-left: auto; font-size: 14px; color: var(--fs-text-muted); transition: transform .2s; flex-shrink: 0; }
.fs-sb-country[data-expanded="true"] .fs-sb-arrow { transform: rotate(90deg); }

/* Sub-items (hidden by default) */
.fs-sb-sub { display: none; background: rgba(0,0,0,.15); }
.fs-sb-country[data-expanded="true"] .fs-sb-sub { display: block; }
.fs-sb-sub-item { padding-left: 40px !important; font-size: 11px; color: var(--fs-text-muted); }
.fs-sb-sub-item:hover { color: var(--fs-text); }
.fs-sb-sub-item.active { color: var(--fs-primary); background: rgba(0,168,63,0.1); }

/* CENTER CONTENT */
.fs-center { background: var(--fs-bg-main); min-height: 100%; overflow: hidden; }

/* H1 SEO - subtle like FlashScore */
.fs-h1-seo { font-size: 13px; font-weight: 400; color: var(--fs-text-muted); padding: 10px 12px 0; margin: 0; font-style: italic; }

/* Mobile quick league pills (hidden on desktop) */
.fs-m-leagues { display: none; }

/* FILTER BAR */
.fs-filter-bar { display: flex; align-items: center; padding: 8px 12px; gap: 6px; border-bottom: 1px solid var(--fs-border); background: var(--fs-bg-card); overflow-x: auto; scrollbar-width: none; }
.fs-filter-bar::-webkit-scrollbar { display: none; }
.fs-filter-btn { padding: 5px 14px; border-radius: 14px; font-size: 12px; border: 1px solid var(--fs-border); background: transparent; color: var(--fs-text-sec); cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 4px; transition: all .15s; font-family: inherit; }
.fs-filter-btn.active { background: #00a83f; border-color: #00a83f; color: #fff; font-weight: 600; box-shadow: 0 0 8px rgba(0,168,63,.25); }
.fs-filter-btn:hover:not(.active) { border-color: var(--fs-text-sec); color: var(--fs-text); }

/* ============================================================
   LEAGUE SECTION + MATCH ROWS
   ============================================================ */
.fs-league-section { border-bottom: 1px solid var(--fs-border); }

.fs-league-header { display: flex; align-items: center; padding: 6px 12px; background: var(--fs-bg-league); gap: 8px; cursor: pointer; user-select: none; transition: background .12s; border-bottom: 1px solid rgba(255,255,255,.03); }
.fs-league-header:hover { background: #1f2538; }
.fs-league-header.featured { border-left: 3px solid var(--fs-primary); }
.fs-league-flag { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.fs-league-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fs-league-country { font-size: 10px; color: var(--fs-text-muted); text-transform: uppercase; letter-spacing: .5px; line-height: 1.2; }
.fs-league-name { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.fs-league-toggle { color: var(--fs-text-muted); font-size: 12px; padding: 4px; flex-shrink: 0; transition: transform .2s; }
.fs-league-toggle.collapsed { transform: rotate(-90deg); }

/* MATCH ROW */
.fs-match-row { display: grid; grid-template-columns: 52px 1fr auto 1fr 28px; align-items: center; padding: 0 12px; height: 40px; border-bottom: 1px solid rgba(22,27,37,.8); cursor: pointer; transition: background .1s; text-decoration: none; color: var(--fs-text); }
.fs-match-row:hover { background: var(--fs-bg-hover); }
.fs-match-time { font-size: 12px; color: var(--fs-text-muted); text-align: center; }
.fs-match-time.live { color: #ff4d4d; font-weight: 700; animation: livePulse 2s infinite; }
.fs-match-time.finished { color: var(--fs-text-muted); }
@keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:.6} }

.fs-team-home-cell { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding-right: 8px; min-width: 0; }
.fs-team-away-cell { display: flex; align-items: center; gap: 6px; padding-left: 8px; min-width: 0; }
.fs-team-cell-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-team-home-cell .fs-team-cell-name { text-align: right; }
.fs-team-cell-name.winner { color: #fff; font-weight: 600; }
.fs-team-cell-name.loser { color: #6b7687; }
.fs-team-cell-logo { width: 16px; height: 16px; border-radius: 2px; flex-shrink: 0; }

.fs-match-score-cell { display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 14px; font-weight: 700; min-width: 40px; }
.fs-match-score-cell .sep { color: var(--fs-text-muted); font-weight: 400; }
.fs-match-score-cell.live { color: #ff4d4d; }
.fs-match-score-cell.finished { color: #fff; }
.fs-match-score-cell.upcoming { color: var(--fs-text-muted); font-weight: 400; font-size: 13px; }

.fs-match-star { display: flex; align-items: center; justify-content: center; color: var(--fs-text-muted); font-size: 14px; cursor: pointer; opacity: 0; transition: opacity .12s; }
.fs-match-row:hover .fs-match-star { opacity: 1; }
.fs-match-star.active { opacity: 1; color: #ffc107; text-shadow: 0 0 4px rgba(255,193,7,.4); }

/* LIVE BADGE */
.fs-live-badge { display: inline-flex; align-items: center; gap: 4px; background: #e74040; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; text-transform: uppercase; letter-spacing: .3px; box-shadow: 0 0 6px rgba(231,64,64,.4); }
.fs-live-dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: liveDot 1.5s infinite; display: inline-block; }
@keyframes liveDot { 0%,100%{opacity:1} 50%{opacity:.3} }

/* RIGHT SIDEBAR */
.fs-sidebar-r { background: var(--fs-bg-sidebar); border-left: 1px solid var(--fs-border); overflow-y: auto; max-height: calc(100vh - 48px); position: sticky; top: 48px; scrollbar-width: thin; scrollbar-color: var(--fs-border) transparent; font-size: 12px; }
.fs-sidebar-r::-webkit-scrollbar { width: 3px; }
.fs-sidebar-r::-webkit-scrollbar-thumb { background: var(--fs-border); border-radius: 4px; }

.fs-widget { border-bottom: 1px solid var(--fs-border); padding: 10px 12px; }
.fs-wg-title { font-size: 12px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; color: var(--fs-text); }
.fs-wg-select { background: var(--fs-bg-main); border: 1px solid var(--fs-border); color: var(--fs-text); padding: 3px 6px; border-radius: var(--fs-radius); font-size: 11px; margin-left: auto; cursor: pointer; }

/* Hot matches widget */
.fs-hot-list a { display: flex; align-items: center; gap: 4px; padding: 4px 0; font-size: 12px; color: var(--fs-text-sec); border-bottom: 1px solid #161b25; }
.fs-hot-list a:hover { color: var(--fs-text); }
.fs-hot-list .fs-hot-time { font-size: 11px; color: var(--fs-text-muted); width: 36px; text-align: center; flex-shrink: 0; }
.fs-hot-list .fs-hot-teams { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-hot-list .fs-hot-score { font-weight: 700; font-size: 12px; min-width: 30px; text-align: center; }

/* Stats grid */
.fs-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fs-stat-card { background: var(--fs-bg-main); border-radius: 6px; padding: 8px; text-align: center; border: 1px solid var(--fs-border); }
.fs-stat-num { display: block; font-size: 20px; font-weight: 700; line-height: 1.2; }
.fs-stat-lbl { display: block; font-size: 10px; color: var(--fs-text-muted); margin-top: 2px; }
.fs-stat-live .fs-stat-num { color: var(--fs-accent); }

/* League list widget */
.fs-wg-league-list { display: flex; flex-direction: column; gap: 0; }
.fs-wg-lg-item { display: flex; align-items: center; gap: 6px; padding: 5px 0; font-size: 12px; color: var(--fs-text-sec); border-bottom: 1px solid #161b25; }
.fs-wg-lg-item:hover { color: var(--fs-primary); }

/* SEO Content Block */
.fs-seo-content { padding: 20px 16px; border-top: 1px solid var(--fs-border); }
.fs-seo-content h2 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--fs-text); }
.fs-seo-content h3 { font-size: 14px; font-weight: 600; margin: 12px 0 6px; color: var(--fs-text-sec); }
.fs-seo-content p { font-size: 13px; color: var(--fs-text-sec); line-height: 1.6; margin-bottom: 8px; }
.fs-seo-leagues { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.fs-seo-leagues a { display: inline-block; padding: 3px 10px; background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 12px; font-size: 12px; color: var(--fs-text-sec); transition: all .15s; }
.fs-seo-leagues a:hover { color: var(--fs-primary); border-color: var(--fs-primary); }

/* ============================================================
   LOADING + EMPTY STATE
   ============================================================ */
.fs-loading { text-align: center; padding: 40px; color: var(--fs-text-muted); }
.fs-spinner { width: 28px; height: 28px; border: 3px solid var(--fs-border); border-top-color: var(--fs-primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 10px; }
.fs-loading-sm { text-align: center; padding: 16px; color: var(--fs-text-muted); font-size: 12px; }
.fs-spinner-sm { width: 16px; height: 16px; border: 2px solid var(--fs-border); border-top-color: var(--fs-primary); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.fs-empty-state { text-align: center; padding: 40px; color: var(--fs-text-muted); font-size: 13px; }

/* ============================================================
   FOOTER
   ============================================================ */
.fs-footer { background: var(--fs-bg-card); border-top: 1px solid var(--fs-border); padding: 24px 12px; text-align: center; font-size: 13px; color: var(--fs-text-muted); }
.fs-footer-links a, .fs-footer-social a { color: var(--fs-text-sec); margin: 0 8px; }
.fs-footer-links a:hover, .fs-footer-social a:hover { color: var(--fs-text); }
.fs-footer-social { margin: 8px 0; }

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.fs-mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--fs-nav-bg); border-top: 1px solid var(--fs-border); z-index: 180; padding: 4px 0; padding-bottom: max(4px, env(safe-area-inset-bottom)); justify-content: space-around; }

/* ============================================================
   ERROR PAGE
   ============================================================ */
.fs-error-page { max-width: 600px; margin: 60px auto; text-align: center; padding: 0 20px; }
.fs-error-page h1 { font-size: 32px; margin-bottom: 16px; }
.fs-error-page a { color: var(--fs-primary); }

/* ============================================================
   INNER PAGES: Match, Team, Player, League detail
   ============================================================ */
.fs-match-page, .fs-team-page, .fs-player-page, .fs-league-page { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px 40px; box-sizing: border-box; }

/* Match Detail */
.fs-match-header { background: var(--fs-bg-card); border-radius: 8px; padding: 20px; margin: 16px 0; border: 1px solid var(--fs-border); }
.fs-match-league { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fs-text-sec); margin-bottom: 16px; }
.fs-match-league a:hover { color: var(--fs-primary); }
.fs-match-round { color: var(--fs-text-muted); font-size: 13px; }

.fs-match-scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.fs-match-team { text-align: center; }
.fs-match-team a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--fs-text); }
.fs-match-team a:hover { color: var(--fs-primary); }
.fs-match-team .fs-team-badge { display: block; width: 64px; height: 64px; object-fit: contain; }
.fs-match-team .fs-team-name { font-size: 16px; font-weight: 600; }

.fs-match-score-area { text-align: center; min-width: 100px; }
.fs-match-score { font-size: 42px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.fs-match-score.live { color: #ff4d4d; }
.fs-match-score.finished { color: #fff; }
.fs-match-score.upcoming { font-size: 28px; color: var(--fs-text-muted); }
.fs-score-home, .fs-score-away { min-width: 30px; }
.fs-score-sep { color: var(--fs-text-muted); font-size: 30px; }
.fs-score-upcoming { color: var(--fs-text-muted); font-weight: 500; }
.fs-match-status { margin-top: 6px; font-size: 13px; color: var(--fs-text-muted); text-align: center; }
.fs-match-halftime, .fs-match-penalty { font-size: 13px; color: var(--fs-text-muted); margin-top: 4px; text-align: center; }
.fs-match-venue { text-align: center; margin-top: 12px; font-size: 13px; color: var(--fs-text-muted); }

/* Tabs (shared across inner pages) */
.fs-match-tabs { display: flex; background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 6px; overflow: hidden; margin-bottom: 16px; flex-wrap: wrap; }
.fs-tab { padding: 10px 16px; font-size: 13px; font-weight: 500; color: var(--fs-text-sec); background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; transition: all .2s; font-family: inherit; }
.fs-tab:hover { color: var(--fs-text); }
.fs-tab.active { color: #1ecb5e; border-bottom-color: #00a83f; }
.fs-tab-panel { display: none; }
.fs-tab-panel.active { display: block; }

.fs-section-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--fs-border); }

/* Events */
.fs-event-row { display: grid; grid-template-columns: 1fr 30px 40px 30px 1fr; align-items: center; padding: 6px 0; border-bottom: 1px solid #1a1f2a; font-size: 13px; }
.fs-event-home { text-align: right; }
.fs-event-away { text-align: left; }
.fs-event-icon { text-align: center; font-size: 16px; }
.fs-event-time { text-align: center; font-size: 12px; color: var(--fs-text-muted); font-weight: 600; }
.fs-event-player { font-weight: 500; }
.fs-event-assist { font-size: 12px; color: var(--fs-text-muted); }
.fs-event-detail { font-size: 12px; color: var(--fs-text-muted); display: block; }

/* Stats bars */
.fs-stat-item { margin-bottom: 12px; }
.fs-match-page .fs-stats-grid { display: block; grid-template-columns: none; }
.fs-stat-values { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 13px; }
.fs-stat-home-val { font-weight: 600; }
.fs-stat-away-val { font-weight: 600; }
.fs-stat-label { color: var(--fs-text-sec); font-size: 12px; text-align: center; flex: 1; }
.fs-stat-bar { height: 4px; border-radius: 2px; background: var(--fs-border); margin-bottom: 12px; display: flex; overflow: hidden; }
.fs-stat-bar-home { height: 100%; background: var(--fs-primary); border-radius: 2px 0 0 2px; }
.fs-stat-bar-away { height: 100%; background: var(--fs-accent); border-radius: 0 2px 2px 0; }
.fs-stat-bar-fill { height: 100%; border-radius: 2px; }

/* Formations */
.fs-formation-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 14px; color: var(--fs-text-sec); }
.fs-lineups-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fs-formation-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.fs-formation-player { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 13px; }
.fs-formation-number { color: var(--fs-text-muted); width: 20px; text-align: center; }
.fs-formation-name { display: block; font-size: 14px; margin-bottom: 4px; }

/* H2H */
.fs-h2h-match-old { display: none; /* replaced by new H2H styles */ }

/* Predictions */
.fs-pred-winner { font-size: 18px; font-weight: 700; color: var(--fs-primary); margin-bottom: 8px; }
.fs-predictions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fs-pred-card { background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 6px; padding: 14px; text-align: center; }
.fs-pred-advice { font-size: 16px; font-weight: 700; color: var(--fs-primary); margin-bottom: 6px; }
.fs-pred-percents { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.fs-pred-pct { font-weight: 600; }
.fs-pred-bar { height: 6px; border-radius: 3px; background: var(--fs-border); overflow: hidden; display: flex; }
.fs-pred-bar > div { height: 100%; }

/* Comparison grid (H2H, stats) */
.fs-comparison-grid { display: grid; gap: 8px; }
.fs-compare-item { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--fs-border); }
.fs-compare-val { font-size: 15px; font-weight: 600; }
.fs-compare-val:first-child { text-align: right; }
.fs-compare-label { font-size: 12px; color: var(--fs-text-muted); text-align: center; min-width: 80px; }

/* Mini stats (H2H summary) */
.fs-mini-stat { text-align: center; }
.fs-mini-val { font-size: 28px; font-weight: 700; }
.fs-mini-label { font-size: 11px; color: var(--fs-text-muted); margin-top: 2px; }

/* Lineup team section */
.fs-lineup-team { padding: 12px; background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 6px; }
.fs-player-number { color: var(--fs-text-muted); width: 24px; text-align: center; font-size: 12px; }

/* Team/Player/League Headers (shared) */
.fs-team-header, .fs-player-header, .fs-league-header-page { background: var(--fs-bg-card); border-radius: 8px; padding: 20px; margin: 16px 0; border: 1px solid var(--fs-border); }
.fs-team-banner, .fs-player-banner, .fs-league-banner { display: flex; align-items: center; gap: 16px; }
.fs-league-logo-lg { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
/* .fs-league-meta / .fs-team-meta = the wrapper with h1 + details inside */
.fs-league-meta, .fs-team-meta, .fs-player-meta { flex: 1; min-width: 0; }
.fs-league-meta h1, .fs-team-meta h1, .fs-player-meta h1,
.fs-team-fullname { font-size: 20px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; color: var(--fs-text); }
/* .fs-league-details / .fs-team-details = the sub-line with country/season */
.fs-league-details, .fs-team-details, .fs-player-details { font-size: 13px; color: var(--fs-text-sec); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fs-league-details img, .fs-team-details img { vertical-align: middle; }
.fs-team-venue { font-size: 13px; color: var(--fs-text-sec); margin-top: 4px; }
.fs-team-logo-lg { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.fs-player-photo-lg { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.fs-player-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.fs-badge { font-size: 12px; color: var(--fs-text-sec); background: var(--fs-bg-main); padding: 3px 8px; border-radius: 4px; }

/* Sub Nav */
.fs-sub-nav { display: flex; gap: 0; background: var(--fs-bg-card); border-radius: 8px; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--fs-border); flex-wrap: wrap; }
.fs-sub-nav-item { padding: 12px 18px; font-size: 13px; color: var(--fs-text-sec); white-space: nowrap; border-bottom: 2px solid transparent; transition: all .2s; flex-shrink: 0; }
.fs-sub-nav-item:hover { color: var(--fs-text); background: var(--fs-bg-hover); }
.fs-sub-nav-item.active { color: #1ecb5e; border-bottom-color: #00a83f; font-weight: 500; }

/* Season selector */
.fs-season-selector { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; }
.fs-season-selector select { background: var(--fs-bg-card); border: 1px solid var(--fs-border); color: var(--fs-text); padding: 6px 10px; border-radius: var(--fs-radius); font-size: 13px; }

/* Standings Table */
.fs-standings-table-wrap { overflow-x: auto; margin-bottom: 16px; }
.fs-standings-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fs-standings-table th { padding: 8px 6px; text-align: center; color: var(--fs-text-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; background: var(--fs-bg-league); border-bottom: 1px solid var(--fs-border); }
.fs-standings-table td { padding: 6px; border-bottom: 1px solid var(--fs-border); text-align: center; }
.fs-standings-table th.team-col, .fs-standings-table td.team-col { text-align: left; }
.fs-standings-table th.pos, .fs-standings-table td.pos { width: 30px; }
.fs-standings-table th.pts, .fs-standings-table td.pts { font-weight: 700; }
.fs-standings-row { transition: background .12s; }
.fs-standings-row:hover { background: var(--fs-bg-hover); }
.fs-standings-team { display: flex; align-items: center; gap: 6px; color: var(--fs-text); font-size: 13px; }
.fs-standings-team:hover { color: #1ecb5e; }
.fs-rank { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 3px; font-size: 11px; font-weight: 700; }
.fs-rank.promotion { background: #00c853; color: #fff; }
.fs-rank.relegation { background: #ff4444; color: #fff; }
.fs-rank.europa { background: #ff9800; color: #000; }
.fs-form-badge { display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center; border-radius: 3px; font-size: 10px; font-weight: 700; color: #fff; }
.fs-form-badge.w { background: #00c853; }
.fs-form-badge.d { background: #ff9800; color: #000; }
.fs-form-badge.l { background: #ff4444; }
.form-col { white-space: nowrap; }

/* Scorers Table */
.fs-scorers-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fs-scorers-table th { padding: 8px 6px; text-align: center; color: var(--fs-text-muted); font-size: 11px; font-weight: 600; background: var(--fs-bg-league); border-bottom: 1px solid var(--fs-border); }
.fs-scorers-table td { padding: 6px; border-bottom: 1px solid var(--fs-border); text-align: center; }
.fs-scorer-player { display: flex; align-items: center; gap: 6px; color: var(--fs-text); }
.fs-scorer-player img { border-radius: 50%; }
.fs-scorer-player:hover { color: var(--fs-primary); }

/* Fixture Row (used in team/league fixture lists) */
.fs-fixture-row { display: grid; grid-template-columns: 55px 1fr 44px 1fr 24px; align-items: center; padding: 6px 12px; border-bottom: 1px solid var(--fs-border); font-size: 13px; cursor: pointer; transition: background .1s; }
.fs-fixture-row:hover { background: var(--fs-bg-hover); }
.fs-fixture-row.live { background: rgba(255,77,77,.06); }
.fs-fixture-time { text-align: center; font-size: 12px; color: var(--fs-text-muted); }
.fs-fixture-time.live { color: #ff4d4d; font-weight: 700; }
.fs-fixture-home { display: flex; align-items: center; justify-content: flex-end; gap: 6px; text-align: right; }
.fs-fixture-away { display: flex; align-items: center; gap: 6px; }
.fs-fixture-score { text-align: center; font-weight: 700; font-size: 14px; }
.fs-fixture-score.live { color: #ff4d4d; }
.fs-fixture-score.upcoming { color: var(--fs-text-muted); font-weight: 400; }
.fs-fixture-result { text-align: center; font-size: 12px; font-weight: 700; width: 18px; height: 18px; border-radius: 3px; display: flex; align-items: center; justify-content: center; color: #fff; }
.fs-fixture-result.w { background: var(--fs-primary); }
.fs-fixture-result.d { background: var(--fs-yellow); color: #000; }
.fs-fixture-result.l { background: var(--fs-accent); }

/* Page containers for misc pages */
.fs-page-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px 40px; box-sizing: border-box; }
.fs-page-title { font-size: 22px; font-weight: 700; padding: 16px 0 12px; }
.fs-page-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px 40px; box-sizing: border-box; }

/* Breadcrumb */
.fs-breadcrumb { font-size: 12px; color: var(--fs-text-muted); padding: 8px 0; }
.fs-breadcrumb a { color: var(--fs-text-sec); }
.fs-breadcrumb a:hover { color: var(--fs-primary); }

/* Content card */
.fs-content-card { background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 8px; padding: 16px; margin-bottom: 16px; }

/* Section / Tables */
.fs-section { margin-bottom: 24px; }
.fs-section > .fs-section-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--fs-border); }
.fs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fs-table th { padding: 8px; text-align: left; color: var(--fs-text-muted); font-size: 11px; font-weight: 600; background: var(--fs-bg-league); border-bottom: 1px solid var(--fs-border); }
.fs-table td { padding: 8px; border-bottom: 1px solid var(--fs-border); }

/* League blocks */
.fs-league-featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fs-league-featured-card { background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 8px; padding: 12px; text-align: center; transition: border-color .2s; }
.fs-league-featured-card:hover { border-color: var(--fs-primary); }
.fs-league-featured-card strong { font-size: 14px; }
.fs-league-featured-card small { font-size: 12px; color: var(--fs-text-sec); display: flex; align-items: center; gap: 4px; }

/* Countries page */
.fs-continent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fs-continent-country-header strong { font-size: 14px; }
.fs-continent-leagues { margin-top: 6px; }
.fs-continent-leagues a { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fs-text-sec); padding: 3px 0; }
.fs-continent-leagues a:hover { color: var(--fs-primary); }
.fs-continent-leagues .fs-more a { color: var(--fs-primary); font-size: 12px; }
.fs-country-grid.featured { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fs-country-grid.all { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

/* Round/Date buttons */
.fs-round-btn { padding: 6px 12px; font-size: 13px; border-radius: 14px; border: 1px solid var(--fs-border); background: transparent; color: var(--fs-text-sec); cursor: pointer; white-space: nowrap; text-decoration: none; }
.fs-round-btn.active { background: var(--fs-primary); border-color: var(--fs-primary); color: #fff; }

/* Teams grid */
.fs-teams-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fs-team-grid-card { background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 8px; padding: 16px; text-align: center; transition: border-color .2s; }
.fs-team-grid-card:hover { border-color: var(--fs-primary); }
.fs-team-grid-rank { font-size: 12px; color: var(--fs-text-muted); background: var(--fs-bg-main); padding: 2px 10px; border-radius: 10px; }
.fs-team-grid-name { font-size: 15px; }
.fs-team-grid-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.fs-tg-val { font-size: 15px; font-weight: 700; display: block; }
.fs-tg-label { font-size: 11px; color: var(--fs-text-muted); }
.fs-team-grid-links { display: flex; justify-content: center; gap: 12px; font-size: 12px; color: var(--fs-text-muted); }

/* Transfers */
.fs-transfer-month-header { padding: 10px 14px; background: var(--fs-bg-league); font-size: 14px; font-weight: 700; color: var(--fs-text-sec); border-top: 1px solid var(--fs-border); margin-top: 8px; }
.fs-transfer-full-row { display: grid; grid-template-columns: 60px 1.5fr 1.5fr 30px 1.5fr 80px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--fs-border); font-size: 13px; gap: 8px; }
.fs-transfer-full-row:hover { background: var(--fs-bg-hover); }
.fs-tf-date { font-size: 12px; color: var(--fs-text-muted); }
.fs-tf-player a { color: var(--fs-text); display: flex; align-items: center; gap: 6px; font-weight: 500; }
.fs-tf-from, .fs-tf-to { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.fs-tf-arrow { text-align: center; color: var(--fs-primary); font-weight: 700; font-size: 15px; }
.fs-tf-type { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: var(--fs-bg-main); text-align: center; }
.fs-tf-type.free { color: var(--fs-primary); }
.fs-tf-type.loan { color: var(--fs-blue); }

/* Entity mini header */
.fs-entity-mini-header { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.fs-entity-mini-header h1 { font-size: 22px; font-weight: 700; margin: 0; }

/* Link more */
.fs-link-more { display: inline-block; color: var(--fs-primary); font-size: 12px; padding: 8px 0; }

/* Standings card */
.fs-standings-card { margin-bottom: 16px; background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 6px; overflow: hidden; }
.fs-standings-card-header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--fs-bg-league); font-weight: 700; font-size: 14px; }
.fs-standings-card-title { color: #fff; flex: 1; }
.fs-standings-card-title:hover { color: #1ecb5e; }
.fs-standings-card-season { font-size: 11px; color: var(--fs-text-muted); font-weight: 400; background: rgba(255,255,255,.06); padding: 2px 8px; border-radius: 10px; }
.fs-standings-card .fs-standings-table.compact { font-size: 12px; }
.fs-standings-card .fs-standings-table.compact th { font-size: 11px; padding: 6px; }
.fs-standings-overview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .fs-standings-overview-grid { grid-template-columns: 1fr; } }

/* Lineup styles */
.fs-lineup-header { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 12px; }
.fs-lineup-coach { font-size: 12px; color: var(--fs-text-sec); margin-bottom: 12px; }
.fs-lineup-title { font-size: 11px; font-weight: 700; color: var(--fs-text-muted); text-transform: uppercase; margin-bottom: 6px; }
.fs-lineup-player { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 4px; color: var(--fs-text); font-size: 13px; transition: background .15s; }
.fs-lineup-player:hover { background: var(--fs-bg-hover); }
.fs-lineup-number { color: var(--fs-text-muted); width: 24px; text-align: center; font-size: 12px; }
.fs-player-pos { color: var(--fs-text-muted); margin-left: auto; font-size: 11px; }

/* Overview grid */
.fs-overview-grid-old { display: none; }

/* Stats team */
.fs-stats-team-label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.fs-stat-val { font-weight: 700; font-size: 14px; text-align: center; }
.fs-stat-bar-label { font-size: 12px; color: var(--fs-text-muted); margin-bottom: 4px; }

/* Goal progression */
.fs-gp-label { font-size: 12px; color: var(--fs-text-muted); }
.fs-gp-bar { height: 8px; background: var(--fs-border); border-radius: 4px; margin: 4px 0; }
.fs-gp-val { font-size: 12px; color: var(--fs-text-sec); }

/* Squad grid */
.fs-squad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Stat cards grid */
.fs-stat-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

/* Fixture venue */
.fs-fixture-venue { font-size: 12px; color: var(--fs-text-muted); display: none; }

/* Text helpers */
.fs-text-live { color: var(--fs-accent); }
.fs-text-blue { color: var(--fs-blue); }
.fs-text-muted { color: var(--fs-text-muted); }
.fs-text-primary { color: var(--fs-primary); }

/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */
@media (max-width: 1024px) {
    .fs-home-wrap { grid-template-columns: 1fr 240px; }
    .fs-sidebar-l { display: none; }
}
@media (max-width: 900px) {
    .fs-home-wrap { grid-template-columns: 1fr; }
    .fs-sidebar-l, .fs-sidebar-r { display: none; }
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */
@media (max-width: 768px) {
    body { padding-bottom: 56px; overflow-x: hidden; }

    /* Homepage: single column, FULL WIDTH */
    .fs-home-wrap { grid-template-columns: 1fr; padding: 0 !important; gap: 0; }
    .fs-sidebar-l { display: none; }
    .fs-sidebar-r { display: none; }
    .fs-main-content { padding: 0; }

    /* Show mobile league pills */
    .fs-m-leagues { display: flex; gap: 6px; padding: 6px 10px; overflow-x: auto; scrollbar-width: none; background: var(--fs-bg-card); border-bottom: 1px solid var(--fs-border); }
    .fs-m-leagues::-webkit-scrollbar { display: none; }
    .fs-m-lg { padding: 4px 10px; font-size: 12px; border-radius: 12px; border: 1px solid var(--fs-border); background: transparent; color: var(--fs-text-sec); white-space: nowrap; flex-shrink: 0; cursor: pointer; text-decoration: none; font-family: inherit; }
    .fs-m-lg.active { background: var(--fs-primary); border-color: var(--fs-primary); color: #fff; }

    /* Match row — bigger score, tighter spacing */
    .fs-match-row { grid-template-columns: 42px 1fr auto 1fr 24px; height: 40px; padding: 0 8px; border-radius: 0; }
    .fs-match-time { font-size: 11px; }
    .fs-team-cell-name { font-size: 12px; }
    .fs-match-score-cell { font-size: 15px; font-weight: 700; min-width: 40px; letter-spacing: 1px; }
    .fs-match-star { opacity: 1; font-size: 13px; }

    /* League header compact */
    .fs-league-header { padding: 6px 8px; border-radius: 0; }
    .fs-league-name { font-size: 12px; }
    .fs-league-country { font-size: 10px; }

    /* Date bar */
    .fs-date-bar { border-radius: 0; }
    .fs-date-bar-inner { scrollbar-width: none; }
    .fs-date-bar-inner::-webkit-scrollbar { display: none; }
    .fs-date-item { padding: 6px 10px; font-size: 12px; }
    .fs-date-item .day { font-size: 10px; }

    /* Filter bar - full width */
    .fs-filter-bar { padding: 5px 8px; gap: 4px; border-radius: 0; }
    .fs-filter-btn { padding: 4px 10px; font-size: 12px; }

    /* H1 */
    .fs-h1-seo { font-size: 12px; padding: 6px 10px 0; }

    /* Secondary nav */
    .fs-secondary-nav { border-radius: 0; }
    .fs-secondary-nav-inner { overflow-x: auto; scrollbar-width: none; }
    .fs-secondary-nav-inner::-webkit-scrollbar { display: none; }
    .fs-sec-item { font-size: 12px; padding: 8px 10px; }

    /* Inner pages */
    .fs-match-page, .fs-team-page, .fs-player-page, .fs-league-page, .fs-page-container { padding: 0 8px 30px; }
    .fs-match-scoreboard { gap: 10px; }
    .fs-match-score { font-size: 32px; }
    .fs-score-sep { font-size: 22px; }
    .fs-match-team .fs-team-badge { width: 48px; height: 48px; }
    .fs-match-team .fs-team-name { font-size: 13px; }
    .fs-league-banner { flex-wrap: wrap; gap: 10px; }
    .fs-league-logo-lg { width: 48px; height: 48px; }
    .fs-league-details h1 { font-size: 18px; }
    .fs-lineups-grid { grid-template-columns: 1fr; }
    .fs-page-title { font-size: 20px; }
    .fs-predictions-grid { grid-template-columns: 1fr; }
    .fs-squad-grid { grid-template-columns: 1fr; }
    .fs-fixture-row { grid-template-columns: 44px 1fr 40px 1fr 20px; padding: 5px 6px; }
    .fs-fixture-row .fs-fixture-score { font-size: 15px; font-weight: 700; }
    .fs-stat-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .fs-country-grid.featured { grid-template-columns: repeat(2, 1fr); }
    .fs-country-grid.all { grid-template-columns: repeat(2, 1fr); }
    .fs-teams-grid { grid-template-columns: 1fr; }
    .fs-league-featured-grid { grid-template-columns: repeat(2, 1fr); }
    .fs-continent-grid { grid-template-columns: 1fr; }
    .fs-transfer-full-row { grid-template-columns: 50px 1fr 1fr 20px 1fr 60px; font-size: 12px; }
    .fs-page-wrap { padding: 0 8px 30px; }
    .fs-sub-nav { flex-wrap: wrap; border-radius: 0; }
    .fs-sub-nav a { font-size: 12px; padding: 8px 12px; }
    .fs-breadcrumb { font-size: 11px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding: 8px; }
    .fs-breadcrumb::-webkit-scrollbar { display: none; }
    .fs-content-card { padding: 12px; }
    .fs-table { font-size: 12px; }
    .fs-table th, .fs-table td { padding: 6px 4px; }
    .fs-tab { padding: 8px 12px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }

    /* SEO block */
    .fs-seo-content { padding: 16px 10px; }
    .fs-seo-content h2 { font-size: 16px; }

    /* Back to top - above mobile bottom nav */
    #fs-back-top { bottom: 72px !important; right: 12px !important; }
}

@media (max-width: 480px) {
    .fs-team-cell-logo { width: 14px; height: 14px; }
    .fs-team-banner, .fs-player-banner, .fs-league-banner { flex-direction: column; text-align: center; }
    .fs-entity-mini-header { flex-direction: column; text-align: center; gap: 8px; }
    .fs-entity-mini-header h1 { font-size: 18px; }
    .fs-transfer-full-row { grid-template-columns: 1fr; gap: 4px; }
    .fs-tf-arrow { display: none; }
    .fs-team-grid-stats { grid-template-columns: repeat(3, 1fr); }
    .fs-country-grid.all { grid-template-columns: 1fr; }
    .fs-stat-val { font-size: 13px; }
    /* Back to top above bottom nav */
    #fs-back-top { bottom: 72px !important; right: 16px !important; width: 40px !important; height: 40px !important; font-size: 18px !important; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--fs-bg-dark); }
::-webkit-scrollbar-thumb { background: var(--fs-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--fs-text-muted); }

/* ============================================================
   LIVE PAGE GRID + BACKWARDS COMPAT
   ============================================================ */
.fs-live-page-grid { display: grid; grid-template-columns: 1fr 260px; gap: 0; width: 100%; padding: 0 24px; box-sizing: border-box; }
.fs-live-page-grid .fs-main-content { min-height: 50vh; }
.fs-live-page-grid .fs-sidebar-r { position: sticky; top: 48px; max-height: calc(100vh - 48px); overflow-y: auto; }
.fs-live-page-grid .fs-sidebar-r .fs-widget { border-bottom: 1px solid var(--fs-border); }
.fs-page-subtitle { font-size: 13px; color: var(--fs-text-sec); margin-bottom: 12px; }

/* Page search input */
.fs-page-search { margin-bottom: 16px; }
.fs-input-lg { width: 100%; max-width: 400px; background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 6px; padding: 10px 14px; color: var(--fs-text); font-size: 14px; outline: none; box-sizing: border-box; }
.fs-input-lg:focus { border-color: var(--fs-primary); }
.fs-page-header { margin-bottom: 16px; }
.fs-league-featured-logo { display: block; margin: 0 auto 8px; width: 48px; height: 48px; object-fit: contain; }

@media (max-width: 768px) {
    .fs-live-page-grid { grid-template-columns: 1fr; }
    .fs-live-page-grid .fs-sidebar-r { position: static; max-height: none; border-top: 1px solid var(--fs-border); }
}

/* ============================================================
   COMPLETE INNER PAGE STYLES — All Templates
   ============================================================ */

/* --- Breadcrumb --- */
.fs-bc-sep { color: var(--fs-text-muted); margin: 0 4px; font-size: 12px; }
.fs-bc-current { color: var(--fs-text-sec); font-size: 13px; }

/* --- Match Content Container (tabs body) --- */
.fs-match-content { background: var(--fs-bg-card); border-radius: 8px; border: 1px solid var(--fs-border); padding: 16px; }

/* --- Fixtures List (shared by league, team, country) --- */
.fs-fixtures-list { display: flex; flex-direction: column; gap: 0; }
.fs-fixture-date { font-size: 12px; color: var(--fs-text-muted); padding: 8px 12px; background: var(--fs-bg-main); font-weight: 600; }
.fs-fixture-league { font-size: 12px; color: var(--fs-text-sec); padding: 4px 12px; background: var(--fs-bg-card); border-bottom: 1px solid var(--fs-border); }

/* --- Rounds Nav (league-fixtures) --- */
.fs-rounds-nav { margin-bottom: 16px; }
.fs-rounds-scroll { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px 0; }
.fs-rounds-scroll .fs-round-btn { padding: 5px 10px; font-size: 12px; background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 4px; color: var(--fs-text-sec); white-space: nowrap; cursor: pointer; transition: all .2s; }
.fs-rounds-scroll .fs-round-btn:hover,
.fs-rounds-scroll .fs-round-btn.active { background: var(--fs-primary); color: #fff; border-color: var(--fs-primary); }

/* --- H2H (match h2h + standalone) --- */
/* H2H — see redesigned styles below */

/* --- Match Stats (stat bars) --- */
.fs-stats-comparison { padding: 0; }
.fs-stats-header { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 12px; background: var(--fs-bg-main); border-radius: 8px; margin-bottom: 16px; text-align: center; }
.fs-stat-compare-row { display: grid; grid-template-columns: 60px 1fr 60px; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--fs-border); }
.fs-stat-compare-row .fs-stat-name { text-align: center; font-size: 12px; color: var(--fs-text-sec); }
.fs-stat-bar-wrap { display: flex; gap: 4px; height: 6px; }
.fs-stat-bars { display: flex; gap: 2px; width: 100%; height: 6px; border-radius: 3px; overflow: hidden; }
.fs-stat-bars .home-bar { background: var(--fs-primary); height: 100%; border-radius: 3px 0 0 3px; }
.fs-stat-bars .away-bar { background: var(--fs-accent); height: 100%; border-radius: 0 3px 3px 0; }

/* --- Match Events Timeline --- */
.fs-events-timeline { position: relative; padding: 0; }
.fs-event-period { font-size: 12px; font-weight: 700; color: var(--fs-text-muted); padding: 8px 12px; background: var(--fs-bg-main); border-bottom: 1px solid var(--fs-border); text-transform: uppercase; }

/* --- Lineups --- */
.fs-lineup-col { flex: 1; min-width: 0; }
.fs-player-name { font-size: 13px; }

/* --- Country Pages --- */
.fs-country-card { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 8px; transition: all .2s; }
.fs-country-card:hover { border-color: var(--fs-primary); background: var(--fs-bg-hover); }
.fs-country-flag { font-size: 32px; flex-shrink: 0; }
.fs-country-flag-sm { font-size: 20px; flex-shrink: 0; }
.fs-country-info { flex: 1; }
.fs-country-name { font-size: 14px; font-weight: 600; display: block; }
.fs-country-count { font-size: 12px; color: var(--fs-text-sec); }

/* --- Country League Cards --- */
/* League cards — see redesigned styles below */
/* Coach/Info cards — see redesigned styles below */

/* --- Team Detail (squad, coach, next match) --- */
.fs-squad-section { margin-bottom: 20px; }
.fs-squad-pos-title { font-size: 13px; font-weight: 700; color: var(--fs-text-sec); padding: 8px 0 6px; border-bottom: 1px solid var(--fs-border); margin-bottom: 8px; text-transform: uppercase; }
.fs-player-card { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--fs-border); transition: background .2s; }
.fs-player-card:hover { background: var(--fs-bg-hover); }
.fs-player-squad-number { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: var(--fs-bg-main); border-radius: 4px; font-size: 12px; font-weight: 700; color: var(--fs-text-sec); flex-shrink: 0; }
.fs-player-photo-placeholder { width: 32px; height: 32px; border-radius: 50%; background: var(--fs-bg-main); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.fs-player-info { flex: 1; }
.fs-player-info .name { font-size: 13px; font-weight: 500; }
.fs-player-info .pos { font-size: 11px; color: var(--fs-text-sec); }
/* Old info-card/coach styles — kept for league-stats, team-squad, team-stats */
.fs-coach-info { display: flex; align-items: center; gap: 12px; padding: 12px; }
.fs-coach-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.fs-info-card { background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.fs-info-card h3 { font-size: 15px; margin: 0 0 12px; }
.fs-info-table { width: 100%; font-size: 13px; }
.fs-info-table th { text-align: left; padding: 6px 0; color: var(--fs-text-sec); font-weight: 600; width: 120px; }
.fs-info-table td { padding: 6px 0; }
/* Legacy H2H styles for match-h2h.php standalone page */
.fs-h2h-summary { display: flex; justify-content: center; gap: 20px; padding: 16px; background: var(--fs-bg-main); border-radius: 8px; margin-bottom: 16px; text-align: center; }
.fs-h2h-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; text-align: center; }
.fs-h2h-team { font-weight: 600; font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fs-h2h-draws { color: var(--fs-text-sec); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fs-h2h-matches { margin-top: 16px; }
.fs-h2h-match { display: grid; grid-template-columns: 70px 1fr 50px 1fr 100px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--fs-border); font-size: 13px; color: var(--fs-text); transition: background .15s; }
.fs-h2h-match:hover { background: var(--fs-bg-hover); }
.fs-h2h-date { font-size: 11px; color: var(--fs-text-muted); }
.fs-h2h-home { text-align: right; }
.fs-h2h-score { font-weight: 700; text-align: center; }
.fs-h2h-away { text-align: left; }
.fs-h2h-league { font-size: 11px; color: var(--fs-text-muted); text-align: right; }

/* --- Team Grid (league-teams page) --- */
.fs-team-grid-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.fs-team-grid-logo { width: 40px; height: 40px; object-fit: contain; }
.fs-team-grid-form { display: flex; gap: 3px; margin-top: 6px; }
.fs-tg-stat { font-size: 11px; color: var(--fs-text-sec); }

/* --- Team Stats (formations, goals timeline) --- */
.fs-formations-list { display: flex; gap: 8px; flex-wrap: wrap; }
.fs-formation-item { background: var(--fs-bg-main); border: 1px solid var(--fs-border); padding: 6px 12px; border-radius: 4px; font-size: 13px; }
.fs-goals-timeline { display: grid; gap: 4px; }
.fs-goal-period { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--fs-border); }

/* --- Player Detail (stat blocks, career tables) --- */
.fs-player-stat-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.fs-player-stat-block { background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 8px; padding: 16px; }
.fs-table-responsive { overflow-x: auto; }

/* --- Transfers --- */
.fs-transfers-list, .fs-transfers-full-list { display: flex; flex-direction: column; gap: 0; }
.fs-transfer-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--fs-border); font-size: 13px; }
.fs-transfer-row:hover { background: var(--fs-bg-hover); }
.fs-transfer-date { font-size: 11px; color: var(--fs-text-muted); min-width: 70px; }
.fs-transfer-from, .fs-transfer-to { display: flex; align-items: center; gap: 6px; }
.fs-transfer-arrow { color: var(--fs-text-muted); font-size: 16px; }
.fs-transfer-type { font-size: 11px; padding: 2px 6px; border-radius: 3px; background: var(--fs-bg-main); color: var(--fs-text-sec); margin-left: auto; }

/* --- Injuries --- */
.fs-injuries-list { display: flex; flex-direction: column; gap: 0; }
.fs-injury-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--fs-border); font-size: 13px; }
.fs-injury-icon { font-size: 18px; flex-shrink: 0; }
.fs-injury-type { font-weight: 600; flex: 1; }
.fs-injury-start, .fs-injury-end { font-size: 12px; color: var(--fs-text-sec); }

/* --- Trophies --- */
.fs-trophies-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.fs-trophy-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 6px; }
.fs-trophy-icon { font-size: 20px; flex-shrink: 0; }
.fs-trophy-name { font-size: 13px; font-weight: 600; flex: 1; }
.fs-trophy-season { font-size: 12px; color: var(--fs-primary); }
.fs-trophy-place { font-size: 11px; color: var(--fs-text-sec); }
.fs-trophy-country { font-size: 11px; color: var(--fs-text-muted); }

/* --- Matches List (player-matches, team-season, h2h standalone) --- */
.fs-matches-list { display: flex; flex-direction: column; gap: 0; }
.fs-matches-list .fs-match-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--fs-border); font-size: 13px; transition: background .2s; }
.fs-matches-list .fs-match-row:hover { background: var(--fs-bg-hover); }

/* --- Mobile adjustments for new styles --- */
@media (max-width: 768px) {
    .fs-trophies-list { grid-template-columns: 1fr; }
    .fs-stat-compare-row { grid-template-columns: 50px 1fr 50px; }
}
@media (max-width: 480px) {
    .fs-transfer-row { flex-wrap: wrap; }
}

/* --- Additional Missing Classes --- */

/* League Block (country-detail page) */
.fs-league-block { margin-bottom: 16px; background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 8px; overflow: hidden; }
.fs-league-block-header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--fs-bg-league); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s; user-select: none; }
.fs-league-block-header:hover { background: var(--fs-bg-hover); }
.fs-league-block-header img { flex-shrink: 0; }
.fs-league-block-header a { color: var(--fs-text); }
.fs-league-block-header a:hover { color: var(--fs-primary); }
.fs-league-toggle { margin-left: auto; color: var(--fs-text-muted); font-size: 12px; transition: transform .2s; }
.fs-league-toggle.collapsed { transform: rotate(-90deg); }

/* Date Group (league-fixtures page) */
.fs-date-group { margin-bottom: 16px; }
.fs-date-group-header { padding: 8px 12px; background: var(--fs-bg-main); font-size: 13px; font-weight: 600; color: var(--fs-text-sec); border-bottom: 1px solid var(--fs-border); border-radius: 6px 6px 0 0; }

/* Continent Country (leagues page) */
.fs-continent-country { margin-bottom: 12px; }
.fs-continent-country-header { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 14px; }
.fs-continent-country-header img { flex-shrink: 0; }
.fs-continent-country li { padding: 4px 0 4px 28px; font-size: 13px; }
.fs-continent-country a { color: var(--fs-text-sec); }
.fs-continent-country a:hover { color: var(--fs-primary); }

/* Widget Stats (live.php, index.php sidebar) */
.fs-widget-stats { padding: 12px; }

/* Match Scoreboard Teams */
.fs-team-home, .fs-team-away { text-align: center; flex: 1; }
.fs-team-home img, .fs-team-away img { display: block; margin: 0 auto 6px; }

/* Player Photo (team-squad) */
.fs-player-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* Header dropdowns (inline styles cover most, but add base class) */
.fs-dropdown-panel { scrollbar-width: thin; }
.fs-dropdown-panel::-webkit-scrollbar { width: 4px; }
.fs-dropdown-panel::-webkit-scrollbar-thumb { background: var(--fs-border); border-radius: 2px; }

/* Search Box */
.fs-search-box { position: relative; }
.fs-search-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 0 0 6px 6px; max-height: 400px; overflow-y: auto; z-index: 1000; display: none; }

/* Sport Label */
.fs-sport-label { font-size: 11px; display: block; margin-top: 2px; }


/* ================================================================
   REDESIGNED COMPONENTS — Team, Match H2H, Country
   ================================================================ */

/* --- Hero Header (Team + Country) --- */
.fs-hero-header { position: relative; border-radius: 10px; overflow: hidden; margin: 12px 0 16px; background: var(--fs-bg-card); border: 1px solid var(--fs-border); }
.fs-hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(16,163,127,.12) 0%, rgba(13,17,23,.4) 60%, rgba(239,68,68,.08) 100%); pointer-events: none; }
.fs-hero-content { position: relative; display: flex; align-items: center; gap: 20px; padding: 24px; }
.fs-hero-compact .fs-hero-content { padding: 20px 24px; }
.fs-hero-logo { width: 88px; height: 88px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.fs-hero-flag { width: 56px; height: auto; flex-shrink: 0; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.fs-hero-info { flex: 1; min-width: 0; }
.fs-hero-title { font-size: 22px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; color: var(--fs-text); }
.fs-hero-subtitle { font-size: 13px; color: var(--fs-text-sec); margin: 4px 0 0; }
.fs-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.fs-hero-tag { font-size: 12px; color: var(--fs-text-sec); background: rgba(255,255,255,.06); padding: 3px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); }
.fs-hero-venue { font-size: 12px; color: var(--fs-text-muted); margin-top: 6px; }
.fs-hero-form { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.fs-form-label { font-size: 12px; color: var(--fs-text-sec); }

/* --- Quick Stats Row --- */
.fs-quick-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 20px; }
.fs-qs-item { background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 8px; padding: 14px 12px; text-align: center; }
.fs-qs-value { display: block; font-size: 18px; font-weight: 700; color: var(--fs-primary); line-height: 1.2; }
.fs-qs-label { display: block; font-size: 11px; color: var(--fs-text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .3px; }

/* --- Detail Grid (2 col) --- */
.fs-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fs-detail-col { display: flex; flex-direction: column; gap: 16px; }

/* --- Cards --- */
.fs-card { background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 8px; overflow: hidden; }
.fs-card-highlight { border-color: rgba(16,163,127,.3); }
.fs-card-header { padding: 12px 16px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--fs-border); }
.fs-card-header h3 { font-size: 14px; font-weight: 600; margin: 0; color: var(--fs-text); }
.fs-card-body { padding: 14px 16px; }
.fs-card-body-flush { padding: 0; }

/* Key-Value List */
.fs-kv-list { display: flex; flex-direction: column; }
.fs-kv-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 13px; }
.fs-kv-row:last-child { border-bottom: none; }
.fs-kv-key { color: var(--fs-text-sec); }
.fs-kv-val { color: var(--fs-text); font-weight: 500; }

/* Coach Card */
.fs-coach-card { display: flex; align-items: center; gap: 16px; }
.fs-coach-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--fs-border); }
.fs-coach-avatar-placeholder { width: 72px; height: 72px; border-radius: 50%; background: var(--fs-bg-main); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.fs-coach-details { flex: 1; min-width: 0; }
.fs-coach-name { font-size: 16px; display: block; margin-bottom: 4px; }
.fs-coach-meta { font-size: 12px; color: var(--fs-text-sec); display: flex; flex-wrap: wrap; gap: 8px; }

/* Next Match */
.fs-next-match { display: block; text-decoration: none; color: var(--fs-text); }
.fs-nm-header { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fs-text-sec); margin-bottom: 14px; justify-content: center; }
.fs-nm-body { display: flex; align-items: center; justify-content: center; gap: 16px; }
.fs-nm-team { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; min-width: 80px; text-align: center; }
.fs-nm-team img { filter: drop-shadow(0 1px 4px rgba(0,0,0,.3)); }
.fs-nm-vs { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fs-nm-time { font-size: 20px; font-weight: 700; color: var(--fs-primary); }
.fs-nm-day { font-size: 11px; color: var(--fs-text-muted); }
.fs-nm-footer { font-size: 11px; color: var(--fs-text-muted); text-align: center; margin-top: 10px; }

/* Mini Results */
.fs-mini-result { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 13px; color: var(--fs-text); transition: background .15s; }
.fs-mini-result:hover { background: var(--fs-bg-hover); }
.fs-mini-result:last-child { border-bottom: none; }
.fs-mr-badge { width: 22px; height: 22px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.fs-mr-badge.win { background: var(--fs-primary); }
.fs-mr-badge.loss { background: var(--fs-accent); }
.fs-mr-badge.draw { background: var(--fs-yellow); color: #000; }
.fs-mr-teams { flex: 1; display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fs-mr-teams strong { margin: 0 4px; color: var(--fs-text); }
.fs-mr-date { font-size: 11px; color: var(--fs-text-muted); flex-shrink: 0; }


/* ================================================================
   REDESIGNED H2H (Match Page)
   ================================================================ */
.fs-h2h-card { background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.fs-h2h-title { text-align: center; font-size: 14px; font-weight: 600; color: var(--fs-text-sec); margin-bottom: 16px; }
.fs-h2h-head { display: flex; justify-content: center; align-items: flex-start; gap: 32px; margin-bottom: 16px; }
.fs-h2h-side { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 80px; }
.fs-h2h-side img { filter: drop-shadow(0 1px 6px rgba(0,0,0,.3)); }
.fs-h2h-wins { font-size: 28px; font-weight: 700; color: var(--fs-text); line-height: 1; }
.fs-h2h-center { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 60px; }
.fs-h2h-draw-num { font-size: 28px; font-weight: 700; color: var(--fs-text-sec); line-height: 1; }
.fs-h2h-label { font-size: 11px; color: var(--fs-text-muted); text-transform: uppercase; letter-spacing: .5px; }
.fs-h2h-bar { display: flex; border-radius: 6px; overflow: hidden; height: 8px; }
.fs-h2h-bar-home { background: var(--fs-primary); font-size: 0; transition: width .4s; }
.fs-h2h-bar-draw { background: #666; font-size: 0; transition: width .4s; }
.fs-h2h-bar-away { background: var(--fs-accent); font-size: 0; transition: width .4s; }

.fs-h2h-list { background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 8px; overflow: hidden; }
.fs-h2h-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.04); color: var(--fs-text); transition: background .15s; }
.fs-h2h-row:last-child { border-bottom: none; }
.fs-h2h-row:hover { background: var(--fs-bg-hover); }
.fs-h2h-row-date { flex-shrink: 0; width: 90px; }
.fs-h2h-day { font-size: 12px; color: var(--fs-text-sec); display: block; }
.fs-h2h-comp { font-size: 10px; color: var(--fs-text-muted); display: block; margin-top: 2px; }
.fs-h2h-row-match { flex: 1; display: grid; grid-template-columns: 1fr 50px 1fr; align-items: center; gap: 8px; }
.fs-h2h-row-home { display: flex; align-items: center; gap: 6px; justify-content: flex-end; font-size: 13px; }
.fs-h2h-row-away { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.fs-h2h-row-score { text-align: center; font-weight: 700; font-size: 14px; background: rgba(255,255,255,.05); padding: 3px 8px; border-radius: 4px; }
.fw700 { font-weight: 700; }


/* ================================================================
   REDESIGNED Country Page — League Grid
   ================================================================ */
.fs-section-heading { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--fs-border); margin-bottom: 16px; }
.fs-sh-icon { font-size: 18px; }
.fs-sh-count { font-size: 12px; color: var(--fs-text-muted); font-weight: 400; background: rgba(255,255,255,.06); padding: 2px 8px; border-radius: 10px; }

.fs-league-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 24px; }
.fs-lg-card { background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 8px; overflow: hidden; transition: border-color .2s; }
.fs-lg-card:hover { border-color: var(--fs-primary); }
.fs-lg-card-main { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--fs-text); }
.fs-lg-card-main:hover { color: var(--fs-text); }
.fs-lg-card-logo { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.fs-lg-card-info { flex: 1; min-width: 0; }
.fs-lg-card-name { font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-lg-card-arrow { color: var(--fs-text-muted); font-size: 16px; flex-shrink: 0; transition: transform .2s; }
.fs-lg-card:hover .fs-lg-card-arrow { transform: translateX(3px); color: var(--fs-primary); }
.fs-lg-card-links { display: flex; gap: 6px; padding: 0 16px 12px; flex-wrap: wrap; }
.fs-lg-link { font-size: 11px; padding: 3px 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; color: var(--fs-text-sec); transition: all .2s; white-space: nowrap; }
.fs-lg-link:hover { color: var(--fs-primary); border-color: var(--fs-primary); background: rgba(16,163,127,.08); }

/* Keep legacy league-list/card for other pages */
.fs-league-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.fs-league-card { background: var(--fs-bg-card); border: 1px solid var(--fs-border); border-radius: 8px; padding: 16px; display: flex; gap: 12px; transition: all .2s; }
.fs-league-card:hover { border-color: var(--fs-primary); }
.fs-league-card-logo { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.fs-league-card-info { flex: 1; }
.fs-league-card-info h3 { font-size: 15px; margin: 0 0 4px; }
.fs-league-card-links { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.fs-link-tag { font-size: 11px; padding: 3px 8px; background: var(--fs-bg-main); border: 1px solid var(--fs-border); border-radius: 4px; color: var(--fs-text-sec); transition: all .2s; }
.fs-link-tag:hover { color: var(--fs-primary); border-color: var(--fs-primary); }
.fs-chevron { color: var(--fs-text-muted); font-size: 16px; }
.fs-page-flag { width: auto; height: 40px; border-radius: 4px; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,.3); }


/* ================================================================
   RESPONSIVE — Redesigned Components
   ================================================================ */
@media (max-width: 768px) {
    .fs-hero-content { flex-direction: column; text-align: center; padding: 16px; }
    .fs-hero-meta { justify-content: center; }
    .fs-hero-form { justify-content: center; }
    .fs-detail-grid { grid-template-columns: 1fr; }
    .fs-quick-stats { grid-template-columns: repeat(2, 1fr); }
    .fs-h2h-head { gap: 20px; }
    .fs-h2h-row { flex-direction: column; gap: 6px; align-items: flex-start; }
    .fs-h2h-row-date { width: auto; }
    .fs-h2h-row-match { width: 100%; }
    .fs-league-grid { grid-template-columns: 1fr; }
    .fs-league-list { grid-template-columns: 1fr; }
    .fs-nm-body { gap: 10px; }
    .fs-nm-team { min-width: 60px; font-size: 12px; }
}
@media (max-width: 480px) {
    .fs-hero-logo { width: 64px; height: 64px; }
    .fs-hero-title { font-size: 18px; }
    .fs-quick-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .fs-qs-value { font-size: 16px; }
    .fs-h2h-wins, .fs-h2h-draw-num { font-size: 22px; }
    .fs-h2h-row-match { grid-template-columns: 1fr 40px 1fr; gap: 4px; }
    .fs-h2h-row-home, .fs-h2h-row-away { font-size: 12px; }
    .fs-kv-row { font-size: 12px; }
}
