/* ============================================
   Spots - الستايل العام
   تصميم عصري، خفيف، متجاوب، RTL
   ============================================ */

:root {
    --primary: #2563eb; /* Gemini Blue */
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #1e293b;
    --bg: #f8f9fc;
    --bg-muted: #f1f5f9;
    --bg-card: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: rgba(15, 23, 42, 0.1);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gold: #fbbf24;
    --silver: #cbd5e1;
    --bronze: #d97706;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
    --shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 20px 25px -5px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.05);}

* { box-sizing: border-box; margin: 0; padding: 0; transition: none !important; animation: none !important; }

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

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

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

/* ========== Layout ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
@media (max-width: 640px) {
    .container {
        padding: 0;
    }
    
    /* جعل العناصر الرئيسية تمتد لأطراف الشاشة بدون حواف مع ترك فراغ داخلي 5 بكسل */
    .card, .hero, .team-bio-card, .team-stats-lite, .competition-hero, .match-hero, .match-panel {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* الجداول وشرائط المباريات تمتد للأطراف */
    .fixtures-list, .leagues-group, .matches-strip-group {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}

main { min-height: calc(100vh - 200px); padding: 24px 0; }
main.main-after-strip { padding-top: 8px; }

/* ========== Hero ========== */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--secondary);
    color: #f0f0f1;
    padding: 40px 32px;
    margin-bottom: 32px;
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}
.hero h1 .gradient {
    color: var(--primary-light);
}
.hero-tag {display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

.hero p { color: rgba(255, 255, 255, 0.8); margin-bottom: 20px; font-size: 16px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (min-width: 768px) {
    .hero { padding: 56px 48px; }
    .hero h1 { font-size: 44px; }
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: none; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); border-radius: var(--radius); transition: all 0.3s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4); }
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-outline:hover { background: var(--bg-muted); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-muted); }
.btn-danger { background: var(--danger); color: white; border-color: #b32d2e; }
.btn-danger:hover { background: #b32d2e; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ========== Cards ========== */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(10px); transition: transform 0.3s, box-shadow 0.3s; }
.card-padded { padding: 20px; }

/* ========== Grid ========== */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ========== Stats ========== */
.stat-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 20px 18px;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card .icon { 
    color: #34d399; 
    margin-bottom: 8px;
    display: inline-flex;
    padding: 8px;
    background: rgba(52, 211, 153, 0.12);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.stat-card:hover .icon {
    transform: scale(1.1) rotate(-5deg);
}

.stat-card .value { 
    font-size: 28px; 
    font-weight: 900; 
    line-height: 1.1; 
    font-variant-numeric: tabular-nums;
    margin-bottom: 2px;
    letter-spacing: -0.02em;
}

.stat-card .label { 
    font-size: 13px; 
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72); 
    margin-top: 2px; 
}

/* ========== League Card ========== */
.league-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.2s;
}
.league-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(22,163,74,0.3);
    background: rgba(255, 255, 255, 0.8);
}
.league-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.league-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(22,163,74,0.1);
    display: grid; place-items: center;
    color: var(--primary);
    flex-shrink: 0;
}
.league-card-icon img { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; }
.league-card-info { flex: 1; min-width: 0; }
.league-card-info h3 { font-size: 16px; font-weight: 700; }
.league-card-info p { font-size: 12px; color: var(--text-muted); }
.league-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    text-align: center;
}
.league-card-stat .num { font-weight: 700; font-size: 16px; }
.league-card-stat .lbl { font-size: 11px; color: var(--text-muted); }

/* ========== Section Title ========== */
.section-head {
    display: flex; align-items: end; justify-content: space-between;
    margin-bottom: 16px;
}
.section-head h2 { font-size: 22px; font-weight: 800; }
.section-head .subtitle { font-size: 13px; color: var(--text-muted); }
.section-link { font-size: 14px; color: var(--primary); font-weight: 600; }

