/* MRKBAT Sports - FilGoal Edition Design System (RTL + LTR, Light FilGoal Default + Dark Mode Toggle) */

:root,
:root[data-theme="light"] {
    --bg-body: #ededed;
    --bg-surface: #ffffff;
    --bg-elevated: #f5f5f5;
    --bg-hover: #eaeaea;
    --bg-charcoal: #1a1a1a;
    --bg-slate: #2f2f2f;
    --bg-slate-card: #3d3d3d;
    --bg-dark-card: #2b2b2b;
    --bg-glass: rgba(26, 26, 26, 0.96);
    --border-color: #e0e0e0;
    --border-strong: #cccccc;
    --text-primary: #222222;
    --text-secondary: #4a4a4a;
    --text-muted: #777777;
    --accent: #f5a623;
    --accent-hover: #e09212;
    --accent-text: #b87300;
    --accent-ink: #1a1a1a;
    --accent-soft: rgba(245, 166, 35, 0.14);
    --live: #c8102e;
    --live-soft: rgba(200, 16, 46, 0.12);
    --gold: #f5a623;
    --gold-soft: rgba(245, 166, 35, 0.16);
    --blue: #0284c7;
    --green: #10b981;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.12);
    --radius-sm: 3px;
    --radius-md: 4px;
    --radius-lg: 6px;
}

:root[data-theme="dark"] {
    --bg-body: #111317;
    --bg-surface: #1b1f27;
    --bg-elevated: #232833;
    --bg-hover: #2b313e;
    --bg-charcoal: #0d0f12;
    --bg-slate: #181c23;
    --bg-slate-card: #242934;
    --bg-dark-card: #181b22;
    --bg-glass: rgba(13, 15, 18, 0.96);
    --border-color: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent: #f5a623;
    --accent-hover: #e09212;
    --accent-text: #f5a623;
    --accent-ink: #1a1a1a;
    --accent-soft: rgba(245, 166, 35, 0.16);
    --live: #ef4444;
    --live-soft: rgba(239, 68, 68, 0.16);
    --gold: #f5a623;
    --gold-soft: rgba(245, 166, 35, 0.16);
    --blue: #38bdf8;
    --green: #10b981;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.42);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: "Almarai", "Cairo", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

[dir="ltr"] body {
    font-family: "Plus Jakarta Sans", "Almarai", "Cairo", system-ui, -apple-system, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

.tabular {
    font-variant-numeric: tabular-nums;
}

.container {
    width: 100%;
    max-width: 1170px;
    margin-inline: auto;
    padding-inline: 12px;
}

/* FilGoal Top Charcoal Header (#top-bar) */
.fg-topbar {
    position: sticky;
    top: 0;
    z-index: 70;
    background: var(--bg-charcoal);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.fg-topbar .container {
    max-width: 1340px;
}

.fg-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 58px;
    padding-inline: 20px;
}

.fg-brand-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.fg-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    color: var(--accent);
    width: 34px;
    height: 34px;
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.15s, border-color 0.15s, color 0.15s;
    position: relative;
    z-index: 2;
}

@media (hover: hover) {
    .fg-hamburger:hover {
        color: #ffffff;
        border-color: var(--accent);
    }
}

.fg-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #ffffff;
    white-space: nowrap;
}

.fg-logo-text{font-style:italic;font-weight:800;font-size:1.3rem;color:#ffffff;letter-spacing:.2px;line-height:1}.fg-logo-o{height:1em;width:1em;vertical-align:-0.06em;display:inline-block}.fg-logo-com{color:var(--accent)}.fg-logo-mark {
    height: 34px;
    width: auto;
    display: block;
}

.fg-nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.fg-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.42rem 0.48rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #e5e7eb;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.fg-nav-link:hover,
.fg-nav-link.active {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.fg-nav-link svg {
    opacity: 0.65;
    flex-shrink: 0;
}

.fg-nav-link svg.fg-nav-ico {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.fg-nav-link:hover svg,
.fg-nav-link.active svg {
    opacity: 1;
    color: var(--accent);
}

.fg-nav-new {
    position: absolute;
    top: -6px;
    inset-inline-end: 4px;
    background: #c8102e;
    color: #ffffff;
    font-size: 0.54rem;
    font-weight: 800;
    padding: 0 0.34rem;
    border-radius: 999px;
    line-height: 1.35;
    pointer-events: none;
}

.fg-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.fg-icon-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f3f4f6;
    height: 34px;
    min-width: 34px;
    padding-inline: 0.55rem;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.fg-icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.fg-search-btn {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.15s, background 0.15s;
}

.fg-search-btn:hover {
    border-color: var(--accent);
    background: rgba(245, 166, 35, 0.12);
}

@media (max-width: 1380px) {
    .fg-nav-actions .fg-social-dots {
        display: none;
    }
}

@media (max-width: 1310px) {
    .fg-nav-row {
        gap: 0.5rem;
    }
    .fg-logo-mark {
        height: 30px;
    }
    .fg-nav-links {
        gap: 0.16rem;
    }
    .fg-nav-link {
        padding: 0.4rem 0.42rem;
        font-size: 0.79rem;
    }
    .fg-nav-link > i,
    .fg-nav-link > svg {
        display: none;
    }
}

/* FilGoal Full-Width Dark Search Overlay */
.fg-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    overflow-y: auto;
}
.fg-search-overlay.open {
    display: block;
}
.fg-search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 46, 52, 0.98);
}
.fg-search-panel {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}
.fg-search-form-big {
    display: flex;
    align-items: center;
    gap: 12px;
    direction: ltr;
    max-width: 1180px;
    margin: 80px auto 0;
    border-bottom: 1px solid var(--accent);
}
.fg-search-input-big {
    flex: 1;
    min-width: 0;
    height: 54px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--accent);
    font-size: clamp(1.4rem, 2.6vw, 30px);
    font-weight: 700;
    font-family: inherit;
    direction: rtl;
    text-align: right;
    padding: 0;
}
.fg-search-input-big::placeholder {
    color: #757575;
    font-weight: 500;
}
.fg-search-submit-big {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.fg-search-submit-big svg.fg-search-big-ico {
    width: 42px;
    height: 42px;
    fill: #a9a9a9;
}
.fg-search-submit-big:hover svg.fg-search-big-ico {
    fill: var(--accent);
}
.fg-search-btn svg.fg-search-close-ico {
    width: 22px;
    height: 22px;
    fill: var(--accent);
}

/* FilGoal 5-Column Mega Menu */
.fg-mega-menu {
    display: none;
    position: fixed;
    top: 54px;
    inset-inline: 0;
    max-height: calc(100vh - 54px);
    overflow-y: auto;
    background: #2d2e34;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    z-index: 996;
    font-family: 'Almarai', sans-serif;
}

.fg-mega-menu.open {
    display: block;
}

@media (min-width: 1121px) {
    body.fg-menu-open .fg-nav-links,
    body.fg-menu-open .fg-nav-actions .fg-icon-btn,
    body.fg-menu-open .fg-nav-actions .btn {
        display: none;
    }
}

.fg-mega-inner {
    padding-block: 1.15rem 1.8rem;
}

.fg-mega-mobile-bar {
    display: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fg-mega-discover {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1.1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fg-mega-discover-label {
    font-size: 0.82rem;
    color: #9ca3af;
    font-weight: 700;
}

.fg-mega-tiles {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.fg-mega-tile {
    width: 78px;
    height: 64px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    transition: transform 0.15s, border-color 0.15s;
}

.fg-mega-tile:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.fg-mega-tile i {
    font-size: 1.35rem;
    color: var(--accent);
    line-height: 1;
}

.fg-mega-item i {
    color: #a9a7a7;
    font-size: 1.05rem;
    width: 18px;
    text-align: center;
}

.card-badge-y,
.card-badge-r {
    display: inline-block;
    width: 10px;
    height: 14px;
    border-radius: 2px;
    vertical-align: middle;
}

.card-badge-y {
    background: #facc15;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.card-badge-r {
    background: #ef4444;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.fg-mega-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.fg-mega-col {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.fg-mega-col-title {
    margin: 0 0 0.35rem;
    font-size: 14px;
    color: #848485;
    font-weight: 700;
}

.fg-mega-item,
.fg-mega-league-item,
.fg-mega-dot-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.9;
    padding-block: 0.15rem;
}

.fg-mega-item svg.fg-mega-ico {
    width: 18px;
    height: 18px;
    fill: #a9a7a7;
    flex-shrink: 0;
}

.fg-mega-item:hover,
.fg-mega-league-item:hover,
.fg-mega-dot-item:hover {
    color: var(--accent);
}

.fg-mega-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.fg-mega-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.25rem;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.fg-social-dots {
    display: flex;
    align-items: center;
    gap: 0;
}

.fg-social-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    padding: 0 4px;
    box-sizing: border-box;
    transition: all 0.15s;
}

.fg-social-dot svg {
    width: 24px;
    height: 24px;
    fill: #737372;
    transition: fill 0.15s;
}

.fg-social-dot:hover svg {
    fill: var(--accent);
}

.fg-search-btn svg.fg-search-ico,
.fg-search-btn svg.fg-search-close-ico {
    width: 17px;
    height: 17px;
    fill: var(--accent);
}

/* FilGoal Dark Matches Bar (#top-match-slider) */
.fg-matches-bar {
    background: var(--bg-slate);
    color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    padding: 0.65rem 0 0.8rem;
}

.fg-matches-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
}

.fg-all-matches-link {
    font-size: 0.84rem;
    font-weight: 700;
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.fg-all-matches-link:hover {
    color: var(--accent);
}

.fg-day-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-inline: auto;
}

.fg-day-tab {
    background: rgba(255, 255, 255, 0.08);
    color: #d1d5db;
    border: 0;
    padding: 0.3rem 1.05rem;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.15s;
}

.fg-day-tab.active {
    background: var(--accent);
    color: var(--accent-ink);
}

.fg-slider-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.fg-slider-arrow {
    width: 36px;
    height: auto;
    align-self: stretch;
    background: rgba(0, 0, 0, 0.35);
    border: 0;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 6px;
    transition: background 0.15s;
}

.fg-slider-arrow svg {
    width: 20px;
    height: 20px;
}

.fg-slider-arrow:hover {
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
}

.fg-matches-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 24px) / 3);
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.fg-controls-spacer {
    width: 90px;
}

.fg-matches-track::-webkit-scrollbar {
    display: none;
}

.fg-match-tile {
    background: var(--bg-slate-card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    transition: border-color 0.15s;
}

.fg-match-tile:hover {
    border-color: var(--accent);
}

.fg-match-tile-league {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fg-match-tile-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
}

.fg-tile-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
    min-width: 0;
}

.fg-tile-team img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

.fg-tile-team span {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.fg-tile-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.28rem;
}

.fg-tile-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 1.05rem;
    font-weight: 900;
    color: #ffffff;
}

.fg-tile-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.08rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.fg-tile-pill.live {
    background: #c8102e;
    border-color: #c8102e;
    color: #ffffff;
}

.fg-tile-pill.ft {
    border-color: #6b7280;
    color: #cbd5e1;
}

/* Mobile matches expander (hidden on desktop) */
.fg-matches-expander,
.fg-matches-all-mobile {
    display: none;
}

/* Breaking Ticker */
.ticker-bar {
    background: #141414;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-size: 0.82rem;
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 34px;
}

.ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #c8102e;
    color: #fff;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 0.14rem 0.55rem;
    border-radius: 2px;
    flex-shrink: 0;
}

