:root {
  --bg: #f4f6f9;
  --bg-soft: #eef2f7;
  --paper: #ffffff;
  --ink: #152033;
  --muted: #5b6b7f;
  --line: #d9e1ec;
  --navy: #0f1c33;
  --navy-2: #1a2d4d;
  --red: #c62828;
  --red-deep: #8c1d18;
  --gold: #c9a227;
  --live: #d32f2f;
  --end: #5b6b7f;
  --wait: #1f6feb;
  --ok: #0f6e56;
  --shadow: 0 10px 28px rgba(15, 28, 51, 0.08);
  --radius: 14px;
  --wrap: 1120px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 10% -10%, rgba(198, 40, 40, 0.08), transparent 60%),
    radial-gradient(900px 380px at 90% 0%, rgba(201, 162, 39, 0.10), transparent 55%),
    linear-gradient(180deg, #f7f9fc 0%, var(--bg) 220px);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }
button { font: inherit; }
.wrap { width: min(100% - 28px, var(--wrap)); margin: 0 auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 28, 51, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.28);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  flex: 0 0 auto;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.65);
  object-fit: cover;
  background: #0b1528;
}
.brand strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.brand small {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a {
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
}
.nav a:hover,
.nav a.on {
  color: #fff;
  background: rgba(198, 40, 40, 0.92);
}
.nav-btn {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: transparent;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-btn i {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.chipbar {
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-bottom: 1px solid var(--line);
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.chips a:hover,
.chips a.on {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.hero {
  padding: 28px 0 8px;
}
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 34px 34px 30px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(198, 40, 40, 0.22), transparent 42%),
    linear-gradient(160deg, #0f1c33 0%, #1a2d4d 55%, #243a5c 100%);
  box-shadow: var(--shadow);
}
.hero-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 18px solid rgba(201, 162, 39, 0.14);
  pointer-events: none;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f3d98a;
  font-size: 13px;
}
.hero-kicker .ico { width: 16px; height: 16px; }
.hero-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  font-weight: 800;
}
.hero-sub {
  margin: 14px 0 0;
  max-width: 46rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
  max-width: 520px;
}
.stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: #fff;
}
.stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.block { padding: 22px 0 8px; }
.head-block { padding: 22px 0 4px; }
.head-block h1,
.match h1,
.about h2,
.block > h2 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: 0.01em;
}
.head-block p,
.when,
.half {
  color: var(--muted);
  margin: 0;
}
.sec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sec h2 { margin: 0; font-size: 22px; }
.sec span,
.sec a {
  color: var(--muted);
  font-size: 13px;
}
.sec a:hover { color: var(--red); }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 28, 51, 0.02);
}
.mrow {
  display: grid;
  grid-template-columns: 88px 92px minmax(0, 1.2fr) 78px minmax(0, 1.2fr) 86px;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: inherit;
  border-bottom: 1px solid var(--line);
  transition: background .18s ease;
}
.mrow:last-child { border-bottom: 0; }
.mrow:hover { background: #f8fbff; }
.mtime,
.mleague {
  color: var(--muted);
  font-size: 13px;
}
.mleague {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mteam {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mteam.away { justify-content: flex-end; text-align: right; }
.mteam em {
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mscore {
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.mscore.live,
.mstatus.live { color: var(--live); }
.mscore.end,
.mstatus.end { color: var(--end); }
.mscore.wait,
.mstatus.wait { color: var(--wait); }
.mstatus {
  text-align: right;
  font-size: 12px;
  font-weight: 700;
}
.logo,
.badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 auto;
  object-fit: cover;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.day {
  margin: 18px 0 10px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 700;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.vcard,
.ncard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 148px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.vcard:hover,
.ncard:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 40, 40, 0.28);
  box-shadow: var(--shadow);
  color: inherit;
}
.vcard strong,
.ncard strong {
  font-size: 16px;
  line-height: 1.45;
}
.vcard em,
.ncard em {
  margin-top: auto;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
.vtag,
.ntag {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(198, 40, 40, 0.08);
  color: var(--red-deep);
  font-size: 12px;
  font-weight: 700;
}

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

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.crumb i { font-style: normal; opacity: 0.5; }

.match {
  margin-top: 12px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.kicker {
  margin: 0 0 8px;
  color: var(--red-deep);
  font-size: 13px;
  font-weight: 700;
}
.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin: 22px 0 12px;
  padding: 22px 16px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #0f1c33, #1a2d4d);
  color: #fff;
}
.scoreboard .side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.scoreboard .side .logo,
.scoreboard .side .badge {
  width: 48px;
  height: 48px;
  font-size: 18px;
}
.scoreboard .mid {
  text-align: center;
  min-width: 110px;
}
.scoreboard .mid b {
  display: block;
  font-size: 34px;
  letter-spacing: 0.04em;
}
.scoreboard .mstatus {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}
.signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}
.sig {
  min-width: 108px;
  text-align: center;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(198, 40, 40, 0.25);
}
.sig:hover { filter: brightness(1.05); }
.prose p { color: var(--muted); }
.prose a { color: var(--red-deep); font-weight: 600; }

.about p { color: var(--muted); max-width: 58rem; }
.about a { color: var(--red-deep); font-weight: 600; }

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--red-deep); }
.faq p {
  margin: 0 0 14px;
  color: var(--muted);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
}
.pager a {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.pager a.on,
.pager a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.article {
  margin-top: 12px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.article .meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 18px;
}
.article .body {
  color: #243247;
  font-size: 16px;
  line-height: 1.85;
}
.article .body p { margin: 0 0 14px; }
.links,
.replays {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}
.links a,
.replays a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-weight: 600;
}
.links a:hover,
.replays a:hover {
  border-color: rgba(198, 40, 40, 0.35);
  background: #fff;
}

.foot {
  margin-top: 40px;
  padding: 34px 0 42px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
}
.foot-name {
  margin: 0 0 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.foot p { margin: 0 0 8px; max-width: 48rem; font-size: 13px; }
.foot .copy { opacity: 0.55; margin-top: 14px; }

@media (max-width: 920px) {
  .nav-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 68px;
    margin: 0;
    padding: 10px;
    flex-direction: column;
    background: #13233f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .top { position: relative; }
  .grid-3 { grid-template-columns: 1fr; }
  .mrow {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "time status"
      "league league"
      "home home"
      "score score"
      "away away";
    gap: 8px 12px;
  }
  .mtime { grid-area: time; }
  .mleague { grid-area: league; }
  .mteam.home { grid-area: home; }
  .mscore { grid-area: score; font-size: 22px; padding: 4px 0; }
  .mteam.away { grid-area: away; justify-content: flex-start; text-align: left; }
  .mstatus { grid-area: status; text-align: right; }
  .stats { max-width: none; }
  .hero-card { padding: 26px 20px; }
  .match,
  .article { padding: 18px; }
  .scoreboard { gap: 10px; padding: 18px 10px; }
  .scoreboard .mid b { font-size: 28px; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .hero-title { font-size: 34px; }
}
