:root {
  --bg0: #07111f;
  --bg1: #0b1c2e;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --border: rgba(125, 211, 252, 0.28);
  --text: #e8f4ff;
  --muted: #93aec4;
  --accent: #38bdf8;
  --accent2: #22d3ee;
  --live: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --font: "Noto Sans SC", "PingFang SC", sans-serif;
  --display: "Sora", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(160deg, var(--bg0), var(--bg1) 45%, #0a2a3a);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #bae6fd; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.bg-layers { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.45;
}
.b1 { width: 420px; height: 420px; background: #0ea5e9; top: -80px; left: -60px; }
.b2 { width: 360px; height: 360px; background: #14b8a6; bottom: 10%; right: -80px; }
.b3 { width: 280px; height: 280px; background: #6366f1; top: 40%; left: 45%; opacity: 0.25; }

.glass, .glass-bar {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.glass-bar { border-radius: 0; border-left: 0; border-right: 0; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 17, 31, 0.72);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0; min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px; color: var(--text);
}
.brand img {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.1); object-fit: cover;
}
.brand strong {
  display: block; font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.02em;
}
.brand small { color: var(--muted); font-size: 0.75rem; }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted); padding: 8px 12px; border-radius: 999px;
  font-size: 0.92rem; transition: .2s ease;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--text); background: rgba(56, 189, 248, 0.18);
}
.nav-toggle {
  display: none; border: 1px solid var(--border); background: var(--glass);
  color: var(--text); border-radius: 10px; padding: 8px 12px; font-size: 1.1rem;
}

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

