/* ============================================================================
   ELITE SPORTS CLUB — elitesportsclubofficial.com
   ----------------------------------------------------------------------------
   Design system derived from the club crest: black ground, sky-blue stripes,
   white type. One accent colour. Gold is reserved exclusively for the
   championship badge. Depth comes from surface steps and hairlines — never
   from glow. Motion only responds to intent; nothing animates on its own.
   ============================================================================ */

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

:root {
    /* --- Ground: blue-led, never neutral black. Blue is the primary brand
           colour, so it owns the surfaces rather than just the accents. --- */
    --surface-0: #02101C;   /* page ground        */
    --surface-1: #051C2E;   /* alternating band   */
    --surface-2: #0A2437;   /* card               */
    --surface-3: #0F2E45;   /* raised / hover     */
    --surface-4: #14384F;   /* inset              */

    /* --- Hairlines carry the structure --- */
    --line:        #1C4763;
    --line-strong: #2A5F80;

    /* --- Cyan / baby blue: the main brand colour --- */
    --sky:      #4FC8EC;
    --sky-soft: #9BE0F5;
    --sky-deep: #2A9BC8;
    --sky-mid:  #8FCFEA;    /* the crest baby blue, used as a fill */
    --sky-wash: rgba(79, 200, 236, 0.10);

    /* --- Brand black: the footer and dark type on light fills --- */
    --ink: #04101A;

    /* --- Champions gold, bright again now the ground is dark --- */
    --gold:      #E8B93F;
    --gold-wash: rgba(232, 185, 63, 0.10);
    --gold-line: rgba(232, 185, 63, 0.42);

    /* --- Type. White is a brand colour, so headlines are pure white. --- */
    --text-strong: #FFFFFF;
    --text:        #D8E8F2;
    --text-2:      #9BB4C6;
    --text-3:      #7F9BB0;

    /* --- Result semantics --- */
    --win:  #3FBE84;
    --draw: #8B9CAB;
    --loss: #EA6A60;

    /* --- Geometry --- */
    --r-sm: 3px;
    --r:    6px;
    --r-lg: 10px;
    --r-xl: 22px;           /* the cinematic hero frame */

    /* --- Elevation: black, so cards lift off the blue --- */
    --sh-1: 0 1px 2px rgba(0, 0, 0, 0.40);
    --sh-2: 0 6px 20px rgba(0, 0, 0, 0.38);
    --sh-3: 0 22px 60px rgba(0, 0, 0, 0.55);

    /* --- The crest stripe. Against a dark ground the crest's black bars
           would vanish, so white takes their place -- which also puts the
           third brand colour to work. --- */
    --stripe: repeating-linear-gradient(90deg,
        #FFFFFF 0 5px, var(--sky-mid) 5px 10px);
    --stripe-wide: repeating-linear-gradient(90deg,
        #FFFFFF 0 18px, var(--sky-mid) 18px 36px);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);

    --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--surface-0);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* Numerals must line up in every table, score and stat on this site. */
.match-score, .standings-table, .countdown-mini, .stat-number,
.player-stat-value, .scorer-goals-value, .stat-card-value, .scorer-rank {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

::selection { background: var(--sky); color: var(--surface-0); }

:focus-visible {
    outline: 2px solid var(--sky);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* The old build animated three blurred blobs behind the whole page. The
   ground is now flat — photography and the stripe carry the interest. */
.bg-shapes { display: none; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text);
}

/* ============================================================================
   NAVBAR
   ============================================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    padding: 14px 0;
    background: rgba(2, 16, 28, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background 0.25s var(--ease), padding 0.25s var(--ease),
                border-color 0.25s var(--ease);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(2, 16, 28, 0.96);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-img {
    width: 42px; height: 42px;
    object-fit: contain;
    border-radius: var(--r-sm);
    flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; line-height: 1; }

/* Solid white. The old build ran a blue gradient through this text; a club
   wordmark should read as one confident colour. */
.logo-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-strong);
}

.logo-sub {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--sky);
    margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-links a {
    position: relative;
    padding: 8px 13px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-2);
    border-radius: var(--r-sm);
    transition: color 0.18s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text-strong); font-weight: 600; }

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 13px; right: 13px; bottom: 0;
    height: 2px;
    background: var(--sky);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: var(--r);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
                color 0.18s var(--ease);
}

.btn i { font-size: 13px; }

.btn-primary {
    background: var(--sky);
    color: var(--ink);
    border: 1px solid var(--sky);
}
.btn-primary:hover { background: var(--sky-soft); border-color: var(--sky-soft); }

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line-strong);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--text-strong);
    color: var(--text-strong);
}