.ticker-track-wrap {
    overflow: hidden;
    flex: 1;
    min-width: 0;
    direction: ltr;
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.ticker-marquee {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: fgTickerLtr 34s linear infinite;
}

[dir="rtl"] .ticker-marquee {
    animation: fgTickerRtl 34s linear infinite;
}

.ticker-bar:hover .ticker-marquee {
    animation-play-state: paused;
}

@keyframes fgTickerLtr {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes fgTickerRtl {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.ticker-list {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    white-space: nowrap;
    padding-inline: 1.125rem;
    padding-block: 0.25rem;
    direction: ltr;
}

[dir="rtl"] .ticker-list {
    direction: rtl;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #e5e7eb;
}

.ticker-item:hover {
    color: var(--accent);
}

/* Main Content Container */
.main-content {
    flex: 1;
    padding-block: 16px 36px;
}

/* FilGoal Hero Grid (#main-news) */
.fg-hero-grid {
    display: grid;
    grid-template-columns: 1.45fr 1.35fr 0.85fr;
    gap: 14px;
    margin-bottom: 16px;
}

.fg-hero-lead {
    position: relative;
    min-height: 335px;
    background: #111;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-sm);
}

.fg-hero-lead img,
.fg-hero-sub-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.fg-hero-lead:hover img,
.fg-hero-sub-card:hover img {
    transform: scale(1.04);
}

.fg-hero-grad {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 3.2rem 1rem 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.78) 55%, rgba(0, 0, 0, 0.94) 100%);
    color: #ffffff;
}

.fg-hero-lead h1 {
    margin: 0.4rem 0 0;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.42;
}

.fg-hero-sub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
}

.fg-hero-sub-card {
    position: relative;
    min-height: 162px;
    background: #111;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-sm);
}

.fg-hero-sub-card .fg-hero-grad {
    padding: 2rem 0.65rem 0.65rem;
}

.fg-hero-sub-card h3 {
    margin: 0.25rem 0 0;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.38;
}

.fg-red-pill {
    display: inline-block;
    background: #c8102e;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
}

/* Exact FilGoal Mercato Dark Navy Strip */
.fg-mercato-strip {
    background: linear-gradient(135deg, #0d1626 0%, #152238 100%);
    color: #ffffff;
    padding: 0.95rem 1rem 1.05rem;
    margin-bottom: 16px;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.fg-mercato-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.fg-mercato-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fg-mercato-logo-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 900;
    font-size: 0.95rem;
    padding: 0.14rem 0.65rem;
    border-radius: 6px;
    transform: skewX(-8deg);
    letter-spacing: -0.02em;
}

.fg-mercato-pipe {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
}

.fg-mercato-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
}

.fg-mercato-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--accent);
}

.fg-mercato-shell {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.fg-mercato-arrow {
    width: 44px;
    height: auto;
    align-self: stretch;
    border-radius: 8px;
    border: 0;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.fg-mercato-arrow svg {
    width: 20px;
    height: 20px;
}

.fg-mercato-arrow:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.fg-mercato-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(290px, 315px);
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
}

.fg-mercato-track::-webkit-scrollbar {
    display: none;
}

.fg-mercato-card {
    background: #1a2334;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.7rem 0.8rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fg-mercato-card.is-rumor {
    background: radial-gradient(circle at 50% 0%, rgba(234, 88, 12, 0.35), rgba(67, 28, 10, 0.9) 70%);
    border-color: #ea580c;
}

.fg-mc-top {
    display: flex;
    justify-content: flex-end;
    min-height: 20px;
}

.fg-mc-rumor-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
}

.fg-mc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 0 6px #f97316;
}

.fg-mc-official-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
    font-size: 0.66rem;
    font-weight: 800;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}

.fg-mc-visual {
    display: grid;
    grid-template-columns: 1fr auto auto auto 1fr;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.fg-mc-club {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.fg-mc-club img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.fg-mc-club span {
    font-size: 0.72rem;
    color: #e5e7eb;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 72px;
}

.fg-mc-arrows {
    color: #60a5fa;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: -1px;
    opacity: 0.9;
}

.fg-mercato-card.is-rumor .fg-mc-arrows {
    color: #fb923c;
}

.fg-mc-player-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0.55rem;
}

.fg-mc-player-img {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: #0f172a;
}

.fg-mc-fee-pill {
    position: absolute;
    bottom: 0;
    background: #0b1220;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 800;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    white-space: nowrap;
}

.fg-mc-name {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 0.15rem;
}

.fg-mercato-card.is-rumor .fg-mc-name {
    color: #fb923c;
}

.fg-mc-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.45rem;
    margin-top: auto;
}

.fg-mc-sep {
    opacity: 0.35;
}

/* Featured Teams Strip (.fg_team_slider) */
.fg-teams-bar {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 0.65rem 0.5rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.fg-teams-track {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
}

.fg-teams-track::-webkit-scrollbar {
    display: none;
}

.fg-team-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 72px;
    text-align: center;
    padding: 0.25rem;
    transition: transform 0.15s;
}

.fg-team-chip:hover {
    transform: translateY(-2px);
    color: var(--accent);
}

.fg-team-chip img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

.fg-team-chip span {
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.fg-teams-arrow {
    background: none;
    border: 0;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.35rem;
}

.fg-teams-arrow:hover {
    color: var(--accent);
}

/* 3-Column FilGoal Main Grid */
.fg-3col-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.fg-col-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Signature FilGoal Card (Image + Dark Bar w/ Gold Category Tab + Headline) */
.fg-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fg-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.fg-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fg-card:hover .fg-card-media img {
    transform: scale(1.04);
}

.fg-media-overlay-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.fg-play-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 2.5px solid var(--accent);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
}

.fg-card-catbar {
    background: #1d1d1d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
}

.fg-cat-gold-tab {
    background: var(--accent);
    color: #1a1a1a;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    display: inline-block;
}

.fg-catbar-arrow {
    color: var(--accent);
    padding-inline: 0.65rem;
    font-weight: 800;
    font-size: 0.9rem;
}

.fg-card-body {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.fg-card-title {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.48;
    color: var(--text-primary);
}

.fg-card:hover .fg-card-title {
    color: var(--accent-text);
}

/* FilGoal Wide Split Card */
.fg-wide-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 0.75rem;
    padding: 0.65rem;
    align-items: center;
}

.fg-wide-thumb {
    width: 145px;
    height: 92px;
    object-fit: cover;
}

/* FilGoal Standings Card */
.fg-standings-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.fg-standings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.9rem 0.55rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.fg-standings-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 900;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--accent);
}

.fg-circle-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ececec;
    color: #374151;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

[data-theme="dark"] .fg-circle-arrow {
    background: #334155;
    color: var(--accent);
}

.fg-circle-arrow:hover {
    background: var(--accent);
    color: #111827;
}

.fg-standings-mini {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
    font-size: 0.82rem;
    padding-inline: 0.65rem;
    padding-bottom: 0.65rem;
}

.fg-standings-mini th,
.fg-standings-mini td {
    padding: 0.55rem 0.42rem;
    text-align: center;
}

.fg-standings-mini th {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.72rem;
    padding-bottom: 0.35rem;
}

.fg-standings-mini td.team-col,
.fg-standings-mini th.team-col {
    text-align: start;
}

.fg-standings-mini tbody tr:nth-child(even) td {
    background: rgba(148, 163, 184, 0.08);
}

.fg-standings-mini tbody tr.fg-rank-1 td {
    background: #2b2b2b;
    color: #ffffff;
}

.fg-standings-mini tbody tr td:first-child {
    border-start-start-radius: 8px;
    border-end-start-radius: 8px;
}

.fg-standings-mini tbody tr td:last-child {
    border-start-end-radius: 8px;
    border-end-end-radius: 8px;
}

