:root {
  --ink: #1a1614;
  --muted: #6b6258;
  --bg: #f4efe6;
  --bg-deep: #ebe3d6;
  --card: #fffaf2;
  --accent: #b42318;
  --accent-2: #9a7b4f;
  --live: #b42318;
  --ok: #2f6b4f;
  --line: rgba(26, 22, 20, 0.14);
  --shadow: 0 12px 28px rgba(26, 22, 20, 0.07);
  --max: 1080px;
  --display: "Source Serif 4", "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.fx-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(180, 35, 24, 0.10), transparent 42%),
    radial-gradient(ellipse at 92% 12%, rgba(154, 123, 79, 0.14), transparent 38%),
    linear-gradient(180deg, #f8f2e8 0%, var(--bg) 38%, #efe7db 100%);
}
.fx-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(26, 22, 20, 0.025) 28px
    );
  opacity: 0.7;
  animation: paperDrift 36s linear infinite;
}
@keyframes paperDrift {
  from { background-position: 0 0; }
  to { background-position: 0 28px; }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
  box-shadow: 0 6px 18px rgba(26, 22, 20, 0.05);
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0 0.55rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(180, 35, 24, 0.28);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.brand:hover img { transform: rotate(-4deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.brand-text b {
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.nav-toggle {
  display: none;
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem 0 0.55rem;
}
.main-nav a {
  padding: 0.4rem 0.85rem;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 3px;
  background: transparent;
  transition: background .2s, color .2s, transform .2s;
}
.main-nav a.on,
.main-nav a:hover {
  background: var(--ink);
  color: #fffaf2;
  transform: translateY(-1px);
}
.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  padding: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.sub-nav a {
  position: relative;
  padding-bottom: 2px;
}
.sub-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--accent-2);
  transition: right .25s ease;
}
.sub-nav a:hover::after,
.sub-nav a.on::after { right: 0; }
.sub-nav a.on { color: var(--accent-2); font-weight: 700; }

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

.mast-hero {
  text-align: left;
  padding: 2.6rem 1.4rem 2.1rem;
  margin-bottom: 1.4rem;
  border-radius: 0;
  background: var(--card);
  box-shadow: none;
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.mast-hero::before {
  content: "178";
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-52%);
  font-family: var(--display);
  font-size: clamp(4rem, 14vw, 7.5rem);
  font-weight: 700;
  color: rgba(180, 35, 24, 0.08);
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  animation: magFloat 6s ease-in-out infinite;
}
@keyframes magFloat {
  0%, 100% { transform: translateY(-52%) rotate(-2deg); }
  50% { transform: translateY(-56%) rotate(1deg); }
}
.mast-hero .eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
}
.mast-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.08;
  max-width: 14ch;
}
.hero-kw {
  margin: 0.75rem 0 0.9rem;
  display: inline-block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fffaf2;
  background: var(--accent);
  padding: 0.22rem 0.75rem;
  border-radius: 2px;
  box-shadow: none;
}
.mast-hero .lead {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.hero-mini {
  padding: 0.35rem 0 1rem;
  margin-bottom: 1rem;
}
.hero-mini h1 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 800;
}
.hero-mini p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.sec { margin: 1.75rem 0; }
.sec-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  padding: 0.35rem 0;
}
.sec-title span {
  position: relative;
  padding-left: 0.75rem;
}
.sec-title span::before {
  content: "";
  position: absolute;
  left: 0; top: 0.15em; bottom: 0.15em;
  width: 3px;
  border-radius: 0;
  background: var(--accent);
}
.sec-title small {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}
.chip {
  border: 1px solid var(--line);
  padding: 0.32rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 2px;
  background: var(--card);
  box-shadow: none;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.chip:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
}
.chip.on {
  background: var(--ink);
  color: #fffaf2;
  border-color: var(--ink);
  box-shadow: none;
}

.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: 1px solid var(--line);
  padding: 0.5rem 0.55rem;
  background: var(--card);
  border-radius: 14px;
  transition: transform .2s, background .2s, color .2s;
}
.date-item:hover { transform: translateY(-2px); }
.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;
  border-color: var(--ink);
}
.date-item.on span { color: rgba(255,255,255,0.75); }

