/* ═══════════════════════════════════════════════════════════════════════════
   Kano Pillars FC — Fan Site Stylesheet
   Colors: #FFD700 (yellow) / #009933 (green) on dark background
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Variables ──────────────────────────────────────────────────────────── */
:root {
    --yellow:        #FFD700;
    --yellow-dim:    #CCAA00;
    --green:         #009933;
    --green-bright:  #00C041;

    --bg:            #0D1117;
    --surface:       #161B22;
    --surface-2:     #1E242E;
    --surface-3:     #252D3A;
    --border:        #2D3748;
    --border-light:  #3A4556;

    --text:          #E8EDF5;
    --text-muted:    #8B95A7;
    --text-faint:    #5A6478;

    --font:          'Inter', system-ui, -apple-system, sans-serif;
    --radius:        10px;
    --radius-sm:     6px;
    --radius-lg:     16px;

    --shadow:        0 2px 12px rgba(0,0,0,.4);
    --shadow-lg:     0 8px 32px rgba(0,0,0,.5);

    --container:     1100px;
    --gutter:        clamp(16px, 4vw, 32px);
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ─── Container ─────────────────────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13,17,23,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 16px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo-badge {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo-text strong {
    font-size: .95rem;
    font-weight: 700;
    color: var(--yellow);
    letter-spacing: .02em;
}
.logo-text small {
    font-size: .7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--yellow); }
.nav-toggle { display: none; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    padding: clamp(36px, 6vw, 64px) 0 clamp(32px, 5vw, 52px);
    border-bottom: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 340px;
    background: radial-gradient(ellipse at center, rgba(255,215,0,.07) 0%, transparent 68%);
    pointer-events: none;
}
.hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
}
.hero-badge {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(255,215,0,.22));
    flex-shrink: 0;
}
.hero-titles { text-align: left; }
.hero-name {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--yellow);
    letter-spacing: -.02em;
    line-height: 1.1;
}
.hero-tagline {
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-top: 5px;
}
.hero-desc {
    max-width: 500px;
    margin: 0 auto 28px;
    font-size: clamp(.88rem, 2vw, .98rem);
    color: var(--text-muted);
    line-height: 1.7;
}
.hero-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-width: 820px;
    margin: 0 auto;
}
.hero-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
    text-align: center;
}
.hero-nav-btn:hover {
    border-color: rgba(255,215,0,.5);
    background: var(--surface-2);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.hnb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--yellow);
    transition: background .2s;
    flex-shrink: 0;
}
.hero-nav-btn:hover .hnb-icon {
    background: rgba(255,215,0,.12);
}
.hnb-icon svg { width: 20px; height: 20px; }
.hnb-label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: .02em;
}
.hnb-desc {
    font-size: .7rem;
    color: var(--text-muted);
    line-height: 1.4;
}
@media (max-width: 680px) {
    .hero-brand { flex-direction: column; gap: 12px; }
    .hero-titles { text-align: center; }
    .hero-badge { width: 64px; height: 64px; }
    .hero-nav { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .hero-nav-btn:last-child {
        grid-column: 1 / -1;
        flex-direction: row;
        padding: 14px 20px;
        justify-content: center;
        gap: 12px;
    }
    .hero-nav-btn:last-child .hnb-desc { display: none; }
}

/* ─── SEO / About block ──────────────────────────────────────────────────── */
.seo-block {
    padding: clamp(28px, 4vw, 44px) 0 clamp(32px, 5vw, 52px);
}
.seo-block-title {
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-faint);
    margin-bottom: 14px;
}
.seo-block-body {
    max-width: 700px;
}
.seo-block-body p {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.85;
}
.seo-block-body p + p { margin-top: 10px; }
.seo-block-body em { font-style: italic; }

/* ─── Author block (article pages) ──────────────────────────────────────── */
.author-block {
    margin-top: 36px;
    padding: 20px 24px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 6px;
    align-items: start;
}
.author-avatar {
    grid-row: 1 / 3;
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), #005522);
    display: block;
    overflow: hidden;
    flex-shrink: 0;
    transition: opacity .2s;
}
.author-avatar:hover { opacity: .85; }
.author-avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    color: #fff;
    letter-spacing: .03em;
}
.author-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.author-info {
    grid-column: 2;
    grid-row: 1;
}
.author-written-by {
    display: block;
    font-size: .67rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-faint);
    margin-bottom: 3px;
}
.author-name {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.author-name a { color: inherit; }
.author-name a:hover { color: var(--yellow); }
.author-bio-short {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}
.author-more {
    grid-column: 2;
    grid-row: 2;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-faint);
    transition: color .15s;
    align-self: center;
}
.author-more:hover { color: var(--yellow); }
@media (min-width: 600px) {
    .author-block {
        grid-template-columns: 56px 1fr auto;
        grid-template-rows: 1fr;
        align-items: center;
    }
    .author-avatar { grid-row: 1; }
    .author-info   { grid-row: 1; }
    .author-more   { grid-column: 3; grid-row: 1; white-space: nowrap; }
}

/* ─── About page ─────────────────────────────────────────────────────────── */
.about-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}
.about-photo-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), #005522);
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid var(--border);
}
.about-avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.8rem;
    color: #fff;
    letter-spacing: .02em;
}
.about-photo-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-name {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 6px;
}
.about-author-title {
    font-size: .83rem;
    color: var(--text-muted);
}
.about-bio p {
    font-size: .93rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 14px;
}
.about-bio p:last-child { margin-bottom: 0; }
.about-bio a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.about-section-title {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
@media (max-width: 500px) {
    .about-header { flex-direction: column; text-align: center; }
    .about-photo-wrap { width: 90px; height: 90px; }
}

/* ─── Contact page ───────────────────────────────────────────────────────── */
.page-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 24px;
}
.contact-body p {
    font-size: .93rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}