/* FilGoal More News Dark Header Card */
.fg-more-news {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.fg-dark-box-head {
    background: var(--bg-dark-card);
    color: #ffffff;
    padding: 0.65rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    font-size: 0.95rem;
}

.fg-more-row {
    display: flex;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
    transition: background 0.15s;
}

.fg-more-row:hover {
    background: var(--bg-hover);
}

.fg-more-row img {
    width: 94px;
    height: 64px;
    object-fit: cover;
    flex-shrink: 0;
}

.fg-more-meta {
    margin-top: 0.35rem;
    font-size: 0.74rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.fg-more-btn {
    display: block;
    text-align: center;
    padding: 0.65rem;
    background: var(--bg-elevated);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.fg-more-btn:hover {
    background: var(--accent);
    color: #1a1a1a;
}

/* FilGoal Important Topics Dark Card */
.fg-topics-card {
    background: var(--bg-dark-card);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.fg-topic-tag {
    display: inline-block;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.14rem 0.6rem;
    border-radius: 3px;
    margin-bottom: 0.65rem;
}

/* FilGoal Opinion Card (مقالات حرة) */
.fg-opinion-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 0.85rem;
    text-align: center;
}

.fg-opinion-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.fg-opinion-pill {
    background: #2b2b2b;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.22rem 0.7rem;
}

.fg-opinion-arrow {
    background: var(--accent);
    color: #1a1a1a;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    font-weight: 900;
}

/* Shared Cards, Tables, Forms, Buttons (used on inner & admin pages too) */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: var(--accent);
    display: inline-block;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-body {
    padding: 1.1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.52rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #1a1a1a;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-sm {
    padding: 0.34rem 0.72rem;
    font-size: 0.8rem;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    height: 34px;
    padding-inline: 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
}

.tabs-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.85rem;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
}

.tab-pill:hover,
.tab-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a1a1a;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: 1.4rem;
    align-items: start;
}

.table-wrap {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.standings-table th,
.standings-table td {
    padding: 0.62rem 0.55rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    white-space: nowrap;
}

.standings-table th {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--text-muted);
    background: var(--bg-elevated);
}

.standings-table td.team-col,
.standings-table th.team-col {
    text-align: start;
}

.standings-table tbody tr:hover {
    background: var(--bg-hover);
}

.zone-ucl { border-inline-start: 3px solid var(--green); }
.zone-uel { border-inline-start: 3px solid var(--blue); }
.zone-rel { border-inline-start: 3px solid var(--live); }

.form-pills {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.form-pill {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    font-weight: 800;
    color: #fff;
}

.form-W { background: var(--green); }
.form-D { background: #64748b; }
.form-L { background: var(--live); }

.match-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    transition: border-color 0.15s;
}

.match-card:hover {
    border-color: var(--accent);
}

.match-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.match-league-mini {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.match-league-mini img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.match-teams-grid {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.match-team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.team-ident {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.team-crest {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-crest-lg {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.team-name-txt {
    font-weight: 700;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-box {
    font-weight: 800;
    font-size: 1rem;
    min-width: 24px;
    text-align: center;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.status-live,
.status-ht {
    background: var(--live-soft);
    color: var(--live);
}

.status-ft {
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.status-scheduled {
    background: var(--accent-soft);
    color: var(--accent-hover);
}

.status-postponed {
    background: var(--gold-soft);
    color: var(--gold);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--live);
    animation: pulseLive 1.3s infinite;
    display: inline-block;
}

@keyframes pulseLive {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(1.3); }
}

.cat-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.55rem;
    border-radius: 3px;
    color: #1a1a1a;
    background: var(--accent);
}

.poll-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 0.45rem;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-elevated);
}

.poll-bar {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    background: var(--accent-soft);
    z-index: 0;
    transition: width 0.35s ease;
}

.poll-option-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 0.85rem;
    font-weight: 700;
}

.match-hero {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent);
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.25rem;
}

.scoreboard {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
    margin-block: 1rem;
}

.scoreboard-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scoreboard-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 2.35rem;
    font-weight: 900;
}

.stat-row { margin-bottom: 0.9rem; }
.stat-labels { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.3rem; }
.stat-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 8px; }
.stat-bar-left { background: var(--bg-elevated); display: flex; justify-content: flex-end; overflow: hidden; }
.stat-bar-right { background: var(--bg-elevated); display: flex; justify-content: flex-start; overflow: hidden; }
.stat-fill-home { background: var(--accent); height: 100%; }
.stat-fill-away { background: #1a1a1a; height: 100%; }
:root[data-theme="dark"] .stat-fill-away { background: #38bdf8; }

.form-group { margin-bottom: 0.9rem; }
.form-label { display: block; font-size: 0.83rem; font-weight: 700; margin-bottom: 0.32rem; color: var(--text-secondary); }
.form-control {
    width: 100%;
    padding: 0.52rem 0.78rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}
.form-control:focus { outline: none; border-color: var(--accent); }

.alert { padding: 0.75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-weight: 700; font-size: 0.88rem; }
.alert-success { background: rgba(16, 185, 129, 0.14); border: 1px solid #10b981; color: #059669; }
.alert-error { background: var(--live-soft); border: 1px solid var(--live); color: var(--live); }

.avatar-sm { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: top center; flex-shrink: 0; }
.sidebar-stack { display: flex; flex-direction: column; gap: 1rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 1.5rem; flex-wrap: wrap; }

.mobile-drawer {
    display: none;
    background: #222;
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer.open {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Replaced by Modern Multi-Column Footer section below */

@media (min-width: 1121px) {
    .fg-mega-col-stats {
        display: none;
    }

    .fg-mega-mobile-bar {
        display: flex;
        align-items: center;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .fg-mega-mobile-bar .fg-icon-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        border: 1px solid rgba(240, 163, 6, 0.45);
        border-radius: 8px;
        padding: 0.3rem 0.75rem;
        color: #f0a306;
        font-size: 0.85rem;
        font-weight: 700;
        transition: background 0.15s, border-color 0.15s;
    }

    .fg-mega-mobile-bar .fg-icon-btn:hover {
        background: rgba(240, 163, 6, 0.12);
        border-color: var(--accent);
    }
}

@media (max-width: 1120px) {
    .fg-nav-links,
    .fg-social-dots,
    .fg-nav-actions .fg-icon-btn,
    .fg-nav-actions .btn-sm {
        display: none;
    }
    .fg-mega-mobile-bar {
        display: flex;
    }
    .fg-nav-row {
        position: relative;
    }
    .fg-brand-wrap .fg-logo{top:50%;margin-top:-11px}.fg-brand-wrap .fg-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .fg-mega-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .fg-hero-grid {
        grid-template-columns: 1fr;
    }
    .fg-3col-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .fg-matches-track {
        grid-auto-columns: calc((100% - 12px) / 2);
    }
    .home-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .fg-3col-grid,
    .fg-mega-cols {
        grid-template-columns: 1fr;
    }
    .fg-mercato-track {
        grid-auto-columns: 270px;
    }
    .fg-matches-bar {
        padding: 0.4rem 0 0.2rem;
    }
    .fg-day-tab {
        font-size: 0.72rem;
        padding: 0.25rem 0.8rem;
    }
    .fg-matches-bar .fg-slider-shell {
        display: block;
    }
    .fg-matches-bar .fg-slider-arrow {
        display: none;
    }
    .fg-matches-track {
        display: flex;
        flex-direction: column;
        gap: 0;
        overflow: visible;
    }
    .fg-match-tile {
        background: transparent;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 0;
        padding: 0.45rem 0.35rem;
        gap: 0;
    }
    .fg-match-tile:last-child {
        border-bottom: 0;
    }
    .fg-match-tile-league {
        display: none;
    }
    .fg-match-tile-body {
        gap: 6px;
    }
    .fg-tile-team {
        flex-direction: row;
        justify-content: flex-start;
        gap: 6px;
    }
    .fg-tile-team:last-child {
        direction: ltr;
        justify-content: flex-start;
    }
    .fg-tile-team img {
        width: 25px;
        height: 25px;
    }
    .fg-tile-team span {
        font-size: 10px;
        color: #ebebeb;
        text-align: start;
    }
    .fg-tile-center {
        gap: 2px;
    }
    .fg-tile-score {
        font-size: 0.8rem;
    }
    .fg-tile-pill {
        font-size: 10px;
        padding: 0.05rem 0.45rem;
    }
    .ticker-bar {
        display: none;
    }

    .fg-matches-bar {
        background: radial-gradient(ellipse 130% 100% at 50% 0%, rgba(60, 108, 50, 0.65), rgba(0, 0, 0, 0) 60%), linear-gradient(180deg, #14290f 0%, #0a1508 55%, #060a05 100%);
        border-bottom-color: rgba(0, 0, 0, 0.4);
    }
    .fg-matches-bar:not(.fg-expanded) .fg-matches-track .fg-match-tile:nth-child(n+4) {
        display: none;
    }
    .fg-matches-expander {
        display: grid;
        place-items: center;
        margin: 0.4rem auto 0;
        width: 64px;
        height: 34px;
        background: rgba(0, 0, 0, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.14);
        color: var(--accent);
        cursor: pointer;
        border-radius: 2px;
    }
    .fg-matches-expander svg {
        width: 22px;
        height: 22px;
    }
    .fg-matches-expander .fg-exp-up {
        display: none;
    }
    .fg-expanded .fg-matches-expander .fg-exp-down {
        display: none;
    }
    .fg-expanded .fg-matches-expander .fg-exp-up {
        display: block;
    }
    .fg-expanded .fg-matches-all-mobile {
        display: block;
        margin: 0.55rem auto 0;
        text-align: center;
        background: rgba(0, 0, 0, 0.35);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.14);
        padding: 0.5rem;
        font-size: 0.8rem;
        font-weight: 700;
        border-radius: 2px;
        text-decoration: none;
    }
    .fg-mercato-arrow {
        width: 26px;
        height: 92px;
    }
    .fg-controls-spacer {
        display: none;
    }
    .fg-slider-arrow {
        width: 24px;
        height: 58px;
    }
    .fg-logo-mark {
        height: 29px;
    }
    .fg-nav-actions {
        gap: 0.25rem;
    }
    .fg-icon-btn {
        height: 30px;
        padding-inline: 0.45rem;
        font-size: 0.74rem;
    }
    .fg-nav-actions .btn-sm {
        padding: 0.28rem 0.55rem;
        font-size: 0.75rem;
    }
    .fg-hero-sub-grid {
        grid-template-columns: 1fr;
    }
    .fg-wide-card {
        grid-template-columns: 110px 1fr;
    }
    .fg-wide-thumb {
        width: 110px;
        height: 76px;
    }
}

/* National team showcase page (FilGoal-style, Dark/Light Theme Compatible) */
.fg-nt-tabs { background: var(--bg-surface); border-bottom: 1px solid var(--border-color); margin-bottom: 1.25rem; }
.fg-nt-tabs-inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.fg-nt-id { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 0; }
.fg-nt-id h1 { font-size: 1.35rem; margin: 0; font-weight: 800; }
.fg-nt-flag { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-color); }
.fg-nt-tabnav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.fg-nt-tabnav a { padding: 0.9rem 0.2rem; font-weight: 700; font-size: 0.95rem; color: var(--text-muted); border-bottom: 3px solid transparent; }
.fg-nt-tabnav a.active, .fg-nt-tabnav a:hover { color: var(--accent); border-color: var(--accent); }

.fg-nt-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.fg-nt-photo { border-radius: var(--radius-md); overflow: hidden; max-height: 340px; background: var(--bg-elevated); }
.fg-nt-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fg-nt-coachcard { background: #2b2d33; color: #fff; border-radius: var(--radius-md); padding: 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; text-align: center; }
.fg-nt-coach-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 0.5rem; }
.fg-nt-coach-name { font-size: 1.15rem; font-weight: 800; }
.fg-nt-coach-role { color: #d1d5db; font-size: 0.85rem; margin-bottom: 0.9rem; }
.fg-nt-coach-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; font-size: 0.82rem; color: #e5e7eb; }
.fg-nt-coach-meta i { color: var(--accent); margin-inline-end: 0.3rem; }
.fg-nt-coach-meta a { color: #e5e7eb; }

.fg-nt-matchrow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.fg-nt-matchcard { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1rem 1.25rem 1.25rem; text-align: center; }
.fg-nt-matchcard:hover { border-color: var(--accent); }
.fg-nt-matchcard-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 0.15rem; }
.fg-nt-matchcard-league { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.9rem; }
.fg-nt-matchcard-teams { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.fg-nt-mt { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; flex: 1; font-weight: 700; font-size: 0.92rem; }
.fg-nt-mt img { width: 44px; height: 44px; object-fit: contain; }
.fg-nt-mid { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; min-width: 110px; }
.fg-nt-score { font-size: 1.4rem; font-weight: 900; }
.fg-nt-pill { font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 99px; }
.fg-nt-pill.done { background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border-color); }
.fg-nt-pill.soon { background: rgba(245, 166, 35, 0.15); color: var(--accent-text); }
.fg-nt-mdate { font-size: 0.75rem; color: var(--text-muted); }

.fg-nt-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.fg-nt-table th { color: var(--text-muted); font-size: 0.75rem; font-weight: 600; padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--border-color); text-align: center; }
.fg-nt-table td { padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--border-color); text-align: center; }
.fg-nt-table td.fg-nt-tname { text-align: start; font-weight: 700; }
.fg-nt-table tr.fg-nt-self { background: rgba(245, 166, 35, 0.08); }
.fg-nt-table td.fg-nt-tname img { width: 20px; height: 20px; object-fit: contain; }
.fg-nt-form b { display: inline-block; width: 18px; height: 18px; line-height: 18px; border-radius: 4px; font-size: 0.68rem; color: #fff; text-align: center; margin-inline-start: 2px; }
.fg-nt-form .w { background: #16a34a; }
.fg-nt-form .d { background: #9ca3af; }
.fg-nt-form .l { background: #dc2626; }
.fg-nt-more { font-size: 0.8rem; font-weight: 700; color: var(--accent-text); }

.fg-nt-news-strip { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x mandatory; }
.fg-nt-news-item { min-width: 260px; max-width: 260px; scroll-snap-align: start; }

@media (max-width: 900px) {
    .fg-nt-hero { grid-template-columns: 1fr; }
    .fg-nt-matchrow { grid-template-columns: 1fr; }
    .fg-nt-tabs-inner { gap: 1rem; }
}

/* Video Player, Cinema Stage, Breadcrumb, Share & Lightbox */
.fg-match-tile-empty {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    padding: 1.15rem;
    color: #cbd5e1;
    font-weight: 700;
}

.fg-video-wrap {
    width: 100%;
    background: #090c12;
}

.fg-html5-video {
    width: 100%;
    max-height: 480px;
    display: block;
    background: #000;
}

.fg-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.fg-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.fg-video-extbar {
    display: flex;
    justify-content: flex-end;
    padding: 0.45rem 0.75rem;
    background: #14171f;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fg-video-extlink {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #e5e7eb;
}

.fg-video-extlink:hover {
    color: var(--accent);
}

.fg-cinema-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    background: #14171f;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.fg-cinema-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fg-cinema-info h2 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.42;
    color: #ffffff;
}

.fg-cinema-info h2 a:hover {
    color: var(--accent);
}

.fg-cinema-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.65;
}

.fg-video-card-wrap {
    display: flex;
    flex-direction: column;
}

.fg-video-card-wrap.is-playing .fg-card {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.fg-quick-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    background: #1d1d1d;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    border: 1px solid var(--border-color);
    border-top: 0;
}

.fg-quick-play-btn:hover {
    background: var(--accent);
    color: #1a1a1a;
}

.fg-videos-strip {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.fg-videos-strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.fg-videos-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.fg-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.fg-breadcrumb a:hover {
    color: var(--accent-text);
}

.fg-bc-current {
    color: var(--text-primary);
    font-weight: 700;
}

.fg-share-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.fg-gallery-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-elevated);
    cursor: pointer;
}

.fg-gallery-thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.fg-gallery-thumb:hover img {
    transform: scale(1.04);
}

.fg-gallery-zoom {
    position: absolute;
    inset-inline-end: 0.5rem;
    bottom: 0.5rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
}

.fg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(8, 10, 15, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.fg-lightbox.open {
    display: flex;
}

.fg-lightbox img {
    max-width: min(92vw, 1080px);
    max-height: 82vh;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
}

.fg-lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 1.2rem;
}

.fg-lightbox-btn:hover {
    background: var(--accent);
    color: #1a1a1a;
}

.fg-lightbox-close { top: 1rem; inset-inline-end: 1rem; }
.fg-lightbox-prev { top: 50%; transform: translateY(-50%); inset-inline-start: 1rem; }
.fg-lightbox-next { top: 50%; transform: translateY(-50%); inset-inline-end: 1rem; }

@media (max-width: 960px) {
    .fg-cinema-stage { grid-template-columns: 1fr; }
    .fg-videos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .fg-videos-grid { grid-template-columns: 1fr; }
}

/* ============================
   Matches Center Upgrade
   ============================ */
.fg-mc-hero {
    background: linear-gradient(135deg, #161922 0%, #202532 58%, #181b24 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-md);
    padding: 1.3rem 1.45rem;
    margin-bottom: 1rem;
    color: #f4f6fb;
    box-shadow: var(--shadow-md);
}

.fg-mc-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.fg-mc-hero-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.fg-mc-hero-sub {
    margin: 0.28rem 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
}

.fg-mc-controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.fg-mc-search-wrap {
    position: relative;
    min-width: 245px;
    flex: 1 1 245px;
}

.fg-mc-search-icon {
    position: absolute;
    inset-inline-start: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.55);
    pointer-events: none;
    display: inline-flex;
}

.fg-mc-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-sm);
    padding: 0.52rem 2.1rem;
    color: #ffffff;
    font-size: 0.88rem;
    font-family: inherit;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.fg-mc-search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.fg-mc-search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
}

.fg-mc-search-clear {
    position: absolute;
    inset-inline-end: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.2rem 0.35rem;
    display: none;
}

.fg-mc-search-clear.visible {
    display: inline-flex;
}

.fg-mc-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    padding: 0.2rem;
}

.fg-mc-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.78);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.38rem 0.72rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fg-mc-view-btn:hover {
    color: #ffffff;
}

.fg-mc-view-btn.active {
    background: var(--accent);
    color: #161616;
}

.fg-mc-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.95rem;
}

