:root {
  --ink: #5a3d4a;
  --muted: #8a6a78;
  --rule: #e8b4c4;
  --paper: #fff7f9;
  --paper-deep: #ffe8ef;
  --accent: #e07a9a;
  --accent-deep: #c45d7c;
  --accent-soft: #f9d5e0;
  --live: #e05a7a;
  --ok: #6a9b8a;
  --line: rgba(224, 122, 154, 0.22);
  --max: 1080px;
  --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", serif;
  --sans: "Nunito", "PingFang SC", "Noto Sans SC", sans-serif;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(196, 93, 124, 0.12);
}

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

.soft-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(255, 182, 201, 0.45), transparent 42%),
    radial-gradient(ellipse at 88% 12%, rgba(255, 214, 228, 0.5), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 200, 214, 0.28), transparent 50%),
    linear-gradient(180deg, #fff9fb 0%, #fff2f6 48%, #ffeef4 100%);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 247, 249, 0.86);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 4px 20px rgba(224, 122, 154, 0.08);
}
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0 0.65rem;
}
.mast-date {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: center;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--accent-soft);
  background: #fff;
  box-shadow: var(--shadow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text em {
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-family: var(--sans);
}
.brand-text b {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.mast-tagline {
  margin: 0;
  justify-self: end;
  text-align: right;
  font-size: 0.78rem;
  color: var(--muted);
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  padding: 0.55rem 0 0.75rem;
  justify-content: center;
  border-top: 1px dashed var(--line);
}
.main-nav a {
  font-weight: 600;
  padding: 0.25rem 0;
  position: relative;
}
.main-nav a.on,
.main-nav a:hover { color: var(--accent-deep); }
.main-nav a.on::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 0 0.85rem;
  justify-content: center;
}
.sub-nav a {
  font-size: 0.82rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
}
.sub-nav a.on,
.sub-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: transparent;
}

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

.hero {
  text-align: center;
  padding: 2.2rem 1.2rem 1.8rem;
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,232,239,0.75));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 1.4rem;
}
.hero .eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero-kw {
  display: inline-block;
  margin: 0.7rem 0 0.4rem;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.95rem;
}
.hero .lead {
  margin: 0.6rem auto 0;
  max-width: 36em;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 0 1.4rem;
}
.chip {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(224, 122, 154, 0.08);
}
.chip.on,
.chip:hover {
  background: linear-gradient(135deg, #f7a8bd, #e07a9a);
  color: #fff;
  border-color: transparent;
}

.sec { margin: 1.6rem 0; }
.sec-title {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}
.sec-title small {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.league-block { margin-bottom: 1.2rem; }
.league-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
}
.league-title img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}
.league-title small {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8rem;
}

.match-list {
  display: grid;
  gap: 0.55rem;
}
.match-card {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(224, 122, 154, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.match-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: inherit;
}
.mc-time { display: flex; flex-direction: column; gap: 0.15rem; }
.mc-full { font-size: 0.78rem; font-weight: 700; color: var(--ink); }
.mc-st {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  width: fit-content;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--paper-deep);
}
.is-live .mc-st {
  background: rgba(224, 90, 122, 0.15);
  color: var(--live);
}
.is-done .mc-st {
  background: rgba(106, 155, 138, 0.15);
  color: var(--ok);
}
.mc-team {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.mc-team.away { justify-content: flex-end; }
.mc-team img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  flex-shrink: 0;
}
.mc-team strong {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-score {
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  min-width: 3.2rem;
  color: var(--accent-deep);
}
.mc-btn {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7a8bd, #e07a9a);
  color: #fff;
  white-space: nowrap;
}
.is-done .mc-btn {
  background: linear-gradient(135deg, #9bc4b5, #6a9b8a);
}
.empty {
  padding: 1.4rem;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.7);
  border: 1px dashed var(--line);
}

.date-bar {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.9rem;
  margin-bottom: 0.4rem;
}
.date-item {
  flex: 0 0 auto;
  min-width: 4.4rem;
  text-align: center;
  padding: 0.45rem 0.55rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.date-item b { display: block; font-size: 0.9rem; }
.date-item span { font-size: 0.72rem; color: var(--muted); }
.date-item.on {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-deep);
}

.vlist { display: grid; gap: 0.45rem; }
.vrow {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
}
.vrow time { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.news-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0.75rem;
  padding: 0.7rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(224, 122, 154, 0.07);
}
.news-card img {
  width: 112px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--paper-deep);
}
.news-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  line-height: 1.4;
  font-weight: 700;
}
.news-card time { color: var(--muted); font-size: 0.78rem; }