/* ========== League hero (دوري / كأس) ========== */
.league-hero {
    background: linear-gradient(to left, rgba(22, 163, 74, 0.1), white);
}
.league-hero--cup {
    background: linear-gradient(to left, rgba(217, 119, 6, 0.08), #fff);
    border: 1px solid var(--border);
    border-right: 3px solid #d97706;
}
.league-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.league-hero-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(22, 163, 74, 0.1);
}
.league-hero--cup .league-hero-logo {
    background: rgba(217, 119, 6, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.5);
}
.league-hero-logo img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: contain;
}
.league-hero-body h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 4px;
}
.league-hero-updated {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}
.league-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 6px;
}
.league-type-badge--cup {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #fff;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}
.league-season-select {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.cup-single-season-note {
    padding: 8px 14px;
    background: var(--bg-card);beb;
    border-radius: 10px;
    border: 1px solid #fde68a;
}

/* صفحة الكأس */
.cup-page .card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(10px); transition: transform 0.3s, box-shadow 0.3s; }
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* مواسم الكأس */
.cup-seasons-nav {
    margin-bottom: 20px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.cup-seasons-nav-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.cup-seasons-nav-text { flex: 1; min-width: 140px; }
.cup-seasons-select-form { flex: 0 1 220px; min-width: 160px; }
.cup-seasons-select {
    width: 100%;
    font-size: 13px;
    padding: 8px 12px;
}
.cup-seasons-nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.cup-seasons-nav-title {
    display: block;
    font-size: 15px;
    font-weight: 800;
}
.cup-seasons-nav-sub {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.cup-seasons-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cup-season-chip {
    flex: 0 0 auto;
    min-width: 96px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-muted);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    position: relative;
}
.cup-season-chip:hover {
    border-color: #d97706;
    background: var(--bg-card);
    box-shadow: var(--shadow);
}
.cup-season-chip.is-active {
    border-color: #d97706;
    background: var(--bg-card);beb;
    box-shadow: 0 2px 10px -2px rgba(217, 119, 6, 0.2);
}
.cup-season-chip.is-latest:not(.is-active) {
    border-color: rgba(22, 163, 74, 0.35);
}
.cup-season-chip.is-older {
    cursor: default;
    border-style: dashed;
}
.cup-season-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 6px;
    background: #16a34a;
    color: #fff;
}
.cup-season-chip.is-active .cup-season-badge {
    background: #d97706;
}
.cup-season-year {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}
.cup-season-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}
.cup-season-meta span {
    white-space: nowrap;
}
.tabs--cup {
    border-bottom-color: rgba(217, 119, 6, 0.25);
}
.tabs--cup .tab.active {
    border-color: #d97706;
    color: #b45309;
    background: var(--bg-card);beb;
}
.tabs--cup .tab.tab--primary.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(22, 163, 74, 0.08);
}
.tabs--cup .tab.tab--muted .count {
    opacity: 0.55;
}

/* ملخص مباريات الكأس (بديل الهدافين) */
.cup-finals-summary {
    margin-bottom: 16px;
    border: 1px solid var(--border);
}
.cup-finals-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.cup-finals-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(217, 119, 6, 0.12);
    color: #d97706;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.cup-finals-head strong { display: block; font-size: 16px; margin-bottom: 4px; }