.fg-mc-kpi {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.32rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.82);
}

.fg-mc-kpi strong {
    color: #ffffff;
    font-weight: 800;
}

.fg-mc-kpi.is-live {
    border-color: rgba(225, 29, 72, 0.55);
    background: rgba(225, 29, 72, 0.18);
    color: #ffd5df;
}

.fg-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3b5c;
    display: inline-block;
    animation: fg-pulse 1.3s ease-in-out infinite;
}

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

.fg-mc-nav-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
    margin-bottom: 1.15rem;
    box-shadow: var(--shadow-sm);
}

.fg-mc-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.fg-mc-mode-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.fg-mc-date-controls {
    display: flex;
    align-items: center;
    gap: 0.38rem;
}

.fg-mc-arrow-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.fg-mc-arrow-btn:hover {
    border-color: var(--accent);
    color: var(--accent-text);
}

.fg-mc-date-input {
    height: 34px;
    padding: 0 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
}

.fg-date-ribbon {
    display: flex;
    gap: 0.48rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
}

.fg-date-chip {
    flex: 0 0 92px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.52rem 0.45rem;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.16s ease;
    text-align: center;
}

.fg-date-chip:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.fg-date-chip.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.fg-date-chip-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

.fg-date-chip.active .fg-date-chip-label {
    color: var(--accent-text);
}

.fg-date-chip-day {
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.18;
    margin-top: 0.08rem;
}

.fg-date-chip-month {
    font-size: 0.71rem;
    color: var(--text-secondary);
}

.fg-date-chip-count {
    margin-top: 0.24rem;
    font-size: 0.69rem;
    font-weight: 800;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.fg-date-chip.active .fg-date-chip-count {
    background: var(--accent);
    border-color: var(--accent);
    color: #161616;
}

.fg-mc-league-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.fg-mc-league-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.fg-mc-league-pill img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Spotlight Card */
.fg-spotlight-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.3rem;
    margin-bottom: 1.3rem;
    box-shadow: var(--shadow-sm);
}

.fg-spotlight-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.fg-spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--accent-soft);
    color: var(--accent-text);
    border: 1px solid var(--accent);
    font-size: 0.77rem;
    font-weight: 800;
    padding: 0.22rem 0.68rem;
    border-radius: 999px;
}

.fg-spotlight-league {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
}

.fg-spotlight-league:hover {
    color: var(--accent-text);
}

.fg-spotlight-league img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.fg-spotlight-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
}

.fg-spotlight-team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.fg-spotlight-team.is-home {
    justify-content: flex-end;
    text-align: end;
}

.fg-spotlight-team img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.fg-spotlight-team-name {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.25;
}

.fg-spotlight-center {
    text-align: center;
    min-width: 145px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.fg-spotlight-score {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.08;
    color: var(--text-primary);
    letter-spacing: 0.04em;
}

.fg-spotlight-score.is-live {
    color: var(--live);
}

.fg-countdown-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--accent-text);
    direction: ltr;
}

.fg-spotlight-goals {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
    padding-top: 0.68rem;
    border-top: 1px dashed var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.fg-spotlight-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.fg-spotlight-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.fg-spotlight-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* League-Grouped Blocks */
.fg-league-block {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.fg-league-head {
    background: var(--bg-charcoal);
    color: #ffffff;
    padding: 0.72rem 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.fg-league-head-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #ffffff;
}

.fg-league-logo-box {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    padding: 3px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.fg-league-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fg-league-head-title {
    font-size: 0.98rem;
    font-weight: 800;
    margin: 0;
}

.fg-league-head-meta {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.68);
}

.fg-league-count-pill {
    background: rgba(245, 166, 35, 0.18);
    border: 1px solid rgba(245, 166, 35, 0.45);
    color: #ffd37a;
    font-size: 0.73rem;
    font-weight: 800;
    padding: 0.14rem 0.55rem;
    border-radius: 999px;
}

.fg-league-head-links {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.fg-league-head-link {
    font-size: 0.76rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.15s ease;
}

.fg-league-head-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #161616;
}

:root[data-theme="light"] .fg-league-head {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

:root[data-theme="light"] .fg-league-head-info {
    color: var(--text-primary);
}

:root[data-theme="light"] .fg-league-head-meta {
    color: var(--text-muted);
}

:root[data-theme="light"] .fg-league-logo-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

:root[data-theme="light"] .fg-league-count-pill {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-text);
}

:root[data-theme="light"] .fg-league-head-link {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

:root[data-theme="light"] .fg-league-head-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #161616;
}

.fg-spotlight-card .status-pill.status-scheduled,
.fg-match-row .status-pill.status-scheduled {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* List & Grid View Modes */
#mcResultsRoot[data-view="list"] .fg-mc-list-wrap { display: block; }
#mcResultsRoot[data-view="list"] .fg-mc-grid-wrap { display: none; }
#mcResultsRoot[data-view="grid"] .fg-mc-list-wrap { display: none; }
#mcResultsRoot[data-view="grid"] .fg-mc-grid-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 0.85rem;
    padding: 1rem;
}

.fg-match-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 130px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.82rem 1.05rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.fg-match-row:last-child {
    border-bottom: 0;
}

.fg-match-row:hover {
    background: var(--bg-hover);
}

.fg-match-row-status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.22rem;
}

.fg-match-row-time {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-primary);
}

.fg-match-row-main {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.fg-match-row-duel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
}

.fg-match-team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    min-width: 0;
}

.fg-match-team.is-home {
    justify-content: flex-end;
    text-align: end;
}

.fg-match-team.is-winner {
    color: var(--text-primary);
    font-weight: 800;
}

.fg-match-team-name {
    font-size: 0.94rem;
    font-weight: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fg-match-team img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.fg-match-scorebox {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 0.28rem 0.58rem;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 900;
    font-size: 0.98rem;
    text-decoration: none;
    line-height: 1.15;
}

.fg-match-scorebox.is-live {
    background: var(--live-soft);
    border-color: var(--live);
    color: var(--live);
}

.fg-ht-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 0.08rem;
}

.fg-match-row-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.fg-scorers-chip {
    color: var(--text-secondary);
}

.fg-match-row-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.38rem;
}

.fg-btn-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    color: var(--accent-text);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.58rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.fg-btn-highlight:hover {
    background: var(--accent);
    color: #161616;
}

.fg-btn-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.fg-btn-details:hover {
    border-color: var(--accent);
    color: var(--accent-text);
}

.fg-mc-hidden {
    display: none !important;
}

/* Instant Cinema Video Modal */
.fg-video-modal {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 14, 0.86);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 9999;
}

.fg-video-modal.open {
    display: flex;
}

.fg-video-modal-box {
    width: min(92vw, 900px);
    background: #141720;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72);
}

.fg-video-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.fg-video-modal-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
}

.fg-video-modal-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fg-video-modal-ext {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffd37a;
    text-decoration: none;
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(245, 166, 35, 0.4);
    border-radius: 4px;
}

.fg-video-modal-ext:hover {
    background: var(--accent);
    color: #161616;
}

.fg-video-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.fg-video-modal-close:hover {
    background: var(--accent);
    color: #161616;
}

.fg-video-modal-stage {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000000;
}

.fg-video-modal-stage iframe,
.fg-video-modal-stage video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 780px) {
    .fg-spotlight-body {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .fg-spotlight-team,
    .fg-spotlight-team.is-home {
        justify-content: center;
        text-align: center;
    }
    .fg-match-row {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }
    .fg-match-row-status {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .fg-match-row-actions {
        justify-content: center;
        padding-top: 0.4rem;
        border-top: 1px dashed var(--border-color);
    }
}

/* ============================
   Hub Upgrades: League, Teams, Scorers, Transfers
   ============================ */
.fg-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 0.9rem;
    padding: 1rem;
}

.fg-team-hub-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.55rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    position: relative;
}

.fg-team-hub-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.fg-team-rank-badge {
    position: absolute;
    top: 0.6rem;
    inset-inline-start: 0.6rem;
    font-size: 0.71rem;
    font-weight: 800;
    padding: 0.14rem 0.48rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-text);
    border: 1px solid rgba(245, 166, 35, 0.35);
}

.fg-team-pts-badge {
    position: absolute;
    top: 0.6rem;
    inset-inline-end: 0.6rem;
    font-size: 0.71rem;
    font-weight: 700;
    color: var(--text-muted);
}

.fg-team-hub-card .team-crest-lg {
    margin-top: 0.65rem;
}

.fg-team-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.74rem;
    color: var(--text-secondary);
}

.fg-podium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
    margin-bottom: 1.25rem;
}