.league-block { margin-bottom: 1.35rem; }
.league-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.league-title img { border-radius: 4px; }
.league-title small {
  margin-left: auto;
  font-weight: 500;
  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.8rem 1fr auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(14,78,140,0.04);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s, border-color .22s;
}
.match-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(180,35,24,0.12);
  border-color: rgba(180,35,24,0.28);
  color: inherit;
}
.match-card.is-live {
  border-color: rgba(220, 38, 38, 0.35);
  background: linear-gradient(90deg, rgba(220,38,38,0.06), var(--card) 40%);
}
.mc-time { display: flex; flex-direction: column; gap: 0.15rem; }
.mc-full { font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.mc-st {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--muted);
}
.is-live .mc-st { color: var(--live); font-weight: 700; }
.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: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.mc-team strong {
  font-size: 0.92rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-score {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  min-width: 3.2rem;
  text-align: center;
}
.mc-btn {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 0;
  padding: 0.35rem 0.7rem;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--accent);
  transition: transform .2s, background .2s;
}
.match-card:hover .mc-btn { transform: scale(1.05); }
.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.85rem 1rem;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  transition: transform .2s, box-shadow .2s;
}
.vrow:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  color: inherit;
}
.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;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}
.news-card img {
  width: 110px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg-deep);
}
.news-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}
.news-card time { font-size: 0.75rem; color: var(--muted); }

.mag-panel {
  margin: 2rem 0;
  padding: 1.4rem 1.25rem;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mag-panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
}
.mag-panel h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1rem;
  color: var(--accent);
}
.mag-panel p { margin: 0.4rem 0; color: #334155; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--display);
  font-size: 1.02rem;
  list-style: none;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+ ";
  color: var(--accent);
  font-weight: 800;
}
.faq details[open] summary::before { content: "– "; color: var(--accent-2); }
.faq details p { margin: 0.45rem 0 0.2rem; color: var(--muted); font-size: 0.95rem; }

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

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

.match-detail {
  text-align: center;
  padding: 1.25rem 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.match-detail .kicker {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.match-detail h1 {
  margin: 0.4rem 0 1.2rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 800;
}
.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: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 4px;
  transition: transform .25s;
}
.md-board .side:hover img { transform: scale(1.08); }
.md-board .mid b {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
}
.badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--bg-deep);
}
.badge.live { background: var(--live); color: #fff; }
.signals { display: flex; justify-content: center; gap: 0.55rem; flex-wrap: wrap; }
.sig {
  border: 0;
  padding: 0.55rem 1.15rem;
  font-weight: 800;
  font-size: 0.88rem;
  border-radius: 2px;
  background: var(--accent);
  color: #fffaf2;
  box-shadow: none;
  transition: transform .2s, background .2s;
}
.sig:hover {
  transform: translateY(-1px);
  color: #fffaf2;
  background: #8f1a14;
}
.tip { margin: 1rem auto 0; max-width: 32rem; font-size: 0.85rem; color: var(--muted); }

.article {
  padding: 1.25rem;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.article h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 4vw, 1.95rem);
  line-height: 1.3;
  font-weight: 800;
}
.meta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.article .cover { margin: 0 0 1rem; }
.article .cover img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
}
.article .content {
  font-size: 1.02rem;
  line-height: 1.8;
}
.article .content p { margin: 0.85rem 0; }
.article .lead-note {
  background: var(--bg-deep);
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1rem;
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.article .content img { margin: 0.5rem 0; border-radius: 10px; }
.pn {
  display: grid;
  gap: 0.65rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.pn a { font-size: 0.92rem; font-weight: 700; }
.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.4rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 0.88rem;
  transition: transform .15s;
}
.pager a:hover { transform: translateY(-1px); }
.pager .on {
  background: var(--ink);
  color: #fffaf2;
  border-color: var(--ink);
}

.friends {
  border-top: 1px solid var(--line);
  padding: 0.95rem 0;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.7);
}
.friends .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
}
.friends .lab {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: var(--ink);
}
.friends a { color: var(--muted); }
.friends a:hover { color: var(--accent); }

.site-footer {
  border-top: 2px solid var(--ink);
  padding: 1.35rem 0 2rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  background: #efe7db;
}
.site-footer p { margin: 0.35rem 0; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.85rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { border-radius: 12px; }
  .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 { grid-template-columns: 88px 1fr; }
  .news-card img { width: 88px; height: 66px; }
  .md-board { gap: 0.5rem; }
  .md-board .side strong { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 1.2rem, var(--max)); }
  .brand-text b { font-size: 1.25rem; }
  .mast-hero { padding: 1.5rem 0.85rem 1.3rem; border-radius: 0; }
  .mast-hero::before { opacity: 0.35; font-size: 4.5rem; right: 2%; }
  .mast-hero h1 { max-width: none; font-size: 2.1rem; }
  .vrow { flex-direction: column; gap: 0.25rem; }
  .article { padding: 1rem; }
  .match-card { padding: 0.7rem 0.55rem; }
  .mc-team strong { font-size: 0.88rem; }
}
