:root {
  --bg: #f7f7f5;
  --bg-soft: #ffffff;
  --ink: #141414;
  --muted: #6b6b6b;
  --line: #e6e6e2;
  --accent: #111111;
  --live: #c41212;
  --radius: 10px;
  --shadow: 0 1px 0 rgba(0,0,0,.04);
  --wrap: 1120px;
  --font: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, #ecece8 0%, transparent 55%),
    linear-gradient(180deg, #fafaf8 0%, var(--bg) 40%, #f3f3ef 100%);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--ink); text-decoration: none; }
a:hover { opacity: .78; }
img { max-width: 100%; height: auto; vertical-align: middle; }
.wrap { width: min(100% - 32px, var(--wrap)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,247,245,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; }
.brand img { display: block; }
.brand-text { font-size: 15px; }
.site-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.site-nav a {
  padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--muted);
}
.site-nav a.on, .site-nav a:hover {
  color: var(--ink); background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; width: 40px; height: 40px; font-size: 18px;
}

.site-main { padding: 28px 0 56px; }
.hero {
  padding: 36px 0 18px;
}
.hero h1 {
  margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.02em; font-weight: 760;
}
.hero p { margin: 0; color: var(--muted); max-width: 46ch; }

.section { margin-top: 34px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.section-head h2 {
  margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em;
}
.section-head .more { color: var(--muted); font-size: 13px; }

.league-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
}
.league-chip {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 8px; text-align: center; transition: transform .25s ease, border-color .25s ease;
}
.league-chip:hover { transform: translateY(-2px); border-color: #ccc; }
.league-chip img { width: 40px; height: 40px; }
.league-chip span { font-size: 13px; }

.match-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.match-card {
  display: block; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.match-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.match-meta {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  color: var(--muted); font-size: 12px; margin-bottom: 12px;
}
.match-meta .league { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.badge {
  margin-left: auto; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: #fafafa;
}
.status-live .badge { background: #111; color: #fff; border-color: #111; }
.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 span { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team img { width: 40px; height: 40px; flex: 0 0 auto; }
.score { font-weight: 700; font-size: 16px; letter-spacing: .04em; }
.living { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #b00000; }

.panel {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
}
.panel h2, .panel h3 { margin-top: 0; }
.faq-item { border-top: 1px solid var(--line); padding: 14px 0; }
.faq-item:first-child { border-top: 0; padding-top: 0; }
.faq-item h3 { margin: 0 0 6px; font-size: 15px; }
.faq-item p { margin: 0; color: var(--muted); font-size: 14px; }

.about-box p { color: var(--muted); font-size: 14px; }
.about-box h3 { font-size: 15px; margin: 18px 0 8px; }

.page-title { margin: 0 0 18px; font-size: 26px; }
.breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }

.detail-hero {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; margin-bottom: 18px;
}
.detail-teams {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 18px 0;
}
.detail-teams .team { flex-direction: column; text-align: center; }
.detail-teams .team.away { flex-direction: column; }
.detail-teams img { width: 72px; height: 72px; }
.play-lines { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.play-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff !important; padding: 10px 18px;
  border-radius: 999px; font-size: 14px;
}
.play-btn img { filter: invert(1); }

.news-list { display: grid; gap: 12px; }
.news-item {
  display: block; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
}
.news-item h3 { margin: 0 0 6px; font-size: 17px; }
.news-item p { margin: 0; color: var(--muted); font-size: 14px; }
.news-meta { margin-top: 8px; font-size: 12px; color: #999; display: flex; gap: 12px; flex-wrap: wrap; }

.article { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.article h1 { margin: 0 0 12px; font-size: 26px; line-height: 1.35; }
.article-meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 18px; }
.article-lead { color: var(--muted); font-size: 14px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.article-body p { margin: 0 0 14px; font-size: 15px; }
.article-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.article-nav a { color: var(--muted); max-width: 46%; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.pager a, .pager span {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px;
}
.pager .on { background: #111; color: #fff; border-color: #111; }

.site-footer {
  border-top: 1px solid var(--line); background: #fafaf8; padding: 28px 0 36px;
  color: var(--muted); font-size: 13px;
}
.footer-inner { display: grid; gap: 8px; }
.footer-brand { margin: 0; color: var(--ink); font-weight: 600; }
.friend-links { margin: 0; }
.friend-links a { margin-right: 12px; color: var(--muted); }
.copyright { margin: 0; }

.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none; position: absolute; left: 16px; right: 16px; top: 64px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 10px; flex-direction: column; box-shadow: 0 12px 30px rgba(0,0,0,.08);
  }
  .site-nav.open { display: flex; }
  .site-header { position: relative; }
  .match-grid { grid-template-columns: 1fr; }
  .team span { font-size: 13px; }
  .detail-teams img { width: 56px; height: 56px; }
  .article { padding: 16px; }
  .article h1 { font-size: 22px; }
}
