:root {
  --ink: #122038;
  --ink-soft: #2a3d5c;
  --crimson: #c41e3a;
  --crimson-dark: #9a1630;
  --paper: #f4efe4;
  --paper-2: #ebe4d6;
  --line: rgba(18, 32, 56, 0.14);
  --muted: #5c6b82;
  --live: #c41e3a;
  --up: #2f6b4f;
  --done: #6b7280;
  --wrap: 1080px;
  --radius: 6px;
  --shadow: 0 12px 28px rgba(18, 32, 56, 0.08);
  --font-display: "Playfair Display", "Songti SC", "Noto Serif SC", Georgia, serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(196, 30, 58, 0.08), transparent 42%),
    radial-gradient(ellipse at 88% 8%, rgba(18, 32, 56, 0.1), transparent 40%),
    linear-gradient(180deg, #efe8da 0%, var(--paper) 28%, #f7f2e8 100%);
  line-height: 1.65;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--crimson-dark); text-decoration: none; }
a:hover { color: var(--crimson); }

.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}

/* Masthead — magazine cover */
.masthead {
  background: linear-gradient(180deg, #0d1a2e 0%, #16304f 100%);
  color: #f7f2e8;
  border-bottom: 4px solid var(--crimson);
  position: relative;
  overflow: hidden;
}

.masthead::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.35), transparent 70%);
  pointer-events: none;
}

.mast-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 0;
  position: relative;
  z-index: 2;
}

.issue {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.72);
}

.brand-block {
  padding: 18px 0 14px;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
}

.brand img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(247, 242, 232, 0.35);
  background: #fff;
  object-fit: cover;
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #fff;
}

.brand-text em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  color: #f0b8c2;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 0 0 14px;
  border-top: 1px solid rgba(247, 242, 232, 0.12);
  position: relative;
  z-index: 2;
}

.main-nav a {
  color: rgba(247, 242, 232, 0.86);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 2px 8px;
  border-bottom: 2px solid transparent;
}

.main-nav a.on,
.main-nav a:hover {
  color: #fff;
  border-bottom-color: var(--crimson);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(247, 242, 232, 0.35);
  background: transparent;
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius);
  font: inherit;
  cursor: pointer;
}

.league-strip {
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(247, 242, 232, 0.08);
  position: relative;
  z-index: 2;
}

.league-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 12px;
}

.league-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  background: rgba(247, 242, 232, 0.08);
  color: #f7f2e8;
  border: 1px solid rgba(247, 242, 232, 0.16);
  border-radius: var(--radius);
  font-size: 0.84rem;
}

.league-chip img { width: 16px; height: 16px; object-fit: contain; }
.league-chip:hover,
.league-chip.on {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}

