:root {
  --ink: #243050;
  --muted: #5a6a8a;
  --paper: #fff8ef;
  --paper-deep: #ffe8d2;
  --card: #ffffff;
  --accent: #ff6b4a;
  --accent2: #4a90e2;
  --accent3: #ffc43d;
  --mint: #3ecf8e;
  --live: #ff3d6e;
  --line: rgba(36, 48, 80, 0.12);
  --shadow: 0 10px 28px rgba(36, 48, 80, 0.08);
  --max: 1100px;
  --display: "ZCOOL KuaiLe", "Nunito", "PingFang SC", sans-serif;
  --sans: "Nunito", "Noto Sans SC", "PingFang SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.illu {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; vertical-align: middle; }
button { font: inherit; cursor: pointer; }

.blob-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.blob-bg .b {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.55;
}
.blob-bg .b1 {
  width: 420px; height: 420px;
  left: -120px; top: -80px;
  background: radial-gradient(circle, #ffc43d 0%, transparent 70%);
}
.blob-bg .b2 {
  width: 380px; height: 380px;
  right: -100px; top: 20%;
  background: radial-gradient(circle, #ff6b4a 0%, transparent 70%);
}
.blob-bg .b3 {
  width: 340px; height: 340px;
  left: 15%; bottom: 5%;
  background: radial-gradient(circle, #4a90e2 0%, transparent 70%);
}
.blob-bg .b4 {
  width: 260px; height: 260px;
  right: 18%; bottom: 12%;
  background: radial-gradient(circle, #3ecf8e 0%, transparent 70%);
}

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-header {
  background: rgba(255, 248, 239, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 40;
}
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 0 0.55rem;
}
.mast-date {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: center;
}
.brand img {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: 4px 4px 0 var(--accent3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text em {
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--accent2);
  font-weight: 800;
}
.brand-text b {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.mast-tagline {
  margin: 0;
  justify-self: end;
  text-align: right;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}
.nav-toggle {
  display: none;
  border: 2.5px solid var(--ink);
  background: var(--accent3);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  padding: 0.35rem 0 0.55rem;
}
.main-nav a {
  padding: 0.45rem 1rem;
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: 999px;
  border: 2px solid transparent;
}
.main-nav a.on,
.main-nav a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  padding: 0.35rem 0 0.75rem;
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 700;
  border-top: 2px dashed var(--line);
}
.sub-nav a.on { color: var(--accent); }

.site-main { padding: 1.4rem 0 3rem; }

.mast-hero {
  text-align: center;
  padding: 2rem 1.2rem;
  margin-bottom: 1.4rem;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--accent2);
  position: relative;
  overflow: hidden;
}
.mast-hero::before,
.mast-hero::after {
  content: "";
  position: absolute;
  width: 90px; height: 90px;
  border-radius: 50%;
  opacity: 0.35;
  z-index: 0;
}
.mast-hero::before {
  left: -20px; top: -20px;
  background: var(--accent3);
}
.mast-hero::after {
  right: -24px; bottom: -24px;
  background: var(--mint);
}
.mast-hero > * { position: relative; z-index: 1; }
.mast-hero .eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
.mast-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.3rem, 6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
}
.hero-kw {
  margin: 0.45rem 0 0.75rem;
  display: inline-block;
  font-family: var(--display);
  font-size: 1.3rem;
  color: #fff;
  background: var(--accent);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.95rem;
  box-shadow: 3px 3px 0 var(--ink);
}
.mast-hero .lead {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
}
.hero-mini {
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 5px 5px 0 var(--accent3);
}
.hero-mini h1 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 400;
}
.hero-mini p { margin: 0; color: var(--muted); font-size: 0.92rem; font-weight: 600; }

.sec { margin: 1.6rem 0; }
.sec-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
  padding: 0.2rem 0;
}
.sec-title span {
  display: inline-block;
  background: var(--accent3);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 0.15rem 0.7rem;
  box-shadow: 3px 3px 0 var(--ink);
}
.sec-title small {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}
.chip {
  border: 2.5px solid var(--ink);
  padding: 0.32rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 800;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 2px 2px 0 var(--ink);
}
.chip.on, .chip:hover {
  background: var(--accent2);
  color: #fff;
}

.date-bar {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.4rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.date-item {
  flex: 0 0 auto;
  min-width: 4.7rem;
  text-align: center;
  border: 2.5px solid var(--ink);
  padding: 0.45rem 0.55rem;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 2px 2px 0 var(--ink);
  font-weight: 700;
}
.date-item b { display: block; font-size: 0.95rem; }
.date-item span { font-size: 0.72rem; color: var(--muted); }
.date-item.on {
  background: var(--ink);
  color: #fff;
}
.date-item.on span { color: rgba(255,255,255,0.75); }

.league-block { margin-bottom: 1.25rem; }
.league-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  font-weight: 800;
}
.league-title img {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  background: #fff;
}
.league-title small {
  margin-left: auto;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.75rem;
}

.match-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.match-card {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.8rem 0.85rem;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 4px 4px 0 rgba(36,48,80,0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.match-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent3);
  color: inherit;
}
.match-card.is-live {
  background: #fff0f4;
  border-color: var(--live);
}
.mc-time { display: flex; flex-direction: column; gap: 0.15rem; }
.mc-full { font-size: 0.78rem; font-weight: 800; white-space: nowrap; }
.mc-st {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 700;
}
.is-live .mc-st { color: var(--live); }
.mc-team {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.mc-team.away { justify-content: flex-end; text-align: right; }
.mc-team img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.mc-team strong {
  font-size: 0.92rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-score {
  font-family: var(--display);
  font-size: 1.2rem;
  min-width: 3.2rem;
  text-align: center;
}
.mc-btn {
  font-size: 0.74rem;
  font-weight: 800;
  border: 2.5px solid var(--ink);
  padding: 0.3rem 0.6rem;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--accent3);
  box-shadow: 2px 2px 0 var(--ink);
}
.is-live .mc-btn {
  background: var(--live);
  color: #fff;
}

.vlist { display: flex; flex-direction: column; gap: 0.45rem; }
.vrow {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.95rem;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 3px 3px 0 rgba(36,48,80,0.1);
}
.vrow time { color: var(--muted); font-size: 0.8rem; flex-shrink: 0; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1.1rem;
}
.news-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 4px 4px 0 rgba(36,48,80,0.1);
}
.news-card img {
  width: 110px;
  height: 78px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper-deep);
}
.news-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.35;
}
.news-card time { font-size: 0.75rem; color: var(--muted); font-weight: 700; }