.cup-finals-matches { display: flex; flex-direction: column; gap: 10px; }
.cup-finals-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-muted);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.cup-finals-date {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 120px;
}
.cup-finals-teams {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}
.cup-finals-teams .team { font-weight: 600; font-size: 14px; }
.cup-finals-teams .score {
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
    padding: 0 8px;
}
.cup-finals-agg {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* ========== Standings Table ========== */
.standings {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.table-scroll { overflow-x: auto; }
.standings table { width: 100%; border-collapse: collapse; font-size: 14px; }
.standings thead { background: var(--bg-muted); }
.standings th {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.standings th:nth-child(2) { text-align: right; }
.standings td {
    padding: 12px 8px;
    text-align: center;
    border-top: 1px solid var(--border);
}
.standings td:nth-child(2) { text-align: right; }
.standings tbody tr { transition: background 0.15s; }
.standings tbody tr:hover { background: rgba(22,163,74,0.03); }
.team-cell {
    display: flex; align-items: center; gap: 10px;
    font-weight: 600;
}
.team-logo {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--bg-muted);
    object-fit: contain;
    flex-shrink: 0;
}
.team-logo-fallback {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--bg-muted);
    display: grid; place-items: center;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 12px;
    flex-shrink: 0;
}
.position {
    font-weight: 700;
    font-size: 14px;
}
.position-uefa { color: var(--primary); }
.position-relegation { color: var(--danger); }

/* جدول ترتيب احترافي — مناطق تأهل / هبوط */
.standings-pro {
    box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.08);
}
.standings-season-note {
    margin: 0;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border);
}
.standings-pro tbody tr.standings-row.zone-champions {
    background: linear-gradient(90deg, rgba(22, 163, 74, 0.14) 0%, rgba(22, 163, 74, 0.04) 55%, transparent 100%);
}
.standings-pro tbody tr.standings-row.zone-champions:hover {
    background: linear-gradient(90deg, rgba(22, 163, 74, 0.2) 0%, rgba(22, 163, 74, 0.08) 55%, transparent 100%);
}
.standings-pro tbody tr.standings-row.zone-relegation {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.12) 0%, rgba(220, 38, 38, 0.05) 55%, transparent 100%);
}
.standings-pro tbody tr.standings-row.zone-relegation:hover {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.18) 0%, rgba(220, 38, 38, 0.08) 55%, transparent 100%);
}
.standings-pro tbody tr.standings-row.zone-champions td {
    border-top-color: rgba(22, 163, 74, 0.15);
}
.standings-pro tbody tr.standings-row.zone-relegation td {
    border-top-color: rgba(220, 38, 38, 0.15);
}
.standings-zone-divider td {
    padding: 6px 12px !important;
    border-top: none !important;
    background: transparent !important;
}
.standings-zone-divider.zone-relegation td {
    padding-top: 14px !important;
}
.zone-divider-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: none;
}
.zone-pill-champions {
    background: rgba(16, 185, 129, 0.1);
    color: #166534;
    border: 1px solid #86efac;
}
.zone-pill-relegation {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.zone-divider-line {
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.position-badge {
    display: inline-grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
}
.position-badge.pos-champions {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}
.position-badge.pos-relegation {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}
.position-badge.pos-mid {
    background: var(--bg-muted);
    color: var(--text);
}
.standings-pro .team-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 14px;
}
.standings-pro .team-cell-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}
.standings-pro .team-cell-link:hover {
    color: var(--primary);
}
.standings-pro .team-cell-static {
    color: var(--text);
    cursor: default;
}
.standings-pro .team-cell-static .team-name {
    color: var(--text-muted);
}
.standings-pro .team-logo,
.standings-pro .team-logo-fallback {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.standings-pro .stat-cell {
    font-variant-numeric: tabular-nums;
}
.standings-legend {
    background: var(--bg-muted);
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 12px;
    color: var(--text-muted);
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}
.legend-swatch-champions {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}
.legend-swatch-relegation {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }

.win { color: var(--success); font-weight: 600; }
.loss { color: var(--danger); }
.points-cell { font-weight: 800; font-size: 16px; }
.diff-positive { color: var(--success); font-weight: 600; }
.diff-negative { color: var(--danger); }

/* ========== Scorers Table ========== */
.scorers table { width: 100%; border-collapse: collapse; font-size: 14px; }
.scorers th { padding: 12px 8px; background: var(--bg-muted); font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.scorers td { padding: 12px 8px; border-top: 1px solid var(--border); }
.scorer-rank {
    display: inline-grid; place-items: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-muted); color: var(--text-muted);
    font-weight: 700; font-size: 12px;
}
.scorer-rank.gold { background: rgba(251,191,36,0.15); color: #b45309; }
.scorer-rank.silver { background: rgba(148,163,184,0.15); color: #475569; }
.scorer-rank.bronze { background: rgba(249,115,22,0.15); color: #c2410c; }
.player-cell { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.player-photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.goals-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px;
    background: rgba(22,163,74,0.1);
    color: var(--primary);
    border-radius: 999px;
    font-weight: 700;
}

/* ========== Fixtures ========== */
.fixtures-day {
    margin-bottom: 24px;
}
.fixtures-day-title {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
}
.fixture {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 8px;
    transition: all 0.2s;
}
.fixture:hover { box-shadow: var(--shadow); }
.fixture.is-live { border-color: rgba(239,68,68,0.35); background: rgba(254,242,242,0.5); }
.fixture.is-live .fx-score { color: var(--danger); }
.fixture.is-finished {
    border-color: rgba(100,116,139,0.35);
    background: rgba(248,250,252,0.9);
}
.fixture.is-finished .fx-score { color: var(--text); font-size: 20px; }
.fixture.is-hiding {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, max-height 0.45s ease, margin 0.45s ease, padding 0.45s ease;
}
.fixture-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}
.fx-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fx-team.home { flex-direction: row-reverse; text-align: left; justify-content: flex-end; }
.fx-team img, .fx-team .team-logo-fallback { width: 40px; height: 40px; flex-shrink: 0; }
.fx-team .name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-center { text-align: center; min-width: 80px; }
.fx-score { font-size: 22px; font-weight: 800; }
.fx-time { font-size: 14px; font-weight: 700; }
.fx-date { font-size: 11px; color: var(--text-muted); }
.fx-live {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(239,68,68,0.1);
    color: var(--danger);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}
.fx-live .dot {
    width: 6px; height: 6px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
.fx-ended {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(100,116,139,0.12);
}
.fixture.is-finished .fx-ended { color: #64748b; }
.fx-meta {
    display: flex; justify-content: center; gap: 14px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-muted);
}
.fx-meta span { display: flex; align-items: center; gap: 3px; }

/* ========== Tabs ========== */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    overflow-x: auto;
}
.tab {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 18px;
    border-bottom: 2px solid transparent;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
    transition: all 0.2s;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab:hover:not(.active) { color: var(--text); }
.tab .count {
    background: var(--bg-muted);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.tab.active .count { background: rgba(22,163,74,0.1); color: var(--primary); }

/* ========== Empty State ========== */
.empty-state {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.empty-state h3 { color: var(--text); margin-bottom: 6px; }

/* ========== Footer ========== */
/* ========== Premium Footer Pro ========== */
.site-footer-pro {
    margin-top: 80px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid var(--border);
    position: relative;
    color: var(--text);
    font-family: inherit;
}

/* CTA Box */
.footer-cta-wrapper {
    position: relative;
    margin-top: -50px;
    margin-bottom: 48px;
    padding: 0 16px;
}
.footer-cta-box {
    background: linear-gradient(135deg, #0f172a 0%, #064e3b 50%, #047857 100%);
    border-radius: 24px;
    padding: 36px 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 20px 40px -10px rgba(4, 120, 87, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #fff;
}
.cta-content {
    flex: 1 1 360px;
}
.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #34d399;
    margin-bottom: 12px;
}
.cta-title {
    font-size: clamp(20px, 3.5vw, 26px);
    font-weight: 900;
    margin: 0 0 8px;
    color: #fff;
    letter-spacing: -0.02em;
}
.cta-desc {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}
.cta-action {
    flex: 1 1 320px;
    max-width: 440px;
    width: 100%;
}
.cta-form {
    width: 100%;
}
.cta-input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 6px 6px 16px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: box-shadow 0.25s, background 0.25s;
}
.cta-input-group:focus-within {
    background: var(--bg-card);
    box-shadow: 0 12px 32px rgba(4, 120, 87, 0.4);
}
.cta-input-group .input-icon {
    color: #64748b;
    margin-left: 10px;
    display: flex;
}
.cta-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    font-family: inherit;
}
.cta-input::placeholder {
    color: #94a3b8;
}
.cta-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
    font-family: inherit;
}
.cta-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
}

/* Main Grid */
.footer-main {
    padding: 24px 0 48px;
}
.footer-grid-pro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px 28px;
}
@media (min-width: 640px) {
    .footer-grid-pro { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .footer-grid-pro { grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr; }
}
.footer-col-pro {
    display: flex;
    flex-direction: column;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon-pro {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: grid; place-items: center;
    color: white;
    box-shadow: 0 4px 14px rgba(22,163,74,0.35);
}
.logo-text-pro {
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, #0f172a, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}
.footer-about-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 20px;
}
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.social-link {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--bg-card);fff;
    border: 1px solid var(--border);
    display: grid; place-items: center;
    color: var(--text-muted);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.social-link:hover {
    transform: translateY(-3px);
    color: #fff;
    border-color: transparent;
}
.social-link.fb:hover { background: #1877f2; box-shadow: 0 6px 16px rgba(24, 119, 242, 0.35); }
.social-link.tw:hover { background: #0f172a; box-shadow: 0 6px 16px rgba(15, 23, 42, 0.35); }
.social-link.ig:hover { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); box-shadow: 0 6px 16px rgba(220, 39, 67, 0.35); }
.social-link.yt:hover { background: #ff0000; box-shadow: 0 6px 16px rgba(255, 0, 0, 0.35); }
.social-link.tg:hover { background: #0088cc; box-shadow: 0 6px 16px rgba(0, 136, 204, 0.35); }

.footer-title-pro {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 18px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-title-pro svg {
    color: var(--primary);
}
.footer-links-pro {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links-pro a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 600;
}
.footer-links-pro a svg {
    color: #cbd5e1;
    transition: color 0.2s, transform 0.2s;
}
.footer-links-pro a:hover {
    color: var(--primary);
    transform: translateX(-4px);
}
.footer-links-pro a:hover svg {
    color: var(--primary);
}

.trust-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 16px;
}
.system-status-box {
    background: var(--bg-card);fff;
    border: 1px solid var(--border);
    padding: 14px 18px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}
.status-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: statusPulse 2s infinite;
}
@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.85); opacity: 0.6; }
}
.status-text {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}
.status-meta {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    padding-right: 20px;
}

/* Footer Bottom */
.footer-bottom-pro {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    background: var(--bg-card);fff;
}
.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}
.brand-hl {
    font-weight: 800;
    color: var(--primary);
}
.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-legal-links a:hover {
    color: var(--primary);
}
.footer-legal-links .sep {
    color: #cbd5e1;
}

@media (max-width: 640px) {
    .footer-cta-box { padding: 28px 24px; text-align: center; justify-content: center; }
    .cta-input-group { flex-direction: column; padding: 6px; gap: 8px; }
    .cta-input-group .input-icon { display: none; }
    .cta-input { padding: 12px 14px; width: 100%; text-align: center; }
    .cta-submit { width: 100%; justify-content: center; }
    .footer-bottom-inner { flex-direction: column; text-align: center; justify-content: center; }
}

/* ========== Misc ========== */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.badge-primary { background: rgba(22,163,74,0.1); color: var(--primary); }
.badge-outline { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); }
.badge-warning { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.1); color: var(--danger); }

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }

/* SVG icons sizing */
.icon-sm svg { width: 14px; height: 14px; }
.icon-md svg { width: 18px; height: 18px; }

/* ========== Footer logo compat ========== */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 17px;
}
.logo-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: grid; place-items: center;
    color: white;
    box-shadow: 0 3px 10px rgba(22,163,74,0.35);
}
.logo-text {
    background: linear-gradient(135deg, #6ee7b7, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

/* ==========================================================================
   Premium Highlight Upgrades (Borders, Glows, Hover Animations)
   ========================================================================== */

/* Glassmorphism containers for standings & scorers */
.standings,
.scorers {
    border: 1px solid transparent !important;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(168, 85, 247, 0.1)) border-box !important;
    box-shadow: 0 12px 36px -16px rgba(15, 23, 42, 0.08) !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.standings:hover,
.scorers:hover {
    box-shadow: 0 20px 48px -18px rgba(15, 23, 42, 0.12) !important;
}

/* Standings table rows premium zone highlights */
.standings-pro tbody tr.standings-row {
    position: relative;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Champions Zone Row Highlight (Green/Gold side-border glow) */
.standings-pro tbody tr.standings-row.zone-champions {
    border-inline-start: 4.5px solid #16a34a !important;
    background: linear-gradient(90deg, rgba(22, 163, 74, 0.08) 0%, rgba(22, 163, 74, 0.02) 50%, transparent 100%) !important;
}
.standings-pro tbody tr.standings-row.zone-champions:hover {
    background: linear-gradient(90deg, rgba(22, 163, 74, 0.14) 0%, rgba(22, 163, 74, 0.04) 50%, transparent 100%) !important;
    transform: scale(1.002);
}

/* Relegation Zone Row Highlight (Crimson side-border glow) */
.standings-pro tbody tr.standings-row.zone-relegation {
    border-inline-start: 4.5px solid #dc2626 !important;
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.07) 0%, rgba(220, 38, 38, 0.02) 50%, transparent 100%) !important;
}
.standings-pro tbody tr.standings-row.zone-relegation:hover {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.12) 0%, rgba(220, 38, 38, 0.04) 50%, transparent 100%) !important;
    transform: scale(1.002);
}