.btn-view-all {
    background: transparent;
    color: var(--sky);
    border: 1px solid var(--line);
    padding: 11px 20px;
}
.btn-view-all:hover { background: var(--sky-wash); border-color: var(--sky-deep); }
.btn-view-all i { transition: transform 0.18s var(--ease); }
.btn-view-all:hover i { transform: translateX(3px); }

.btn-instagram {
    background: #E1306C;
    color: #FFF;
    border: 1px solid #E1306C;
}
.btn-instagram:hover { background: #C92A5F; border-color: #C92A5F; }

/* ============================================================================
   HERO — centred lockup over a contained cinematic frame
   ----------------------------------------------------------------------------
   The photo is deliberately NOT full-bleed: it sits in a bordered frame that
   lifts off the blue, so the type never competes with faces or kit. Depth
   comes from the frame, its shadow and a real vignette — not from stacked
   coloured glows. One slow zoom is the only motion on the page.
   ============================================================================ */
.hero, .champions-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 132px 24px 72px;
    background: var(--surface-0);
}

/* --- Cinematic ground: one static wash plus a faint grid for scale --- */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero-bg-wash {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 55% at 50% 0%,
            rgba(79, 200, 236, 0.22) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 12% 88%,
            rgba(42, 155, 200, 0.14) 0%, transparent 70%),
        linear-gradient(180deg, #04182A 0%, var(--surface-0) 72%);
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(143, 207, 234, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 207, 234, 0.055) 1px, transparent 1px);
    background-size: 74px 74px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 32%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 32%, #000 0%, transparent 78%);
}

/* --- The framed photograph --- */
.hero-cinematic {
    position: relative;
    width: min(1000px, 100%);
    margin: 38px auto 34px;
}

.hero-cinematic-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-xl);
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(143, 207, 234, 0.30);
    box-shadow: var(--sh-3), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    background: var(--surface-2);
}

.hero-cinematic-image {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 34%;
    animation: heroZoom 34s ease-in-out infinite alternate;
    will-change: transform;
}

/* A cool grade ties the photograph to the brand blue. */
.hero-cinematic-grade {
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg,
        rgba(79, 200, 236, 0.12) 0%, transparent 48%,
        rgba(4, 16, 26, 0.18) 100%);
    pointer-events: none;
}

/* A true vignette — darkened corners, the actual cinematic device. */
.hero-cinematic-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 86% 86% at 50% 45%,
        transparent 55%, rgba(2, 12, 22, 0.38) 100%);
    pointer-events: none;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-cinematic-image { animation: none; }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* The one place gold is allowed on this site. */
.hero-badge, .champions-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px;
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-wash);
    border: 1px solid var(--gold-line);
    border-radius: var(--r-sm);
}
.hero-badge i, .champions-badge i { font-size: 12px; }

/* The page had no <h1> at all before this rewrite. The club name is the
   headline; the gold badge above it carries the championship claim. */
.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
}

.hero-title-main {
    font-family: var(--font-display);
    font-size: clamp(42px, 7.5vw, 92px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
    text-transform: uppercase;
    color: var(--text-strong);
}

.hero-title-sub {
    font-family: var(--font-display);
    font-size: clamp(12px, 1.6vw, 15px);
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--sky);
}

.hero-subtitle {
    font-size: clamp(16px, 1.9vw, 20px);
    line-height: 1.6;
    color: var(--text-2);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}
.hero-subtitle strong { color: var(--sky); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ============================================================================
   SECTION FRAME
   ============================================================================ */
section { position: relative; }

.next-match-section,
.comp-hub-section,
.teams-section,
.matches-section,
.standings-section,
.players-section,
.news-section,
.instagram-section,
.about-section {
    padding: 88px 0;
    background: var(--surface-0);
}

/* Alternating bands give the page rhythm without adding decoration. */
.comp-hub-section,
.standings-section,
.news-section { background: var(--surface-1); }

.next-match-section { padding-top: 10px; }

.section-header { margin-bottom: 40px; max-width: 720px; }

/* The eyebrow carries the stripe; it replaces the old glowing pill. */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: 14px;
}
.section-tag::before {
    content: "";
    width: 24px; height: 11px;
    background: var(--stripe);
    flex-shrink: 0;
}

.section-title {
    font-size: clamp(30px, 4.2vw, 46px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-strong);
    margin-bottom: 12px;
}

/* The accent word is a flat colour, not a gradient fill. */
.section-title span { color: var(--sky); }

.section-subtitle {
    font-size: 15.5px;
    color: var(--text-2);
    line-height: 1.65;
    max-width: 620px;
}

.subsection-title {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 21px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.subsection-title i { color: var(--sky); font-size: 17px; }

.column-hint { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }

/* ============================================================================
   SURFACES
   ----------------------------------------------------------------------------
   Every card in the old build was the same translucent blur with a blue glow.
   Here a card is a solid step above the ground with a hairline. That is all.
   ============================================================================ */
.glass-card,
.dark-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
}