.mag-panel {
  margin: 1.8rem 0;
  padding: 1.25rem 1.15rem;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--mint);
}
.mag-panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
}
.mag-panel h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 800;
}
.mag-panel p { margin: 0.4rem 0; color: #334; }

.faq details {
  border-bottom: 2px dashed var(--line);
  padding: 0.7rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-family: var(--display);
  font-size: 1.05rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "✦ ";
  color: var(--accent);
}
.faq details p { margin: 0.45rem 0 0.2rem; color: var(--muted); font-size: 0.95rem; font-weight: 600; }

.crumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 700;
}
.crumb a:hover { color: var(--accent); }
.crumb span { margin: 0 0.25rem; }

.empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 2.5px dashed var(--ink);
  border-radius: 18px;
  background: rgba(255,255,255,0.6);
  font-weight: 700;
}

.match-detail {
  text-align: center;
  padding: 1.2rem 1rem 1.5rem;
  margin-bottom: 1.4rem;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--accent2);
}
.match-detail .kicker {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 800;
}
.match-detail h1 {
  margin: 0.4rem 0 1.2rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 400;
}
.md-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.md-board .side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}
.md-board .side img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 50%;
  padding: 4px;
  box-shadow: 3px 3px 0 var(--accent3);
}
.md-board .mid b {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
}
.badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-deep);
}
.badge.live { background: var(--live); color: #fff; border-color: var(--ink); }
.signals { display: flex; justify-content: center; gap: 0.55rem; flex-wrap: wrap; }
.sig {
  border: 2.5px solid var(--ink);
  padding: 0.5rem 1.15rem;
  font-weight: 800;
  font-size: 0.88rem;
  border-radius: 999px;
  background: var(--accent3);
  box-shadow: 3px 3px 0 var(--ink);
}
.sig:hover { background: var(--accent); color: #fff; }
.tip { margin: 1rem auto 0; max-width: 32rem; font-size: 0.85rem; color: var(--muted); font-weight: 600; }

.article {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 1.25rem 1.15rem 1.5rem;
  box-shadow: 6px 6px 0 var(--accent3);
}
.article h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.3;
  font-weight: 400;
}
.meta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.7rem 0.85rem;
  border: 2px dashed var(--line);
  border-radius: 14px;
  margin-bottom: 1rem;
  font-weight: 700;
  background: var(--paper);
}
.article .lead-note {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  background: #fff6e8;
  border-left: 5px solid var(--accent);
  border-radius: 0 12px 12px 0;
  color: #445;
  font-size: 0.95rem;
  font-weight: 600;
}
.article .cover { margin: 0 0 1rem; }
.article .cover img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
}
.article .content {
  font-size: 1.02rem;
  line-height: 1.8;
}
.article .content p { margin: 0.85rem 0; }
.article .content img { margin: 0.5rem 0; border: 2px solid var(--ink); border-radius: 12px; }
.pn {
  display: grid;
  gap: 0.65rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2.5px dashed var(--line);
}
.pn a { font-size: 0.92rem; font-weight: 800; }
.pn .muted { color: var(--muted); }

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.pager a, .pager span {
  min-width: 2.2rem;
  text-align: center;
  padding: 0.35rem 0.55rem;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  background: var(--card);
  box-shadow: 2px 2px 0 var(--ink);
}
.pager .on { background: var(--ink); color: #fff; }

.friends {
  border-top: 3px solid var(--ink);
  padding: 0.95rem 0;
  font-size: 0.85rem;
  background: rgba(255, 232, 210, 0.75);
}
.friends .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
}
.friends .lab {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  background: var(--accent2);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
}
.friends a { color: var(--muted); font-weight: 700; }
.friends a:hover { color: var(--accent); }

