:root {
  --bg-primary: #090c10;
  --bg-secondary: #11161f;
  --bg-card: #161d29;
  --bg-card-hover: #1d2636;
  --border-color: #253042;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-blue: #2563eb;
  --accent-blue-light: #3b82f6;
  --accent-red: #e2001a;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
}

[data-theme="light"] {
  --bg-primary: #f1f5f9;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --border-color: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: hidden;
}
.container { max-width: 1340px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.top-bar { background: #05070a; border-bottom: 1px solid var(--border-color); font-size: 0.78rem; padding: 7px 0; color: #cbd5e1; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-bar-left, .tz-pill-selector, .live-time-badge, .broadcast-alert { display: flex; align-items: center; gap: 8px; }
.tz-btn { background: #11161f; border: 1px solid #2d3748; color: #94a3b8; padding: 2px 8px; border-radius: 4px; cursor: pointer; font-size: 0.74rem; font-weight: 500; }
.tz-btn.active { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); font-weight: 700; }

/* Header & Navbar */
.site-header { background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; gap: 14px; }
.brand-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text-primary); }
.brand-icon { width: 38px; height: 38px; }
.brand-title { font-family: 'Oswald', sans-serif; font-size: 1.45rem; font-weight: 700; letter-spacing: 0.5px; display: block; line-height: 1.05; }
.brand-title span { color: var(--accent-blue-light); }
.brand-tag { font-size: 0.66rem; color: var(--text-muted); letter-spacing: 0.8px; text-transform: uppercase; }

.nav-menu { display: flex; list-style: none; gap: 16px; align-items: center; flex-wrap: wrap; }
.nav-link { text-decoration: none; color: var(--text-secondary); font-size: 0.86rem; font-weight: 600; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--accent-blue-light); }
.nav-badge-live { background: var(--accent-red); color: #fff; font-size: 0.62rem; padding: 2px 6px; border-radius: 4px; font-weight: 800; margin-left: 4px; }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.btn-icon { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-primary); width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.btn-icon svg { width: 18px; height: 18px; fill: currentColor; }
.hamburger-btn { display: none; }

/* Live Scores Ticker */
.scores-ticker-wrap { background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); padding: 12px 0 16px; }
.ticker-controls-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 0.8rem; flex-wrap: wrap; gap: 8px; }
.ticker-title-group { display: flex; align-items: center; gap: 10px; }
.ticker-label { font-family: 'Oswald', sans-serif; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; font-size: 0.92rem; }
.primetime-toggle { background: rgba(245, 158, 11, 0.14); border: 1px solid var(--accent-gold); color: var(--accent-gold); padding: 3px 10px; border-radius: 20px; font-size: 0.74rem; font-weight: 700; cursor: pointer; }
.primetime-toggle.active { background: var(--accent-gold); color: #000; }
.games-scroll-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }

.game-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 10px 13px; transition: border-color 0.2s; }
.game-card:hover { border-color: var(--accent-blue-light); }
.game-card-top { display: flex; justify-content: space-between; font-size: 0.7rem; font-weight: 700; margin-bottom: 6px; color: var(--text-muted); }
.status-live { color: #ff4d4f; }
.status-final { color: var(--accent-green); }
.status-upcoming { color: var(--accent-gold); }
.game-team-row { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 0.92rem; margin: 3px 0; }
.game-score { font-family: 'Oswald', sans-serif; font-size: 1.08rem; font-weight: 700; }
.game-broadcast { margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--border-color); font-size: 0.7rem; color: var(--text-muted); }