.glass-card-mini {
    background: var(--surface-3);
    border: 1px solid var(--line);
    border-radius: var(--r);
}

/* ============================================================================
   NEXT MATCH + SEASON SNAPSHOT
   ============================================================================ */
.snapshot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    margin-top: 0;         /* the hero no longer sits behind these */
    position: relative;
    z-index: 3;
}

.hero-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--sh-3);
}

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.card-badge {
    font-family: var(--font-display);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--ink);
    background: var(--sky-mid);
    padding: 4px 9px;
    border-radius: var(--r-sm);
}

.card-league { font-size: 12px; color: var(--text-2); text-align: right; }

.hero-card-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.card-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    min-width: 0;
}

.team-logo-wrap {
    width: 60px; height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-4);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 7px;
}

.card-team-logo { width: 100%; height: 100%; object-fit: contain; }

.card-team-name {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.card-vs { display: flex; flex-direction: column; align-items: center; gap: 3px; }

.vs-time {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-strong);
    letter-spacing: -0.02em;
}

.vs-date {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-3);
}

.hero-card-venue {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-2);
}
.hero-card-venue i { color: var(--sky-deep); font-size: 12px; }

.countdown-mini { display: flex; align-items: flex-end; gap: 6px; margin-top: 16px; }

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: var(--surface-4);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 8px 12px;
    min-width: 50px;
}

.countdown-item span {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1;
}

.countdown-item small {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-3);
}

.countdown-sep { color: var(--line-strong); font-size: 17px; padding-bottom: 14px; }

.snapshot-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-3);
}

.snapshot-title h3 {
    font-size: clamp(19px, 2.2vw, 24px);
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.3;
}

.snapshot-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: auto;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 8px;
    background: var(--surface-3);
    border: 1px solid var(--line);
    border-radius: var(--r);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--sky);
    line-height: 1;
}

.stat-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}

.snapshot-cta { align-self: flex-start; }

/* ============================================================================
   EXPLORE HUB
   ----------------------------------------------------------------------------
   Was six identical glowing glass panels. Now each card is a flat surface
   with a stripe on its leading edge that fills in on hover.
   ============================================================================ */
.comp-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}

/* A hairline grid rather than six floating cards: it reads as one object. */
.comp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 24px 22px;
    background: var(--surface-2);
    color: var(--text);
    min-height: 210px;
    transition: background 0.18s var(--ease);
}

.comp-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 3px;
    background: var(--sky);
    transition: width 0.28s var(--ease);
}

.comp-card:hover { background: var(--surface-3); }
.comp-card:hover::before { width: 100%; }

.comp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.comp-card-title {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-strong);
}

.comp-card-title i {
    width: 20px;
    font-size: 15px;
    color: var(--sky);
    text-align: center;
}

.comp-card-meta {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
    white-space: nowrap;
}

.comp-card-body { flex: 1; }

.comp-card-body p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-2);
}

.comp-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--sky);
}
.comp-card-cta i { font-size: 11px; transition: transform 0.2s var(--ease); }
.comp-card:hover .comp-card-cta i { transform: translateX(4px); }

.comp-card-social .comp-card-title i,
.comp-card-social .comp-card-cta { color: #E1306C; }

/* ============================================================================
   TEAMS
   ============================================================================ */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.teams-grid.centered { justify-content: center; }

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 20px 22px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    text-align: center;
    transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.team-card:hover { border-color: var(--line-strong); background: var(--surface-3); }

.team-logo-container {
    width: 78px; height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px;
    background: var(--surface-4);
    border: 1px solid var(--line);
    border-radius: 50%;
    margin-bottom: 4px;
}
.team-logo-container img { width: 100%; height: 100%; object-fit: contain; }
.team-logo-placeholder { font-size: 30px; color: var(--sky-deep); }

.team-card h3 {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.3;
}

.team-division { font-size: 12.5px; color: var(--text-2); }

/* The club tag, in crest colours. */
.team-badge {
    margin-top: 6px;
    padding: 4px 10px;
    font-family: var(--font-display);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--ink);
    background: var(--sky-mid);
    border-radius: var(--r-sm);
}

/* ============================================================================
   TABS — one control, used by matches, leagues, standings and players
   ============================================================================ */
.matches-tabs,
.standings-tabs,
.players-team-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.match-tab,
.standings-tab,
.team-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-3);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.match-tab i, .team-tab i { font-size: 12px; }

.match-tab:hover,
.standings-tab:hover,
.team-tab:hover { color: var(--text); }

.match-tab.active,
.standings-tab.active,
.team-tab.active {
    color: var(--text-strong);
    border-bottom-color: var(--sky);
}