.site-footer {
  border-top: 3px solid var(--ink);
  padding: 1.25rem 0 2rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  background: rgba(255,248,239,0.9);
  font-weight: 600;
}
.site-footer p { margin: 0.35rem 0; }

.news-list { display: flex; flex-direction: column; gap: 0.55rem; }
.news-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.85rem;
  padding: 0.85rem;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 3px 3px 0 rgba(36,48,80,0.1);
}
.news-row img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 12px;
}
.news-row h3 {
  margin: 0 0 0.3rem;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 400;
}
.video-list a {
  display: block;
  padding: 0.8rem 0.95rem;
  margin-bottom: 0.45rem;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  font-weight: 700;
  box-shadow: 3px 3px 0 rgba(36,48,80,0.1);
}

@media (max-width: 820px) {
  .masthead {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date toggle"
      "brand brand"
      "tag tag";
  }
  .mast-date { grid-area: date; }
  .brand { grid-area: brand; justify-self: start; }
  .mast-tagline { grid-area: tag; justify-self: start; text-align: left; }
  .nav-toggle { display: inline-block; grid-area: toggle; justify-self: end; }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    border: 2px solid var(--line);
    padding: 0.75rem 0.9rem;
  }
  .match-card {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "time btn"
      "home score"
      "away score";
    gap: 0.35rem 0.5rem;
  }
  .mc-time { grid-area: time; }
  .mc-team.home { grid-area: home; }
  .mc-team.away { grid-area: away; justify-content: flex-start; text-align: left; }
  .mc-score { grid-area: score; align-self: center; }
  .mc-btn { grid-area: btn; justify-self: end; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card, .news-row { grid-template-columns: 88px 1fr; }
  .news-card img, .news-row img { width: 88px; height: 66px; }
  .md-board { gap: 0.5rem; }
  .md-board .side strong { font-size: 0.9rem; }
  .mast-hero { box-shadow: 5px 5px 0 var(--accent2); }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 1.25rem, var(--max)); }
  .brand-text b { font-size: 1.4rem; }
  .mast-hero { padding: 1.35rem 0.9rem; }
  .vrow { flex-direction: column; gap: 0.25rem; }
  .blob-bg .b { opacity: 0.35; }
}