.fg-podium-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.fg-podium-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.fg-podium-card.pos-1 { border-top-color: #f5a623; }
.fg-podium-card.pos-2 { border-top-color: #94a3b8; }
.fg-podium-card.pos-3 { border-top-color: #d97706; }

.fg-podium-medal {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    font-weight: 900;
    flex-shrink: 0;
}

.pos-1 .fg-podium-medal { background: #f5a623; color: #161616; }
.pos-2 .fg-podium-medal { background: #cbd5e1; color: #1e293b; }
.pos-3 .fg-podium-medal { background: #d97706; color: #ffffff; }

.fg-podium-stat {
    margin-inline-start: auto;
    text-align: center;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
}

.fg-podium-stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--accent-text);
    line-height: 1.1;
}

.fg-podium-stat span {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.fg-leader-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
}

.fg-leader-row:last-child {
    border-bottom: 0;
}

.fg-leader-row:hover .fg-leader-name {
    color: var(--accent-text);
}

.fg-leader-rank {
    width: 22px;
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.fg-leader-val {
    margin-inline-start: auto;
    font-weight: 900;
    font-size: 0.96rem;
    color: var(--accent-text);
    background: var(--accent-soft);
    padding: 0.16rem 0.52rem;
    border-radius: 999px;
}

.fg-transfers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.fg-deal-official {
    background: rgba(16, 185, 129, 0.16);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

:root[data-theme="dark"] .fg-deal-official {
    color: #34d399;
}

.fg-deal-rumor {
    background: var(--accent-soft);
    color: var(--accent-text);
    border: 1px solid rgba(245, 166, 35, 0.45);
}

.fg-fee-val {
    color: var(--accent-text);
    font-weight: 900;
}

@media (max-width: 900px) {
    .fg-podium-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================
   Auth Suite & Fan Locker Room
   ============================ */
.fg-auth-shell {
    max-width: 1020px;
    margin: 1.5rem auto 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.fg-auth-showcase {
    background: radial-gradient(circle at top right, rgba(245, 166, 35, 0.2), transparent 52%),
                linear-gradient(150deg, #12151e 0%, #1c2230 58%, #10131a 100%);
    color: #f4f6fb;
    padding: 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.75rem;
    position: relative;
}

.fg-auth-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffd37a;
}

.fg-auth-showcase h2 {
    margin: 0.85rem 0 0.55rem;
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1.3;
    color: #ffffff;
}

.fg-auth-showcase p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.76);
}

.fg-auth-perks {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}

.fg-auth-perk {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.72rem 0.85rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.fg-auth-perk-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(245, 166, 35, 0.16);
    color: #f5a623;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.fg-auth-perk-title {
    font-weight: 800;
    font-size: 0.88rem;
    color: #ffffff;
}

.fg-auth-perk-desc {
    font-size: 0.77rem;
    color: rgba(255, 255, 255, 0.68);
    margin-top: 0.15rem;
}

.fg-auth-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.fg-auth-stat-item strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 900;
    color: #f5a623;
}

.fg-auth-stat-item span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.68);
}

.fg-auth-form-pane {
    padding: 2.1rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fg-auth-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.26rem;
    margin-bottom: 1.45rem;
}

.fg-auth-switch-link {
    text-align: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.16s ease;
}

.fg-auth-switch-link.active {
    background: var(--accent);
    color: #161616;
    box-shadow: var(--shadow-sm);
}

.fg-auth-form-title {
    margin: 0 0 0.3rem;
    font-size: 1.45rem;
    font-weight: 900;
}

.fg-auth-form-sub {
    margin: 0 0 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.fg-input-wrap {
    position: relative;
}

.fg-input-icon {
    position: absolute;
    inset-inline-start: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    display: inline-flex;
    pointer-events: none;
}

.fg-input-wrap .form-control {
    padding-inline-start: 2.35rem;
    padding-inline-end: 2.45rem;
    min-height: 42px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.fg-input-wrap .form-control:focus {
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.fg-pw-eye {
    position: absolute;
    inset-inline-end: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    cursor: pointer;
    border-radius: 4px;
}

.fg-pw-eye:hover,
.fg-pw-eye.is-shown {
    color: var(--accent-text);
}

.fg-pw-eye .icon-eye-off { display: none; }
.fg-pw-eye.is-shown .icon-eye { display: none; }
.fg-pw-eye.is-shown .icon-eye-off { display: block; }

.fg-caps-hint {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-text);
}

.fg-pw-meter {
    margin-top: 0.45rem;
}

.fg-pw-track {
    height: 5px;
    background: var(--bg-elevated);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.fg-pw-fill {
    display: block;
    height: 100%;
    width: 0;
    transition: width 0.2s ease, background 0.2s ease;
}

.fg-pw-fill[data-level="weak"] { background: var(--live); }
.fg-pw-fill[data-level="medium"] { background: #f59e0b; }
.fg-pw-fill[data-level="strong"] { background: #10b981; }

.fg-pw-label {
    display: block;
    margin-top: 0.24rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
}

.fg-pw-match-pill {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
}

.fg-pw-match-pill.is-ok {
    background: rgba(16, 185, 129, 0.16);
    color: #059669;
}

:root[data-theme="dark"] .fg-pw-match-pill.is-ok {
    color: #34d399;
}

.fg-pw-match-pill.is-err {
    background: var(--live-soft);
    color: var(--live);
}

.fg-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.65rem 0 1.15rem;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.fg-check-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    font-weight: 600;
}

.fg-check-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.fg-auth-submit {
    width: 100%;
    min-height: 44px;
    font-size: 0.96rem;
    font-weight: 800;
}

.fg-auth-alt-foot {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.fg-auth-alt-foot a {
    color: var(--accent-text);
    font-weight: 800;
    margin-inline-start: 0.25rem;
}

/* Visual Favorite Club Picker */
.fg-club-picker {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
}

.fg-club-selected-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    margin-bottom: 0.6rem;
}

.fg-club-selected-info {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 800;
    font-size: 0.84rem;
    color: var(--accent-text);
}

.fg-club-selected-info img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.fg-club-clear-btn {
    background: transparent;
    border: 0;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.fg-club-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 0.42rem;
    max-height: 175px;
    overflow-y: auto;
    margin-top: 0.55rem;
    padding-inline-end: 0.2rem;
}

.fg-club-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.5rem 0.35rem;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.73rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.14s ease;
}

.fg-club-tile:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.fg-club-tile.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-text);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.fg-club-tile img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.fg-club-tile span {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Profile Locker Grid */
.fg-profile-grid {
    max-width: 1020px;
    margin: 1.5rem auto 2.5rem;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.fg-profile-badge-card {
    background: linear-gradient(155deg, #161922 0%, #222736 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.fg-profile-avatar-ring {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 3px solid var(--accent);
    background: #1a1e28;
    margin: 0 auto 0.8rem;
}

.fg-profile-fav-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.58rem 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    margin: 1rem 0;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.86rem;
}

.fg-profile-fav-box img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

@media (max-width: 860px) {
    .fg-auth-shell,
    .fg-profile-grid {
        grid-template-columns: 1fr;
    }
    .fg-auth-showcase,
    .fg-auth-form-pane {
        padding: 1.45rem 1.25rem;
    }
}

/* ============================
   Modern Multi-Column Footer
   ============================ */
.fg-footer {
    background: linear-gradient(180deg, #161922 0%, #0f1218 100%);
    color: #e5e7eb;
    padding: 2.35rem 0 1.35rem;
    margin-top: auto;
    border-top: 3px solid var(--accent);
}

.fg-footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1.15fr 0.9fr;
    gap: 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.fg-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.fg-footer-tagline {
    margin: 0.7rem 0 1rem;
    font-size: 0.86rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.68);
    max-width: 340px;
}

.fg-footer-follow-lbl {
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.56);
    margin-bottom: 0.5rem;
}

.fg-footer-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.fg-footer-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f3f4f6;
    display: grid;
    place-items: center;
    transition: all 0.16s ease;
}

.fg-footer-social-btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.fg-footer-social-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #161616;
    transform: translateY(-2px);
}

.fg-footer-heading {
    margin: 0 0 0.9rem;
    font-size: 0.96rem;
    font-weight: 800;
    color: #ffffff;
    position: relative;
    padding-bottom: 0.42rem;
}

.fg-footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 28px;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
}

.fg-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.52rem;
}

.fg-footer-links-2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.52rem 0.85rem;
}

.fg-footer-links a {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.fg-footer-links a:hover {
    color: var(--accent);
}

.fg-footer-league-ico {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    padding: 2px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.fg-footer-league-ico img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fg-footer-accent-link {
    color: var(--accent) !important;
    font-weight: 800 !important;
    margin-top: 0.15rem;
}

.fg-footer-auth-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fg-footer-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.8rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.fg-footer-pill-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.fg-footer-bottom {
    padding-top: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}

.fg-footer-bottom-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.fg-footer-bottom-actions a {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
    text-decoration: none;
}

.fg-footer-bottom-actions a:hover {
    color: var(--accent);
}

.fg-scroll-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-radius: 999px;
    padding: 0.28rem 0.72rem;
    font-family: inherit;
    font-size: 0.77rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fg-scroll-top-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #161616;
}

@media (max-width: 1020px) {
    .fg-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .fg-footer-grid {
        grid-template-columns: 1fr;
    }
    .fg-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================
   Pitch Formation, Live Poll, Compare & Predictions
   ============================ */
.fg-lineup-mode-bar {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.fg-pitch-legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.fg-pitch-side-hdr {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
}

.fg-pitch-side-hdr img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.fg-formation-pill {
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
    background: var(--accent-soft);
    color: var(--accent-text);
    border: 1px solid var(--accent);
}

.fg-formation-pill.is-away {
    background: rgba(2, 132, 199, 0.14);
    color: var(--blue);
    border-color: var(--blue);
}

.fg-pitch-board {
    position: relative;
    border-radius: var(--radius-md);
    background: repeating-linear-gradient(
        180deg,
        #166534 0px,
        #166534 44px,
        #15803d 44px,
        #15803d 88px
    );
    border: 2px solid rgba(255, 255, 255, 0.35);
    padding: 1.15rem 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    min-height: 540px;
    justify-content: space-between;
}

.fg-pitch-halfline {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: rgba(255, 255, 255, 0.32);
    pointer-events: none;
}

.fg-pitch-center-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 96px;
    height: 96px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.32);
    pointer-events: none;
}

.fg-pitch-box {
    position: absolute;
    left: 50%;
    width: 44%;
    min-width: 170px;
    height: 68px;
    transform: translateX(-50%);
    border: 2px solid rgba(255, 255, 255, 0.28);
    pointer-events: none;
}

.fg-pitch-box-top { top: 0; border-top: 0; }
.fg-pitch-box-bottom { bottom: 0; border-bottom: 0; }

.fg-pitch-half {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fg-pitch-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.fg-pitch-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    gap: 0.24rem;
    min-width: 0;
    flex: 1 1 0;
    max-width: 94px;
    transition: transform 0.15s ease;
}

.fg-pitch-node:hover {
    transform: translateY(-2px);
}

.fg-pitch-avatar-wrap {
    position: relative;
    display: inline-block;
}

.fg-pitch-avatar-wrap img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2.5px solid #f5a623;
    background: #141720;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

.fg-pitch-node.is-away .fg-pitch-avatar-wrap img {
    border-color: #38bdf8;
}

.fg-pitch-num {
    position: absolute;
    bottom: -3px;
    right: -4px;
    background: #111317;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 0 4px;
    line-height: 1.3;
}

.fg-pitch-ev {
    position: absolute;
    top: -4px;
    font-size: 0.68rem;
    background: #ffffff;
    color: #161616;
    border-radius: 999px;
    padding: 0 3px;
    line-height: 1.25;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.fg-pitch-ev.is-goal { left: -6px; }
.fg-pitch-ev.is-card { right: -6px; }

.fg-pitch-name {
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(12, 16, 23, 0.85);
    color: #ffffff;
    padding: 0.12rem 0.42rem;
    border-radius: 4px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.fg-live-sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    background: var(--live-soft);
    color: var(--live);
    font-size: 0.75rem;
    font-weight: 800;
}

/* Predictions UI */
.fg-pred-inline-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.fg-pred-duel {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.fg-pred-team {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 800;
    font-size: 0.88rem;
}

.fg-pred-num {
    width: 60px;
    text-align: center;
    font-weight: 900;
    font-size: 1rem;
    padding: 0.35rem;
}

.fg-pred-arena-card {
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
}

/* Compare Hub UI */
.fg-compare-picker-form {
    display: flex;
    align-items: end;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.fg-compare-select-group {
    flex: 1 1 240px;
}

.fg-compare-vs-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: #161616;
    font-weight: 900;
    font-size: 0.8rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.fg-compare-faces {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    margin-bottom: 1.15rem;
}

.fg-compare-face {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--text-primary);
}

.fg-compare-face.is-home {
    border-inline-start: 4px solid var(--accent);
    padding-inline-start: 0.75rem;
}

.fg-compare-face.is-away {
    border-inline-end: 4px solid var(--blue);
    padding-inline-end: 0.75rem;
    flex-direction: row-reverse;
    text-align: end;
}

.fg-compare-face h2 {
    margin: 0 0 0.2rem;
    font-size: 1.15rem;
    font-weight: 900;
}

.fg-compare-sub {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.fg-compare-sub img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.fg-compare-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid var(--border-strong);
    flex-shrink: 0;
}

.fg-compare-mid-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    font-weight: 900;
}

.fg-compare-mid-pill span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.fg-compare-bio-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.65rem 1rem;
    align-items: center;
    text-align: center;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
    font-size: 0.86rem;
}

.fg-compare-bio-grid span {
    font-size: 0.76rem;
    color: var(--text-muted);
}

@media (max-width: 780px) {
    .fg-compare-faces {
        grid-template-columns: 1fr;
    }
    .fg-compare-mid-pill {
        justify-self: center;
    }
    .fg-pitch-name {
        font-size: 0.64rem;
    }
    .fg-pitch-avatar-wrap img {
        width: 34px;
        height: 34px;
    }
}

/* ============================
   5 Pro Interactive Upgrades
   ============================ */
.fg-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.2), rgba(217, 119, 6, 0.14));
    border: 1px solid rgba(245, 166, 35, 0.55);
    color: var(--gold);
    font-weight: 900;
    font-size: 0.8rem;
}

