:root {
  --bg-deep: #12141a;
  --bg-mid: #1a1d26;
  --paper: #1e222c;
  --paper-2: #252a36;
  --line: rgba(232, 168, 56, 0.28);
  --line-soft: rgba(255, 255, 255, 0.08);
  --accent: #c8102e;
  --accent-2: #e8a838;
  --cyan: #e8a838;
  --teal: #e8a838;
  --cyan-soft: #f3d9a0;
  --text: #f4f1ea;
  --text-dim: #a9a49a;
  --live: #ff5a6a;
  --wait: #e8a838;
  --done: #8b909c;
  --radius: 8px;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "DM Serif Display", "Noto Serif SC", Georgia, serif;
  --glass: rgba(30, 34, 44, 0.92);
  --glass-strong: rgba(26, 29, 38, 0.96);
  --glass-border: rgba(232, 168, 56, 0.22);
  --glass-border-soft: rgba(255, 255, 255, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  background: var(--bg-deep);
  position: relative;
}

.bg-mag {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(200, 16, 46, 0.18), transparent 58%),
    radial-gradient(720px 420px at 92% 8%, rgba(232, 168, 56, 0.12), transparent 55%),
    linear-gradient(180deg, #161922 0%, #12141a 48%, #181b24 100%);
}

.bg-mag::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(255, 255, 255, 0.015) 24px
    );
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

.wrap {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.glass-panel {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.glass-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 3px 0 0 3px;
  opacity: 0.85;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 20, 26, 0.92);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header .bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0f1116;
}

.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand i {
  font-family: var(--display);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent-2);
}
.brand b {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--text);
  cursor: pointer;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-left: auto;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 14px;
  transition: color .2s, background .2s;
}

.main-nav a:hover,
.main-nav a.on {
  color: #fff;
  background: rgba(200, 16, 46, 0.18);
}

.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 0 0 12px;
  overflow-x: auto;
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
}

.sub-nav a {
  font-size: 13px;
  color: var(--text-dim);
  padding: 2px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  font-weight: 600;
}

.sub-nav a:hover,
.sub-nav a.on {
  color: var(--accent-2);
  border-bottom-color: var(--accent);
}

.site-main { padding: 24px 0 52px; }

.hero {
  padding: 40px 32px 34px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(200, 16, 46, 0.16), transparent 42%),
    var(--paper);
}

.hero::after {
  content: "ISSUE";
  position: absolute;
  right: 24px;
  top: 18px;
  font-family: var(--display);
  font-style: italic;
  font-size: 64px;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: 0.08em;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1.15;
}

.hero-kw {
  margin: 0 0 14px;
  display: inline-block;
  padding: 5px 12px;
  border-left: 3px solid var(--accent);
  background: rgba(200, 16, 46, 0.12);
  color: var(--cyan-soft);
  font-weight: 800;
  font-size: 15px;
}

.hero-desc {
  margin: 0 0 20px;
  max-width: 680px;
  color: var(--text-dim);
  font-size: 15px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform .15s, background .2s, border-color .2s;
}

.btn:hover { transform: translateY(-1px); }

.btn.primary {
  background: linear-gradient(135deg, #c8102e, #9b0d24);
  color: #fff;
  box-shadow: 0 10px 24px rgba(200, 16, 46, 0.28);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.hero-mini {
  padding: 22px 24px;
  margin-bottom: 16px;
}

.hero-mini h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 28px;
  color: #fff;
}

.hero-mini p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.chip {
  padding: 7px 14px;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
}

.chip:hover,
.chip.on {
  color: #fff;
  border-color: var(--accent);
  background: rgba(200, 16, 46, 0.16);
}

.league-grid { padding: 18px 20px 22px; margin-bottom: 20px; }

.lg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.lg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 6px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  transition: border-color .2s, transform .15s, background .2s;
}

.lg-item:hover {
  border-color: var(--accent-2);
  background: rgba(232, 168, 56, 0.08);
  transform: translateY(-2px);
}

