:root{
  --bg:#0a0e17;--bg2:#0f1524;--card:rgba(255,255,255,.045);--border:rgba(255,255,255,.09);
  --accent:#00ff87;--gold:#ffd166;--text:#e8ecf4;--muted:#8b93a7;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font-family:'Inter',sans-serif;line-height:1.6;
  background-image:radial-gradient(ellipse 80% 50% at 50% -10%,rgba(0,255,135,.08),transparent);}
h1,h2,h3,.brand-name,.tab{font-family:'Sora',sans-serif}
.container{max-width:1100px;margin:0 auto;padding:0 16px}
.accent{color:var(--accent)}
.muted{color:var(--muted)}
.small{font-size:.8rem}

/* topbar */
.topbar{position:sticky;top:0;z-index:50;background:rgba(10,14,23,.85);backdrop-filter:blur(14px);border-bottom:1px solid var(--border)}
.topbar-inner{display:flex;align-items:center;gap:12px;padding:12px 16px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text)}
.brand-name{font-weight:800;font-size:1.35rem;letter-spacing:-.5px}
.tagline{color:var(--muted);font-size:.8rem;margin-left:auto}
.tabs{display:flex;gap:4px;overflow-x:auto;padding:0 12px 10px;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tab{flex:0 0 auto;background:transparent;border:1px solid transparent;color:var(--muted);padding:8px 14px;border-radius:999px;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .2s}
.tab:hover{color:var(--text)}
.tab.active{background:rgba(0,255,135,.12);border-color:rgba(0,255,135,.35);color:var(--accent)}

/* panes */
.tabpane{display:none;padding:24px 0 60px;animation:fadeIn .35s ease}
.tabpane.active{display:block}
@keyframes fadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
h2{font-size:1.5rem;margin-bottom:14px}
.section-sub{color:var(--muted);margin-bottom:18px;font-size:.92rem}

/* hero */
.hero{padding:34px 26px;margin-bottom:20px;border-radius:20px}
.hero h1{font-size:clamp(1.5rem,5vw,2.4rem);line-height:1.15;margin-bottom:8px}
.hero p{color:var(--muted);max-width:560px}
.updated-row{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:.82rem;color:var(--muted)}
.pulse-dot{width:9px;height:9px;border-radius:50%;background:var(--accent);animation:pulse 1.6s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(0,255,135,.5)}70%{box-shadow:0 0 0 9px rgba(0,255,135,0)}100%{box-shadow:0 0 0 0 rgba(0,255,135,0)}}

/* glass card */
.glass{background:var(--card);border:1px solid var(--border);backdrop-filter:blur(10px);border-radius:16px}
.card{padding:18px;transition:transform .2s,border-color .2s}
.card:hover{transform:translateY(-2px);border-color:rgba(0,255,135,.3)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}

/* league switcher */
.league-switch{display:flex;gap:6px;overflow-x:auto;margin-bottom:16px;padding-bottom:4px;scrollbar-width:none}
.league-switch::-webkit-scrollbar{display:none}
.lg-btn{flex:0 0 auto;background:var(--card);border:1px solid var(--border);color:var(--muted);padding:7px 13px;border-radius:10px;font-size:.8rem;font-weight:600;cursor:pointer;transition:all .2s}
.lg-btn.active{background:rgba(0,255,135,.12);border-color:rgba(0,255,135,.4);color:var(--accent)}

