:root {
  --bg: #07111f;
  --bg-2: #0c1a30;
  --panel: rgba(16, 32, 58, 0.82);
  --panel-solid: #12233f;
  --ink: #e8f1ff;
  --muted: #93a7c4;
  --line: rgba(120, 180, 255, 0.18);
  --accent: #2fd3ff;
  --accent-2: #ff8a3d;
  --live: #ff4d6d;
  --ok: #3ddc97;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(47, 211, 255, 0.12);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --display: "Orbitron", "Noto Sans SC", sans-serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.scene-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(47, 211, 255, 0.18), transparent 42%),
    radial-gradient(ellipse at 85% 0%, rgba(255, 138, 61, 0.14), transparent 40%),
    linear-gradient(180deg, #081426 0%, #06101c 55%, #040b14 100%);
  perspective: 900px;
}
.scene-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  transform: translateZ(0);
}
.orb-a {
  width: 280px; height: 280px; left: -60px; top: 120px;
  background: radial-gradient(circle at 30% 30%, #4ee3ff, #1458c8 55%, transparent 70%);
  opacity: 0.35;
  animation: floatY 9s ease-in-out infinite;
}
.orb-b {
  width: 220px; height: 220px; right: -40px; top: 40%;
  background: radial-gradient(circle at 40% 30%, #ffb26b, #ff5a2a 50%, transparent 70%);
  opacity: 0.28;
  animation: floatY 11s ease-in-out infinite reverse;
}
.grid-floor {
  position: absolute;
  left: 0; right: 0; bottom: -10%;
  height: 45%;
  background:
    linear-gradient(transparent 0%, rgba(7, 17, 31, 0.85) 70%),
    repeating-linear-gradient(90deg, rgba(47,211,255,0.08) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(47,211,255,0.08) 0 1px, transparent 1px 48px);
  transform: perspective(600px) rotateX(62deg);
  transform-origin: center top;
  opacity: 0.45;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 17, 31, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.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.75rem;
}
.brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow:
    0 10px 0 #0a2548,
    0 16px 28px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.35);
  transform: rotateX(8deg) rotateY(-8deg);
  background: #0d2a55;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-family: var(--display);
  text-transform: uppercase;
}
.brand-text b {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 0 #061224, 0 8px 18px rgba(47,211,255,0.25);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  box-shadow: var(--shadow-sm);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  padding: 0.35rem 0 0.65rem;
}
.main-nav a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  transition: transform .2s, box-shadow .2s, color .2s, background .2s;
}
.main-nav a:hover,
.main-nav a.on {
  color: #041018;
  background: linear-gradient(135deg, var(--accent), #7af0ff);
  box-shadow: 0 6px 0 #147ea3, 0 10px 18px rgba(47,211,255,0.25);
  transform: translateY(-2px);
}

.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0 0.75rem;
}
.sub-nav a {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.28rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(18, 35, 63, 0.55);
}
.sub-nav a.on,
.sub-nav a:hover {
  color: var(--accent);
  border-color: rgba(47,211,255,0.35);
  box-shadow: inset 0 -2px 0 var(--accent-2);
}

.site-main { padding: 1.25rem 0 2.5rem; }

.hero {
  margin: 0.5rem 0 1.25rem;
  perspective: 1000px;
}
.hero-panel {
  position: relative;
  padding: 1.6rem 1.4rem 1.5rem;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(28, 58, 110, 0.95), rgba(12, 28, 54, 0.92));
  border: 1px solid rgba(47,211,255,0.25);
  box-shadow:
    0 24px 0 #061223,
    0 34px 50px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.18);
  transform: rotateX(4deg);
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,138,61,0.35), transparent 65%);
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-family: var(--display);
}
.mast-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: 0.06em;
  text-shadow: 0 3px 0 #04101f, 0 12px 30px rgba(47,211,255,0.3);
}
.hero-kw {
  display: inline-block;
  margin: 0.7rem 0 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), #ffb347);
  color: #2a1200;
  font-weight: 700;
  box-shadow: 0 5px 0 #a14d12;
}
.lead { margin: 0; color: var(--muted); max-width: 42rem; }

