/* ===========================
   GOALRUSH LIVE — STYLE.CSS
   World Cup 2026 Edition
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&family=Roboto+Mono:wght@500&display=swap');

/* ---- RESET & TOKENS ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg:          #0a0e1a;
    --surface:     #111827;
    --surface-2:   #1a2236;
    --border:      #1e2d45;
    --accent:      #00e87a;
    --accent-dim:  rgba(0, 232, 122, 0.12);
    --accent-glow: rgba(0, 232, 122, 0.35);
    --gold:        #f5c842;
    --red:         #ef4444;
    --text:        #e8edf5;
    --text-muted:  #6b7a94;
    --text-dim:    #9aa3b5;
    --radius:      10px;
    --radius-lg:   16px;
    --shadow:      0 4px 24px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* ---- NAVBAR ---- */
.navbar {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.7rem;
    letter-spacing: 2px;
    color: var(--accent);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.25rem;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--surface-2);
}

.nav-links a.active {
    color: var(--accent);
    background: var(--accent-dim);
}

/* ---- HERO ---- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e1a 0%, #0d1f3c 50%, #0a1628 100%);
    padding: 5rem 1rem 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,232,122,0.08) 0%, transparent 70%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e2d45' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

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

.hero-tag {
    display: inline-block;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(0,232,122,0.3);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.2rem;
}

.hero-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 3px;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.hero-time {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-family: 'Roboto Mono', monospace;
}

.hero-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.4);
    color: #ef4444;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
}

.hero-live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-red 1.5s infinite;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: #0a0e1a;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: #00ff85;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    text-decoration: none;
}

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

/* ---- PAGE HEADER (sub-pages) ---- */
.page-header {
    background: linear-gradient(135deg, #0a0e1a 0%, #0d1f3c 100%);
    padding: 3rem 1rem 2.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(0,232,122,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.page-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.8rem;
    letter-spacing: 4px;
    position: relative;
}

.page-header p {
    color: var(--text-dim);
    margin-top: 0.4rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
}

/* ---- MAIN LAYOUT ---- */
.container {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

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

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 1.2em;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ---- CARDS ---- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ---- NEWS ---- */
/* ---- NEWS ---- */

.news-grid{
    display:flex;
    flex-direction:column;
    gap:1.5rem;
}

.news-card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:12px;
    overflow:hidden;
    transition:.3s;
}

.news-card:hover{
    border-color:rgba(0,232,122,.3);
    transform:translateY(-4px);
}

.news-card img{
    display:block;
    width:100%;
    height:auto;
    object-fit:cover;
    border-radius:0;
}

.news-content{
    padding:20px;
}

.news-title{
    margin:0 0 18px;
    font-size:1.4rem;
    line-height:1.5;
    color:var(--text);
    font-weight:700;
}

.read-more-btn{
    display:inline-block;
    padding:10px 22px;
    background:var(--accent);
    color:#0a0e1a;
    text-decoration:none;
    font-weight:700;
    border-radius:6px;
    transition:.3s;
}

.read-more-btn:hover{
    background:#00ff85;
}

/* ---- STANDINGS TABLE ---- */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.standings-table thead th {
    padding: 0.6rem 0.6rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.standings-table thead th:first-child,
.standings-table thead th:nth-child(2) {
    text-align: left;
}

.standings-table tbody td {
    padding: 0.7rem 0.6rem;
    border-bottom: 1px solid rgba(30, 45, 69, 0.6);
    color: var(--text);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.standings-table tbody td:first-child {
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    width: 36px;
}

.standings-table tbody td:nth-child(2) {
    text-align: left;
    font-weight: 600;
}

.standings-table tbody tr:last-child td {
    border-bottom: none;
}

.standings-table tbody tr:hover td {
    background: rgba(255,255,255,0.03);
}

.standings-table td strong,
.standings-table .pts-col {
    font-weight: 700;
    color: var(--accent);
}

/* Qualified rows */
.standings-table tr.qualified-row td:first-child {
    color: var(--accent);
}

.standings-table tr.qualified-row {
    border-left: 3px solid var(--accent);
}

/* Form badges */
.form-badges { display: flex; gap: 3px; }
.form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
}
.form-badge.w { background: rgba(0,232,122,0.2); color: var(--accent); }
.form-badge.d { background: rgba(245,200,66,0.15); color: var(--gold); }
.form-badge.l { background: rgba(239,68,68,0.15); color: var(--red); }

/* ---- MATCHES LIST ---- */
.matches-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.matches-list li {
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    transition: border-color 0.2s;
}

.matches-list li:hover { border-color: rgba(0,232,122,0.25); }

.match-time {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

/* ---- HERO SCOREBOARD ---- */
.hero-scoreboard {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0 1.5rem;
    flex-wrap: wrap;
}

.hero-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    min-width: 120px;
}

.team-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.team-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: var(--text);
    text-align: center;
}

.hero-score-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.hero-score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 8vw, 5rem);
    letter-spacing: 6px;
    color: var(--text);
    line-height: 1;
    text-shadow: 0 0 40px rgba(0,232,122,0.3);
}