.fg-player-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.15s ease;
}

.fg-player-history-row:hover {
    border-color: var(--accent);
}

.fg-ph-date {
    min-width: 112px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.fg-ph-teams {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1 1 240px;
    font-weight: 700;
    font-size: 0.86rem;
}

.fg-ph-club {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.fg-ph-club img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.fg-ph-score {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-weight: 900;
    font-size: 0.82rem;
}

.fg-ph-badges {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.fg-ph-role {
    padding: 0.14rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.fg-ph-role.is-starter {
    background: var(--accent-soft);
    color: var(--accent-text);
}

.fg-ph-role.is-sub {
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.fg-ph-ev {
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0.1rem 0.42rem;
    border-radius: 999px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

.fg-ph-ev.is-subin {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.12);
}

.fg-ph-ev.is-subout {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.12);
}

/* Substitutions on Pitch & Bench Strip */
.fg-pitch-sub-out {
    position: absolute;
    bottom: -4px;
    left: -6px;
    font-size: 0.62rem;
    font-weight: 900;
    background: #dc2626;
    color: #ffffff;
    border-radius: 999px;
    padding: 0 4px;
    line-height: 1.3;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.fg-subs-strip {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
}

.fg-subs-strip-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    margin-bottom: 0.7rem;
}

.fg-subs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.8rem;
}

.fg-sub-pair {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.48rem 0.7rem;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-inline-start: 3px solid var(--accent);
}

.fg-sub-pair.is-away {
    border-inline-start-color: var(--blue);
}

.fg-sub-min {
    font-weight: 900;
    font-size: 0.82rem;
    color: var(--accent-text);
    min-width: 30px;
}

.fg-sub-names {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.78rem;
    min-width: 0;
}

.fg-sub-in-link {
    color: #10b981;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fg-sub-out-link {
    color: #ef4444;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fg-bench-pills-row {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--border-color);
}

.fg-bench-side {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.fg-bench-side-lbl {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 96px;
}

.fg-bench-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.fg-bench-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
}

.fg-bench-chip.was-subbed {
    border-color: rgba(16, 185, 129, 0.55);
}

.fg-bench-chip img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
}

.fg-sub-chip-min {
    font-style: normal;
    color: #10b981;
    font-weight: 900;
}

/* Match 1X2 Quick Poll & MOTM */
.fg-match-engage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.fg-winner-poll-btns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.fg-wp-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    min-height: 54px;
    padding: 0.5rem 0.45rem;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.12s ease;
}

.fg-wp-btn:hover {
    border-color: var(--accent);
}

.fg-wp-btn.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.fg-wp-fill {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    background: rgba(245, 166, 35, 0.18);
    transition: width 0.25s ease;
    pointer-events: none;
}

.fg-wp-btn.is-away .fg-wp-fill {
    background: rgba(2, 132, 199, 0.18);
}

.fg-wp-btn.is-draw .fg-wp-fill {
    background: rgba(148, 163, 184, 0.18);
}

.fg-wp-txt {
    position: relative;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
}

.fg-wp-pct {
    position: relative;
    font-size: 0.88rem;
    font-weight: 900;
    color: var(--accent-text);
}

.fg-motm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.55rem;
}

.fg-motm-item {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.52rem 0.7rem;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
    text-align: start;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.fg-motm-item:hover {
    border-color: var(--gold);
}

.fg-motm-item.active {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.25);
}

.fg-motm-fill {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    background: rgba(245, 166, 35, 0.14);
    transition: width 0.25s ease;
    pointer-events: none;
}

.fg-motm-av {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
}

.fg-motm-meta {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.fg-motm-meta strong {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fg-motm-meta small {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.fg-motm-pct {
    position: relative;
    font-weight: 900;
    font-size: 0.86rem;
    color: var(--accent-text);
}

.fg-engage-msg {
    margin-top: 0.65rem;
    padding: 0.42rem 0.7rem;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Team of the Week Pitch Extras */
.fg-totw-pitch {
    min-height: 490px;
}

.fg-totw-score {
    position: absolute;
    top: -5px;
    right: -7px;
    background: #f59e0b;
    color: #161616;
    border-radius: 999px;
    padding: 0 5px;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.35;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.fg-totw-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
}

.fg-totw-meta img {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

/* Bell Notifications Drawer */
.fg-bell-wrap {
    position: relative;
    display: inline-flex;
}

.fg-bell-btn {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.fg-bell-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(245, 166, 35, 0.12);
}

.fg-bell-badge {
    position: absolute;
    top: -6px;
    inset-inline-end: -6px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 900;
    display: grid;
    place-items: center;
    border: 2px solid var(--bg-charcoal, #1e2027);
    pointer-events: none;
}

.fg-notif-panel {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    width: min(370px, calc(100vw - 24px));
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    z-index: 80;
    overflow: hidden;
    color: var(--text-primary);
}

.fg-notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.72rem 0.9rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.84rem;
}

.fg-push-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.26rem 0.58rem;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: var(--accent-soft);
    color: var(--accent-text);
    font-size: 0.72rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
}

.fg-push-toggle-btn.is-active {
    background: rgba(16, 185, 129, 0.14);
    border-color: #10b981;
    color: #10b981;
}

.fg-push-toggle-btn.is-blocked {
    opacity: 0.6;
}

.fg-notif-body {
    max-height: 360px;
    overflow-y: auto;
    padding: 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.fg-notif-sec-title {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--accent-text);
    padding: 0.35rem 0.5rem 0.15rem;
}

.fg-notif-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.14s ease;
}

.fg-notif-item:hover {
    background: var(--bg-elevated);
}

.fg-notif-item img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.fg-notif-txt {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.fg-notif-txt strong {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fg-notif-txt small {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.fg-notif-tag {
    font-size: 0.68rem;
    font-weight: 900;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-text);
}

.fg-notif-empty {
    padding: 1rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.fg-notif-guest-foot {
    margin-top: 0.35rem;
    padding: 0.65rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Global Instant Live Search Overlay */
.fg-search-kbd {
    padding: 0.22rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #d1d5db;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.fg-search-results {
    max-width: 1180px;
    margin: 1rem auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.fg-search-hint-line {
    grid-column: 1 / -1;
    color: #9ca3af;
    font-size: 0.9rem;
    text-align: center;
    padding: 1.5rem 0;
}

.fg-search-group {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.fg-search-group-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--accent);
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fg-search-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.55rem;
    border-radius: 6px;
    text-decoration: none;
    color: #ffffff;
    transition: background 0.14s ease;
}

.fg-search-row:hover,
.fg-search-row.is-active {
    background: rgba(245, 166, 35, 0.18);
}

.fg-search-thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
}

.fg-search-thumb.is-round {
    border-radius: 50%;
    object-position: top center;
}

.fg-search-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fg-search-meta strong {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fg-search-meta small {
    font-size: 0.74rem;
    color: #9ca3af;
}

/* Knockout Bracket Hub */
.fg-bracket-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
    align-items: stretch;
}

.fg-bracket-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fg-bracket-round-lbl {
    text-align: center;
    font-size: 0.86rem;
    font-weight: 900;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--accent-text);
}

.fg-bracket-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}

.fg-bracket-list.is-centered {
    justify-content: center;
}

.fg-br-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.fg-br-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.fg-br-match-link {
    color: var(--accent-text);
    text-decoration: none;
}

.fg-br-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.84rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.14s ease;
}

.fg-br-team:last-child {
    border-bottom: 0;
}

.fg-br-team:hover {
    background: var(--bg-surface);
}

.fg-br-team.is-winner {
    background: rgba(245, 166, 35, 0.12);
    font-weight: 900;
}

.fg-br-team-id {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    min-width: 0;
}

.fg-br-team-id img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.fg-br-team-id span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fg-br-score {
    font-weight: 900;
    padding: 0.1rem 0.42rem;
    border-radius: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    min-width: 24px;
    text-align: center;
}

.fg-bracket-trophy-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.2), rgba(234, 179, 8, 0.08));
    border: 1px solid rgba(245, 166, 35, 0.5);
    color: var(--gold);
    font-weight: 900;
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .fg-match-engage-grid {
        grid-template-columns: 1fr;
    }
    .fg-bracket-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================
   Unified Team & National Team Hub
   ============================ */
.fg-pos-hidden {
    display: none !important;
}

button.section-link {
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--accent-text);
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    cursor: pointer;
}

button.section-link:hover {
    color: var(--accent);
}

.fg-team-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--team-accent, #f5a623) 26%, transparent) 0%, transparent 55%),
        linear-gradient(135deg, #13161f 0%, #1c212d 62%, #141821 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.05rem;
}

.fg-team-hero-accent-bar {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--team-accent, #f5a623), var(--accent, #f5a623));
}

.fg-team-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 1.35rem;
    padding: 1.35rem 1.45rem;
    align-items: center;
}

.fg-team-hero-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.fg-team-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.fg-team-crumb-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.fg-team-crumb-pill:hover {
    border-color: var(--accent);
    color: #ffffff;
}

.fg-team-crumb-pill img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.fg-team-crumb-pill.is-national {
    background: rgba(200, 16, 46, 0.22);
    border-color: rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

.fg-team-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.fg-team-crest-box {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid color-mix(in srgb, var(--team-accent, #f5a623) 55%, rgba(255, 255, 255, 0.4));
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.fg-team-crest-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fg-team-title-wrap {
    min-width: 0;
    flex: 1;
}

.fg-team-name {
    margin: 0 0 0.35rem;
    font-size: clamp(1.4rem, 2.3vw, 2rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
}

.fg-team-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
}

.fg-team-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.fg-team-meta-row i {
    color: var(--accent);
    font-size: 0.8rem;
}

.fg-team-kpi-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
}

.fg-team-kpi {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.42rem 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    min-width: 64px;
}

.fg-team-kpi.is-rank {
    background: rgba(245, 166, 35, 0.16);
    border-color: rgba(245, 166, 35, 0.45);
}

.fg-team-kpi.is-rank .fg-team-kpi-val {
    color: var(--accent);
}

.fg-team-kpi-lbl {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.64);
    font-weight: 700;
    line-height: 1.15;
}

.fg-team-kpi-val {
    font-size: 1.02rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
}

.fg-team-form-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.42rem 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.fg-team-form-pills {
    display: flex;
    align-items: center;
    gap: 0.28rem;
}

.fg-form-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 900;
    color: #ffffff;
}

.fg-form-dot.is-w { background: #16a34a; }
.fg-form-dot.is-d { background: #64748b; }
.fg-form-dot.is-l { background: #dc2626; }

.fg-team-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.fg-team-follow-btn:not(.is-following),
.fg-team-ghost-btn {
    border-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.fg-team-follow-btn:not(.is-following):hover,
.fg-team-ghost-btn:hover {
    border-color: var(--accent);
    background: rgba(245, 166, 35, 0.14);
    color: #ffffff;
}

.fg-team-hero-side {
    min-width: 0;
}

.fg-team-showcase-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #0d1016;
    aspect-ratio: 16 / 10;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.fg-team-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fg-team-showcase-overlay {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 1.75rem 0.85rem 0.75rem;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 12, 18, 0.88) 55%, rgba(10, 12, 18, 0.96) 100%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.fg-team-coach-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.fg-team-coach-ico {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.2);
    border: 1px solid rgba(245, 166, 35, 0.55);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.fg-team-coach-cap {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 700;
}

.fg-team-coach-name {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 900;
}

.fg-team-next-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fg-team-next-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.fg-team-pulse-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.fg-team-pulse-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.72rem 0.85rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.fg-team-hero .fg-team-pulse-card {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
}

.fg-team-pulse-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.fg-team-pulse-card.is-live {
    border-color: rgba(220, 38, 38, 0.55);
}

.fg-team-pulse-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.74rem;
}

.fg-team-pulse-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 800;
    color: var(--accent);
}

.fg-team-pulse-kicker img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.fg-team-pulse-date {
    opacity: 0.78;
    font-weight: 700;
}

.fg-team-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 900;
    color: #ffffff;
}

.fg-team-badge.is-w { background: #16a34a; }
.fg-team-badge.is-d { background: #64748b; }
.fg-team-badge.is-l { background: #dc2626; }
.fg-team-badge.is-live { background: #dc2626; }

.fg-team-pulse-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
}

.fg-team-pulse-side {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    font-size: 0.85rem;
    font-weight: 700;
}

.fg-team-pulse-side.is-away {
    flex-direction: row-reverse;
    text-align: end;
}

.fg-team-pulse-side.is-self {
    font-weight: 900;
}

.fg-team-pulse-side img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.fg-team-pulse-side span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fg-team-pulse-score {
    padding: 0.18rem 0.55rem;
    border-radius: 5px;
    background: rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.92rem;
    font-weight: 900;
    text-align: center;
}

.fg-team-pulse-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.72rem;
    opacity: 0.82;
}

.fg-team-countdown {
    color: var(--accent);
    font-weight: 800;
}

.fg-team-pulse-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 800;
    color: var(--accent);
}

/* Interactive Tab Bar */
.fg-team-tabs {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    padding: 0.45rem;
    margin-bottom: 1.15rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.fg-team-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.5rem 0.95rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.fg-team-tab:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.fg-team-tab.active {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
}

.fg-team-tab-count {
    font-size: 0.72rem;
    padding: 0.06rem 0.42rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.14);
}

.fg-team-tab:not(.active) .fg-team-tab-count {
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.fg-team-dual-matches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
    margin-bottom: 1.15rem;
}

.fg-team-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 1.15rem;
    align-items: start;
}

.fg-team-main-col {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    min-width: 0;
}

.fg-team-stars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.fg-team-star-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.42rem;
    padding: 0.85rem 0.65rem;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.15s, transform 0.15s;
}

.fg-team-star-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.fg-team-star-role {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent-text);
    background: var(--accent-soft);
    padding: 0.14rem 0.55rem;
    border-radius: 999px;
}