.home-leagues .league-chip {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.home-leagues .league-chip:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.site-main { padding: 28px 0 48px; }

/* Hero */
.mag-hero {
  position: relative;
  padding: 36px 28px 40px;
  background:
    linear-gradient(135deg, rgba(18, 32, 56, 0.94), rgba(196, 30, 58, 0.88)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.hero-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  opacity: 0.8;
  margin-bottom: 12px;
}

.mag-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: 0.03em;
}

.hero-lead {
  max-width: 38em;
  margin: 0 0 22px;
  font-size: 1.05rem;
  opacity: 0.92;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-deco {
  position: absolute;
  right: 8%;
  top: 18%;
  width: 140px;
  height: 140px;
  pointer-events: none;
  opacity: 0.55;
}

.hero-deco .float { position: absolute; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.hero-deco .f1 { top: 0; left: 20px; }
.hero-deco .f2 { top: 50px; right: 0; }
.hero-deco .f3 { bottom: 0; left: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.btn:hover { color: var(--crimson); }
.btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn.ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

.sec { margin-bottom: 32px; }

.sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  letter-spacing: 0.02em;
}

.sec-title img { width: 22px; height: 22px; }
.sec-title small {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.page-head {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 8px;
}

.page-head p { margin: 0; color: var(--muted); }

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.crumb a { color: var(--ink-soft); }
.crumb span:last-child { color: var(--ink); }

/* Match list — editorial rows */
.match-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.match-item + .match-item { border-top: 1px solid var(--line); }

.match-link {
  display: block;
  padding: 14px 16px;
  color: inherit;
  transition: background .18s ease;
}

.match-link:hover { background: #faf7f0; color: inherit; }

.match-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.league-ico { width: 18px; height: 18px; object-fit: contain; }
.league-name { font-weight: 600; color: var(--ink-soft); }

.st {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #eef1f5;
  color: var(--done);
}
.st-live { background: rgba(196, 30, 58, 0.12); color: var(--live); }
.st-upcoming { background: rgba(47, 107, 79, 0.12); color: var(--up); }

.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.team {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.team img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 2px;
}

.team.away { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }

.score {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  min-width: 52px;
  text-align: center;
  color: var(--crimson);
}

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

/* News magazine columns */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  box-shadow: var(--shadow);
  min-height: 160px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(18, 32, 56, 0.12);
  color: inherit;
}

.news-card .cat {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  font-weight: 700;
}

.news-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.35;
  margin: 0;
  flex: 1;
}

.news-card .sum {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.news-card time {
  font-size: 0.8rem;
  color: var(--muted);
}

/* About + FAQ */
.about, .faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.about h2, .faq h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--crimson);
}

.about h3 {
  font-size: 1.05rem;
  margin: 18px 0 8px;
  color: var(--ink-soft);
}

.about p { margin: 0 0 8px; color: var(--ink-soft); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "＋";
  color: var(--crimson);
  margin-right: 8px;
  font-weight: 700;
}
.faq details[open] summary::before { content: "－"; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

/* Play / article */
.play-box, .article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
}

.play-box h1, .article h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 10px;
}

.play-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin: 0 0 24px;
}

.teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.side img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 4px;
  background: #fff;
}

.vs {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--crimson);
}

.play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}

.play-box .btn {
  background: var(--crimson);
  color: #fff;
}
.play-box .btn:hover { background: var(--crimson-dark); color: #fff; }
.play-box .btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.play-box .btn.ghost:hover { background: var(--paper-2); }

.play-tip { text-align: center; color: var(--muted); font-size: 0.88rem; margin: 0; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.84rem;
  color: var(--muted);
  padding: 12px 0;
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-body { font-size: 1.02rem; color: var(--ink-soft); }
.article-body p { margin: 0 0 1em; }

.pager-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pager-nav a {
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.9rem;
}

.pager-nav a:hover { border-color: var(--crimson); color: var(--crimson); }

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}

.pager a, .pager span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.pager .on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.inline-ico {
  vertical-align: -6px;
  margin-right: 6px;
}

.friends {
  background: var(--ink);
  color: rgba(247, 242, 232, 0.75);
  padding: 14px 0;
  font-size: 0.88rem;
}

.friends .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.friends .lab {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.friends a { color: #f0b8c2; }
.friends a:hover { color: #fff; }

.site-footer {
  background: #0a1422;
  color: rgba(247, 242, 232, 0.65);
  padding: 24px 0 36px;
  font-size: 0.86rem;
}

.site-footer p { margin: 0 0 8px; }

/* Responsive */
@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-deco { display: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }

  .main-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0 0 12px;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(247, 242, 232, 0.1);
  }

  .brand img { width: 56px; height: 56px; }
  .brand-text strong { font-size: 1.55rem; }

  .mag-hero { padding: 28px 18px; }
  .news-grid { grid-template-columns: 1fr; }

  .match-teams {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }

  .team, .team.away {
    justify-content: center;
    flex-direction: row;
    text-align: center;
  }

  .score { order: -1; }

  .pager-nav { grid-template-columns: 1fr; }
  .st { margin-left: 0; }
}

@media (max-width: 420px) {
  .wrap { width: min(100% - 20px, var(--wrap)); }
  .league-bar { gap: 6px; }
  .league-chip { font-size: 0.78rem; padding: 5px 8px; }
}