/* Secondary filter row: pills, visually subordinate to the tabs above. */
.league-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 24px;
}

.league-filter-tab {
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-2);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 50px;
    transition: color 0.18s var(--ease), background 0.18s var(--ease),
                border-color 0.18s var(--ease);
}
.league-filter-tab:hover { color: var(--text); border-color: var(--line-strong); }

.league-filter-tab.active {
    color: var(--ink);
    background: var(--sky-mid);
    border-color: var(--sky);
    font-weight: 600;
}

.matches-panel { display: none; }
.matches-panel.active { display: block; }

/* ============================================================================
   MATCH LIST
   ----------------------------------------------------------------------------
   Fixtures are a list, not a deck of cards. Rows share edges so the eye can
   scan down the score column.
   ============================================================================ */
.matches-list,
.matches-full-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface-2);
}

.date-group-header {
    padding: 9px 18px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
    background: var(--surface-1);
    border-bottom: 1px solid var(--line);
}

.match-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
        "home center away"
        "meta meta meta";
    align-items: center;
    gap: 12px 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    position: relative;
    transition: background 0.16s var(--ease);
}
.match-item:last-child { border-bottom: none; }
.match-item:hover { background: var(--surface-3); }
.match-item.clickable { cursor: pointer; }

/* An Elite fixture is marked by the crest stripe on the row edge. */
.match-item.elite-match::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--sky);
    opacity: 0.55;
}

.match-team {
    grid-area: home;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}
.match-team.away { grid-area: away; flex-direction: row-reverse; text-align: right; }

.match-team-logo {
    width: 30px; height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

.match-team-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Our own name is the one that should stand out in a fixture list. */
.match-team-name.elite {
    color: var(--text-strong);
    font-weight: 700;
}

.match-center {
    grid-area: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 76px;
}

.match-score {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-strong);
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.match-time {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-strong);
}

.match-date {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
}

.match-meta {
    grid-area: meta;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding-top: 11px;
    border-top: 1px solid var(--line);
    font-size: 11.5px;
    color: var(--text-3);
}

.match-competition {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sky-deep);
}

.match-venue { display: inline-flex; align-items: center; gap: 6px; }
.match-venue i { font-size: 10px; }

.view-all-container { display: flex; justify-content: center; margin-top: 22px; }

/* ============================================================================
   STANDINGS
   ----------------------------------------------------------------------------
   A league table is a table. Dense, aligned, scannable — the one place on the
   site where information density is the whole point.
   ============================================================================ */
.standings-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.standings-table { min-width: 720px; }

.standings-header,
.standings-row {
    display: grid;
    grid-template-columns: 38px minmax(150px, 1fr) repeat(7, 38px) 46px 108px;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
}

.standings-header {
    height: 38px;
    background: var(--surface-1);
    border-bottom: 1px solid var(--line-strong);
    font-family: var(--font-display);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}
.standings-header span { text-align: center; }
.standings-header span:nth-child(2) { text-align: left; }
.standings-header span:last-child { text-align: left; }

.standings-row {
    height: 50px;
    border-bottom: 1px solid var(--line);
    transition: background 0.16s var(--ease);
}
.standings-row:last-child { border-bottom: none; }
.standings-row:hover { background: var(--surface-3); }

/* Our row, marked with the crest stripe rather than a glow. */
.standings-row.elite {
    background: var(--sky-wash);
    box-shadow: inset 3px 0 0 var(--sky);
}
.standings-row.elite:hover { background: rgba(143, 207, 234, 0.15); }

.standings-position {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-3);
    text-align: center;
}
.standings-row.elite .standings-position { color: var(--sky); }

.standings-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.standings-team-logo { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }

.standings-team-name {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.standings-team-name.elite { color: var(--text-strong); font-weight: 700; }

.standings-stat {
    font-size: 13px;
    color: var(--text-2);
    text-align: center;
}

.standings-points {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    color: var(--text-strong);
    text-align: center;
}

.standings-form { display: flex; gap: 4px; }

/* Form badges are the only place colour signals meaning, so they stay flat
   and unambiguous: green won, grey drew, red lost. */
.form-badge {
    width: 19px; height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    color: var(--surface-0);
    border-radius: var(--r-sm);
    flex-shrink: 0;
}
.form-badge.W { background: var(--win); }
.form-badge.D { background: var(--draw); }
.form-badge.L { background: var(--loss); }   /* dark type, like W and D */

/* ============================================================================
   PLAYERS
   ============================================================================ */
/* --- Roster header: which squad, and how many in it --- */
.roster-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.roster-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-strong);
}