.fg-team-star-mid {
    position: relative;
    margin-top: 0.15rem;
}

.fg-team-star-mid img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid var(--accent);
    background: var(--bg-surface);
}

.fg-team-star-num {
    position: absolute;
    bottom: -3px;
    inset-inline-end: -5px;
    background: #16181f;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 900;
    padding: 0 5px;
    line-height: 1.35;
}

.fg-team-star-name {
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.25;
}

.fg-team-star-metric {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
}

.fg-team-star-metric strong {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--accent-text);
}

.fg-team-star-metric span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
}

.fg-team-pitch {
    min-height: 455px;
}

.fg-team-pitch .fg-pitch-node {
    max-width: 112px;
}

.fg-team-hub .fg-formation-pill,
.fg-team-hub .fg-rating-pill {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Season Metrics Sidebar Card */
.fg-team-wdl-wrap {
    margin-bottom: 0.9rem;
}

.fg-team-wdl-bar {
    display: flex;
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--bg-elevated);
    margin-bottom: 0.45rem;
}

.fg-team-wdl-bar .is-w,
.fg-team-wdl-legend i.is-w { background: #16a34a; }
.fg-team-wdl-bar .is-d,
.fg-team-wdl-legend i.is-d { background: #94a3b8; }
.fg-team-wdl-bar .is-l,
.fg-team-wdl-legend i.is-l { background: #dc2626; }

.fg-team-wdl-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.74rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.fg-team-wdl-legend i {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-inline-end: 0.25rem;
}

.fg-team-metrics-list {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.fg-team-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.44rem 0.65rem;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    font-size: 0.82rem;
}

.fg-team-metric-row span {
    color: var(--text-secondary);
    font-weight: 600;
}

.fg-team-metric-row strong {
    color: var(--text-primary);
    font-weight: 900;
}

.fg-team-overview-news {
    margin-top: 1.25rem;
}

.fg-team-play-tag {
    position: absolute;
    inset-inline-end: 0.5rem;
    bottom: 0.5rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.78);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Squad Tab */
.fg-team-squad-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.15rem;
}

.fg-team-pos-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.fg-team-search-wrap {
    position: relative;
    min-width: 240px;
    flex: 0 1 290px;
}

.fg-team-search-wrap i {
    position: absolute;
    inset-inline-start: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.fg-team-search-wrap .form-control {
    padding-inline-start: 2.1rem;
    height: 36px;
}

.fg-team-pos-section {
    margin-bottom: 1.25rem;
}

.fg-team-pos-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.96rem;
    font-weight: 900;
    margin: 0 0 0.7rem;
    color: var(--text-primary);
}

.fg-team-pos-badge {
    font-size: 0.74rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-text);
    font-weight: 800;
}

.fg-team-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 0.75rem;
}

.fg-team-player-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.7rem 0.78rem;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.fg-team-player-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.fg-team-player-main {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
    flex: 1;
    text-decoration: none;
    color: var(--text-primary);
}

.fg-team-player-avatar {
    position: relative;
    flex-shrink: 0;
}

.fg-team-player-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid var(--border-strong);
    background: var(--bg-surface);
}

.fg-team-player-num {
    position: absolute;
    bottom: -3px;
    inset-inline-end: -4px;
    background: #16181f;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 900;
    padding: 0 4px;
    line-height: 1.3;
}

.fg-team-player-info {
    min-width: 0;
    flex: 1;
}

.fg-team-player-name {
    font-size: 0.92rem;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fg-team-player-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.74rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0.25rem;
}

.fg-team-mv {
    color: var(--green);
    font-weight: 800;
}

.fg-team-player-stats {
    display: flex;
    gap: 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.fg-team-player-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.42rem;
    flex-shrink: 0;
}

.fg-team-cmp-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.fg-team-cmp-btn:hover {
    border-color: var(--accent);
    color: var(--accent-text);
}

/* Fixtures Tab */
.fg-team-fixtures-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: start;
}

.fg-team-match-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.fg-team-match-item {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.15s;
}

.fg-team-match-item:hover {
    border-color: var(--accent);
}

.fg-team-match-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.73rem;
    color: var(--text-muted);
    font-weight: 700;
}

.fg-team-venue-tag {
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    font-size: 0.69rem;
    font-weight: 800;
}

.fg-team-venue-tag.is-home { background: var(--accent-soft); color: var(--accent-text); }
.fg-team-venue-tag.is-away { background: rgba(2, 132, 199, 0.12); color: var(--blue); }

.fg-team-match-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
}

.fg-team-match-club {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    font-size: 0.85rem;
    font-weight: 700;
}

.fg-team-match-club.is-right {
    flex-direction: row-reverse;
    text-align: end;
}

.fg-team-match-club.is-self {
    font-weight: 900;
}

.fg-team-match-club img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.fg-team-match-club span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fg-team-match-mid {
    padding: 0.18rem 0.55rem;
    border-radius: 5px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-size: 0.86rem;
    font-weight: 900;
}

.fg-team-match-foot {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Transfers Grid inside Team Hub */
.fg-team-transfers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.65rem;
}

.fg-team-transfer-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.62rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
}

.fg-team-tr-dir {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.fg-team-tr-dir.is-in { background: rgba(22, 163, 74, 0.14); color: #16a34a; }
.fg-team-tr-dir.is-out { background: rgba(220, 38, 38, 0.14); color: #dc2626; }

@media (max-width: 960px) {
    .fg-team-hero-grid {
        grid-template-columns: 1fr;
    }
    .fg-team-overview-grid,
    .fg-team-fixtures-grid,
    .fg-team-dual-matches {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .fg-team-hero-grid {
        padding: 1rem;
    }
    .fg-team-crest-box {
        width: 64px;
        height: 64px;
    }
    .fg-team-stars-grid {
        grid-template-columns: 1fr;
    }
    .fg-team-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }
    .fg-team-tab {
        white-space: nowrap;
        padding: 0.45rem 0.75rem;
    }
    .fg-team-search-wrap {
        flex: 1 1 100%;
    }
    .fg-team-pitch .fg-pitch-row {
        gap: 0.22rem;
    }
    .fg-team-pitch .fg-pitch-node {
        max-width: 78px;
    }
    .fg-team-pitch .fg-pitch-name {
        font-size: 0.64rem;
        padding: 0.1rem 0.24rem;
    }
}

/* Broadcast Channel & Commentator Chips */
.fg-channel-chip,
.fg-mic-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.fg-channel-chip i { color: var(--accent-text); }
.fg-mic-chip i { color: #0284c7; }

.fg-match-broadcast-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}
.fg-match-broadcast-line span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Achievement Badges */
.fg-badge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}
.fg-badge-card {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.fg-badge-card.is-earned {
    border-color: rgba(245, 166, 35, 0.55);
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.14), rgba(16, 185, 129, 0.08));
}
.fg-badge-card.is-locked {
    opacity: 0.58;
    filter: grayscale(0.75);
}
.fg-badge-icon {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}
.fg-badge-info { min-width: 0; }
.fg-badge-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}
.fg-badge-prog {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* Friends Mini-Leagues */
.fg-ml-forms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}
.fg-ml-form-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
}
.fg-ml-form-box h3 {
    margin: 0 0 0.55rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
}
.fg-ml-inline {
    display: flex;
    gap: 0.45rem;
}
.fg-ml-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    overflow: hidden;
    margin-bottom: 0.85rem;
}
.fg-ml-card:last-child { margin-bottom: 0; }
.fg-ml-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
}
.fg-ml-code-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.14);
    border: 1px solid rgba(245, 166, 35, 0.45);
    color: var(--accent-text);
    font-weight: 800;
    font-size: 0.78rem;
    cursor: pointer;
}
.fg-ml-code-pill.is-copied {
    background: rgba(22, 163, 74, 0.18);
    border-color: #16a34a;
    color: #16a34a;
}
.fg-ml-members {
    padding: 0.5rem 0.9rem;
}