.contact-body a { color: var(--yellow); }
.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.contact-method:first-of-type { border-top: 1px solid var(--border); }
.contact-method-label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-faint);
    width: 90px;
    flex-shrink: 0;
}
.contact-link {
    font-size: .93rem;
    font-weight: 500;
    color: var(--text);
    transition: color .15s;
}
.contact-link:hover { color: var(--yellow); }
.contact-note {
    font-size: .83rem;
    color: var(--text-muted);
    margin-top: 24px;
    line-height: 1.7;
}
.contact-note a { color: var(--yellow); }

/* ─── Blocks ─────────────────────────────────────────────────────────────── */
.block {
    padding: clamp(32px, 5vw, 56px) 0;
    border-bottom: 1px solid var(--border);
}
.block:last-child { border-bottom: none; }

.block-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}
.block-header-link {
    margin-left: auto;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-faint);
    text-decoration: none;
    white-space: nowrap;
}
.block-header-link:hover { color: var(--yellow); }
.block-title {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 800;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: .04em;
    position: relative;
}
.block-title::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--yellow);
    border-radius: 2px;
}
.block-meta {
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.block-footer {
    margin-top: 24px;
    text-align: center;
}
.empty-state {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 48px 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: .9rem;
}
.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: .5;
}
.empty-state-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px;
}
.empty-state-text {
    font-size: .875rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 340px;
    margin-inline: auto;
}

/* ─── Last Match ─────────────────────────────────────────────────────────── */
.match-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 4vw, 40px);
    box-shadow: var(--shadow);
}
.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;  /* logos always top-aligned regardless of name height */
    gap: 16px;
}
.team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.team-block.team-away {
    align-items: center; /* mirror home team — both centered in their grid cell */
}
.team-badge-wrap {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-2);
    border: 2px solid var(--border);
    overflow: hidden;
    transition: border-color .2s;
}
.team-badge-wrap:has(.our-team) {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255,215,0,.15);
}
.team-badge {
    width: 52px;
    height: 52px;
    object-fit: contain;
}
.team-name {
    font-size: clamp(.8rem, 2vw, .95rem);
    font-weight: 600;
    color: var(--text-muted);
    max-width: 140px;
}
.our-team-name { color: var(--yellow) !important; }

/* Clickable team links (last-match block) */
.team-badge-link {
    display: block;
    border-radius: 50%;
    transition: opacity .2s;
}
.team-badge-link:hover { opacity: .8; }
.team-name.team-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s;
}
.team-name.team-link:hover { color: var(--yellow); }

/* Score block */
.score-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    align-self: center; /* score stays vertically centered while teams align to top */
}
.score-digits {
    display: flex;
    align-items: center;
    gap: 8px;
}
.score-num {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--text-muted);
    line-height: 1;
    min-width: 40px;
    text-align: center;
}
.score-num.score-winner { color: var(--text); }
.score-sep {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--border-light);
}
.score-status {
    font-size: .7rem;
    font-weight: 700;
    color: var(--green-bright);
    text-transform: uppercase;
    letter-spacing: .12em;
    background: rgba(0,192,65,.12);
    border: 1px solid rgba(0,192,65,.25);
    padding: 2px 8px;
    border-radius: 20px;
}
.score-date {
    font-size: .78rem;
    color: var(--text-faint);
}

/* Scorers */
.match-scorers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.scorers-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.scorers-away { text-align: right; align-items: flex-end; }
.scorer {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    color: var(--text-muted);
}
.scorers-away .scorer { flex-direction: row-reverse; }
.goal-icon { color: var(--yellow); flex-shrink: 0; }
.scorer em { font-style: normal; color: var(--text-faint); font-size: .75rem; }

