/* ==========================================
   SPORTS HUB — Sporting Theme
   ========================================== */

/* ---------- Variables ---------- */
:root {
    --primary: #0d1b2a;
    --primary-light: #1b2838;
    --accent: #00e676;
    --accent-hover: #00c853;
    --accent-secondary: #ff6d00;
    --danger: #ff1744;
    --surface: #ffffff;
    --surface-alt: #f4f6f9;
    --text: #1a1a2e;
    --text-light: #6c757d;
    --text-on-dark: #e0e0e0;
    --border: #dee2e6;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 16px;
    --gradient-hero: linear-gradient(135deg, #0d1b2a 0%, #1b4332 50%, #0d1b2a 100%);
    --gradient-accent: linear-gradient(135deg, #00e676 0%, #00bfa5 100%);
    --gradient-warm: linear-gradient(135deg, #ff6d00 0%, #ff1744 100%);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
    padding: 0;
    background: var(--surface-alt);
}

a { color: var(--accent-secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--danger); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */
header {
    background: var(--primary);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}
header h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
header h1 a {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
header h1 a:hover { color: var(--accent); }
header h1 .logo-icon {
    font-size: 1.8rem;
}

nav { display: flex; align-items: center; gap: 0.25rem; }
nav a {
    color: var(--text-on-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}
nav a:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}
nav a.active {
    color: var(--accent);
}

/* ---------- Hero Section ---------- */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(0,230,118,0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255,109,0,0.1) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(2%, -2%); }
}
.hero h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hero p {
    font-size: 1.2rem;
    opacity: 0.85;
    position: relative;
    max-width: 600px;
    margin: 0.5rem auto 1.5rem;
}
.hero .btn {
    position: relative;
}

/* ---------- Main Content ---------- */
main {
    padding: 2.5rem 0;
    min-height: 60vh;
}

/* ---------- Section Headers ---------- */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent);
}
.section-header h1, .section-header h2 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.section-header .icon {
    font-size: 1.8rem;
}

h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

/* ---------- Tables ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
thead {
    background: var(--primary);
    color: white;
}
th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
tbody tr {
    transition: background 0.15s;
}
tbody tr:hover {
    background: #e8f5e9;
}
tbody tr:last-child td {
    border-bottom: none;
}

/* Position highlights */
tbody tr:nth-child(1) td:first-child,
tbody tr:nth-child(2) td:first-child,
tbody tr:nth-child(3) td:first-child,
tbody tr:nth-child(4) td:first-child {
    border-left: 4px solid var(--accent);
    font-weight: 800;
}
/* Relegation zone */
tbody tr:nth-last-child(1) td:first-child,
tbody tr:nth-last-child(2) td:first-child,
tbody tr:nth-last-child(3) td:first-child {
    border-left: 4px solid var(--danger);
}

/* Team name column bold */
.team-name {
    font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    background: var(--gradient-accent);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,230,118,0.4);
    color: var(--primary);
}
.btn-secondary {
    background: var(--gradient-warm);
    color: white;
}
.btn-secondary:hover {
    box-shadow: 0 4px 16px rgba(255,109,0,0.4);
    color: white;
}

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.event-card, .article-card, .match-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.25s;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}
.event-card:hover, .article-card:hover, .match-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}
.event-card h3, .article-card h3 { margin-top: 0.5rem; }
.event-card h3 a, .article-card h3 a {
    color: var(--primary);
    font-weight: 700;
}
.event-card h3 a:hover, .article-card h3 a:hover {
    color: var(--accent-secondary);
}

/* ---------- Match Cards ---------- */
a.match-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.match-card {
    text-align: center;
    padding: 1.5rem 1rem;
}
.match-score-row {
    margin: 0.75rem 0 0.5rem;
}
.match-card .match-score {
    display: inline-block;
    background: var(--primary);
    color: var(--accent);
    padding: 0.35rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 800;
    font-size: 1.3rem;
    white-space: nowrap;
    min-width: 70px;
}
.match-card .match-score.upcoming {
    background: var(--surface-alt);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}