.roster-count {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* See more / See less */
.roster-actions { display: flex; justify-content: center; margin-top: 20px; }

.roster-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 22px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--sky);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--r);
    cursor: pointer;
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
                color 0.18s var(--ease);
}
.roster-toggle:hover {
    background: var(--sky-wash);
    border-color: var(--sky-deep);
    color: var(--sky-soft);
}
.roster-toggle i { font-size: 10px; }

.roster-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--text-3);
}
.roster-note i { color: var(--sky-deep); font-size: 12px; }

/* Squad tab counts */
.team-tab-count {
    margin-left: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
}
.team-tab.active .team-tab-count { color: var(--sky); }

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 14px;
}

.player-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 22px 14px 16px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    text-align: center;
    transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.player-card:hover { border-color: var(--line-strong); background: var(--surface-3); }

/* The shirt number replaces the old position label as the identifier. */
.player-number {
    position: absolute;
    top: 10px; left: 12px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    color: var(--sky);
    font-variant-numeric: tabular-nums;
}

/* Not yet entered — present but visibly unset, never a fake "0". */
.player-number-empty { color: var(--line-strong); }

.player-avatar {
    width: 68px; height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--surface-4);
    border: 1px solid var(--line);
    border-radius: 50%;
    margin-bottom: 8px;
}
.player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-avatar i { font-size: 26px; color: var(--text-3); }

.player-card h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.3;
}

.player-stats {
    display: flex;
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.player-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.player-stat + .player-stat { border-left: 1px solid var(--line); }

.player-stat-value {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
    color: var(--text-strong);
    line-height: 1;
}

.player-stat-label {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* .view-all-players-btn removed: the position groups it expanded are gone. */

/* --- Top scorers: a ranked list, so rank leads --- */
.scorers-section { margin-top: 48px; }

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

.scorer-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: border-color 0.18s var(--ease);
}
.scorer-card:hover { border-color: var(--line-strong); }

.scorer-rank {
    width: 28px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-3);
    text-align: center;
    flex-shrink: 0;
}

/* The golden boot is the only rank that earns emphasis. */
.scorer-card.top-1 { border-color: var(--gold-line); background: var(--gold-wash); }
.scorer-card.top-1 .scorer-rank { color: var(--gold); }

.scorer-info { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }

.scorer-name {
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scorer-team { font-size: 11.5px; color: var(--text-3); }

.scorer-goals {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-left: 14px;
    border-left: 1px solid var(--line);
    flex-shrink: 0;
}

.scorer-goals-value {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--sky);
    line-height: 1.1;
}

.scorer-goals-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* ============================================================================
   NEWS
   ============================================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    cursor: pointer;
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.news-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.news-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface-4);
    flex-shrink: 0;
}

.news-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}
.news-card:hover .news-image img { transform: scale(1.04); }

.news-image-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-3);
}

.news-category {
    position: absolute;
    top: 12px; left: 12px;
    padding: 4px 10px;
    font-family: var(--font-display);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--sky-mid);
    border-radius: var(--r-sm);
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    flex: 1;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
}
.news-date i { font-size: 10px; }

.news-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.35;
}

.news-excerpt {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-2);
    flex: 1;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--sky);
}
.news-read-more i { font-size: 10px; transition: transform 0.2s var(--ease); }
.news-card:hover .news-read-more i { transform: translateX(4px); }

/* ============================================================================
   INSTAGRAM / SOCIAL
   ============================================================================ */
.instagram-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    margin-bottom: 20px;
}

.instagram-profile { display: flex; align-items: center; gap: 15px; }

.insta-avatar {
    width: 56px; height: 56px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid var(--sky);
    padding: 2px;
    flex-shrink: 0;
}
.insta-avatar img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

.insta-info h3 { font-size: 17px; font-weight: 700; color: var(--text-strong); }
.insta-info p { font-size: 13px; color: var(--text-2); }

.insta-stats { display: flex; gap: 18px; font-size: 12.5px; color: var(--text-3); }

/* The club runs Instagram and Facebook only, so the grid is capped rather
   than stretched across the full width. */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 260px));
    gap: 10px;
}

.social-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-2);
    transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
                background 0.18s var(--ease);
}
.social-card i { font-size: 17px; }
.social-card:hover { color: var(--text-strong); background: var(--surface-3); border-color: var(--line-strong); }

/* Brand colour appears on hover only — the resting grid stays neutral. */
.social-card.instagram:hover { color: #E1306C; border-color: rgba(225, 48, 108, 0.5); }
.social-card.facebook:hover  { color: #1877F2; border-color: rgba(24, 119, 242, 0.5); }

.insta-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.insta-post-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--r);
    border: 1px solid var(--line);
}

.insta-post-image { position: relative; aspect-ratio: 1; background: var(--surface-4); }
.insta-post-image img { width: 100%; height: 100%; object-fit: cover; }