/* Position badges premium glows */
.position-badge.pos-champions {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    box-shadow: 0 4px 10px -2px rgba(22, 163, 74, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.position-badge.pos-relegation {
    background: linear-gradient(135deg, #dc2626, #f87171) !important;
    box-shadow: 0 4px 10px -2px rgba(220, 38, 38, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* General Cards Premium Highlight (eg: league cards, stats cards, standard cards) - New Visual Touch */
.card,
.league-card,
.stat-card,
.cup-season-chip,
.cup-finals-row {
    position: relative;
    border: 2px solid transparent !important;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3)) border-box !important;
    box-shadow: 0 4px 15px -5px rgba(236, 72, 153, 0.1) !important;
    transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s, background 0.3s !important;
}
.card:hover,
.league-card:hover,
.stat-card:hover,
.cup-season-chip:hover,
.cup-finals-row:hover {
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, #a855f7, #ec4899) border-box !important;
    box-shadow: 0 8px 25px -8px rgba(236, 72, 153, 0.25) !important;
}

/* Global Form Fields & Search Input Glowing Focus Borders */
input[type="text"],
input[type="email"],
input[type="search"],
select,
textarea {
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius) !important;
    outline: none !important;
    transition: all 0.25s ease-in-out !important;
    font-family: inherit;
}
input[type="text"]:hover,
input[type="email"]:hover,
input[type="search"]:hover,
select:hover,
textarea:hover {
    border-color: rgba(66, 133, 244, 0.35) !important;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
    border-color: #4285f4 !important;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.12) !important;
    background-color: #fff !important;
}

/* Premium gradient focus for footer cta form input group */
.cta-input-group {
    border: 1.5px solid transparent !important;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, rgba(4, 120, 87, 0.15), rgba(52, 211, 153, 0.15)) border-box !important;
    transition: all 0.3s ease !important;
}
.cta-input-group:focus-within {
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, #047857, #34d399) border-box !important;
    box-shadow: 0 12px 32px rgba(4, 120, 87, 0.3) !important;
}