.mag-panel,
.soft-panel {
  margin: 1.6rem 0;
  padding: 1.3rem 1.4rem;
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mag-panel h2,
.soft-panel h2,
.faq h2,
.about h2 {
  margin: 0 0 0.8rem;
  font-family: var(--serif);
  font-size: 1.45rem;
}
.mag-panel h3,
.about h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1.05rem;
  color: var(--accent-deep);
}
.mag-panel p,
.about p,
.faq p { margin: 0.35rem 0; color: var(--ink); }
.faq details {
  border-top: 1px solid var(--line);
  padding: 0.7rem 0;
}
.faq details:first-of-type { border-top: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}
.faq details[open] summary { color: var(--accent-deep); }

.friends {
  border-top: 1px solid var(--line);
  background: rgba(255, 248, 250, 0.9);
  padding: 0.9rem 0;
}
.friends .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
}
.friends .lab {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}
.friends a {
  font-size: 0.88rem;
  color: var(--muted);
}
.site-footer {
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}
.site-footer p { margin: 0.35rem 0; }

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.crumb a:hover { color: var(--accent-deep); }

.match-detail,
.article {
  padding: 1.2rem 1.3rem;
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.match-detail .kicker {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}
.match-detail h1,
.article h1 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.35;
}
.md-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0 1.2rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--paper-deep));
}
.md-board .side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
}
.md-board .side img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}
.md-board .mid {
  text-align: center;
}
.md-board .mid b {
  display: block;
  font-size: 1.6rem;
  color: var(--accent-deep);
}
.badge {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: var(--paper-deep);
}
.badge.live { background: rgba(224,90,122,0.15); color: var(--live); }
.badge.done { background: rgba(106,155,138,0.15); color: var(--ok); }
.signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.6rem 0 1rem;
}
.sig {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7a8bd, #e07a9a);
  color: #fff !important;
  font-weight: 700;
}
.tip { color: var(--muted); font-size: 0.9rem; }

.meta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: var(--paper-deep);
  font-size: 0.84rem;
  color: var(--muted);
}
.lead-note {
  margin: 0 0 1rem;
  padding: 0.8rem 0.95rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 232, 239, 0.55);
  border-radius: 0 12px 12px 0;
  color: var(--ink);
  font-size: 0.92rem;
}
.article .cover img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
}
.article .content {
  font-size: 1.02rem;
  line-height: 1.85;
}
.article .content p { margin: 0.85rem 0; }
.article .content img {
  border-radius: 12px;
  margin: 0.6rem 0;
}
.pn {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}
.pn a { color: var(--accent-deep); font-weight: 600; }
.pn .muted { color: var(--muted); }

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 1.2rem 0;
}
.pager a,
.pager span {
  min-width: 2.2rem;
  text-align: center;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}
.pager .on {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

@media (max-width: 860px) {
  .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-flex; grid-area: toggle; justify-self: end; }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.4rem 0 0.9rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 0.55rem 0.2rem;
    border-bottom: 1px solid var(--line);
  }
  .match-card {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "time btn"
      "home score"
      "away score";
  }
  .mc-time { grid-area: time; }
  .mc-team.home { grid-area: home; }
  .mc-team.away { grid-area: away; justify-content: flex-start; }
  .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: 96px 1fr; }
  .news-card img { width: 96px; height: 68px; }
  .md-board { gap: 0.5rem; }
  .brand-text b { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 1.2rem, var(--max)); }
  .hero { padding: 1.5rem 0.9rem; }
  .match-detail, .article, .mag-panel { padding: 1rem; }
  .mc-team strong { font-size: 0.86rem; }
}