.insta-video-icon {
    position: absolute;
    top: 9px; right: 9px;
    width: 24px; height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-strong);
    background: rgba(10, 14, 20, 0.7);
    border-radius: 50%;
}

.insta-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    background: linear-gradient(180deg, transparent 45%, rgba(10, 14, 20, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.22s var(--ease);
}
.insta-post-card:hover .insta-overlay { opacity: 1; }

.insta-caption {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================================
   ABOUT US
   ----------------------------------------------------------------------------
   The motto is real — it is lettered across the top of the club crest — so it
   leads. Everything here is verifiable from the crest, the squads the site
   already lists, and the 2025/26 title. No founding year, trophy count or
   home ground is claimed, because none of that is confirmed.
   ============================================================================ */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

/* A pseudo-element, not border-image: a 90deg repeating gradient sampled
   into a 3px vertical border collapses to a single colour slice. */
.about-motto {
    position: relative;
    margin: 0 0 26px;
    padding: 0 0 22px 26px;
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text-strong);
}

.about-motto::before {
    content: "";
    position: absolute;
    top: 4px; left: 0; bottom: 26px;
    width: 4px;
    background: repeating-linear-gradient(180deg,
        #FFFFFF 0 9px, var(--sky-mid) 9px 18px);
}

.about-motto-mark {
    color: var(--sky);
    font-size: 1.1em;
    line-height: 0;
    margin-right: 2px;
}

.about-motto cite {
    display: block;
    margin-top: 12px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-3);
}

.about-content > p {
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--text-2);
    margin-bottom: 16px;
    max-width: 620px;
}
.about-content > p strong { color: var(--text-strong); font-weight: 600; }

.about-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* --- Side rail: crest over the squad list --- */
.about-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-crest {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background:
        radial-gradient(ellipse 70% 70% at 50% 30%, rgba(79, 200, 236, 0.12) 0%, transparent 70%),
        var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.about-crest-img { width: 148px; height: 148px; object-fit: contain; }

.about-squads {
    list-style: none;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface-2);
}

.about-squads li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}
.about-squads li:last-child { border-bottom: none; }

.about-squad-name {
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
}

.about-squad-note {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
    white-space: nowrap;
}

/* The champions line is the one that earns the gold. */
.about-squads li:first-child .about-squad-name { color: var(--text-strong); }
.about-squads li:first-child .about-squad-note { color: var(--gold); }

/* ============================================================================
   FOOTER
   ============================================================================ */
/* The footer is the crest black. It anchors a bright page and is the one
   large dark surface in the design, so its text tokens are re-stated here. */
.footer {
    position: relative;
    padding: 64px 0 28px;
    background: var(--ink);
    color: #E8EEF4;
}
/* Inverted against the black footer: the crest's black bars would simply
   disappear here, so white takes their place. */
.footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: repeating-linear-gradient(90deg,
        #FFFFFF 0 18px, var(--sky-mid) 18px 36px);
}
.footer .footer-brand > p,
.footer .footer-links a { color: #9FB0BF; }
.footer .footer-links a:hover { color: var(--sky-mid); }
.footer .footer-links h4 { color: #7C8C9B; }
.footer .footer-logo-name { color: #FFF; }
.footer .footer-logo-sub { color: var(--sky-mid); }
.footer .footer-bottom p { color: #7C8C9B; }
.footer .footer-badges .badge { color: #9FB0BF; border-color: #2A3540; }
.footer .footer-badges .badge-champions { color: #E8B93F; border-color: #5C4A1E; }
.footer .footer-social a {
    color: #9FB0BF;
    background: #141C25;
    border-color: #2A3540;
}
.footer .footer-social a:hover {
    color: var(--ink);
    background: var(--sky-mid);
    border-color: var(--sky-mid);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
}

.footer-brand > p {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-2);
    margin: 16px 0 20px;
    max-width: 380px;
}

.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo-img { width: 44px; height: 44px; object-fit: contain; border-radius: var(--r-sm); }

.footer-logo-name {
    display: block;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-strong);
    line-height: 1;
}

.footer-logo-sub {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--sky);
    margin-top: 4px;
}

.footer-social { display: flex; gap: 8px; }

.footer-social a {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-2);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: color 0.18s var(--ease), background 0.18s var(--ease),
                border-color 0.18s var(--ease);
}
.footer-social a:hover {
    color: var(--surface-0);
    background: var(--sky);
    border-color: var(--sky);
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 16px;
}

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }

.footer-links a {
    font-size: 13.5px;
    color: var(--text-2);
    transition: color 0.18s var(--ease);
}
.footer-links a:hover { color: var(--sky); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 24px;
}
.footer-bottom p { font-size: 12.5px; color: var(--text-3); }

.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.footer-badges .badge {
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-2);
    border: 1px solid var(--line);
    border-radius: 50px;
}