.hero-minute {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(0,232,122,0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 1px;
    animation: pulse-min 2s infinite;
}

@keyframes pulse-min {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

.hero-match-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    letter-spacing: 3px;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* ---- HERO BADGE VARIANTS ---- */
.hero-live-badge.upcoming {
    background: rgba(245,200,66,0.12);
    border-color: rgba(245,200,66,0.4);
    color: var(--gold);
}
.hero-live-badge.upcoming::before {
    background: var(--gold);
    animation: none;
}
.hero-live-badge.ft {
    background: rgba(107,122,148,0.15);
    border-color: rgba(107,122,148,0.3);
    color: var(--text-muted);
}
.hero-live-badge.ft::before { display: none; }


.loading-row td, .error-row td {
    text-align: center !important;
    padding: 2rem !important;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-row td { color: var(--red) !important; }

/* ---- GROUP TABS ---- */
.group-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.tab-btn:hover { border-color: rgba(0,232,122,0.3); color: var(--text); }
.tab-btn.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* ---- PREDICTION FORM ---- */
.predict-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.predict-match {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: border-color 0.2s;
}

.predict-match:hover { border-color: rgba(0,232,122,0.2); }

.predict-match label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.select-input {
    width: 100%;
    padding: 0.65rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a94' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    transition: border-color 0.2s;
}

.select-input:focus {
    outline: none;
    border-color: var(--accent);
}

.select-input option { background: var(--surface); color: var(--text); }

/* ---- LEADERBOARD ---- */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.leaderboard-table tr:last-child td { border-bottom: none; }

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8rem;
}

.rank-1 { background: rgba(245,200,66,0.2); color: var(--gold); }
.rank-2 { background: rgba(148,163,184,0.2); color: #94a3b8; }
.rank-3 { background: rgba(180,120,60,0.2); color: #b4783c; }

/* Prediction history */
.history-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.history-list li {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.875rem;
}

.history-list .pred-result {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
}

.history-list .pred-date {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-family: 'Roboto Mono', monospace;
    white-space: nowrap;
}

/* ---- STATS ROW (home page) ---- */
.stats-strip {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 1.5rem;
}

.stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--accent);
    letter-spacing: 2px;
}

.stat-item span {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.82rem;
    margin-top: 3rem;
}

.footer a { color: var(--accent); text-decoration: none; }

/* ---- ALERT / TOAST ---- */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--surface);
    border: 1px solid var(--accent);
    color: var(--text);
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success { border-color: var(--accent); }
.toast.error { border-color: var(--red); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem auto;
        padding: 0 1rem;
    }

    .nav-links { gap: 0.1rem; }
    .nav-links a { padding: 0.4rem 0.65rem; font-size: 0.8rem; }
    .logo { font-size: 1.3rem; }

    .hero { padding: 3rem 1rem 2.5rem; }
    .stats-inner { flex-wrap: wrap; gap: 1.5rem; }
    .stat-item { flex: 1; min-width: 80px; }

    .page-header h2 { font-size: 2rem; }

    .group-tabs { gap: 0.35rem; }
    .tab-btn { padding: 0.35rem 0.7rem; font-size: 0.75rem; }

    .standings-table { font-size: 0.8rem; }
    .standings-table thead th,
    .standings-table tbody td { padding: 0.5rem 0.4rem; }
}

/* ---- UTILITIES ---- */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0 !important; }
.no-data {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* ================================================
   AD SLOTS — layout-safe containers
   All ads are isolated so they NEVER break the grid
   ================================================ */

/* Base ad slot — block element, centred, no overflow */
.ad-slot {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;           /* clips any overflowing iframe */
    width: 100%;
    background: transparent;
}

/* Slot 1: 320×50 strip between stats and main */
.ad-slot--strip {
    padding: 0.6rem 0;
    min-height: 62px;           /* 50px ad + padding, no layout jump */
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

/* Slot 2: 728×90 leaderboard between news cards */
.ad-slot--leaderboard {
    min-height: 102px;          /* 90px + breathing room */
    max-width: 728px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
}

/* Slot 3: native/display below news cards */
.ad-slot--native {
    margin-top: 1.5rem;
    min-height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
}

/* Constrain iframes injected by ad networks */
.ad-slot iframe {
    display: block;
    max-width: 100%;
    border: none;
}

/* ================================================
   SEO H1
   ================================================ */
.hero-h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 400;
    opacity: 0.55;
    margin-bottom: 0.6rem;
}

/* ================================================
   HERO SCOREBOARD
   ================================================ */
.hero-scoreboard {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0 1.5rem;
    flex-wrap: wrap;
}

.hero-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    min-width: 100px;
}