.match-card .match-teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    font-size: 1.05rem;
    font-weight: 700;
}
.match-vs-divider {
    color: var(--text-light);
    font-weight: 400;
}
.match-card .match-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
.match-card .match-venue {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}
.match-card .status-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.status-finished { background: #e8f5e9; color: #2e7d32; }
.status-live { background: #ffebee; color: #c62828; animation: livePulse 1.5s infinite; }
.status-scheduled { background: #e3f2fd; color: #1565c0; }
.status-postponed { background: #fff3e0; color: #e65100; }

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ---------- Affiliate CTA ---------- */
.affiliate-cta {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
    border: 2px solid var(--accent-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.25s;
}
.affiliate-cta:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.affiliate-cta .cta-content { flex: 1; }
.affiliate-cta .cta-partner { font-weight: 800; font-size: 1.1rem; color: var(--primary); }
.affiliate-cta .cta-promo { color: var(--text-light); margin: 0.25rem 0 0.75rem; }

/* ---------- Odds Table ---------- */
.odds-table {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin: 1rem 0;
    box-shadow: var(--shadow);
}
.odds-table h3 { margin-top: 0; }

/* ---------- Stats Bar ---------- */
.stats-bar {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.stat-item {
    background: var(--surface);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 150px;
    text-align: center;
    border-top: 4px solid var(--accent);
}
.stat-item .stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
}
.stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* ---------- Event Meta ---------- */
.event-meta, .article-meta {
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}
.event-meta span, .article-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ---------- Footer ---------- */
footer {
    background: var(--primary);
    color: var(--text-on-dark);
    padding: 3rem 0;
    margin-top: 3rem;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-brand h3 {
    color: white;
    font-weight: 800;
    font-size: 1.3rem;
    margin-top: 0;
}
.footer-brand p { opacity: 0.7; font-size: 0.9rem; }
.footer-links h4 {
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.footer-links a {
    display: block;
    color: var(--text-on-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ---------- Page Title Banner ---------- */
.page-banner {
    background: var(--gradient-hero);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}
.page-banner h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 900;
}
.page-banner p {
    opacity: 0.8;
    margin: 0.5rem 0 0;
    font-size: 1.1rem;
}

/* ---------- Fixture List (Schedule page) ---------- */
.fixture-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Grid layout for match cards */
.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}
.match-card-link {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.15s, box-shadow 0.15s;
}
.match-card-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.match-card-date {
    font-size: 0.75rem;
    color: var(--text-light);
}
.match-card-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
}
.match-card-team {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.match-card-team--home { text-align: right; }
.match-card-team--away { text-align: left; }
.match-card-score {
    background: var(--primary);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius);
    font-weight: 800;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.match-card-score--upcoming {
    background: var(--surface-alt, #f0f0f0);
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.8rem;
}
.fixture-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.fixture-pred-badge {
    font-size: 0.72rem;
    color: var(--accent);
    background: var(--primary);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    white-space: nowrap;
    font-weight: 600;
}
.fixture-middle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}
.fixture-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    transition: background 0.15s;
    align-items: stretch;
}
.fixture-row:hover {
    background: #e8f5e9;
}
.fixture-date {
    font-size: 0.8rem;
    color: var(--text-light);
    white-space: nowrap;
}
.fixture-team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 0;
    flex: 1;
}
.fixture-team--home {
    justify-content: flex-end;
    text-align: right;
}
.fixture-team--away {
    justify-content: flex-start;
    text-align: left;
}
.fixture-team-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fixture-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}
.fixture-logo-placeholder {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}
.fixture-score {
    background: var(--primary);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-weight: 800;
    font-size: 1rem;
    white-space: nowrap;
    text-align: center;
    min-width: 55px;
    flex-shrink: 0;
}
.fixture-score--upcoming {
    background: var(--surface-alt);
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.85rem;
}
.fixture-venue {
    font-size: 0.78rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

/* ---------- League Index Cards ---------- */
.league-card-full {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    transition: all 0.25s;
}
.league-card-full:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}
.league-card-full .flag {
    font-size: 2.5rem;
    flex-shrink: 0;
}
.league-card-full .info {
    flex: 1;
    min-width: 0;
}
.league-card-full .info h3 {
    margin: 0 0 0.15rem;
    color: var(--primary);
}
.league-card-full .info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}
.league-card-links {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

/* ---------- Value Bets List (Home page) ---------- */
.value-bets-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.value-bet-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    border-left: 4px solid var(--accent);
}
.value-bet-row:hover {
    background: #e8f5e9;
}
.value-bet-match {
    flex: 1;
    min-width: 0;
}
.value-bet-league {
    font-size: 1.1rem;
    margin-right: 0.25rem;
}
.value-bet-teams {
    font-weight: 700;
    font-size: 0.95rem;
}
.value-bet-date {
    display: block;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 0.15rem;
}
.value-bet-tip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
    min-width: 90px;
    text-align: center;
}
.value-bet-market {
    font-size: 0.72rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.value-bet-selection {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--primary);
}
.value-bet-numbers {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
}
.value-bet-odds {
    background: var(--primary);
    color: var(--accent);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius);
    font-weight: 800;
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: 50px;
    text-align: center;
}
.value-bet-overprice {
    background: var(--accent);
    color: var(--primary);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius);
    font-weight: 800;
    font-size: 0.8rem;
    white-space: nowrap;
    text-align: center;
}
/* value-bet-bottom: hidden on desktop, shown on mobile via media query */
.value-bet-bottom { display: none; }