/* Stats accordion */
.match-stats-wrap { margin-top: 20px; }
.stats-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-muted);
    font-size: .85rem;
    font-weight: 600;
    transition: background .15s;
}
.stats-toggle:hover { background: var(--surface-3); }
.stats-toggle .chevron { transition: transform .2s; }
.stats-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.match-stats {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: 12px 0;
}
.stat-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    padding: 6px 14px;
    font-size: .82rem;
}
.stat-row:nth-child(even) { background: rgba(255,255,255,.02); }
.stat-label {
    text-align: center;
    color: var(--text-faint);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.stat-val { font-weight: 600; }
.stat-val:last-child { text-align: right; }

/* ─── Form Strip ─────────────────────────────────────────────────────────── */
.form-strip-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.form-strip-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: .07em;
    white-space: nowrap;
}
.btn-view-results {
    margin-left: auto;
    display: inline-block;
    padding: 5px 14px;
    border: 1.5px solid var(--yellow);
    border-radius: 20px;
    color: var(--yellow);
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.btn-view-results:hover {
    background: var(--yellow);
    color: #000;
}
.form-strip {
    display: flex;
    gap: 5px;
    align-items: center;
}
.form-badge {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    font-size: .75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    letter-spacing: .02em;
}
.form-badge:hover { transform: translateY(-2px); }
.form-badge.form-badge-active {
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px var(--yellow);
}
.form-badge-sm { width: 24px; height: 24px; font-size: .68rem; border-radius: 5px; flex-shrink: 0; }
.form-W { background: rgba(0,192,65,.15);  color: #00C041; border: 1px solid rgba(0,192,65,.3); }
.form-D { background: rgba(255,215,0,.12); color: #FFD700; border: 1px solid rgba(255,215,0,.25); }
.form-L { background: rgba(239,68,68,.12); color: #EF4444; border: 1px solid rgba(239,68,68,.25); }

/* Highlighted row in form table (on badge click) */
.form-table tr.form-row-active { background: rgba(255,215,0,.07); }
.form-table tr.form-row-active .form-opp-link { color: var(--yellow); }
.form-table tr.form-row-active .form-table-score { color: var(--yellow); }

/* Mobile form table */
.form-table {
    display: none;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    border-collapse: collapse;
    table-layout: fixed;   /* columns never shift regardless of content */
    font-size: .8rem;
}
.form-table tr { border-bottom: 1px solid rgba(255,255,255,.04); }
.form-table tr:last-child { border-bottom: none; }
.form-table td { padding: 6px 3px; vertical-align: middle; }

/* Fixed column widths — opponent gets whatever is left */
.form-table td:nth-child(1) { width: 28px; }
.form-table td:nth-child(3) { width: 36px; text-align: center; white-space: nowrap; }
.form-table td:nth-child(4) { width: 26px; text-align: center; }
.form-table td:nth-child(5) { width: 46px; text-align: right;  white-space: nowrap; }

.form-table-opponent {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-main);
    font-weight: 500;
}
.form-table-score { font-weight: 700; color: var(--text-main); }
.form-table-venue { font-size: .62rem; font-weight: 700; text-transform: uppercase; color: var(--text-faint); }
.form-table-date  { font-size: .7rem;  color: var(--text-faint); }
.form-opp-link {
    color: var(--text-main);
    text-decoration: none;
    transition: color .2s;
}
.form-opp-link:hover { color: var(--yellow); }

@media (max-width: 640px) {
    .form-table       { display: table; order: 3; width: 100%; }
    .btn-view-results { order: 4; display: block; margin-left: 0; width: 100%; text-align: center; margin-top: 6px; }
}

/* ─── Next Matches ───────────────────────────────────────────────────────── */
.fixtures-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fixture-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    position: relative;
    transition: border-color .15s, transform .15s;
}
.fixture-card:hover { border-color: var(--border-light); transform: translateX(3px); }
.fixture-comp {
    font-size: .72rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}
.fixture-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}
.fixture-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-muted);
}
.fixture-team.our-side { color: var(--yellow); font-weight: 600; }
.fixture-team img {
    width: 28px;
    height: 28px;
    min-width: 28px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--surface-2);
}
.fixture-team-away { justify-content: flex-end; text-align: right; }
.fixture-team-away img { order: 1; }
.fixture-team-link {
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: color .2s;
}
.fixture-team-link:hover { color: var(--yellow); }
.fixture-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 56px;
}
.vs-date {
    font-size: .7rem;
    color: var(--text-faint);
    font-weight: 600;
    text-transform: uppercase;
}
.vs-text {
    font-size: .75rem;
    color: var(--border-light);
    font-weight: 700;
    letter-spacing: .08em;
}
.vs-time {
    font-size: .72rem;
    color: var(--yellow);
    font-weight: 600;
}
.fixture-venue {
    margin-top: 8px;
    font-size: .72rem;
    color: var(--text-faint);
}

/* ─── Season tabs ────────────────────────────────────────────────────────── */
.season-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.season-tab {
    padding: 5px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: .03em;
    transition: background .15s, color .15s, border-color .15s;
}
.season-tab:hover {
    border-color: var(--yellow);
    color: var(--text);
}
.season-tab.active {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #111;
}