/* Breaking Marquee */
.breaking-marquee-bar { background: #161e2e; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; overflow: hidden; height: 36px; }
.breaking-tag { background: var(--accent-red); color: #fff; font-family: 'Oswald', sans-serif; font-weight: 700; text-transform: uppercase; padding: 0 14px; height: 100%; display: flex; align-items: center; font-size: 0.82rem; z-index: 2; }
.marquee-content { white-space: nowrap; padding-left: 20px; font-size: 0.82rem; color: #f8fafc; animation: marquee 42s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Hero Section */
.hero-section { padding: 28px 0; }
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
.hero-main-card { position: relative; border-radius: 14px; overflow: hidden; min-height: 430px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--border-color); background: #131a26; }
.hero-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(9,12,16,0.97) 18%, rgba(9,12,16,0.5) 65%, rgba(9,12,16,0.2) 100%); }
.hero-content { position: relative; z-index: 2; padding: 26px; color: #fff; }
.hero-meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.badge-tag { background: var(--accent-blue); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 5px; letter-spacing: 0.4px; text-transform: uppercase; }
.badge-gold { background: var(--accent-gold); color: #090c10; }
.hero-stat-badge { background: rgba(255,255,255,0.14); font-size: 0.7rem; padding: 3px 9px; border-radius: 5px; font-weight: 600; }
.hero-title { font-family: 'Oswald', sans-serif; font-size: 2rem; line-height: 1.18; margin-bottom: 8px; }
.hero-subtitle { color: #cbd5e1; font-size: 0.94rem; margin-bottom: 16px; }
.hero-author-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,0.16); padding-top: 12px; font-size: 0.8rem; color: #cbd5e1; }
.read-btn { background: var(--accent-blue); color: #fff; border: none; padding: 8px 15px; border-radius: 7px; font-weight: 700; font-size: 0.82rem; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.read-btn:hover { background: var(--accent-blue-light); }

.hero-side-column { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.trending-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.trending-header h3 { font-family: 'Oswald', sans-serif; font-size: 1.15rem; text-transform: uppercase; }
.trending-item { padding: 11px; border-radius: 9px; background: var(--bg-card); border: 1px solid var(--border-color); cursor: pointer; transition: border-color 0.2s; }
.trending-item:hover { border-color: var(--accent-blue-light); }
.trending-num { font-family: 'Oswald', sans-serif; color: var(--accent-gold); font-weight: 700; font-size: 0.88rem; margin-right: 6px; }
.trending-title { font-weight: 600; font-size: 0.92rem; margin: 3px 0; line-height: 1.32; }
.trending-meta { font-size: 0.74rem; color: var(--text-muted); }

/* Sections & Cards */
.section-wrap { padding: 42px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; flex-wrap: wrap; gap: 14px; }
.section-title { font-family: 'Oswald', sans-serif; font-size: 1.7rem; text-transform: uppercase; letter-spacing: 0.4px; }
.section-subtitle { color: var(--text-muted); font-size: 0.88rem; display: block; }

.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.article-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, border-color 0.2s; cursor: pointer; }
.article-card:hover { transform: translateY(-3px); border-color: var(--accent-blue-light); }
.article-card-img { width: 100%; height: 180px; object-fit: cover; background: #1e293b; }
.article-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.article-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.74rem; color: var(--text-muted); gap: 6px; }
.article-card-title { font-family: 'Oswald', sans-serif; font-size: 1.2rem; line-height: 1.26; margin-bottom: 8px; }
.article-card-desc { color: var(--text-muted); font-size: 0.86rem; margin-bottom: 12px; flex: 1; }
.article-card-footer { border-top: 1px solid var(--border-color); padding-top: 9px; font-size: 0.76rem; color: var(--accent-gold); font-weight: 600; display: flex; justify-content: space-between; }

/* Category Tabs */
.category-tabs { display: flex; gap: 7px; flex-wrap: wrap; }
.cat-tab-btn { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-secondary); padding: 6px 13px; border-radius: 7px; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.cat-tab-btn.active { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }

/* Stars Spotlight */
.euro-stars-section { padding: 42px 0; }
.players-pill-track { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 18px; }
.player-pill { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-primary); padding: 7px 15px; border-radius: 999px; font-weight: 600; font-size: 0.86rem; cursor: pointer; }
.player-pill.active { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }
.player-showcase-stage { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 14px; padding: 22px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: center; }
.player-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 9px; padding: 12px; text-align: center; }
.stat-val { font-family: 'Oswald', sans-serif; font-size: 1.55rem; font-weight: 700; color: var(--accent-gold); }
.stat-lbl { font-size: 0.75rem; color: var(--text-muted); }

/* Standings Tables (Native, Fast, Zero Broken Iframes) */
.dual-section-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; }
.standings-card, .fan-poll-card, .podcast-player-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.standings-head-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.standings-tab-btn { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-secondary); padding: 6px 14px; border-radius: 7px; font-weight: 700; font-size: 0.82rem; cursor: pointer; }
.standings-tab-btn.active { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }

.table-responsive { width: 100%; overflow-x: auto; }
.standings-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.standings-table th { text-align: left; padding: 10px 10px; background: var(--bg-card); color: var(--text-muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border-color); }
.standings-table td { padding: 10px 10px; border-bottom: 1px solid var(--border-color); color: var(--text-primary); }
.standings-table tr:hover td { background: var(--bg-card-hover); }
.seed-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 5px; font-weight: 700; font-size: 0.75rem; background: var(--bg-card); border: 1px solid var(--border-color); }
.seed-playoff { background: rgba(16, 185, 129, 0.18); color: var(--accent-green); border-color: var(--accent-green); }
.seed-playin { background: rgba(245, 158, 11, 0.18); color: var(--accent-gold); border-color: var(--accent-gold); }
.streak-w { color: var(--accent-green); font-weight: 700; }
.streak-l { color: #ff4d4f; font-weight: 700; }

/* Poll */
.poll-badge { color: var(--accent-blue-light); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.poll-question { font-family: 'Oswald', sans-serif; font-size: 1.18rem; margin-bottom: 12px; }
.poll-option { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 9px 12px; margin-bottom: 8px; cursor: pointer; }
.poll-option:hover { border-color: var(--accent-blue-light); }
.poll-bar-bg { height: 6px; background: #263042; border-radius: 4px; margin-top: 5px; overflow: hidden; }
.poll-bar-fill { height: 100%; background: var(--accent-blue-light); }
.poll-footer-meta { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--text-muted); margin-top: 8px; }

/* Modals */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 999; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-container { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 14px; max-width: 760px; width: 100%; max-height: 88vh; overflow-y: auto; }
.modal-header-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border-color); }
.modal-close-btn { background: none; border: none; color: var(--text-primary); font-size: 1.6rem; cursor: pointer; }
.modal-scroll-body { padding: 22px; }
.modal-article-title { font-family: 'Oswald', sans-serif; font-size: 1.8rem; margin: 6px 0; }
.modal-article-meta { color: var(--text-muted); font-size: 0.84rem; margin-bottom: 12px; }
.modal-article-lead { font-weight: 600; color: var(--text-secondary); margin-bottom: 14px; }
.modal-article-content p { margin-bottom: 14px; color: var(--text-secondary); }
.search-big-input { width: 100%; padding: 11px 15px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-primary); font-size: 0.96rem; margin-bottom: 12px; }

/* Footer */
.site-footer { background: #05070a; border-top: 1px solid var(--border-color); padding: 44px 0 22px; color: #94a3b8; }
.footer-top-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 26px; margin-bottom: 28px; }
.footer-domain { font-family: 'Oswald', sans-serif; font-size: 1.45rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-domain span { color: var(--accent-blue-light); }
.broadcasters-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.broadcaster-tag { background: #11161f; border: 1px solid #253042; padding: 3px 8px; border-radius: 4px; font-size: 0.72rem; }
.footer-col-title { color: #fff; font-family: 'Oswald', sans-serif; margin-bottom: 10px; text-transform: uppercase; }
.footer-links-list { list-style: none; }
.footer-links-list li { margin-bottom: 7px; font-size: 0.84rem; }
.footer-links-list a { color: #94a3b8; text-decoration: none; }
.footer-links-list a:hover { color: var(--accent-blue-light); }
.footer-bottom-bar { border-top: 1px solid #1e293b; padding-top: 16px; display: flex; justify-content: space-between; font-size: 0.78rem; flex-wrap: wrap; gap: 10px; }

@media (max-width: 960px) {
  .hero-grid, .dual-section-grid, .player-showcase-stage, .footer-top-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
  .nav-menu.mobile-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-secondary); padding: 18px; border-bottom: 1px solid var(--border-color); }
  .hamburger-btn { display: inline-flex; }
}