/* Gold is claimed by an explicit class, never by document order — the
   fixtures page footer has only the neutral CIFA badge. */
.footer-badges .badge-champions {
    color: var(--gold);
    border-color: var(--gold-line);
}

/* ============================================================================
   MODALS
   ============================================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal.active { display: flex; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 11, 0.82);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    max-height: 86vh;
    overflow-y: auto;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-3);
}

.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 2;
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-2);
    background: var(--surface-3);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.modal-close:hover { color: var(--text-strong); background: var(--surface-4); }

.modal-body { padding: 32px; }
.modal-body img { width: 100%; border-radius: var(--r); margin-bottom: 20px; }
.modal-body h2 { font-size: 26px; font-weight: 800; color: var(--text-strong); margin-bottom: 14px; }

.modal-body .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--text-3);
}
.modal-body .meta span { display: inline-flex; align-items: center; gap: 6px; }
.modal-body .meta i { font-size: 11px; color: var(--sky-deep); }

.modal-body .content,
.modal-body p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-2);
}
.modal-body .content p + p { margin-top: 15px; }

/* --- Match events modal --- */
.events-modal-content { max-width: 560px; }
.events-modal-body { padding: 0; }

.events-modal-header {
    padding: 30px 28px 22px;
    background: var(--surface-1);
    border-bottom: 1px solid var(--line);
}

.events-modal-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.events-modal-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    text-align: center;
}
.events-modal-team img { width: 46px; height: 46px; object-fit: contain; }

.events-modal-team-name {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.events-modal-score {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 800;
    color: var(--text-strong);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.events-modal-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-top: 18px;
    font-size: 12px;
    color: var(--text-3);
}

.events-list { display: flex; flex-direction: column; padding: 8px 0; }

.event-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 28px;
    border-bottom: 1px solid var(--line);
}
.event-item:last-child { border-bottom: none; }

.event-minute {
    width: 34px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.event-icon {
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--surface-4);
    border: 1px solid var(--line);
    color: var(--text-2);
}
.event-icon.goal   { color: var(--win); border-color: rgba(63, 179, 127, 0.45); }
.event-icon.yellow { color: var(--gold); border-color: var(--gold-line); }
.event-icon.red    { color: var(--loss); border-color: rgba(217, 83, 79, 0.45); }
.event-icon.sub    { color: var(--sky); border-color: rgba(143, 207, 234, 0.45); }

.event-details { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.event-player { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.event-assist { font-size: 12px; color: var(--text-3); }

.no-events {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 56px 28px;
    text-align: center;
    color: var(--text-3);
}
.no-events i { font-size: 30px; color: var(--line-strong); }

/* ============================================================================
   EMPTY, LOADING AND OFF-SEASON STATES
   ============================================================================ */
.loading-state,
.no-matches,
.no-players-message,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 64px 24px;
    text-align: center;
    color: var(--text-3);
    font-size: 14px;
    grid-column: 1 / -1;
}
.no-matches i,
.no-players-message i,
.empty-state i { font-size: 34px; color: var(--line-strong); }

.empty-state h3 { font-size: 20px; color: var(--text-strong); }
.empty-state p { font-size: 14.5px; color: var(--text-2); max-width: 420px; }

.loader {
    width: 26px; height: 26px;
    border: 2px solid var(--line-strong);
    border-top-color: var(--sky);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Off-season --- */
.offseason-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 44px 30px;
    text-align: center;
}

.offseason-icon {
    width: 54px; height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: var(--gold);
    background: var(--gold-wash);
    border: 1px solid var(--gold-line);
    border-radius: 50%;
    margin-bottom: 5px;
}

.offseason-eyebrow {
    font-family: var(--font-display);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.offseason-card h3 { font-size: 21px; font-weight: 700; color: var(--text-strong); }

.offseason-card p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-2);
    max-width: 360px;
}
.offseason-card p strong { color: var(--text); }

.offseason-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-2);
    background: var(--surface-3);
    border: 1px solid var(--line);
    border-radius: 50px;
}
.offseason-pill i { color: var(--sky); font-size: 11px; }

.no-matches.offseason-empty { padding: 56px 28px; gap: 12px; }
.no-matches.offseason-empty i { font-size: 32px; color: var(--gold); }
.no-matches.offseason-empty h3 { font-size: 20px; font-weight: 700; color: var(--text-strong); }
.no-matches.offseason-empty p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-2);
    max-width: 440px;
}
.no-matches.offseason-empty p strong { color: var(--text); }

/* ============================================================================
   SCROLL REVEAL
   ----------------------------------------------------------------------------
   A single 12px lift, once. The old build floated, pulsed and shone
   simultaneously and never stopped.
   ============================================================================ */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================================================
   SECONDARY PAGES — fixtures.html, club.html, match.html
   ============================================================================ */