/* ─── Standings ──────────────────────────────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.standings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .875rem;
}
.standings-table thead tr th {
    background: var(--surface-2);
    padding: 10px 12px;
    font-size: .7rem;
    font-weight: 700;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}
.standings-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.standings-table tbody tr:last-child td { border-bottom: none; }
.standings-table tbody tr { background: var(--surface); transition: background .1s; }
.standings-table tbody tr:nth-child(even) { background: rgba(22,27,34,.6); }
.standings-table tbody tr:hover { background: var(--surface-2); }
.standings-table tbody tr.our-team-row {
    background: rgba(255,215,0,.07) !important;
    border-left: 3px solid var(--yellow);
}
.standings-table tbody tr.our-team-row td { font-weight: 600; }

.col-pos { text-align: center; width: 36px; color: var(--text-muted); }
.col-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
}
.col-num { text-align: center; width: 40px; }
.col-pts { font-weight: 700; color: var(--text); }
.standings-badge {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}
.our-team-tag {
    color: var(--yellow);
    font-size: .6rem;
    margin-left: 4px;
}
.standings-team-link {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.standings-team-link:hover { color: var(--yellow); }

/* ─── News ───────────────────────────────────────────────────────────────── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, border-color .2s;
}
.news-card:hover { transform: translateY(-3px); border-color: var(--border-light); }
.news-card-img-link { display: block; }
.news-card-img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--surface-2);
}
.news-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.news-source {
    font-size: .7rem;
    font-weight: 700;
    color: var(--green-bright);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.news-date {
    font-size: .7rem;
    color: var(--text-faint);
}
.news-card-title {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.35;
}
.news-card-title a { color: var(--text); }
.news-card-title a:hover { color: var(--yellow); }
.news-card-excerpt {
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}

.btn-all-news {
    display: inline-block;
    padding: 10px 28px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: border-color .15s, color .15s, background .15s;
}
.btn-all-news:hover {
    border-color: var(--yellow);
    color: var(--yellow);
    background: rgba(255,215,0,.06);
}

/* ─── News page extras ───────────────────────────────────────────────────── */
.news-grid-full {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    transition: border-color .15s, color .15s, background .15s;
}
.page-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.page-btn.active { border-color: var(--yellow); color: var(--yellow); background: rgba(255,215,0,.08); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 32px 0 24px;
    margin-top: 0;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-brand strong {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: var(--yellow);
}
.footer-brand small {
    display: block;
    font-size: .72rem;
    color: var(--text-faint);
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    justify-content: center;
}
.footer-nav a {
    font-size: .82rem;
    color: var(--text-muted);
    transition: color .15s;
}
.footer-nav a:hover { color: var(--yellow); }
.footer-copy {
    font-size: .75rem;
    color: var(--text-faint);
    line-height: 1.6;
}
.footer-copy a { color: var(--text-muted); text-decoration: underline; }

/* ─── Match Highlights ───────────────────────────────────────────────────── */
.match-highlights {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
}
.highlights-label {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-faint);
    border-bottom: 1px solid var(--border);
}
.highlights-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}
.highlights-embed iframe,
.highlights-embed .yt-facade {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.highlights-embed iframe { border: none; display: block; }

/* YouTube facade — loads player only on click */
.yt-facade {
    cursor: pointer;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.yt-facade-thumb {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity .2s;
}
.yt-facade:hover .yt-facade-thumb { opacity: .85; }
.yt-facade-play {
    position: relative;
    z-index: 1;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
    opacity: .95;
    transition: opacity .2s, transform .15s;
}
.yt-facade-play:hover { opacity: 1; transform: scale(1.08); }

/* ─── VS Page ────────────────────────────────────────────────────────────── */
.vs-hero {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 32px 0 28px;
    margin-bottom: 0;
}
.vs-back {
    display: inline-block;
    font-size: .8rem;
    color: var(--text-faint);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color .15s;
}
.vs-back:hover { color: var(--yellow); }

.vs-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}
.vs-club {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.vs-badge-wrap {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.vs-badge-wrap img { width: 58px; height: 58px; object-fit: contain; }
.our-badge { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,215,0,.15); }
.vs-club-name { font-size: .88rem; font-weight: 600; color: var(--text-muted); }
.our-name     { color: var(--yellow); }

.vs-record-block { text-align: center; }
.vs-versus    { font-size: .75rem; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.vs-record    { display: flex; gap: 6px; justify-content: center; margin-bottom: 6px; }
.vsr          { font-size: .88rem; font-weight: 800; padding: 4px 10px; border-radius: 6px; }
.vsr-w        { background: rgba(0,192,65,.15);  color: #00C041; }
.vsr-d        { background: rgba(255,215,0,.12); color: var(--yellow); }
.vsr-l        { background: rgba(239,68,68,.12); color: #EF4444; }
.vs-totals    { font-size: .72rem; color: var(--text-faint); }

/* Match cards on vs page */
.vs-matches   { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }

.vmatch-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .15s;
}
.vmatch-card:hover { border-color: var(--border-light); }

.vmatch-main { padding: 14px 18px; }

.vmatch-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .72rem;
    color: var(--text-faint);
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.vmatch-comp  { text-transform: uppercase; letter-spacing: .05em; }
.vmatch-date  { margin-left: auto; }
.vmatch-venue { font-weight: 700; padding: 1px 6px; border-radius: 4px; font-size: .65rem; text-transform: uppercase; }
.vmatch-venue-h { background: rgba(0,153,51,.15);  color: #00C041; }
.vmatch-venue-a { background: rgba(239,68,68,.12); color: #EF4444; }

.vmatch-score-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.vmatch-result {
    width: 28px; height: 28px;
    border-radius: 6px;
    font-size: .75rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.result-W { background: rgba(0,192,65,.15);  color: #00C041; border: 1px solid rgba(0,192,65,.3); }
.result-D { background: rgba(255,215,0,.12); color: var(--yellow); border: 1px solid rgba(255,215,0,.25); }
.result-L { background: rgba(239,68,68,.12); color: #EF4444; border: 1px solid rgba(239,68,68,.3); }

.vmatch-teams-score {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
}
.vmatch-team {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-muted);
}
.vmatch-team img { border-radius: 2px; flex-shrink: 0; }
.vmatch-team-away { justify-content: flex-end; text-align: right; }
.vmatch-team-away img { order: 1; }
.vmatch-our   { color: var(--yellow); font-weight: 600; }
.vmatch-score {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    white-space: nowrap;
    min-width: 40px;
}

.vmatch-scorers {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: .75rem;
    color: var(--text-faint);
    flex-wrap: wrap;
}
.vmatch-scorers-away { margin-left: auto; text-align: right; }
.vmatch-goal { margin-right: 8px; }

.vmatch-footer {
    border-top: 1px solid var(--border);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Match Report link inside vmatch-footer */
.btn-vmatch-report {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--yellow);
    color: #000;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 20px;
    letter-spacing: .02em;
    flex-shrink: 0;
    transition: opacity .15s;
}
.btn-vmatch-report:hover { opacity: .8; }
/* Stats toggle inside vmatch-footer */
.vmatch-toggle {
    flex: 1;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: .78rem;
    color: var(--text-faint);
    transition: color .15s;
}
.vmatch-toggle:hover { color: var(--text-muted); }
.vmatch-toggle .chevron { transition: transform .2s; }
.vmatch-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.vmatch-details { padding: 12px 18px 16px; border-top: 1px solid var(--border); }

/* Mobile vs page */
@media (max-width: 580px) {
    .vs-teams { grid-template-columns: 1fr; gap: 16px; }
    .vs-record-block { order: -1; }
    .vs-badge-wrap { width: 60px; height: 60px; }
    .vs-badge-wrap img { width: 44px; height: 44px; }
    .vmatch-team span { display: none; } /* hide team names on small screens, keep logos */
    .vmatch-teams-score { gap: 4px; }
}

/* ─── Competition label ──────────────────────────────────────────────────── */
.comp-round {
    display: inline-block;
    font-size: .72em;
    color: var(--text-faint);
    background: rgba(255,255,255,.07);
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: .02em;
    vertical-align: middle;
    margin-left: 2px;
}

/* ─── Next match highlight ───────────────────────────────────────────────── */
.fixture-card-next {
    border-color: rgba(255,215,0,.35);
    border-left: 3px solid var(--yellow);
    background: linear-gradient(160deg, rgba(255,215,0,.06) 0%, var(--surface) 60%);
}
.fixture-next-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}
.fixture-next-label {
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--yellow);
    background: rgba(255,215,0,.14);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: .9rem;
    font-weight: 700;
    color: var(--yellow);
    letter-spacing: .05em;
    white-space: nowrap;
}
.countdown-timer.countdown-now { color: var(--green); }

/* ─── Results page ───────────────────────────────────────────────────────── */
.results-month { margin-bottom: 28px; }
.results-month-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-faint);
    margin: 0 0 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}
.results-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: .85rem;
}
.results-table tbody tr { border-bottom: 1px solid rgba(255,255,255,.04); }
.results-table tbody tr:last-child { border-bottom: none; }
.results-table tbody tr:hover { background: var(--surface); }
.results-table td { padding: 7px 6px; vertical-align: middle; }

/* Fixed column widths */
.rt-result  { width: 34px; }
.rt-venue   { width: 24px; font-size: .65rem; font-weight: 700; text-transform: uppercase; color: var(--text-faint); }
.rt-opponent{ /* auto — takes remaining space */ overflow: hidden; }
.rt-score   { width: 40px; text-align: center; font-weight: 700; color: var(--text); white-space: nowrap; }
.rt-comp    { width: 110px; font-size: .72rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-date    { width: 52px; text-align: right; font-size: .75rem; color: var(--text-faint); white-space: nowrap; }
.rt-opp-link { color: var(--text); font-weight: 500; text-decoration: none; transition: color .2s; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-opp-link:hover { color: var(--yellow); }

/* Result badge — shared with form strip */
.result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 800;
}
.result-W { background: rgba(0,153,51,.2);  color: #00cc44; }
.result-D { background: rgba(255,255,255,.08); color: var(--text-muted); }
.result-L { background: rgba(220,38,38,.2);  color: #f87171; }

@media (max-width: 480px) {
    .rt-comp { display: none; }
    .rt-score { width: 36px; }
}

/* ─── Full Schedule button (block-next-matches footer) ───────────────────── */
.btn-full-schedule {
    display: block;
    width: 100%;
    padding: 13px 24px;
    margin-top: 20px;
    background: transparent;
    border: 2px solid var(--yellow);
    border-radius: var(--radius);
    color: var(--yellow);
    font-size: .9rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: .03em;
    transition: background .2s, color .2s;
    text-decoration: none;
}
.btn-full-schedule:hover {
    background: var(--yellow);
    color: #111;
}

/* ─── Breadcrumbs ────────────────────────────────────────────────────────── */
.breadcrumb { margin-bottom: 20px; }
.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .8rem;
    flex-wrap: wrap;
}
.breadcrumb li + li::before {
    content: '›';
    padding: 0 6px;
    color: var(--text-faint);
}
.breadcrumb li { color: var(--text-muted); }
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s;
}
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb [aria-current="page"] { color: var(--text); }
/* vs page — lighter text on dark hero */
.breadcrumb-vs a,
.breadcrumb-vs li { color: rgba(255,255,255,.55); }
.breadcrumb-vs [aria-current="page"] { color: rgba(255,255,255,.85); }
.breadcrumb-vs a:hover { color: var(--yellow); }
.breadcrumb-vs .breadcrumb li + li::before,
.breadcrumb-vs ol li + li::before { color: rgba(255,255,255,.3); }
/* Mobile: truncate long current-page crumb with ellipsis */
@media (max-width: 640px) {
    .breadcrumb [aria-current="page"] {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 52vw;
        min-width: 0;
    }
}

/* ─── Stretched card link ────────────────────────────────────────────────── */
.card-link {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
}

/* ─── Fixtures page ──────────────────────────────────────────────────────── */
.page-back-link {
    display: inline-block;
    font-size: .8rem;
    color: var(--text-faint);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color .15s;
}
.page-back-link:hover { color: var(--yellow); }

.fixtures-month { margin-bottom: 36px; }
.fixtures-month-label {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin-bottom: 2px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.fixtures-month-list { display: flex; flex-direction: column; gap: 0; }

.fxt-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    position: relative;
    gap: 14px;
    padding: 11px 10px 11px 9px;
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--border);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: background .15s;
}
.fxt-row:last-child { border-bottom: none; }
.fxt-row:hover { background: var(--surface-2); }
.fxt-row-h { border-left-color: rgba(0,192,65,.35); }
.fxt-row-a { border-left-color: rgba(239,68,68,.28); }

.fxt-date {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.fxt-day { font-size: .67rem; font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }
.fxt-num { font-size: .88rem; font-weight: 600; color: var(--text); white-space: nowrap; }

.fxt-teams {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: .875rem;
}
.fxt-club {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}
.fxt-club img { flex-shrink: 0; border-radius: 50%; width: 22px; height: 22px; }
.fxt-home { justify-content: flex-end; text-align: right; }
.fxt-away { justify-content: flex-start; text-align: left; }
.fxt-away img { order: 1; }
.fxt-us span   { color: var(--yellow); font-weight: 600; }
.fxt-opp {
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s;
}
.fxt-opp:hover { color: var(--yellow); }
.fxt-vs {
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-faint);
    letter-spacing: .05em;
    flex-shrink: 0;
}

.fxt-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 90px;
}
.fxt-time { font-size: .82rem; color: var(--yellow); font-weight: 700; letter-spacing: .02em; }
.fxt-venue-tag {
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: .04em;
}
.fxt-h { background: rgba(0,153,51,.15);  color: #00C041; }
.fxt-a { background: rgba(239,68,68,.12); color: #EF4444; }
.fxt-comp { font-size: .67rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }

/* ── Fixtures page: 2-line mobile layout ─────────────────────────────────── */
@media (max-width: 600px) {
    /* Switch from 3-col grid to wrapped flex */
    .fxt-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        row-gap: 6px;
        padding: 11px 0;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        background: none;
    }
    .fxt-row:hover { background: none; }

    /* Line 1 LEFT — "Sat, 15 Mar" */
    .fxt-date {
        order: 1;
        flex: 1 1 auto;
        flex-direction: row;
        align-items: baseline;
        gap: 3px;
        min-width: 0;
    }
    .fxt-day { font-size: .7rem; }
    .fxt-day::after { content: ','; }
    .fxt-num { font-size: .8rem; white-space: nowrap; }

    /* Line 1 RIGHT — "16:00  H" + sub-line "NPFL·MD12" */
    .fxt-meta {
        order: 2;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        gap: 4px;
        min-width: auto;
        flex-shrink: 0;
    }
    .fxt-time { font-size: .78rem; }
    .fxt-comp {
        flex: 0 0 100%;
        display: block;
        text-align: right;
        max-width: none;
        font-size: .64rem;
        margin-top: -1px;
    }

    /* Line 2 — "[logo] Home  vs  Away [logo]" — full width */
    .fxt-teams {
        order: 3;
        width: 100%;
        flex: none;
        gap: 4px;
        font-size: .875rem;
        justify-content: center;
    }
    .fxt-club { gap: 5px; min-width: 0; }
    .fxt-club img { width: 20px; height: 20px; }
    .fxt-opp,
    .fxt-us span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 115px;
    }
}

/* ─── Squad page ─────────────────────────────────────────────────────────── */
.squad-group { margin-bottom: 36px; }
.squad-group-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-faint);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}
.squad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}
.squad-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    transition: border-color .15s, transform .15s;
}
.squad-card-link:hover { border-color: var(--yellow); transform: translateY(-2px); }
.squad-card-img {
    position: relative;
    background: var(--surface-2);
    padding: 16px 12px 0;
    min-height: 96px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.squad-card-img img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: block;
}
.squad-number {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--yellow);
    color: #111;
    font-size: .65rem;
    font-weight: 900;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.squad-card-info { padding: 10px 8px 14px; }
