:root {
  --bg0: #0b1220;
  --bg1: #122038;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.22);
  --text: #eef5ff;
  --muted: #a9bdd9;
  --accent: #38bdf8;
  --accent2: #fbbf24;
  --live: #22c55e;
  --hot: #f97316;
  --danger: #fb7185;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --font-display: "Outfit", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(160deg, #07101f 0%, #0f1b33 45%, #132743 100%);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #7dd3fc; }
img { max-width: 100%; height: auto; vertical-align: middle; }
ul { padding-left: 1.2em; }

.glass-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}
.orb.o1 {
  width: 420px; height: 420px;
  left: -80px; top: -60px;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
}
.orb.o2 {
  width: 380px; height: 380px;
  right: -60px; top: 20%;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
}
.orb.o3 {
  width: 460px; height: 460px;
  left: 30%; bottom: -120px;
  background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
  opacity: 0.28;
}
.grid-mask {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  margin: 12px auto;
  width: min(1120px, calc(100% - 24px));
  border-radius: 20px;
  padding: 10px 18px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand img {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--glass-border);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.brand-text em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.main-nav a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: 0.2s ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: var(--glass-strong);
  border-color: var(--glass-border);
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.site-main { padding: 18px 0 48px; }

.hero-illus {
  position: relative;
  padding: 42px 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(56,189,248,0.18), rgba(99,102,241,0.12));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  overflow: hidden;
  margin-bottom: 28px;
}
.hero-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hero-desc {
  margin: 0 0 22px;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.02rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.float-ball {
  position: absolute;
  right: 8%;
  top: 22%;
  width: 88px; height: 88px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff 0 8%, transparent 9%),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,0.4), transparent 40%),
    linear-gradient(145deg, #fbbf24, #f97316);
  box-shadow: 0 12px 30px rgba(249,115,22,0.35);
  opacity: 0.9;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
  box-shadow: 0 8px 24px rgba(56,189,248,0.35);
}
.btn-primary:hover { filter: brightness(1.08); color: #fff; }
.btn-ghost {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--glass-strong); color: #fff; }

.section { margin: 28px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
}
.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.page-title {
  margin: 8px 0 18px;
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.league-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}
.league-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background 0.2s ease;
}
.league-chip:hover {
  transform: translateY(-3px);
  background: var(--glass-strong);
  color: #fff;
}
.league-chip img {
  width: 48px; height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  padding: 4px;
}
.league-chip span { font-size: 0.9rem; }

.match-list {
  display: grid;
  gap: 12px;
}
.match-card {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
}
.match-meta .league {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}
.match-meta .league img {
  width: 18px; height: 18px;
  object-fit: contain;
}
.match-meta .time {
  margin-top: 4px;
  color: var(--accent2);
  font-size: 0.92rem;
  font-weight: 600;
}
.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}
.team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.team.away { flex-direction: row-reverse; text-align: right; }
.team img {
  width: 36px; height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 3px;
}
.team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.vs {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--muted);
  min-width: 52px;
  text-align: center;
}
.vs.score { color: var(--accent2); font-size: 1.1rem; }
.match-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid transparent;
}
.badge-live { background: rgba(34,197,94,0.18); color: #86efac; border-color: rgba(34,197,94,0.35); }
.badge-upcoming { background: rgba(56,189,248,0.15); color: #7dd3fc; border-color: rgba(56,189,248,0.3); }
.badge-finished { background: rgba(148,163,184,0.18); color: #cbd5e1; border-color: rgba(148,163,184,0.3); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.news-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease;
}
.news-card:hover { transform: translateY(-3px); }
.news-card a { color: inherit; display: block; }
.news-card .cover {
  padding: 18px 16px;
  background: linear-gradient(120deg, rgba(56,189,248,0.25), rgba(99,102,241,0.2));
  font-size: 0.82rem;
  color: #e0f2fe;
  font-weight: 600;
}
.news-card .body { padding: 14px 16px 18px; }
.news-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.4;
}
.news-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .meta { color: #7c91b0; font-size: 0.8rem; }

.faq-list { display: grid; gap: 12px; }
.faq-item {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--accent2);
}
.faq-item p { margin: 0; color: var(--muted); }

.about-box,
.article {
  padding: 24px;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
}
.about-box h2,
.about-box h1,
.article h1 {
  margin-top: 0;
  font-family: var(--font-display);
}
.about-box h3 { color: var(--accent); margin-top: 1.4em; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 0.88rem;
}
.article-content p { margin: 0 0 1em; }
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius);
  border: 1px dashed var(--glass-border);
  background: rgba(255,255,255,0.04);
}

.site-footer {
  margin: 0 auto 20px;
  width: min(1120px, calc(100% - 24px));
  border-radius: 20px;
  padding: 22px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-about { margin-bottom: 10px; }
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 10px;
}
.friend-links a { color: var(--muted); }
.friend-links a:hover { color: var(--accent); }
.copyright { margin: 0; opacity: 0.8; }

@media (max-width: 860px) {
  .match-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .match-action {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    left: 12px; right: 12px;
    top: calc(100% + 8px);
    flex-direction: column;
    padding: 12px;
    border-radius: 16px;
    background: rgba(15, 27, 51, 0.95);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px);
  }
  .main-nav.open { display: flex; }
  .site-header { position: relative; }
  .float-ball { width: 56px; height: 56px; right: 6%; top: 12%; opacity: 0.7; }
  .hero-illus { padding: 28px 18px; }
}

@media (max-width: 520px) {
  .team span { font-size: 0.88rem; }
  .container { width: calc(100% - 20px); }
  .brand-text strong { font-size: 1.05rem; }
}