.fixtures-page { padding-top: 0; }

/* These pages have no hero image, so the navbar needs its own ground. */
.fixtures-page .navbar { padding: 12px 0; }

.page-hero {
    position: relative;
    padding: 132px 0 56px;
    background: var(--surface-1);
    border-bottom: 1px solid var(--line);
}

.page-hero-content { position: relative; z-index: 2; }

/* Secondary pages make no championship claim, so their eyebrow badge takes
   the sky accent rather than the reserved gold. */
.page-hero-content .hero-badge {
    margin-bottom: 16px;
    color: var(--sky);
    background: var(--sky-wash);
    border-color: rgba(143, 207, 234, 0.34);
}

.page-hero h1 {
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-strong);
    margin-bottom: 12px;
}
.page-hero h1 span { color: var(--sky); }

.page-hero p {
    font-size: 15.5px;
    color: var(--text-2);
    max-width: 580px;
    margin-bottom: 22px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--sky);
    transition: gap 0.18s var(--ease);
}
.back-link:hover { gap: 12px; }

/* The decorative wave divider is gone; a hairline does the same job. */
.page-wave { display: none; }

.fixtures-content { padding: 48px 0 88px; }
.fixtures-container { max-width: 1000px; margin: 0 auto; }

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}
.stats-row .stat-card { flex: 1 1 130px; max-width: 220px; }

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 20px 16px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    text-align: center;
}

.stat-card-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--sky);
    line-height: 1;
}

.stat-card-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}

.month-divider {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 32px 0 12px;
    padding-bottom: 10px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sky);
    border-bottom: 1px solid var(--line);
}
.month-divider:first-child { margin-top: 0; }
.month-divider i { font-size: 12px; }

/* --- club.html / match.html shells --- */
.club-wrap, .mr-wrap { max-width: 900px; margin: 0 auto; padding: 118px 24px 72px; }

.club-bar, .mr-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.club-head { margin-bottom: 26px; }

.mr-state, .state {
    padding: 56px 24px;
    text-align: center;
    color: var(--text-3);
    font-size: 14px;
}

.article, .article-body, .summary {
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--text-2);
}
.article-body p + p, .article p + p { margin-top: 15px; }

.stories-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.story {
    flex: 0 0 auto;
    width: 200px;
    padding: 16px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1024px) {
    .comp-hub-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-visual { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .snapshot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container, .nav-container { padding: 0 18px; }

    /* Nav collapses to a full-width sheet under the bar. */
    .nav-links {
        position: fixed;
        top: 66px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 18px 20px;
        background: rgba(2, 16, 28, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.26s var(--ease), opacity 0.2s var(--ease);
    }
    .nav-links.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-links a { padding: 13px 4px; font-size: 15px; border-bottom: 1px solid var(--line); }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links a.active::after { left: 4px; right: auto; width: 22px; }

    .mobile-menu-btn { display: flex; }

    .hero, .champions-hero { padding: 104px 18px 56px; }
    .hero-cinematic { margin: 26px auto 26px; }
    .hero-cinematic-frame { aspect-ratio: 4 / 3; border-radius: 14px; }
    .hero-cta { width: 100%; }
    .hero-cta .btn { flex: 1; }

    .next-match-section, .comp-hub-section, .teams-section, .matches-section,
    .standings-section, .players-section, .news-section, .instagram-section,
    .about-section { padding: 60px 0; }
    .next-match-section { padding-top: 0; }

    .comp-hub-grid { grid-template-columns: 1fr; }

    /* Match rows stack: teams above, meta below, score in the middle. */
    .match-item { padding: 14px; gap: 10px 12px; }
    .match-team-logo { width: 26px; height: 26px; }
    .match-team-name { font-size: 13px; }
    .match-center { min-width: 62px; }
    .match-score { font-size: 19px; }

    .players-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .scorers-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }

    .instagram-banner { flex-direction: column; align-items: flex-start; }
    .instagram-banner .btn { width: 100%; }

    .modal { padding: 14px; }
    .modal-body { padding: 26px 20px; }
    .events-modal-header { padding: 26px 18px 18px; }
    .event-item { padding: 11px 18px; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .page-hero { padding: 108px 0 44px; }
    .club-wrap, .mr-wrap { padding: 100px 18px 60px; }
}

@media (max-width: 480px) {
    .hero-card, .snapshot-stats { padding: 18px; }
    .team-logo-wrap { width: 50px; height: 50px; }
    .countdown-item { padding: 7px 9px; min-width: 43px; }
    .countdown-item span { font-size: 16px; }
    .teams-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .snapshot-stat-grid { gap: 7px; }
    .stat-number { font-size: 23px; }
    .events-modal-score { font-size: 27px; }
}
