:root {
  --ink: #12141a;
  --ink-soft: #2a2f3a;
  --muted: #5a6270;
  --paper: #f3f5f8;
  --paper-2: #e8ecf1;
  --line: #cfd5de;
  --accent: #c41e2d;
  --accent-dark: #9a1521;
  --live: #0f8a5f;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(18, 20, 26, 0.08);
  --radius: 4px;
  --font-display: "Playfair Display", "Noto Serif SC", serif;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-sans: "Source Sans 3", "PingFang SC", "Microsoft YaHei", sans-serif;
  --wrap: min(1120px, calc(100% - 32px));
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.25;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

.mag-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(196, 30, 45, 0.08), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(18, 20, 26, 0.06), transparent 55%),
    linear-gradient(180deg, #f7f8fb 0%, var(--paper) 40%, #eef1f5 100%);
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 245, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #fff;
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.site-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--ink);
  background: #fff;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
}

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

.hero {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 24px;
  margin-bottom: 36px;
  align-items: stretch;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border: 18px solid rgba(196, 30, 45, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-card h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 12px;
}

.lead {
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  max-width: 42em;
  margin: 0 0 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius);
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

.side-box {
  background: var(--ink);
  color: #f5f6f8;
  padding: 22px;
  box-shadow: var(--shadow);
}

.side-box h2 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 10px;
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e8ebf0;
  font-size: 0.92rem;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.12);
}

.side-list a:hover { color: #fff; }
.side-list img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
}
.muted { color: rgba(255,255,255,0.65); margin: 0; }

.section { margin-bottom: 40px; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.section-head h2 {
  font-size: 1.55rem;
  margin: 0 0 4px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-head > a {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--ink);
}

.league-chips {
  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;
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 8px;
  color: var(--ink);
  transition: 0.2s ease;
}

.league-chip:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.league-chip img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.league-chip span {
  font-weight: 700;
  font-size: 0.9rem;
}

.match-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.match-row {
  display: grid;
  grid-template-columns: 150px 90px 1fr 78px;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  color: inherit;
  border-bottom: 1px solid var(--paper-2);
}

.match-row:last-child { border-bottom: 0; }
.match-row:hover { background: #fafbfd; color: inherit; }

.mr-time {
  font-size: 0.84rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.mr-league {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.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 .side.away { justify-content: flex-end; text-align: right; }

.mr-teams img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.mr-teams b {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mr-teams .score {
  font-family: var(--font-display);
  font-weight: 700;
  min-width: 48px;
  text-align: center;
}

.mr-status {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 0;
  border: 1px solid var(--line);
}

.st-live {
  color: #fff;
  background: var(--live);
  border-color: var(--live);
}

.st-upcoming { color: var(--ink-soft); }
.st-finished { color: var(--muted); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  color: inherit;
  overflow: hidden;
  transition: 0.2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
  border-color: var(--ink);
}

.news-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--paper-2);
}

.news-card .body { padding: 14px; }
.news-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 0;
  padding: 14px 16px;
}

.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-serif);
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.page-banner {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.page-banner h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.page-banner p { margin: 0; color: var(--muted); }

.play-card,
.article {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}

.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: 10px;
  text-align: center;
}

.play-vs .team img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.play-vs .vs {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}

.tip-center {
  text-align: center;
  color: var(--muted);
  margin: 0 0 18px;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.replay-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.replay-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 16px;
  color: inherit;
}

.replay-item:hover {
  border-color: var(--accent);
  color: inherit;
}

.replay-item h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 0 0 4px;
}

.replay-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.pager a,
.pager span {
  font-weight: 700;
}

.pager .disabled { color: var(--muted); }

.article h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.article-cover {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  margin-bottom: 16px;
}

.article-content {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.article-content p { margin: 0 0 1em; }
.article-lead {
  background: var(--paper);
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  color: var(--ink);
  font-size: 0.98rem;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 2px solid var(--ink);
  background: #fff;
  padding: 28px 0 36px;
  margin-top: auto;
}

.about-block {
  margin-bottom: 22px;
}

.about-block h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.about-body {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.about-body ul {
  padding-left: 1.2em;
  margin: 8px 0 14px;
}

.about-body .tip {
  color: var(--muted);
  font-size: 0.88rem;
}

.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.friend-links a { color: var(--ink-soft); font-weight: 600; }
.friend-links a:hover { color: var(--accent); }

.copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

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

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 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; min-width: 72px; }
  .mr-league { grid-area: league; }
  .mr-teams { grid-area: teams; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    padding: 10px 14px;
    z-index: 60;
  }
  .site-nav.open { display: flex; }
  .header-inner { position: relative; }
  .news-grid { grid-template-columns: 1fr; }
  .brand strong { font-size: 1.15rem; }
  .mr-teams b { font-size: 0.84rem; }
  .article-nav { flex-direction: column; }
  .play-vs .team img { width: 56px; height: 56px; }
}