.hero {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-bottom: 28px;
}
.hero-card, .side-box, .page-banner, .about-block, .friend-links, .play-card, .article {
  border-radius: var(--radius); padding: 22px;
}
.hero-icon { margin-bottom: 10px; }
.kicker {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.12em;
  color: var(--accent2); margin-bottom: 8px;
}
.hero-card h1, .page-banner h1 {
  font-family: var(--display); margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.25;
}
.lead, .page-banner p { color: var(--muted); margin: 0 0 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 12px; font-weight: 600; border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, #0ea5e9, #22d3ee); color: #042f3a; }
.btn-primary:hover { color: #021820; filter: brightness(1.05); }
.btn-ghost { background: rgba(255,255,255,.06); border-color: var(--border); color: var(--text); }

.side-box h2 {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px; font-size: 1.05rem;
}
.side-list { display: flex; flex-direction: column; gap: 8px; }
.side-list a {
  display: flex; align-items: center; gap: 8px; color: var(--text);
  padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04);
}
.side-list img { width: 24px; height: 24px; object-fit: contain; border-radius: 50%; background: #fff; }
.muted { color: var(--muted); margin: 0; }

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

.league-chips {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px;
}
.league-chip {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 10px; border-radius: 16px; color: var(--text); text-align: center;
  transition: transform .2s ease, background .2s ease;
}
.league-chip:hover { transform: translateY(-3px); background: var(--glass-strong); color: var(--text); }
.league-chip img { width: 36px; height: 36px; object-fit: contain; }

.match-list { display: flex; flex-direction: column; gap: 10px; }
.match-row {
  display: grid;
  grid-template-columns: 150px 72px 1fr 72px;
  gap: 10px; align-items: center;
  padding: 12px 14px; border-radius: 14px; color: var(--text);
}
.match-row:hover { background: var(--glass-strong); color: var(--text); }
.mr-time { font-size: 0.82rem; color: var(--muted); }
.mr-league { font-size: 0.8rem; color: var(--accent2); }
.mr-teams {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center;
}
.mr-teams .side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mr-teams .away { justify-content: flex-end; text-align: right; }
.mr-teams img {
  width: 28px; height: 28px; object-fit: contain; border-radius: 50%;
  background: rgba(255,255,255,.9); flex-shrink: 0;
}
.mr-teams b { font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score { font-weight: 700; color: var(--accent); text-align: center; min-width: 42px; }
.mr-status {
  text-align: center; font-size: 0.78rem; padding: 4px 8px; border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.st-live { color: #052e1a; background: var(--live); }
.st-upcoming { color: #422006; background: var(--warn); }
.st-finished { color: var(--muted); }

.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.news-card {
  overflow: hidden; border-radius: 16px; color: var(--text); display: flex; flex-direction: column;
}
.news-card img {
  width: 100%; height: 150px; object-fit: cover; background: rgba(0,0,0,.2);
}
.news-card .body { padding: 12px 14px 16px; }
.news-card h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.4; }
.news-card p { margin: 0; color: var(--muted); font-size: 0.82rem; }

.faq details {
  border-radius: 14px; padding: 12px 16px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.page-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.page-banner > div { flex: 1; }
.sub-links { margin: 0 0 14px; }

.play-vs {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center;
  margin-bottom: 18px;
}
.play-vs .team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.play-vs img {
  width: 72px; height: 72px; object-fit: contain; border-radius: 50%;
  background: rgba(255,255,255,.92); padding: 6px;
}
.play-vs .vs { font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.tip-center { text-align: center; color: var(--muted); margin: 0 0 16px; }
.signals { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sig {
  padding: 11px 22px; border-radius: 12px; font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9, #22d3ee); color: #042f3a;
}
.sig:hover { color: #021820; filter: brightness(1.05); }
.sig.alt { background: rgba(255,255,255,.1); color: var(--text); border: 1px solid var(--border); }

.article h1 { margin: 0 0 12px; font-size: 1.55rem; line-height: 1.35; }
.meta-bar {
  display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--muted);
  font-size: 0.85rem; margin-bottom: 16px;
}
.article .cover {
  width: 100%; max-height: 360px; object-fit: cover; border-radius: 14px; margin-bottom: 16px;
}
.article-content { color: #d7e8f5; }
.article-content .lead-line {
  background: rgba(56,189,248,.12); border-left: 3px solid var(--accent);
  padding: 10px 12px; border-radius: 0 10px 10px 0; color: var(--text);
}
.article-content p { margin: 0 0 14px; }
.article-content img { border-radius: 10px; margin: 8px 0; }
.article-nav {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 24px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.article-nav a { color: var(--accent2); font-size: 0.92rem; }

.about-block { margin-bottom: 18px; }
.about-block h2 { margin-top: 0; }
.about-body h3 { font-size: 1rem; margin: 16px 0 8px; }
.about-body ul { padding-left: 1.2em; color: var(--muted); }
.about-body .tip { color: var(--warn); font-size: 0.9rem; }

.friend-links {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  padding: 12px 16px; border-radius: 14px; margin-bottom: 12px; color: var(--muted);
}
.friend-links a { color: var(--muted); }
.friend-links a:hover { color: var(--accent); }
.copy, .copy-sub { color: var(--muted); font-size: 0.85rem; text-align: center; margin: 6px 0; }
.copy-sub { opacity: 0.8; font-size: 0.78rem; }

.pager {
  display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 20px;
}
.pager a, .pager .on {
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--glass); color: var(--text);
}
.empty { padding: 28px; text-align: center; color: var(--muted); border-radius: 14px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .match-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "time status"
      "league league"
      "teams teams";
  }
  .mr-time { grid-area: time; }
  .mr-status { grid-area: status; justify-self: end; }
  .mr-league { grid-area: league; }
  .mr-teams { grid-area: teams; }
}

@media (max-width: 680px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 16px; right: 16px; top: 68px;
    flex-direction: column; padding: 10px; border-radius: 14px;
    background: rgba(7, 17, 31, 0.96); border: 1px solid var(--border);
  }
  .site-nav.open { display: flex; }
  .header-inner { position: relative; }
  .news-grid { grid-template-columns: 1fr; }
  .mr-teams { grid-template-columns: 1fr; gap: 6px; }
  .mr-teams .away { justify-content: flex-start; text-align: left; }
  .score { justify-self: start; }
  .article-nav { flex-direction: column; }
  .play-vs { gap: 8px; }
  .play-vs img { width: 56px; height: 56px; }
}