.team-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.team-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: var(--text);
    text-align: center;
}

.hero-score-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.hero-score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 8vw, 5rem);
    letter-spacing: 6px;
    color: var(--text);
    line-height: 1;
    text-shadow: 0 0 40px rgba(0,232,122,0.3);
}

.hero-minute {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(0,232,122,0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 1px;
    animation: pulse-min 2s infinite;
}

@keyframes pulse-min {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

.hero-match-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    letter-spacing: 3px;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* Hero badge variants */
.hero-live-badge.upcoming {
    background: rgba(245,200,66,0.12);
    border-color: rgba(245,200,66,0.4);
    color: var(--gold);
}
.hero-live-badge.upcoming::before {
    background: var(--gold);
    animation: none;
}
.hero-live-badge.ft {
    background: rgba(107,122,148,0.15);
    border-color: rgba(107,122,148,0.3);
    color: var(--text-muted);
}
.hero-live-badge.ft::before { display: none; }

/* ================================================
   MOBILE — full overhaul (max-width: 480px)
   ================================================ */
@media (max-width: 480px) {

    /* Navbar */
    .nav-container { height: 54px; }
    .logo { font-size: 1.15rem; letter-spacing: 1px; }
    .nav-links a { padding: 0.3rem 0.5rem; font-size: 0.75rem; }

    /* Hero */
    .hero { padding: 2.5rem 1rem 2rem; }
    .hero-h1 { font-size: 0.75rem; }

    /* Hero scoreboard — stack vertically on very small screens */
    .hero-scoreboard {
        gap: 0.8rem;
        margin: 0.5rem 0 1rem;
    }
    .team-logo { width: 48px; height: 48px; }
    .team-name { font-size: 1rem; letter-spacing: 1px; }
    .hero-score { font-size: clamp(2rem, 12vw, 3rem); letter-spacing: 4px; }

    /* Stats strip */
    .stats-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 1rem;
        text-align: center;
    }
    .stat-item strong { font-size: 1.5rem; }

    /* Ad slot 1 — on mobile 320px fits fine, just ensure no overflow */
    .ad-slot--strip { padding: 0.4rem 0; min-height: 54px; }

    /* Ad slot 2 — 728px leaderboard is too wide for mobile, scale it down */
    .ad-slot--leaderboard {
        max-width: 100%;
        min-height: 52px;   /* 50px mobile banner height */
        transform-origin: top center;
    }
    /* Scale down the iframe itself so it doesn't overflow */
    .ad-slot--leaderboard iframe {
        transform: scale(0.44);
        transform-origin: top left;
        width: 728px !important;
        margin-bottom: -50px; /* compensate for scale gap */
    }

    /* Main grid already 1-col at 768px, ensure padding */
    .container { padding: 0 0.75rem; margin: 1rem auto; gap: 1rem; }

    /* News cards */
    .news-card { border-radius: 8px; }
    .news-title { font-size: 1.1rem; }
    .news-content { padding: 14px; }
    .read-more-btn { padding: 8px 16px; font-size: 0.85rem; }

    /* Sidebar cards */
    .card { padding: 1rem; border-radius: 10px; }
    .section-title { font-size: 1.1rem; }

    /* Standings table */
    .standings-table { font-size: 0.78rem; }
    .standings-table thead th,
    .standings-table tbody td { padding: 0.45rem 0.3rem; }

    /* Matches list */
    .matches-list li { flex-direction: column; gap: 0.25rem; padding: 0.65rem 0.75rem; font-size: 0.82rem; }
    .match-time { font-size: 0.7rem; }

    /* Buttons */
    .btn-primary { padding: 0.65rem 1.4rem; font-size: 0.82rem; }
    .btn-secondary { padding: 0.5rem 1rem; font-size: 0.75rem; }

    /* Footer */
    .footer { padding: 1.5rem 1rem; font-size: 0.78rem; }
}

/* Tablet (481px – 768px) */
@media (min-width: 481px) and (max-width: 768px) {

    .hero { padding: 3rem 1.5rem 2.5rem; }

    .stats-inner { gap: 1rem; }

    /* Leaderboard ad: scale down gracefully */
    .ad-slot--leaderboard iframe {
        transform: scale(0.6);
        transform-origin: top left;
        width: 728px !important;
        margin-bottom: -36px;
    }

    .container { padding: 0 1rem; gap: 1.25rem; }

    .news-title { font-size: 1.2rem; }

    .matches-list li { flex-direction: column; gap: 0.2rem; font-size: 0.85rem; }
}
