:root {
  --bg: #0b1220;
  --bg-elev: #121c2f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eef8;
  --muted: #93a0b8;
  --accent: #e11d48;
  --accent-2: #22c55e;
  --warn: #f59e0b;
  --radius: 14px;
  --font: "DIN Alternate", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Trebuchet MS", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(225, 29, 72, 0.25), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(34, 197, 94, 0.12), transparent 50%),
    linear-gradient(180deg, #070b14 0%, var(--bg) 40%, #0a1526 100%);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.02em; }
.brand span { font-family: var(--display); font-size: 1.15rem; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.nav a { color: var(--muted); font-size: 0.95rem; }
.nav a.active, .nav a:hover { color: #fff; }

.hero {
  padding: 64px 0 36px;
  max-width: 720px;
}
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 10px; }
.hero h1, .page-head h1, .match-detail h1, .article h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 14px;
}
.lead, .page-head p { color: var(--muted); font-size: 1.05rem; margin: 0 0 22px; }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--text); font-weight: 600; font-size: 0.9rem;
}
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn.ghost { background: transparent; }
.btn.watch { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.35); color: #86efac; }
.btn.detail { background: transparent; }

.section, .faq, .about-block, .page-head, .match-detail, .article { padding: 28px 0; }
.section h2, .faq h2, .about-block h2 { margin: 0 0 16px; font-size: 1.35rem; }

.league-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.league-chips a {
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--muted);
}
.league-chips a:hover { color: #fff; border-color: rgba(225,29,72,0.5); }

.match-list { display: grid; gap: 10px; }
.match-row {
  display: grid;
  grid-template-columns: 160px 100px 1fr 72px auto;
  gap: 12px; align-items: center;
  padding: 14px 16px;
  background: rgba(18, 28, 47, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.match-row.status-live { border-color: rgba(34, 197, 94, 0.45); box-shadow: 0 0 0 1px rgba(34,197,94,0.08); }
.match-time { color: var(--muted); font-size: 0.88rem; }
.match-league { color: var(--warn); font-size: 0.85rem; font-weight: 700; }
.match-teams { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.team { display: inline-flex; align-items: center; gap: 8px; min-width: 120px; }
.team img { width: 28px; height: 28px; object-fit: contain; border-radius: 50%; background: #fff; }
.team em { font-style: normal; font-weight: 600; }
.score { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 56px; text-align: center; }
.score.vs { color: var(--muted); font-weight: 600; }
.match-state { font-size: 0.85rem; color: var(--muted); }
.match-actions { display: flex; gap: 8px; justify-content: flex-end; }

.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.news-list a {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: var(--radius);
  background: rgba(18,28,47,0.85); border: 1px solid var(--line);
}
.news-list span { color: var(--muted); font-size: 0.85rem; }

.faq details {
  background: rgba(18,28,47,0.85); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.about-block ul { color: var(--muted); }
.tip { color: var(--muted); font-size: 0.9rem; }

.detail-teams {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
  text-align: center; margin: 28px 0;
}
.detail-teams img { margin: 0 auto 10px; width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 50%; }
.big-score { font-size: 2.4rem; font-weight: 800; }

.article .meta { color: var(--muted); font-size: 0.9rem; }
.article .content { margin-top: 20px; }
.pager { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.pager a { color: #93c5fd; }

.site-footer {
  margin-top: 48px; padding: 28px 0 40px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem;
}
.friends { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 12px 0; }
.friends a { color: #cbd5e1; }
.copy { margin: 0; }

.empty { color: var(--muted); }

@media (max-width: 860px) {
  .match-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "time league"
      "teams teams"
      "state actions";
  }
  .match-time { grid-area: time; }
  .match-league { grid-area: league; text-align: right; }
  .match-teams { grid-area: teams; }
  .match-state { grid-area: state; }
  .match-actions { grid-area: actions; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .nav { width: 100%; }
}
