:root {
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --rule: #1a1a1a;
  --paper: #f7f3ea;
  --paper-deep: #efe8d8;
  --accent: #b42318;
  --accent-soft: #e8d4c8;
  --live: #c1121f;
  --ok: #1b4332;
  --line: rgba(26, 26, 26, 0.14);
  --max: 1080px;
  --serif: "Instrument Serif", "Noto Serif SC", "Songti SC", serif;
  --sans: "Source Sans 3", "PingFang SC", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.mag {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--paper);
  min-height: 100vh;
}
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; }

.paper-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(180, 35, 24, 0.06), transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(26,26,26,0.03) 28px),
    var(--paper);
}

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

/* Masthead — magazine */
.site-header {
  border-bottom: 3px solid var(--rule);
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0 0.65rem;
  border-bottom: 1px solid var(--line);
}
.mast-date {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: center;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  border: 2px solid var(--ink);
  background: #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text em {
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-family: var(--sans);
}
.brand-text b {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.mast-tagline {
  margin: 0;
  justify-self: end;
  text-align: right;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.nav-toggle {
  display: none;
  border: 1.5px solid var(--ink);
  background: transparent;
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.main-nav a {
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.main-nav a.on,
.main-nav a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  padding: 0.55rem 0 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.sub-nav a.on { color: var(--accent); font-weight: 700; }

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

/* Hero */
.mast-hero {
  text-align: center;
  padding: 2.2rem 0 1.8rem;
  border-bottom: 3px double var(--rule);
  margin-bottom: 1.5rem;
}
.mast-hero .eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.mast-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.hero-kw {
  margin: 0.4rem 0 0.75rem;
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}
.mast-hero .lead {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.hero-mini {
  padding: 0.5rem 0 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.hero-mini h1 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.85rem;
}
.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(--serif);
  font-size: 1.55rem;
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0;
}
.sec-title span { letter-spacing: 0.02em; }
.sec-title small {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 1.25rem;
}
.chip {
  border: 1px solid var(--ink);
  padding: 0.28rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  background: transparent;
}
.chip.on, .chip:hover {
  background: var(--ink);
  color: var(--paper);
}

.date-bar {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.4rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.date-item {
  flex: 0 0 auto;
  min-width: 4.6rem;
  text-align: center;
  border: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  background: #fff;
}
.date-item b { display: block; font-size: 0.95rem; }
.date-item span { font-size: 0.72rem; color: var(--muted); }
.date-item.on {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.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;
  letter-spacing: 0.02em;
  text-transform: none;
}
.league-title img { border-radius: 2px; }
.league-title small {
  margin-left: auto;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.75rem;
}

.match-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.match-card {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.7rem 0.35rem;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background 0.2s;
}
.match-card:hover { background: rgba(26,26,26,0.03); color: inherit; }
.match-card.is-live { background: rgba(193, 18, 31, 0.05); }
.mc-time { display: flex; flex-direction: column; gap: 0.15rem; }
.mc-full { font-size: 0.78rem; font-weight: 600; 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: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-score {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  min-width: 3.2rem;
  text-align: center;
}
.mc-btn {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--ink);
  padding: 0.28rem 0.55rem;
  white-space: nowrap;
}
.is-live .mc-btn {
  background: var(--live);
  border-color: var(--live);
  color: #fff;
}

.vlist { border-top: 1px solid var(--line); }
.vrow {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.vrow time { color: var(--muted); font-size: 0.8rem; flex-shrink: 0; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
}
.news-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.news-card img {
  width: 110px;
  height: 78px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}
.news-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}
.news-card time { font-size: 0.75rem; color: var(--muted); }

.mag-panel {
  margin: 2rem 0;
  padding: 1.25rem 0;
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--line);
}
.mag-panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: 1.55rem;
}
.mag-panel h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.mag-panel p { margin: 0.4rem 0; color: #333; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--serif);
  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; }

.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);
}

.match-detail {
  text-align: center;
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.match-detail .kicker {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.match-detail h1 {
  margin: 0.4rem 0 1.2rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}
.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;
}
.md-board .mid b {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
}
.badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
}
.badge.live { background: var(--live); color: #fff; border-color: var(--live); }
.signals { display: flex; justify-content: center; gap: 0.55rem; flex-wrap: wrap; }
.sig {
  border: 1.5px solid var(--ink);
  padding: 0.45rem 1.1rem;
  font-weight: 700;
  font-size: 0.88rem;
}
.sig:hover { background: var(--ink); color: #fff; }
.tip { margin: 1rem auto 0; max-width: 32rem; font-size: 0.85rem; color: var(--muted); }

.article h1 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.3;
}
.meta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.65rem 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: 1px solid var(--line);
}
.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: 1px solid var(--line); }
.pn {
  display: grid;
  gap: 0.65rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid var(--rule);
}
.pn a { font-size: 0.92rem; }
.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: 1px solid var(--line);
  font-size: 0.88rem;
}
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); }

.friends {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
  font-size: 0.85rem;
  background: var(--paper-deep);
}
.friends .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
}
.friends .lab {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.friends a { color: var(--muted); }
.friends a:hover { color: var(--accent); }

.site-footer {
  border-top: 3px solid var(--rule);
  padding: 1.25rem 0 2rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}
.site-footer p { margin: 0.35rem 0; }

.news-list { display: flex; flex-direction: column; gap: 0; }
.news-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.news-row img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.news-row h3 {
  margin: 0 0 0.3rem;
  font-family: var(--serif);
  font-size: 1.1rem;
}
.video-list a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

@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;
    border-bottom: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 0;
  }
  .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; }
}

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