.hero-mini {
  margin: 0.4rem 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.hero-mini h1 { margin: 0 0 0.35rem; font-size: 1.45rem; font-family: var(--display); }
.hero-mini p { margin: 0; color: var(--muted); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
}
.chip {
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: 0 4px 0 #07111f;
  transition: transform .15s;
}
.chip.on, .chip:hover {
  color: #041018;
  background: linear-gradient(135deg, var(--accent), #8cf3ff);
  border-color: transparent;
  transform: translateY(-2px);
}

.sec { margin: 1.4rem 0; }
.sec-title {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-family: var(--display);
  letter-spacing: 0.04em;
}
.sec-title small { color: var(--muted); font-family: var(--sans); font-weight: 400; font-size: 0.85rem; }

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

.match-list {
  display: grid;
  gap: 0.55rem;
  perspective: 900px;
}
.match-card {
  display: grid;
  grid-template-columns: 9.5rem minmax(0,1fr) 4.2rem minmax(0,1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(22,42,74,0.95), rgba(14,28,52,0.95));
  border: 1px solid var(--line);
  box-shadow: 0 10px 0 #050d18, 0 14px 24px rgba(0,0,0,0.35);
  transform-style: preserve-3d;
  transition: transform .18s, box-shadow .18s;
}
.match-card:hover {
  transform: translateY(-3px) rotateX(2deg);
  box-shadow: 0 14px 0 #050d18, 0 20px 30px rgba(0,0,0,0.45);
  color: var(--ink);
}
.match-card.is-live { border-color: rgba(255,77,109,0.45); }
.match-card.is-done { opacity: 0.88; }
.mc-time { display: flex; flex-direction: column; gap: 0.15rem; }
.mc-full { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.mc-st {
  font-size: 0.72rem;
  color: var(--accent);
  font-style: normal;
}
.is-live .mc-st { color: var(--live); }
.is-done .mc-st { 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;
  box-shadow: 0 3px 0 rgba(0,0,0,0.35);
  flex-shrink: 0;
}
.mc-team strong {
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-score {
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(47,211,255,0.35);
}
.mc-btn {
  justify-self: end;
  padding: 0.35rem 0.7rem;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-2), #ffb26b);
  color: #2a1200;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 4px 0 #9a4a12;
  white-space: nowrap;
}
.is-live .mc-btn {
  background: linear-gradient(135deg, var(--live), #ff8fa3);
  color: #fff;
  box-shadow: 0 4px 0 #8f2038;
}

.date-bar {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.9rem;
  -webkit-overflow-scrolling: touch;
}
.date-item {
  flex: 0 0 auto;
  min-width: 4.6rem;
  text-align: center;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  box-shadow: 0 4px 0 #07111f;
}
.date-item b { display: block; font-size: 0.92rem; }
.date-item span { color: var(--muted); font-size: 0.72rem; }
.date-item.on {
  background: linear-gradient(145deg, #1c6dff, #2fd3ff);
  color: #041018;
  border-color: transparent;
}
.date-item.on span { color: rgba(4,16,24,0.75); }

.vlist { display: grid; gap: 0.45rem; }
.vrow {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.vrow time { color: var(--muted); white-space: nowrap; font-size: 0.82rem; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.news-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(24,46,82,0.95), rgba(12,26,48,0.95));
  border: 1px solid var(--line);
  box-shadow: 0 12px 0 #050d18, 0 16px 28px rgba(0,0,0,0.35);
  transition: transform .18s;
}
.news-card:hover { transform: translateY(-4px) rotateX(2deg); color: var(--ink); }
.news-card img {
  width: 120px; height: 84px;
  object-fit: cover;
  border-radius: 10px;
  background: #0a1628;
}
.news-card h3 { margin: 0 0 0.35rem; font-size: 0.98rem; line-height: 1.4; }
.news-card p { margin: 0 0 0.35rem; color: var(--muted); font-size: 0.84rem; }
.news-card time { color: var(--muted); font-size: 0.78rem; }

.depth-panel {
  margin: 1.4rem 0;
  padding: 1.2rem 1.15rem;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.depth-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.15rem;
}
.depth-panel h3 { margin: 1rem 0 0.4rem; font-size: 1rem; color: var(--accent); }
.depth-panel p { margin: 0 0 0.55rem; color: #c5d5ef; }
.faq details {
  margin: 0.55rem 0;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: rgba(8, 18, 34, 0.65);
  border: 1px solid var(--line);
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq details p { margin: 0.5rem 0 0; }

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

.match-detail {
  padding: 1.2rem;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(28,58,110,0.95), rgba(12,28,54,0.95));
  border: 1px solid rgba(47,211,255,0.28);
  box-shadow: var(--shadow);
  margin-bottom: 1.2rem;
}
.match-detail .kicker { margin: 0; color: var(--accent); font-size: 0.85rem; }
.match-detail h1 { margin: 0.35rem 0 1rem; font-size: 1.45rem; }
.md-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.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;
  box-shadow: 0 8px 0 #061223, 0 12px 20px rgba(0,0,0,0.4);
}
.md-board .mid { text-align: center; }
.md-board .mid b {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  margin-bottom: 0.35rem;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(47,211,255,0.15);
  color: var(--accent);
}
.badge.live { background: rgba(255,77,109,0.2); color: var(--live); }
.badge.done { background: rgba(61,220,151,0.18); color: var(--ok); }

.signals { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.8rem 0; }
.sig {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #1c6dff, #2fd3ff);
  color: #041018 !important;
  font-weight: 700;
  box-shadow: 0 6px 0 #0d4a8f, 0 10px 18px rgba(28,109,255,0.35);
}
.sig:hover { transform: translateY(-2px); }
.tip { color: var(--muted); font-size: 0.88rem; margin: 0; }

.article {
  padding: 1.2rem;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.article h1 { margin: 0 0 0.75rem; font-size: 1.45rem; line-height: 1.35; }
.meta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin: 0 0 1rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(8,18,34,0.65);
  color: var(--muted);
  font-size: 0.84rem;
}
.article .cover img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.9rem;
}
.article .content { color: #d5e3f7; }
.article .content p { margin: 0 0 0.9rem; }
.article .content img { border-radius: 10px; }
.pn {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.pn a { color: var(--accent); }
.pn .muted { color: var(--muted); }

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.1rem 0;
}
.pager a, .pager span {
  min-width: 2.2rem;
  text-align: center;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
}
.pager .on {
  background: linear-gradient(135deg, var(--accent), #8cf3ff);
  color: #041018;
  border-color: transparent;
}

.friends {
  border-top: 1px solid var(--line);
  background: rgba(8, 16, 30, 0.9);
  padding: 0.9rem 0;
}
.friends .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.9rem;
}
.friends .lab { color: var(--muted); font-size: 0.85rem; }
.friends a { color: var(--muted); font-size: 0.88rem; }
.friends a:hover { color: var(--accent); }

.site-footer {
  padding: 1.2rem 0 2rem;
  color: var(--muted);
  font-size: 0.84rem;
  background: #040b14;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.site-footer p { margin: 0 0 0.45rem; }

.empty {
  padding: 1.4rem;
  text-align: center;
  color: var(--muted);
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: rgba(12,26,48,0.5);
}

@media (max-width: 860px) {
  .news-grid { grid-template-columns: 1fr; }
  .match-card {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "time btn"
      "home score"
      "away score";
  }
  .mc-time { grid-area: time; }
  .mc-btn { grid-area: btn; justify-self: end; }
  .mc-team.home { grid-area: home; }
  .mc-team.away { grid-area: away; justify-content: flex-start; }
  .mc-score { grid-area: score; align-self: center; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    flex-direction: column;
    padding-bottom: 0.85rem;
  }
  .main-nav.open { display: flex; }
  .brand-text b { font-size: 1.15rem; }
  .brand img { width: 46px; height: 46px; }
  .hero-panel { transform: none; padding: 1.2rem 1rem; }
  .news-card { grid-template-columns: 96px 1fr; }
  .news-card img { width: 96px; height: 72px; }
  .md-board { gap: 0.5rem; }
  .md-board .side img { width: 52px; height: 52px; }
  .md-board .mid b { font-size: 1.35rem; }
  .sub-nav { gap: 0.3rem; }
}
@media (max-width: 420px) {
  .mc-full { font-size: 0.72rem; }
  .mc-team strong { font-size: 0.85rem; }
  .vrow { flex-direction: column; gap: 0.25rem; }
}