.lg-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.lg-item span { font-size: 13px; font-weight: 700; color: #fff; }

.sec { margin-bottom: 28px; }

.sec-title {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 26px;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  width: fit-content;
}

.sec-title small {
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

.league-block {
  padding: 14px 14px 10px;
  margin-bottom: 14px;
}

.league-title {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #fff;
}

.league-title img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.league-title a:hover { color: var(--accent-2); }

.league-title small {
  margin-left: auto;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 12px;
}

.match-list { display: flex; flex-direction: column; gap: 8px; }

.match-card {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) minmax(90px, 1fr) 70px minmax(90px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  transition: border-color .2s, background .2s, transform .15s;
}

.match-card:hover {
  border-color: rgba(232, 168, 56, 0.45);
  background: #2a303d;
  transform: translateY(-1px);
}

.mc-time { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mc-full { font-size: 13px; color: #fff; font-weight: 700; white-space: nowrap; }
.mc-st {
  font-style: normal;
  font-size: 12px;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(232, 168, 56, 0.14);
  color: var(--wait);
}

.match-card.is-live .mc-st {
  background: rgba(255, 90, 106, 0.18);
  color: var(--live);
  animation: pulse 1.6s ease-in-out infinite;
}

.match-card.is-done .mc-st {
  background: rgba(139, 144, 156, 0.16);
  color: var(--done);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.mc-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mc-team img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  padding: 2px;
}

.mc-team strong {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-team.away { justify-content: flex-end; text-align: right; }

.mc-score {
  text-align: center;
  font-weight: 900;
  font-size: 16px;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

.mc-btn {
  padding: 7px 12px;
  border-radius: 5px;
  background: linear-gradient(135deg, #c8102e, #9b0d24);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.date-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  margin-bottom: 14px;
}

.date-item {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 6px;
  text-align: center;
  background: var(--paper-2);
  border: 1px solid transparent;
  color: var(--text-dim);
}

.date-item b { display: block; color: #fff; font-size: 14px; }
.date-item span { font-size: 11px; }

.date-item.on,
.date-item:hover {
  border-color: var(--accent);
  background: rgba(200, 16, 46, 0.14);
  color: var(--cyan-soft);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-dim);
}

.crumb a:hover { color: var(--accent-2); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.news-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px;
  align-items: center;
  transition: border-color .2s, transform .15s;
}

.news-card:hover {
  border-color: rgba(232, 168, 56, 0.4);
  transform: translateY(-2px);
}

.news-card img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  background: #0f1116;
}

.news-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #fff;
  line-height: 1.4;
}

.news-card p {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card time { font-size: 12px; color: var(--accent-2); }

.faq, .about {
  padding: 22px 24px;
  margin-bottom: 20px;
}

.faq h2, .about h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 28px;
  color: #fff;
}

.about h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  color: var(--accent-2);
}

.about p, .faq p {
  margin: 0 0 8px;
  color: var(--text-dim);
  font-size: 14px;
}

.faq details {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--paper-2);
  margin-bottom: 8px;
  padding: 4px 14px;
}

.faq summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 700;
  color: #fff;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent-2);
  font-weight: 700;
}

.faq details[open] summary::after { content: "–"; }

.match-detail {
  padding: 24px;
  margin-bottom: 22px;
  text-align: center;
}

.match-detail .kicker {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 13px;
}

.match-detail h1 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(22px, 4vw, 34px);
  color: #fff;
}

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

.md-board .side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.md-board .side img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  padding: 6px;
}

.md-board .side strong { color: #fff; font-size: 16px; }

.md-board .mid b {
  display: block;
  font-size: 28px;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(232, 168, 56, 0.15);
  color: var(--wait);
}

.badge.live { background: rgba(255, 90, 106, 0.2); color: var(--live); }
.badge.done { background: rgba(139, 144, 156, 0.2); color: var(--done); }

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

.sig {
  padding: 10px 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, #c8102e, #9b0d24);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.sig.alt {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.tip {
  margin: 8px auto 0;
  max-width: 640px;
  color: var(--text-dim);
  font-size: 13px;
}

.article {
  padding: 24px;
  margin-bottom: 20px;
}

.article h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 30px;
  color: #fff;
  line-height: 1.35;
}

.meta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-dim);
}

.article .cover { margin: 0 0 16px; }
.article .cover img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 6px;
}

.article .content {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.85;
}

.article .content p { margin: 0 0 14px; }
.article .content p:first-child {
  color: var(--cyan-soft);
  font-size: 14px;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

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

.pn a, .pn span {
  padding: 12px;
  background: var(--paper-2);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-dim);
}

.pn a:hover { color: #fff; border: 1px solid var(--line); }
.pn .next { text-align: right; }
.pn .muted { opacity: 0.55; }

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

.pager a, .pager span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 13px;
}

.pager a:hover, .pager .on {
  background: rgba(200, 16, 46, 0.2);
  color: #fff;
  border-color: var(--accent);
}

.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-dim);
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px dashed var(--line-soft);
}

.friends {
  border-top: 1px solid var(--line-soft);
  padding: 16px 0;
  background: #0f1116;
}

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

.friends .lab {
  color: var(--accent-2);
  font-weight: 800;
  margin-right: 4px;
}

.friends a { color: var(--text-dim); }
.friends a:hover { color: #fff; }

.site-footer {
  padding: 22px 0 36px;
  background: #0c0e12;
  border-top: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 13px;
}

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

.related { margin-top: 20px; }
.related h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 22px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-row {
  display: block;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}

.news-row:hover { border-color: var(--line); }
.news-row h3 { margin: 0 0 6px; font-size: 16px; color: #fff; }
.news-row p { margin: 0 0 6px; font-size: 13px; color: var(--text-dim); }
.news-row time { font-size: 12px; color: var(--accent-2); }

@media (max-width: 860px) {
  .match-card {
    grid-template-columns: 1fr 1fr;
    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; text-align: left; }
  .mc-score { grid-area: score; align-self: center; }
  .mc-btn { grid-area: btn; justify-self: end; }
  .md-board { gap: 10px; }
  .pn { grid-template-columns: 1fr; }
  .pn .next { text-align: left; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    margin: 0 0 10px;
    padding: 8px 0 4px;
  }
  .main-nav.open { display: flex; }
  .site-header .bar { flex-wrap: wrap; min-height: 60px; }
  .hero { padding: 28px 18px 24px; }
  .hero::after { font-size: 42px; right: 12px; }
  .news-card { grid-template-columns: 72px 1fr; }
  .news-card img { width: 72px; height: 56px; }
  .article h1 { font-size: 24px; }
  .faq, .about, .article, .match-detail { padding: 16px; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 420px) {
  .wrap { width: calc(100% - 16px); }
  .brand b { font-size: 18px; }
  .mc-team strong { font-size: 13px; }
  .lg-grid { grid-template-columns: repeat(3, 1fr); }
}