/* ---------- Match Hero Meta ---------- */
.match-hero-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
    opacity: 0.85;
    flex-wrap: wrap;
}

/* ---------- Table Wrapper (horizontal scroll on mobile) ---------- */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
}
.table-wrapper table {
    min-width: 600px;
}

/* ---------- Player Stats Grid (Match Detail) ---------- */
.player-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .container { padding: 0 1rem; }

    /* Match grid — 2 columns on tablet */
    .match-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero */
    .hero { padding: 3rem 1rem; }
    .hero h2 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    /* Header / Nav */
    header .container { flex-wrap: wrap; gap: 0.5rem; }
    header h1 { font-size: 1.3rem; }
    nav { gap: 0; flex-wrap: wrap; }
    nav a { padding: 0.4rem 0.5rem; font-size: 0.78rem; }

    /* Cards */
    .card-grid { grid-template-columns: 1fr; }

    /* League index cards — stack links below */
    .league-card-full {
        flex-wrap: wrap;
    }
    .league-card-links {
        width: 100%;
        justify-content: flex-end;
    }

    /* Value bets — clean mobile layout */
    .value-bet-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 0.85rem 1rem;
    }
    .value-bet-match { width: 100%; }
    .value-bet-teams {
        white-space: normal;
        word-break: break-word;
        font-size: 1rem;
        line-height: 1.3;
        display: block;
        margin: 0.15rem 0;
    }
    .value-bet-tip { display: none; }   /* tip shown in bottom row */
    .value-bet-numbers { display: none; }
    .value-bet-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        margin-top: 0.1rem;
    }
    .value-bet-bottom .value-bet-tip {
        display: flex;
        flex-direction: row;
        gap: 0.4rem;
        align-items: center;
    }
    .value-bet-bottom .value-bet-numbers {
        display: flex;
        flex-direction: row;
        gap: 0.4rem;
        align-items: center;
    }

    /* Fixture list — mobile tweaks */
    .fixture-row { padding: 0.75rem 1rem; }
    .fixture-team { font-size: 0.88rem; }
    .fixture-venue { display: none; }

    /* Match cards (detail page) — smaller text on mobile */
    .match-card .match-teams {
        font-size: 0.95rem;
        flex-wrap: wrap;
    }
    .match-card .match-score {
        font-size: 1.1rem;
    }

    /* Tables — horizontal scroll */
    table { font-size: 0.85rem; }
    th, td { padding: 0.5rem 0.6rem; }
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 1rem -1rem;
        padding: 0 1rem;
    }

    /* Stats bar — 2 columns on mobile */
    .stats-bar {
        gap: 0.75rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .stat-item { min-width: 0; padding: 1rem; }
    .stat-item .stat-value { font-size: 1.4rem; }

    /* Match detail — player stats single column */
    .player-stats-grid {
        grid-template-columns: 1fr;
    }

    /* Page banner */
    .page-banner { padding: 2rem 0; }
    .page-banner h1 { font-size: 1.8rem; }
    .page-banner p { font-size: 0.95rem; }

    /* Footer */
    .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }

    /* Section headers */
    .section-header { gap: 0.5rem; }
    .section-header .icon { font-size: 1.4rem; }
    .section-header h2 { font-size: 1.25rem; }

    /* Match detail hero meta — stack on mobile */
    .match-hero-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Affiliate CTA */
    .affiliate-cta {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .hero h2 { font-size: 1.6rem; }
    .page-banner h1 { font-size: 1.4rem; }
    header h1 { font-size: 1.1rem; }
    nav a { padding: 0.35rem 0.4rem; font-size: 0.72rem; }
    .match-card .match-teams { font-size: 0.9rem; }
    .stats-bar { grid-template-columns: 1fr; }
    /* Match grid — 1 column on small phones */
    .match-grid { grid-template-columns: 1fr; }
}
