:root {
  --ink: #0b1a14;
  --field: #0f2e22;
  --pitch: #163d2c;
  --lime: #b8f23a;
  --lime-dim: #8bc823;
  --orange: #ff7a18;
  --cream: #e8f0e6;
  --muted: #8aa394;
  --card: rgba(18, 48, 36, 0.88);
  --line: rgba(184, 242, 58, 0.18);
  --glass: rgba(255, 255, 255, 0.06);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --font-display: "Oswald", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--lime); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1140px, calc(100% - 28px)); margin: 0 auto; }

.pitch-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(184,242,58,0.12), transparent 45%),
    radial-gradient(ellipse at 90% 20%, rgba(255,122,24,0.10), transparent 40%),
    linear-gradient(180deg, #07140f 0%, #0f2e22 45%, #0a1c14 100%);
}
.pitch-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(184,242,58,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,242,58,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  opacity: .55;
}

.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(12px);
  background: rgba(7, 20, 15, 0.86);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px; color: inherit;
}
.brand img {
  width: 44px; height: 44px; border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(184,242,58,0.35);
  object-fit: cover;
}
.brand strong {
  display: block; font-family: var(--font-display);
  font-size: 1.25rem; letter-spacing: .04em; color: #fff;
}
.brand small { color: var(--muted); font-size: .75rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.site-nav a {
  color: var(--cream); font-size: .92rem; font-weight: 500;
  padding: 6px 4px; border-bottom: 2px solid transparent;
}
.site-nav a.active, .site-nav a:hover {
  color: var(--lime); border-bottom-color: var(--lime);
}
.nav-toggle {
  display: none; background: var(--glass); border: 1px solid var(--line);
  color: #fff; border-radius: 8px; padding: 8px 12px; font-size: 1.1rem;
}

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

.hero {
  display: grid; grid-template-columns: 1.4fr .8fr; gap: 20px;
  margin-bottom: 28px;
}
.hero-card {
  background:
    linear-gradient(135deg, rgba(184,242,58,0.12), transparent 50%),
    linear-gradient(180deg, rgba(22,61,44,0.95), rgba(11,26,20,0.9));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: center;
}
.kicker {
  font-family: var(--font-display);
  letter-spacing: .18em; color: var(--lime); font-size: .78rem;
  margin-bottom: 10px;
}
.hero-card h1 {
  margin: 0 0 12px; font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem); letter-spacing: .03em;
  color: #fff; line-height: 1.15;
}
.lead { color: var(--muted); margin: 0 0 22px; max-width: 42em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  border: 1px solid transparent; transition: .2s ease;
}
.btn-primary { background: var(--lime); color: #0b1a14; }
.btn-primary:hover { background: #fff; color: #0b1a14; }
.btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.25);
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

.side-box {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 18px 16px; box-shadow: var(--shadow);
}
.side-box h2 {
  margin: 0 0 12px; font-size: 1rem; font-family: var(--font-display);
  letter-spacing: .06em; color: var(--lime);
}
.side-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px; border-radius: 10px; color: var(--cream);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.side-list a:last-child { border-bottom: 0; }
.side-list a:hover { background: var(--glass); }
.side-list img { width: 28px; height: 28px; object-fit: contain; }

.section { margin: 34px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.section-head h2 {
  margin: 0; font-family: var(--font-display); letter-spacing: .04em;
  font-size: 1.45rem; color: #fff;
}
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.section-head > a { color: var(--lime-dim); font-size: .9rem; white-space: nowrap; }

.league-chips {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px;
}
.league-chip {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  color: #fff; transition: .2s ease;
}
.league-chip:hover {
  transform: translateY(-3px);
  border-color: var(--lime);
  box-shadow: 0 8px 20px rgba(184,242,58,.12);
}
.league-chip img { width: 40px; height: 40px; object-fit: contain; }
.league-chip span { font-size: .85rem; font-weight: 600; }

.match-list {
  display: flex; flex-direction: column; gap: 8px;
  position: relative; z-index: 1;
  opacity: 1; visibility: visible;
  min-height: 48px;
}
.match-row {
  display: grid;
  grid-template-columns: 150px 72px minmax(0, 1fr) 72px;
  gap: 10px; align-items: center;
  padding: 12px 14px;
  background: #123024;
  border: 1px solid rgba(184, 242, 58, 0.22);
  border-radius: 12px;
  color: #e8f0e6;
  text-decoration: none;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none;
  transition: border-color .18s ease, background .18s ease;
}
.match-row:hover {
  border-color: var(--lime);
  background: #16402e;
  color: #fff;
}
.mr-time { color: #9bb5a6; font-size: .82rem; }
.mr-league {
  font-size: .78rem; color: #ff9a4a; font-weight: 600;
  text-align: center;
}
.mr-teams {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center;
}
.mr-teams .side {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.mr-teams .side.away { justify-content: flex-end; }
.mr-teams img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.mr-teams b {
  font-size: .92rem; color: #f3faf0; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mr-teams .score {
  font-family: var(--font-display); font-size: 1.05rem;
  color: var(--lime); min-width: 48px; text-align: center;
}
.mr-status {
  text-align: center; font-size: .75rem; font-weight: 700;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(255,255,255,.08); color: #d7ebe0;
}
.st-live { color: #ff6b6b; background: rgba(255,90,90,.16); }
.st-upcoming { color: var(--lime); background: rgba(184,242,58,.12); }
.st-finished, .st-done { color: #8aa394; }

.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.news-card {
  background: var(--card); border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; overflow: hidden; color: inherit;
  transition: .2s ease;
}
.news-card:hover { border-color: var(--lime); transform: translateY(-2px); }
.news-card img {
  width: 100%; height: 150px; object-fit: cover; background: #0a1c14;
}
.news-card .body { padding: 12px 14px 16px; }
.news-card h3 {
  margin: 0 0 8px; font-size: 1rem; line-height: 1.4; color: #fff;
}
.news-card p { margin: 0; color: var(--muted); font-size: .8rem; }

.faq details {
  background: var(--card); border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 8px;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: #fff; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--lime); }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }

.page-banner {
  padding: 22px 0 8px;
}
.page-banner h1 {
  margin: 0 0 6px; font-family: var(--font-display);
  font-size: 1.8rem; color: #fff; letter-spacing: .04em;
}
.page-banner p { margin: 0; color: var(--muted); }

.pager {
  display: flex; gap: 10px; justify-content: center; margin-top: 22px;
}
.pager a, .pager span {
  padding: 8px 14px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--line); color: #fff;
}
.pager .disabled { opacity: .4; pointer-events: none; }

.play-card, .article {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px; box-shadow: var(--shadow);
}
.play-vs {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin: 18px 0; flex-wrap: wrap;
}
.play-vs .team {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 110px;
}
.play-vs img { width: 64px; height: 64px; object-fit: contain; }
.play-vs .vs {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--lime);
}
.meta-bar {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  color: var(--muted); font-size: .85rem; margin-bottom: 14px;
}
.article h1 { margin: 0 0 12px; color: #fff; font-size: 1.55rem; line-height: 1.35; }
.article-content { color: #d5e4d8; font-size: 1rem; }
.article-content img { margin: 12px auto; border-radius: 10px; }
.article-content p { margin: 0 0 1em; }
.article-nav {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
}
.article-nav a { color: var(--lime); font-size: .9rem; max-width: 46%; }

.replay-list { display: flex; flex-direction: column; gap: 8px; }
.replay-item {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 14px; background: var(--card); border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06); color: inherit;
}
.replay-item:hover { border-color: var(--lime); }
.replay-item h3 { margin: 0 0 4px; font-size: 1rem; color: #fff; }
.replay-item p { margin: 0; color: var(--muted); font-size: .82rem; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 14, 10, 0.95);
  padding: 28px 0 36px; margin-top: 20px;
}
.about-block h2 {
  margin: 0 0 12px; font-family: var(--font-display); color: #fff;
}
.about-body { color: var(--muted); font-size: .92rem; }
.about-body h3 { color: var(--lime); font-size: 1rem; margin: 16px 0 8px; }
.about-body ul { padding-left: 1.2em; margin: 0 0 8px; }
.about-body .tip { color: var(--orange); font-size: .85rem; }
.friend-links {
  margin: 18px 0 10px; display: flex; flex-wrap: wrap; gap: 8px 14px;
  align-items: center; color: var(--muted); font-size: .88rem;
}
.friend-links a { color: var(--muted); }
.friend-links a:hover { color: var(--lime); }
.copy { margin: 0; color: #5f7468; font-size: .8rem; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .league-chips { grid-template-columns: repeat(4, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .match-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "time status"
      "league league"
      "teams teams";
    gap: 8px 10px;
  }
  .mr-time { grid-area: time; }
  .mr-status { grid-area: status; justify-self: end; padding: 4px 10px; }
  .mr-league { grid-area: league; text-align: left; }
  .mr-teams { grid-area: teams; width: 100%; }
}

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 14px; right: 14px; top: 64px;
    flex-direction: column; background: #0c1f17; border: 1px solid var(--line);
    border-radius: 12px; padding: 10px; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .header-inner { position: relative; }
  .league-chips { grid-template-columns: repeat(4, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .hero-card { padding: 24px 18px; min-height: auto; }
  .mr-teams b { font-size: .82rem; }
  .article-nav { flex-direction: column; }
  .article-nav a { max-width: 100%; }
}