/* Interactive Lineup Builder */
.fg-lb-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.25rem;
    align-items: start;
}
.fg-lb-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.fg-lb-color-dot {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fg-lb-color-dot.active {
    transform: scale(1.14);
    box-shadow: 0 0 0 3px var(--bg-surface), 0 0 0 5px var(--accent);
}
.fg-lb-hint {
    margin: 0.65rem 0 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.fg-lb-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.fg-lb-stage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}
.fg-lb-stage-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
}
.fg-lb-brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}
.fg-lb-pitch {
    position: relative;
    width: 100%;
    max-width: 680px;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: repeating-linear-gradient(
        180deg,
        #165b31 0%,
        #165b31 11.11%,
        #124a28 11.11%,
        #124a28 22.22%
    );
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3);
}
.fg-lb-slots {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.fg-lb-slot {
    position: absolute;
    transform: translate(-50%, -50%);
    background: transparent;
    border: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.22rem;
    cursor: pointer;
    color: #fff;
    width: 82px;
}
.fg-lb-slot-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--kit-ring, #f5a623);
    background: #141c27;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease;
    font-size: 1.2rem;
    color: var(--accent);
}
.fg-lb-slot:hover .fg-lb-slot-avatar {
    transform: scale(1.08);
}
.fg-lb-slot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fg-lb-slot-num {
    margin-top: -12px;
    padding: 0.05rem 0.4rem;
    border-radius: 6px;
    background: #0b111a;
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 900;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.fg-lb-slot-name {
    padding: 0.12rem 0.42rem;
    border-radius: 6px;
    background: rgba(8, 12, 20, 0.86);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    max-width: 96px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Lineup Builder Player Modal */
.fg-lb-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1200;
}
.fg-lb-modal.open { display: flex; }
.fg-lb-modal-box {
    width: 100%;
    max-width: 520px;
    max-height: 82vh;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.fg-lb-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
    color: var(--text-primary);
}
.fg-lb-modal-close {
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}
.fg-lb-modal-search {
    position: relative;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}
.fg-lb-modal-search i {
    position: absolute;
    inset-inline-start: 1.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.fg-lb-modal-search .form-control {
    padding-inline-start: 2.2rem;
}
.fg-lb-modal-list {
    overflow-y: auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.fg-lb-player-opt {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-primary);
    cursor: pointer;
    text-align: start;
}
.fg-lb-player-opt:hover {
    border-color: var(--accent);
}
.fg-lb-player-opt.is-used {
    opacity: 0.65;
}
.fg-lb-player-opt img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.fg-lb-player-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.fg-lb-player-meta strong {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fg-lb-player-meta span {
    font-size: 0.74rem;
    color: var(--text-muted);
}
.fg-lb-player-rate {
    font-weight: 800;
    color: var(--accent-text);
    font-size: 0.85rem;
}

@media (max-width: 960px) {
    .fg-lb-grid {
        grid-template-columns: 1fr;
    }
    .fg-ml-forms {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .fg-lb-slot { width: 64px; }
    .fg-lb-slot-avatar { width: 42px; height: 42px; border-width: 2px; }
    .fg-lb-slot-name { font-size: 0.62rem; max-width: 68px; }
    .fg-badge-grid { grid-template-columns: 1fr; }
}

/* Arab Nations & Giant Arab Clubs Spotlight */
.fg-arab-spotlight {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.14), rgba(15, 23, 42, 0.04));
    border-inline-start: 4px solid var(--accent);
    margin-bottom: 10px;
}
.fg-arab-bar-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.72rem;
    background: var(--accent);
    color: #111;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}
.fg-arab-club-pill {
    background: #1a2232;
    color: var(--accent);
    border: 1px solid rgba(245, 166, 35, 0.45);
}
.fg-arab-chip img {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(245, 166, 35, 0.55);
}
.fg-scope-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}
.fg-arab-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.16);
    color: var(--accent-text);
    font-size: 0.72rem;
    font-weight: 800;
    border: 1px solid rgba(245, 166, 35, 0.4);
}
.fg-arab-section .fg-league-head {
    border-inline-start: 3px solid var(--accent);
}

/* Home Column 1 Upcoming Matches & Video Carousel Slider */
.fg-upcoming-list {
    display: flex;
    flex-direction: column;
}
.fg-upcoming-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}
.fg-upcoming-item:last-child {
    border-bottom: 0;
}
.fg-upcoming-item:hover {
    background: var(--bg-elevated);
}
.fg-upcoming-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
}
.fg-upcoming-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.45rem;
}
.fg-up-team {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    min-width: 0;
}
.fg-up-team-away {
    justify-content: flex-end;
    text-align: end;
}
.fg-up-team img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}
.fg-up-team strong {
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fg-up-vs {
    font-size: 0.68rem;
    font-weight: 900;
    color: var(--accent-text);
    background: rgba(245, 166, 35, 0.14);
    padding: 0.12rem 0.42rem;
    border-radius: 4px;
}

.fg-videos-head-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.fg-slider-btns {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.fg-slider-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}
.fg-slider-arrow:hover {
    background: var(--accent);
    color: #111;
    border-color: var(--accent);
}
.fg-videos-carousel {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.fg-videos-side-arrow {
    flex-shrink: 0;
    width: 34px;
    height: 54px;
    border-radius: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}
.fg-videos-side-arrow:hover {
    background: var(--accent);
    color: #111;
    border-color: var(--accent);
}
.fg-videos-track {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
    padding-bottom: 2px;
}
.fg-videos-track::-webkit-scrollbar {
    display: none;
}
.fg-video-slide {
    flex: 0 0 calc(25% - 0.675rem);
    min-width: 240px;
    scroll-snap-align: start;
}
@media (max-width: 1024px) {
    .fg-video-slide { flex: 0 0 calc(50% - 0.45rem); }
}
@media (max-width: 640px) {
    .fg-video-slide { flex: 0 0 82%; min-width: 215px; }
    .fg-videos-side-arrow { width: 28px; height: 44px; }
}










/* Mobile standings table — 2026-11-27: fit the full table on phones, no horizontal scroll */
@media (max-width:480px){
  .table-wrap{overflow-x:visible;}
  .standings-table{font-size:.72rem;}
  .standings-table th,.standings-table td{padding:.38rem .12rem;}
  .standings-table th{font-size:.66rem;}
  .standings-table td.team-col a{gap:.25rem !important;}
  .standings-table td.team-col img{width:16px !important;height:16px !important;}
  .standings-table td:nth-child(10){font-size:.78rem !important;}
  .standings-table .form-col{display:none;}
  .standings-table:has(.form-pills) th:last-child,.standings-table:has(.form-pills) td:last-child{display:none;}
  .card:has(.standings-table) .card-body{padding:.75rem .5rem;}
}

/* Mobile standings table (fixed layout) — 2026-11-27: guarantee the full 10-column table fits 360-390px phones */
@media (max-width:480px){
  .standings-table:has(.form-col){table-layout:fixed; width:100%;}
  .standings-table:has(.form-col) th,.standings-table:has(.form-col) td{overflow:hidden; text-overflow:ellipsis;}
  .standings-table:has(.form-col) th:nth-child(1),.standings-table:has(.form-col) td:nth-child(1){width:18px;}
  .standings-table:has(.form-col) th:nth-child(3),.standings-table:has(.form-col) td:nth-child(3){width:26px;}
  .standings-table:has(.form-col) th:nth-child(4),.standings-table:has(.form-col) td:nth-child(4){width:24px;}
  .standings-table:has(.form-col) th:nth-child(5),.standings-table:has(.form-col) td:nth-child(5){width:32px;}
  .standings-table:has(.form-col) th:nth-child(6),.standings-table:has(.form-col) td:nth-child(6){width:24px;}
  .standings-table:has(.form-col) th:nth-child(7),.standings-table:has(.form-col) td:nth-child(7){width:24px;}
  .standings-table:has(.form-col) th:nth-child(8),.standings-table:has(.form-col) td:nth-child(8){width:26px;}
  .standings-table:has(.form-col) th:nth-child(9),.standings-table:has(.form-col) td:nth-child(9){width:34px;}
  .standings-table:has(.form-col) th:nth-child(10),.standings-table:has(.form-col) td:nth-child(10){width:28px;}
  .standings-table:has(.form-col) td.team-col a{min-width:0; max-width:100%;}
  .standings-table:has(.form-col) td.team-col span{overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0;}
}
/* NEWS POLISH — 2026-12-03 */
.articles-grid{gap:1.4rem!important;align-items:stretch}
.fg-card{display:flex!important;flex-direction:column;height:100%;border:1px solid var(--border-color);border-radius:14px!important;overflow:hidden;background:var(--bg-surface);box-shadow:var(--shadow-sm);transition:transform .25s ease,box-shadow .25s ease}
.fg-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.fg-card .fg-media{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--bg-elevated)}
.fg-card .fg-media img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.fg-card:hover .fg-media img{transform:scale(1.06)}
.fg-card .fg-body{padding:1rem 1.1rem 1.15rem!important;display:flex;flex-direction:column;gap:.55rem;flex:1}
.fg-card .fg-title,.fg-card-title{font-size:1.04rem!important;line-height:1.6!important;font-weight:800;color:var(--text-primary);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.fg-card .fg-meta{display:flex;flex-wrap:wrap;gap:.35rem .9rem;align-items:center;margin-top:auto;padding-top:.65rem;border-top:1px solid var(--border-color);font-size:.82rem;color:var(--text-muted)}
.fg-card .fg-cat{padding:.35rem .7rem;font-size:.78rem;font-weight:800;letter-spacing:.02em}
.fg-card .badge-exclusive,.fg-card .badge-official,.article-hero .badge-exclusive,.article-hero .badge-official{position:absolute;top:10px;inset-inline-start:10px;z-index:3;display:inline-flex;align-items:center;gap:.3rem;padding:.42rem .75rem;border-radius:999px;font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;box-shadow:0 4px 12px rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.65)}
.fg-card .badge-exclusive,.article-hero .badge-exclusive{background:var(--live)!important;color:#fff!important}
.fg-card .badge-official,.article-hero .badge-official{background:var(--accent)!important;color:var(--accent-ink)!important}
.fg-card-media{aspect-ratio:16/10;overflow:hidden}
.fg-card-media img{width:100%;height:100%;object-fit:cover}
.fg-card-body{padding:1rem 1.1rem 1.15rem!important;display:flex;flex-direction:column;gap:.55rem;flex:1}
.fg-card-catbar{padding:.55rem 1.1rem;font-size:.8rem;font-weight:800}
.fg-hero-title{line-height:1.55!important}
.fg-hero-lead-title{line-height:1.55!important}
.fg-more-row{display:flex;justify-content:center;margin-top:1.7rem}
.fg-more-btn{padding:.7rem 1.7rem;border-radius:999px;font-weight:800}
.article-hero{position:relative;border-radius:14px;overflow:hidden;box-shadow:var(--shadow-md)}
.article-hero img{width:100%;height:auto;display:block}
.article-title{font-size:clamp(1.55rem,3vw,2.15rem)!important;line-height:1.55!important;font-weight:900;color:var(--text-primary);margin:.9rem 0 .7rem}
.article-meta{display:flex;flex-wrap:wrap;gap:.5rem 1.1rem;align-items:center;padding:.7rem 0;border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color);margin-bottom:1.15rem;color:var(--text-muted);font-size:.88rem}
.article-excerpt{font-size:1.12rem;line-height:1.95;color:var(--text-secondary);background:var(--accent-soft);border-inline-start:4px solid var(--accent);border-radius:10px;padding:1rem 1.15rem;margin:0 0 1.4rem}
.article-body{font-size:1.06rem;line-height:2;color:var(--text-primary)}
.article-body p{margin:0 0 1.15em}
.article-body img{border-radius:12px}
.article-body h2,.article-body h3{line-height:1.6;margin:1.4em 0 .6em}
.fg-side-list{display:flex;flex-direction:column;gap:.85rem}
.fg-side-item{display:flex;gap:.75rem;align-items:flex-start;padding:.65rem;border:1px solid var(--border-color);border-radius:12px;background:var(--bg-surface);transition:border-color .2s ease,box-shadow .2s ease}
.fg-side-item:hover{border-color:var(--accent);box-shadow:var(--shadow-sm)}
.fg-side-thumb{width:88px;height:64px;flex:0 0 88px;border-radius:9px;overflow:hidden}
.fg-side-thumb img{width:100%;height:100%;object-fit:cover}
.fg-side-title{font-size:.92rem;line-height:1.6;font-weight:700;color:var(--text-primary)}
.fg-side-meta{font-size:.78rem;color:var(--text-muted)}
.related-title{margin:2rem 0 1rem;font-size:1.25rem;font-weight:900;color:var(--text-primary)}
.news-page-head{margin-bottom:1.2rem}
.news-cats{display:flex;flex-wrap:wrap;gap:.55rem}
.news-cat{padding:.5rem .95rem;border-radius:999px;border:1px solid var(--border-color);background:var(--bg-surface);font-weight:700;font-size:.88rem;color:var(--text-secondary)}
.news-cat.active,.news-cat:hover{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.pagination{display:flex;flex-wrap:wrap;gap:.4rem;justify-content:center;align-items:center;margin:1.8rem 0 .5rem;padding:0;list-style:none}
.pagination .page-link{display:inline-flex;align-items:center;justify-content:center;min-width:2.3rem;padding:.5rem .7rem;border:1px solid var(--border-color);border-radius:9px;background:var(--bg-surface);color:var(--text-secondary);font-weight:700}
.pagination .page-item.active .page-link{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
@media(max-width:640px){.articles-grid{gap:1rem}.fg-card .fg-body,.fg-card-body{padding:.9rem 1rem 1rem}.fg-card .fg-title,.fg-card-title{font-size:.98rem}.article-excerpt{font-size:1.02rem;line-height:1.85;padding:.85rem .95rem}.fg-side-thumb{width:76px;height:56px;flex-basis:76px}}
/* END NEWS POLISH — 2026-12-03 */
