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

        :root {
            --primary-color: #6366f1;
            --primary-light: #818cf8;
            --primary-dark: #4f46e5;
            --secondary-color: #ec4899;
            --accent-color: #06b6d4;
            --text-dark: #1f2937;
            --text-light: #6b7280;
            --text-white: #ffffff;
            --bg-white: #ffffff;
            --bg-light: #f9fafb;
            --bg-lighter: #f3f4f6;
            --border-light: #e5e7eb;
            --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            --gradient-subtle: linear-gradient(135deg, rgba(99,102,241,.03), rgba(236,72,153,.03));
            --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
            --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
            --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
            --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
            --border-radius: 8px;
            --border-radius-lg: 12px;
            --border-radius-xl: 16px;
            --transition: all .3s ease;
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            line-height: 1.6;
            color: var(--text-dark);
            background: var(--bg-white);
            overflow-x: hidden;
        }

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

        h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; color: var(--text-dark); }
        p { margin-bottom: 1rem; color: var(--text-light); }

        .section-header { text-align: center; margin-bottom: 3rem; }
        .section-header h2 { position: relative; display: inline-block; margin-bottom: 1rem; }
        .section-header h2::after {
            content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
            width: 60px; height: 4px; background: var(--gradient-primary); border-radius: 2px;
        }
        .section-header p { font-size: 1.1rem; max-width: 620px; margin: 0 auto; }

        /* ===== BUTTONS ===== */
        .btn {
            display: inline-flex; align-items: center; justify-content: center; gap: 8px;
            padding: 12px 28px; border-radius: var(--border-radius); text-decoration: none;
            font-weight: 600; font-size: 1rem; text-align: center; transition: var(--transition);
            border: none; cursor: pointer; font-family: inherit;
        }
        .btn-primary { background: var(--gradient-primary); color: var(--text-white); box-shadow: var(--shadow-md); }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
        .btn-secondary {
            background: var(--bg-white); color: var(--primary-color);
            border: 2px solid var(--primary-color); box-shadow: var(--shadow-sm);
        }
        .btn-secondary:hover { background: var(--primary-color); color: var(--text-white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

        /* ===== HEADER / NAV ===== */
        .header {
            position: fixed; top: 0; left: 0; width: 100%;
            background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
            z-index: 1000; box-shadow: var(--shadow-sm); transition: var(--transition);
        }
        .header.scrolled { background: rgba(255,255,255,.98); box-shadow: var(--shadow-md); }

        .nav-container { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }

        .logo a { display: flex; align-items: center; text-decoration: none; color: var(--text-dark); font-weight: 700; font-size: 1.5rem; }
        .logo img { height: 40px; margin-right: 10px; display: block; }
        .logo span { color: var(--primary-color); }

        .nav-menu { display: flex; list-style: none; align-items: center; }
        .nav-item { position: relative; margin-left: 2rem; }
        .nav-link {
            text-decoration: none; color: var(--text-dark); font-weight: 500;
            transition: var(--transition); padding: .5rem 0; position: relative;
        }
        .nav-link:hover, .nav-link.active { color: var(--primary-color); }
        .nav-link.active::after {
            content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
            background: var(--gradient-primary);
        }

        /* nav link animated underline (non-active) */
        .nav-link:not(.active)::after {
            content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
            background: var(--gradient-primary); transition: var(--transition); transform: translateX(-50%);
        }
        .nav-link:not(.active):hover::after { width: 100%; }

        .hamburger { display: none; flex-direction: column; cursor: pointer; }
        .bar { width: 25px; height: 3px; background: var(--text-dark); margin: 3px 0; transition: var(--transition); border-radius: 2px; }

        /* ===== PAGE WRAP ===== */
        .page-wrap { padding-top: 100px; }

        /* ===== SCORE SECTIONS ===== */
        .score-section { padding: 4rem 0 2rem; }
        .score-section.alt { background: var(--bg-light); }

        .score-grid { display: grid; gap: 1.5rem; }
        .score-grid.two-col { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

        /* match card */
        .match-card {
            background: var(--bg-white); border: 1px solid var(--border-light);
            border-radius: var(--border-radius-lg); box-shadow: var(--shadow-md);
            padding: 1.5rem; transition: var(--transition); position: relative; overflow: hidden;
        }
        .match-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

        .match-card.live { border-top: 4px solid var(--secondary-color); }
        .match-card.live::before {
            content: 'LIVE'; position: absolute; top: 14px; right: -34px;
            background: var(--secondary-color); color: #fff; font-size: .7rem; font-weight: 700;
            letter-spacing: 1px; padding: 4px 40px; transform: rotate(45deg);
        }

        .match-teams { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
        .team { flex: 1; min-width: 0; }
        .team:last-child { text-align: right; }
        .team-name { font-weight: 700; font-size: 1.05rem; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .team-score { font-size: 2.2rem; font-weight: 700; color: var(--primary-color); line-height: 1.1; }
        .team-score.empty { color: var(--text-light); opacity: .6; }
        .vs {
            font-weight: 700; color: var(--text-light); background: var(--bg-lighter);
            padding: .4rem .7rem; border-radius: var(--border-radius); font-size: .85rem; flex-shrink: 0;
        }

        .match-meta {
            display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
            gap: .5rem; font-size: .8rem; color: var(--text-light); border-top: 1px dashed var(--border-light); padding-top: .8rem;
        }

        .cards-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .8rem; }
        .card-pill {
            display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 500;
            padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--border-light); background: var(--bg-light);
        }
        .card-pill .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
        .dot.yellow { background: #f59e0b; }
        .dot.red { background: #ef4444; }

        .empty-state {
            text-align: center; padding: 2rem; color: var(--text-light); font-style: italic;
            background: var(--bg-light); border: 1px dashed var(--border-light); border-radius: var(--border-radius-lg);
        }

        /* ===== SCOREBOARD TABLE ===== */
        .table-wrap {
            background: var(--bg-white); border-radius: var(--border-radius-lg); box-shadow: var(--shadow-md);
            border: 1px solid var(--border-light); overflow-x: auto;
        }
        table.scoreboard { width: 100%; border-collapse: collapse; min-width: 640px; }
        table.scoreboard thead { background: var(--gradient-subtle); }
        table.scoreboard th, table.scoreboard td { padding: .9rem 1rem; text-align: center; font-size: .9rem; }
        table.scoreboard th { font-weight: 700; color: var(--text-dark); text-transform: uppercase; letter-spacing: .5px; font-size: .75rem; }
        table.scoreboard td { border-top: 1px solid var(--border-light); color: var(--text-light); }
        table.scoreboard td.team-col { text-align: left; font-weight: 600; color: var(--text-dark); }
        table.scoreboard tbody tr { transition: var(--transition); }
        table.scoreboard tbody tr:hover { background: var(--bg-light); }
        table.scoreboard td.points { font-weight: 700; color: var(--primary-color); font-size: 1rem; }
        .in-game-badge {
            display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .5px;
            padding: .2rem .55rem; border-radius: 999px;
        }
        .in-game-badge.on { background: rgba(6,182,212,.12); color: #0891b2; }
        .in-game-badge.off { background: var(--bg-lighter); color: var(--text-light); }

        /* ===== FOOTER ===== */
        .footer { background: var(--text-dark); color: var(--text-white); padding: 3rem 0 1.5rem; margin-top: 3rem; }
        .footer-content {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 2.5rem; margin-bottom: 2.5rem;
        }
        .footer-section h3 { color: var(--text-white); margin-bottom: 1.2rem; font-size: 1.15rem; }
        .footer-section p { color: rgba(255,255,255,.7); margin-bottom: .8rem; }
        .footer-section ul { list-style: none; }
        .footer-section ul li { margin-bottom: .6rem; }
        .footer-section ul li a { color: rgba(255,255,255,.7); text-decoration: none; transition: var(--transition); }
        .footer-section ul li a:hover { color: var(--text-white); padding-left: 5px; }
        .footer-logo { display: flex; align-items: center; margin-bottom: 1rem; gap: .6rem; }
        .footer-logo img { height: 30px; }
        .footer-logo span { font-weight: 700; font-size: 1.1rem; color: var(--text-white); }
        .footer-bottom {
            text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1);
            color: rgba(255,255,255,.55); font-size: .9rem;
        }
        .footer-bottom a { color: var(--primary-light); text-decoration: none; font-weight: 600; }
        .footer-bottom a:hover { text-decoration: underline; }

        /* ===== LOADING ===== */
        .loading { text-align: center; padding: 4rem 1rem; color: var(--text-light); }
        .spinner {
            width: 40px; height: 40px; margin: 0 auto 1rem; border-radius: 50%;
            border: 4px solid var(--border-light); border-top-color: var(--primary-color);
            animation: spin .8s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            .hamburger { display: flex; }
            .nav-menu {
                position: fixed; top: 70px; right: -100%; flex-direction: column;
                background: var(--bg-white); width: 80%; max-width: 300px; height: calc(100vh - 70px);
                box-shadow: var(--shadow-xl); transition: var(--transition); padding: 2rem 0;
                align-items: flex-start;
            }
            .nav-menu.active { right: 0; }
            .nav-item { margin: 0; width: 100%; }
            .nav-link { display: block; padding: 1rem 2rem; width: 100%; }
            .team-score { font-size: 1.8rem; }
        }
