:root {
  --bg0: #0a1628;
  --bg1: #102a43;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.18);
  --text: #e8f1ff;
  --muted: #9bb0c9;
  --accent: #2ec4b6;
  --accent2: #5bc0eb;
  --live: #ff6b6b;
  --ok: #51cf66;
  --warn: #fcc419;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  --font: "DIN Alternate", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #1b3a5f 0%, transparent 55%),
              radial-gradient(900px 500px at 100% 0%, #0d4f5c 0%, transparent 45%),
              linear-gradient(160deg, var(--bg0), var(--bg1) 55%, #0c1f33);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; vertical-align: middle; }
.container { width: min(1120px, calc(100% - 28px)); margin: 0 auto; }

.bg-orb {
  position: fixed; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0;
  opacity: 0.45;
}
.orb-a { width: 340px; height: 340px; background: #2ec4b655; top: 80px; left: -80px; }
.orb-b { width: 420px; height: 420px; background: #5bc0eb44; bottom: 40px; right: -120px; }

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky; top: 12px; z-index: 50;
  margin: 12px auto; width: min(1120px, calc(100% - 28px));
  border-radius: 18px;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; gap: 12px; width: 100%;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-logo { display: block; height: 40px; width: auto; }
.brand-text { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); padding: 8px 12px; border-radius: 999px;
  font-size: 0.92rem; transition: 0.2s ease;
}
.nav a:hover, .nav a.active {
  color: #062028; background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--glass-strong); cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: #fff; margin: 4px auto;
  transition: 0.2s;
}

.site-main { position: relative; z-index: 1; padding: 18px 0 48px; }

.hero {
  border-radius: calc(var(--radius) + 6px);
  padding: 36px 28px 28px;
  margin-bottom: 22px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(46,196,182,0.18), rgba(91,192,235,0.08)),
    var(--glass);
}
.hero-brand {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; letter-spacing: 0.06em;
  background: linear-gradient(90deg, #fff, #9be7e0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { color: var(--muted); margin-top: 10px; font-size: 1rem; max-width: 640px; margin-inline: auto; }

.section { margin: 28px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.section-head h2, .page-title {
  font-size: 1.35rem; font-weight: 700;
}
.section-head .more { color: var(--muted); font-size: 0.9rem; }
.page-title { margin-bottom: 16px; }

.league-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.league-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px; color: var(--text);
  transition: transform 0.2s ease, background 0.2s;
}
.league-chip:hover { transform: translateY(-2px); background: var(--glass-strong); color: #fff; }
.league-chip img { width: 28px; height: 28px; object-fit: contain; }

.match-list { display: grid; gap: 12px; }
.match-card {
  border-radius: var(--radius); padding: 14px 16px;
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
.match-meta {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 0.86rem;
}
.match-meta .league { display: flex; align-items: center; gap: 6px; }
.match-meta .league a { color: var(--muted); }
.match-teams {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
}
.team { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.team.away { justify-content: flex-end; flex-direction: row-reverse; text-align: right; }
.team img { width: 36px; height: 36px; object-fit: contain; border-radius: 50%; background: rgba(255,255,255,0.06); }
.vs {
  min-width: 64px; text-align: center; font-weight: 800; color: var(--accent2);
  letter-spacing: 0.04em;
}
.vs.score { color: #fff; font-size: 1.15rem; }
.match-action {
  display: flex; justify-content: space-between; align-items: center;
}
.match-action a {
  padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #062028; font-weight: 700; font-size: 0.86rem;
}

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700;
}
.badge-live { background: rgba(255,107,107,0.2); color: var(--live); }
.badge-upcoming { background: rgba(91,192,235,0.18); color: var(--accent2); }
.badge-finished, .badge-replay { background: rgba(81,207,102,0.18); color: var(--ok); }

.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.news-card {
  border-radius: var(--radius); padding: 16px 18px; color: var(--text);
  transition: transform 0.2s;
}
.news-card:hover { transform: translateY(-2px); color: #fff; }
.news-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.news-card p { color: var(--muted); font-size: 0.9rem; }
.news-meta { margin-top: 10px; color: var(--muted); font-size: 0.8rem; display: flex; gap: 12px; flex-wrap: wrap; }

.faq-list { display: grid; gap: 10px; }
.faq-item { border-radius: var(--radius); padding: 14px 16px; }
.faq-item h3 { font-size: 1rem; margin-bottom: 6px; }
.faq-item p { color: var(--muted); font-size: 0.92rem; }

.about-block {
  border-radius: var(--radius); padding: 20px 22px; color: var(--muted); font-size: 0.95rem;
}
.about-block h2 { color: var(--text); margin-bottom: 12px; }
.about-block h3 { color: var(--text); margin: 16px 0 8px; font-size: 1.05rem; }
.about-block ul { padding-left: 1.2em; }

.article {
  border-radius: var(--radius); padding: 22px 24px;
}
.article h1 { font-size: 1.5rem; margin-bottom: 12px; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  color: var(--muted); font-size: 0.85rem; margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.article-body { color: #d5e3f5; font-size: 1.02rem; }
.article-body p { margin-bottom: 1em; }
.pager {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 24px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.pager a { color: var(--accent2); font-size: 0.92rem; max-width: 46%; }
.pager .next { text-align: right; margin-left: auto; }

.match-hero {
  border-radius: var(--radius); padding: 28px 20px; text-align: center; margin-bottom: 18px;
}
.match-hero .teams {
  display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap;
}
.match-hero .side { width: 140px; }
.match-hero img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 8px; }
.match-hero .scoreline { font-size: 2rem; font-weight: 800; min-width: 100px; }
.stream-box {
  border-radius: var(--radius); padding: 18px; margin-top: 12px; color: var(--muted);
}

.empty {
  text-align: center; padding: 36px; color: var(--muted);
  border-radius: var(--radius);
}

.site-footer {
  position: relative; z-index: 1;
  margin: 0 auto 20px; width: min(1120px, calc(100% - 28px));
  border-radius: 18px; padding: 18px 16px; text-align: center;
}
.footer-brand { font-weight: 700; margin-bottom: 8px; }
.footer-links { color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }
.footer-links a { color: var(--muted); margin: 0 8px; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: #6f849c; font-size: 0.8rem; }

@media (max-width: 860px) {
  .league-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 12px; right: 12px; top: 68px;
    flex-direction: column; padding: 12px;
    background: rgba(10, 22, 40, 0.92); border: 1px solid var(--border);
    border-radius: 14px; backdrop-filter: blur(16px);
  }
  .nav.open { display: flex; }
  .site-header { position: relative; }
  .header-inner { position: relative; }
  .team span { font-size: 0.9rem; }
  .match-teams { gap: 6px; }
}
@media (max-width: 480px) {
  .hero { padding: 28px 16px 22px; }
  .league-grid { grid-template-columns: 1fr 1fr; }
  .brand-text { display: none; }
}