/* match card */
.match{padding:16px}
.match-header{display:flex;justify-content:space-between;font-size:.75rem;color:var(--muted);margin-bottom:12px}
.badge-live{color:#ff4d6d;font-weight:700;display:flex;align-items:center;gap:5px}
.badge-live::before{content:'';width:7px;height:7px;border-radius:50%;background:#ff4d6d;animation:pulse 1.2s infinite}
.badge-ft{color:var(--muted);font-weight:600}
.badge-pre{color:var(--gold);font-weight:600}
.team-row{display:flex;align-items:center;gap:10px;padding:5px 0}
.team-row img{width:26px;height:26px;object-fit:contain}
.team-name{flex:1;font-weight:600;font-size:.95rem}
.team-score{font-family:'Sora';font-weight:800;font-size:1.15rem;min-width:24px;text-align:right}
.winner .team-name,.winner .team-score{color:var(--accent)}

/* standings table */
.stand-group{margin-bottom:26px}
.stand-group h3{font-size:1rem;margin-bottom:8px;color:var(--gold)}
.table-wrap{overflow-x:auto;border-radius:14px;border:1px solid var(--border)}
table{width:100%;border-collapse:collapse;font-size:.85rem;background:var(--card)}
th,td{padding:9px 10px;text-align:center;white-space:nowrap}
th{color:var(--muted);font-weight:600;font-size:.72rem;text-transform:uppercase;border-bottom:1px solid var(--border)}
td.team-cell{text-align:left;display:flex;align-items:center;gap:8px;font-weight:600}
td.team-cell img{width:20px;height:20px}
tr:not(:last-child) td{border-bottom:1px solid rgba(255,255,255,.04)}
.pos{color:var(--muted)}
.pts{color:var(--accent);font-weight:700}

/* stats */
.stats-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.stat-card{text-align:center;padding:24px 16px}
.stat-num{font-family:'Sora';font-size:2.4rem;font-weight:800;color:var(--accent);line-height:1}
.stat-label{color:var(--muted);font-size:.85rem;margin-top:10px}
.note-card{margin-top:16px}
.note-card h3{margin-bottom:10px}
.fact-list{padding-left:20px;color:var(--muted)}
.fact-list li{margin-bottom:8px}
.fact-list strong{color:var(--text)}

/* predictions */
.pred-card .pred-match{font-family:'Sora';font-weight:700;margin-bottom:8px;color:var(--gold)}
.pred-card p{font-size:.9rem;color:var(--muted);margin-bottom:10px}
.prob-bar{height:8px;background:rgba(255,255,255,.07);border-radius:99px;overflow:hidden}
.prob-fill{height:100%;background:linear-gradient(90deg,#00ff87,#00c46a);border-radius:99px}
.prob-label{font-size:.8rem;color:var(--muted);margin-top:6px}
.prob-label strong{color:var(--accent)}

/* articles */
.articles-wrap{display:flex;flex-direction:column;gap:16px}
.article{padding:24px}
.article-tag{font-size:.7rem;letter-spacing:1.5px;color:var(--accent);font-weight:700;margin-bottom:8px}
.article h3{font-size:1.25rem;margin-bottom:12px;line-height:1.3}
.article p{color:#c3cad9;font-size:.93rem;margin-bottom:12px}
.live-news-title{margin:26px 0 14px}
.news-card{display:block;text-decoration:none;color:var(--text);overflow:hidden;padding:0}
.news-card img{width:100%;height:160px;object-fit:cover;display:block}
.news-body{padding:14px}
.news-body h4{font-size:.95rem;line-height:1.35;margin-bottom:6px}
.news-body p{font-size:.8rem;color:var(--muted)}

/* home */
.home-hero{position:relative;padding:0;overflow:hidden;border-radius:20px;margin-bottom:26px;
  background:url('img/home-hero.jpg') center/cover no-repeat,var(--bg2);min-height:280px;display:flex;align-items:flex-end;
  border:1px solid var(--border)}
.home-hero-overlay{width:100%;padding:60px 26px 26px;background:linear-gradient(to top,rgba(10,14,23,.92) 30%,rgba(10,14,23,.25) 75%,transparent)}
.home-hero h1{font-size:clamp(1.7rem,5.5vw,2.8rem);line-height:1.12;margin-bottom:8px}
.home-hero p{color:#c3cad9;max-width:560px}
.home-section-head{display:flex;align-items:baseline;justify-content:space-between;margin:26px 0 12px}
.home-section-head h2{margin-bottom:0;font-size:1.2rem}
.see-all{color:var(--accent);text-decoration:none;font-size:.8rem;font-weight:600;white-space:nowrap}
.see-all:hover{text-decoration:underline}
.home-cols{display:grid;grid-template-columns:1.4fr 1fr;gap:22px;margin-top:6px}
.home-stories{display:flex;flex-direction:column;gap:14px}
.story-card{display:flex;gap:0;padding:0;overflow:hidden;text-decoration:none;color:var(--text)}
.story-card img{width:38%;min-width:130px;object-fit:cover;display:block}
.story-body{padding:14px 16px}
.story-body h3{font-size:1rem;line-height:1.35;margin-top:4px}
.home-news-list{display:flex;flex-direction:column;gap:8px}
.home-news-item{display:block;background:var(--card);border:1px solid var(--border);border-radius:12px;
  padding:11px 14px;color:var(--text);text-decoration:none;font-size:.87rem;font-weight:500;line-height:1.4;transition:border-color .2s}
.home-news-item:hover{border-color:rgba(0,255,135,.35)}

/* article hero images */
.article-hero{width:calc(100% + 48px);margin:-24px -24px 16px;display:block;max-height:340px;object-fit:cover;
  border-radius:16px 16px 0 0;border-bottom:1px solid var(--border)}

/* footer */
.footer{border-top:1px solid var(--border);background:var(--bg2);padding:34px 0}
.footer-inner{display:flex;flex-direction:column;gap:18px}
.footer-brand{font-size:1.2rem}
.footer-links{display:flex;gap:18px;flex-wrap:wrap}
.footer-links a{color:var(--muted);text-decoration:none;font-size:.85rem}
.footer-links a:hover{color:var(--accent)}

.empty{color:var(--muted);padding:24px;text-align:center;grid-column:1/-1}

@media(max-width:600px){
  .tagline{display:none}
  .grid{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .hero{padding:24px 18px}
  .home-hero{padding:0;min-height:220px}
  .home-cols{grid-template-columns:1fr}
  .story-card{flex-direction:column}
  .story-card img{width:100%;min-width:0;height:150px}
  .article-hero{max-height:200px}
}