.squad-name {
    font-size: .82rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 4px;
}
.squad-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: .7rem;
    color: var(--text-faint);
}
.squad-pos-detail {
    color: var(--yellow);
    font-size: .68rem;
    font-weight: 600;
}

/* ─── Player profile page ────────────────────────────────────────────────── */
.block-player-page { padding: 32px 0 60px; }

.player-header {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 28px;
}
.player-photo-wrap {
    position: relative;
    flex-shrink: 0;
}
.player-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid var(--border);
    background: var(--surface-2);
    display: block;
}
.player-header-number {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: var(--yellow);
    color: #111;
    font-size: .7rem;
    font-weight: 900;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
}
.player-header-info { flex: 1; min-width: 0; }
.player-header-pos {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--yellow);
    margin-bottom: 6px;
}
.player-header-name {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 14px;
    color: var(--text);
}
.player-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}
.player-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: .85rem;
    color: var(--text);
}
.player-meta-label {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-faint);
}

.player-section-title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-faint);
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.player-section-note {
    font-size: .65rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-faint);
    opacity: .7;
}
.stats-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-left: 3px solid var(--text-faint);
    border-radius: var(--radius-sm);
    font-size: .78rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.stats-disclaimer svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--text-faint);
}

.player-stats-section { margin-bottom: 28px; }
.player-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.player-stat-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 12px;
    text-align: center;
}
.player-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
}
.player-stat-label {
    font-size: .7rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.player-stat-sub {
    font-size: .65rem;
    color: var(--text-faint);
    margin-top: 4px;
    opacity: .7;
}
.stat-yellow .player-stat-num { color: #f5c518; }
.stat-red    .player-stat-num { color: #e53935; }

.player-matches-section { margin-bottom: 28px; }
.player-matches-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.player-match-row {
    display: grid;
    grid-template-columns: 90px 28px 1fr 52px 50px auto;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    font-size: .82rem;
    transition: border-color .15s, background .15s;
}
.player-match-row:hover { border-color: var(--yellow); background: var(--surface-2); }
.pmr-date { color: var(--text-muted); font-size: .75rem; white-space: nowrap; }
.pmr-badge {
    font-size: .6rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pmr-home { background: rgba(0,153,51,.18); color: var(--green-bright); }
.pmr-away { background: rgba(229,57,53,.15); color: #ef5350; }
.pmr-opp {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.pmr-score {
    font-weight: 700;
    font-size: .85rem;
    text-align: center;
    white-space: nowrap;
}
.pmr-score-w { color: var(--green-bright); }
.pmr-score-l { color: #ef5350; }
.pmr-score-d { color: var(--text-muted); }
.pmr-role { font-size: .72rem; color: var(--text-faint); text-align: center; }
.pmr-sub { color: var(--green-bright); font-weight: 600; }
.pmr-events { display: flex; gap: 6px; flex-wrap: wrap; font-size: .72rem; }
.pmr-goal { color: var(--text-muted); }
.pmr-card { font-size: .7rem; }

@media (max-width: 600px) {
    .player-header { flex-direction: column; align-items: center; text-align: center; padding: 20px 16px; }
    .player-header-meta { justify-content: center; }
    .player-header-name { font-size: 1.4rem; }
    .player-photo { width: 100px; height: 100px; }
    .player-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .player-match-row { grid-template-columns: 70px 24px 1fr 44px; gap: 6px; font-size: .78rem; }
    .pmr-role, .pmr-events { display: none; }
}

/* ─── Match Report page ─────────────────────────────────────────────────── */
.mr-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
}
.mr-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.mr-badge { width: 64px; height: 64px; object-fit: contain; }
.mr-ours  { filter: drop-shadow(0 0 8px rgba(255,215,0,.3)); }
.mr-team-name {
    font-size: clamp(.75rem, 2vw, .95rem);
    font-weight: 600;
    color: var(--text-muted);
    max-width: 120px;
}
.mr-ours-name { color: var(--yellow); }
.mr-score-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.mr-score {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    font-weight: 800;
    line-height: 1;
}
.mr-score-sep { color: var(--text-faint); font-weight: 300; margin: 0 8px; }
.mr-meta-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.mr-dot { color: var(--text-faint); }
.mr-vs-link { text-align: center; margin-bottom: 28px; font-size: .82rem; }
.mr-vs-link a { color: var(--text-faint); text-decoration: none; transition: color .15s; }
.mr-vs-link a:hover { color: var(--yellow); }

/* Timeline */
.mr-timeline {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.tl-header {
    display: grid;
    grid-template-columns: 1fr 52px 1fr;
    padding: 9px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.tl-side {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-faint);
}
.tl-side-away { text-align: right; }
.tl-row {
    display: grid;
    grid-template-columns: 1fr 52px 1fr;
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    align-items: center;
    font-size: .875rem;
    min-height: 40px;
}
.tl-row:last-child { border-bottom: none; }
.tl-row.tl-substitution { opacity: .7; }
.tl-home {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    text-align: right;
}
.tl-time {
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}
.tl-away {
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: left;
}
.tl-sub { display: flex; flex-direction: column; gap: 2px; }
.inc-player { color: var(--text); font-weight: 500; }
.inc-sub-in  { font-size: .8rem; color: var(--green-bright); }
.inc-sub-in::before  { content: '↑ '; }
.inc-sub-out { font-size: .8rem; color: var(--text-muted); }
.inc-sub-out::before { content: '↓ '; }

/* Incident icons */
.inc-goal  { font-size: .95rem; }
.inc-og    { font-size: .62rem; font-weight: 700; background: var(--surface-3); padding: 1px 4px; border-radius: 3px; color: var(--text-muted); }
.inc-yellow-card,
.inc-red-card {
    display: inline-block;
    width: 10px;
    height: 14px;
    border-radius: 2px;
    vertical-align: middle;
    flex-shrink: 0;
}
.inc-yellow-card { background: #FFD700; }
.inc-red-card    { background: #E53E3E; }

/* Results table */
.rt-score-link {
    font-weight: 800;
    font-size: 1rem;
    color: var(--yellow);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
    transition: border-color .15s;
}
.rt-score-link:hover { border-bottom-color: var(--yellow); }
.rt-report { width: 24px; text-align: right; }
.rt-report-arrow {
    color: var(--text-faint);
    text-decoration: none;
    font-size: .85rem;
    display: inline-block;
    transition: color .12s, transform .12s;
}
.rt-score-link:hover ~ td .rt-report-arrow,
.rt-report-arrow:hover { color: var(--yellow); transform: translateX(2px); }

/* Last match — score as link */
a.score-digits { text-decoration: none; }
a.score-digits:hover .score-num { color: var(--yellow); }
a.score-digits:hover .score-sep { color: var(--text-muted); }

/* Last match — Match Report button */
.btn-match-report {
    display: inline-block;
    margin-top: 6px;
    padding: 5px 14px;
    background: var(--yellow);
    color: #000;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 20px;
    letter-spacing: .02em;
    transition: opacity .15s;
}
.btn-match-report:hover { opacity: .8; }

/* vs page — score link */
a.vmatch-score { text-decoration: none; transition: color .15s; }
a.vmatch-score:hover { color: var(--yellow); }

/* Missed penalty indicator */
.inc-missed-pen { display: inline-flex; align-items: center; gap: 3px; color: var(--text-faint); }
.inc-missed-pen small { font-size: .72rem; font-style: italic; }

/* ─── Line-ups ────────────────────────────────────────────────────────────── */
.lineup-section { margin-top: 36px; }
.mr-section-title {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Formation labels row */
.lineup-meta {
    display: flex;
    justify-content: space-between;
    font-size: .72rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding: 0 4px;
}
.lineup-meta em { color: var(--yellow); font-style: normal; margin-left: 4px; }
.lineup-meta-away-side { text-align: right; }
.lineup-meta-away-side em { margin-left: 0; margin-right: 4px; }

/* ── Pitch (mobile-first: VERTICAL) ─────────────────────────────────────── */
.lineup-pitch {
    background: linear-gradient(180deg, #2a5225 50%, #285020 50%);
    border-radius: 8px;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}
/* Each half */
.lineup-half {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 0;
    flex: 1;
}
/* Home half: GK at bottom — reverse so GK row appears last */
.lineup-half.lineup-home { flex-direction: column-reverse; }

/* Each row (line of players: DEF row, MID row, etc.) */
.lineup-row {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: flex-start;
}
/* Center divider (horizontal on mobile) */
.lineup-divider {
    height: 1px;
    background: rgba(255,255,255,.2);
    margin: 2px 8%;
    flex-shrink: 0;
    position: relative;
}
.lineup-divider::after {
    content: '';
    position: absolute;
    left: 50%; top: -10px;
    transform: translateX(-50%);
    width: 20px; height: 20px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
}

/* Individual player */
.lp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 40px;
}
.lp-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 800;
    flex-shrink: 0;
}
.lp-kp  { background: var(--yellow); color: #000; }
.lp-opp { background: rgba(255,255,255,.85); color: #111; }
.lp-name {
    font-size: .55rem;
    color: rgba(255,255,255,.85);
    text-align: center;
    max-width: 44px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* ── Pitch desktop: HORIZONTAL ──────────────────────────────────────────── */
@media (min-width: 600px) {
    .lineup-pitch {
        flex-direction: row;
        background: linear-gradient(90deg, #2a5225 50%, #285020 50%);
        min-height: 260px;
        padding: 12px 10px;
    }
    /* Each half becomes a row of columns */
    .lineup-half {
        flex-direction: row;
        gap: 4px;
        padding: 0;
        align-items: stretch;
    }
    /* Re-order halves: home LEFT (order 0), divider (1), away RIGHT (2)
       HTML has away-first for correct mobile stacking (away top, home bottom) */
    .lineup-half.lineup-home  { order: 0; flex-direction: row; }
    .lineup-half.lineup-away  { order: 2; flex-direction: row-reverse; }

    /* Each "row" becomes a vertical column of players */
    .lineup-row {
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        flex: 1;
        gap: 6px;
    }
    /* Divider becomes vertical */
    .lineup-divider {
        order: 1;
        width: 1px;
        height: auto;
        margin: 8% 6px;
        background: rgba(255,255,255,.2);
    }
    .lineup-divider::after {
        top: 50%; left: -10px;
        transform: translateY(-50%);
    }
    .lp-num { width: 30px; height: 30px; font-size: .75rem; }
    .lp-name { max-width: 52px; font-size: .58rem; }
    .lp { min-width: 0; }
}

/* ── Substitutes bench ─────────────────────────────────────────────────── */
.lineup-bench { margin-top: 16px; }
.lineup-bench-title {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-faint);
    margin-bottom: 8px;
}
.lineup-bench-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}
.lineup-bench-team {
    font-size: .7rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.lineup-bench-player {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: .75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.lineup-bench-num {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .62rem;
    font-weight: 700;
    flex-shrink: 0;
    color: var(--text-muted);
    margin-top: 1px;
}
/* Jersey circle highlight for subs who actually played */
.bench-num-played {
    background: rgba(76,175,80,.15);
    border-color: #4caf50;
    color: #4caf50;
}
.bench-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.bench-name { color: var(--text-muted); }
.bench-sub-detail {
    font-size: .62rem;
    color: var(--text-faint);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}
.bench-sub-arrow {
    color: #4caf50;
    font-weight: 700;
    font-size: .7rem;
    line-height: 1;
}
.bench-sub-sep { opacity: .5; }

/* ─── News list ──────────────────────────────────────────────────────────── */
.page-header { margin-bottom: 28px; }
.page-title   { font-size: 1.6rem; font-weight: 800; color: var(--text); margin: 0 0 4px; }
.page-subtitle { font-size: .85rem; color: var(--text-muted); margin: 0; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.news-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}
.news-card:hover {
    border-color: var(--yellow);
    transform: translateY(-2px);
}
.news-card-inner {
    display: flex;
    flex-direction: column;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    box-sizing: border-box;
}
.news-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: .7rem;
    color: var(--text-faint);
}
.news-source-tag {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: .65rem;
    color: var(--text-muted);
}
.news-card-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    margin: 0 0 10px;
}
.news-card:hover .news-card-title { color: var(--yellow); }
.news-card-excerpt {
    font-size: .78rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 14px;
    flex: 1;
}
.news-card-cta {
    font-size: .72rem;
    font-weight: 600;
    color: var(--yellow);
    margin-top: auto;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
}
.pagination-btn {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 16px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.pagination-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.pagination-info { font-size: .78rem; color: var(--text-faint); }

/* ─── Section pages (news, article, about, contact, squad, etc.) ────────── */
.section {
    padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 6vw, 72px);
}

/* ─── News article ────────────────────────────────────────────────────────── */
.container--narrow { max-width: 720px; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    color: var(--text-faint);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb span { color: var(--text-faint); }

.news-article { background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }

.article-header { margin-bottom: 24px; }
.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: .72rem;
    color: var(--text-faint);
}
.article-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    margin: 0;
}

.article-body p {
    font-size: .9rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0 0 1.1em;
}
.article-body p:last-child { margin-bottom: 0; }

.article-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: .72rem;
    color: var(--text-faint);
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-source-label { color: var(--text-faint); }
.article-source-link { color: var(--text-muted); text-decoration: underline; }
.article-source-link:hover { color: var(--yellow); }

.article-nav { margin-top: 20px; }
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color .2s, color .2s;
}
.btn-back:hover { border-color: var(--yellow); color: var(--yellow); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .block-title::before { display: none; }
    .block-header { flex-direction: column; gap: 4px; }

    /* Last match: keep 1fr auto 1fr layout, just scale down */
    .match-teams { gap: 8px; }
    .team-badge-wrap { width: 52px; height: 52px; }
    .team-badge     { width: 36px; height: 36px; }
    .team-name      { font-size: .72rem; max-width: 90px; }
    .score-block    { min-width: 60px; gap: 2px; }
    .score-date     { display: none; }
    .match-scorers { grid-template-columns: 1fr; }
    .scorers-away { text-align: left; align-items: flex-start; flex-direction: column; }
    .scorers-away .scorer { flex-direction: row; }

    /* Fixtures */
    .fixture-team span { display: none; }
    .fixture-teams { grid-template-columns: auto 1fr auto; }

    /* Standings */
    .col-hide-sm { display: none; }
    .col-team { min-width: 120px; }

    /* News */
    .news-grid { grid-template-columns: 1fr; }

    /* Nav — mobile dropdown */
    .main-nav { display: none; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13,17,23,.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 2px solid var(--border);
        padding: 6px 0 10px;
        gap: 0;
        z-index: 99;
    }
    .main-nav.open .nav-link {
        padding: 13px var(--gutter);
        border-radius: 0;
        font-size: .95rem;
        color: var(--text-muted);
        border-bottom: 1px solid var(--border);
    }
    .main-nav.open .nav-link:last-child { border-bottom: none; }
    .main-nav.open .nav-link:hover,
    .main-nav.open .nav-link.active { color: var(--yellow); background: var(--surface-2); }

    /* Hamburger button */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 8px;
        background: none;
        border: none;
        cursor: pointer;
    }
    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--text-muted);
        border-radius: 2px;
        transition: transform .2s ease, opacity .2s ease;
    }
    /* Hamburger → X when open */
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 400px) {
    .score-num { font-size: 2.2rem; }
    .team-badge-wrap { width: 56px; height: 56px; }
    .team-badge { width: 40px; height: 40px; }
}
