@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  --bg0: #07111f;
  --bg1: #0d1b2e;
  --panel: rgba(16, 32, 56, 0.72);
  --panel-solid: #12243a;
  --line: rgba(120, 190, 255, 0.22);
  --text: #e8f2ff;
  --muted: #9bb4ce;
  --accent: #27e0a2;
  --accent2: #3aa0ff;
  --warn: #ff6b4a;
  --gold: #ffd166;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font: 'Noto Sans SC', sans-serif;
  --display: 'Orbitron', 'Noto Sans SC', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg0);
  min-height: 100vh;
  overflow-x: hidden;
  perspective: 1200px;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.bg-scene {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(1200px 600px at 10% -10%, #16385f 0%, transparent 55%),
              radial-gradient(900px 500px at 90% 10%, #0f3d3a 0%, transparent 50%),
              linear-gradient(180deg, #07111f, #0a1628 40%, #07111f);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: .45;
  transform: translateZ(-200px);
}
.orb-a { width: 360px; height: 360px; background: #1f6feb; top: 8%; left: -80px; animation: floaty 12s ease-in-out infinite; }
.orb-b { width: 280px; height: 280px; background: #19c37d; right: -60px; top: 35%; animation: floaty 15s ease-in-out infinite reverse; }
.orb-c { width: 220px; height: 220px; background: #7c4dff; bottom: 10%; left: 35%; animation: floaty 18s ease-in-out infinite; }
.grid-floor {
  position: absolute; left: -10%; right: -10%; bottom: -20%; height: 55%;
  background-image:
    linear-gradient(rgba(58,160,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,160,255,.12) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: rotateX(68deg);
  transform-origin: center top;
  mask-image: linear-gradient(to top, rgba(0,0,0,.7), transparent);
}

@keyframes floaty {
  0%,100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(20px,-24px,40px); }
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7,17,31,.72);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px; color: var(--text);
}
.brand img {
  width: 48px; height: 48px; border-radius: 14px;
  box-shadow: 0 10px 24px rgba(39,224,162,.35), inset 0 0 0 1px rgba(255,255,255,.15);
  transform: rotateY(-12deg) rotateX(8deg);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--display); font-size: 1.15rem; letter-spacing: .04em;
}
.brand-text em { font-style: normal; color: var(--muted); font-size: .78rem; }

.main-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.main-nav a {
  color: var(--muted); font-size: .95rem; padding: 8px 4px;
  position: relative;
}
.main-nav a.active, .main-nav a:hover { color: var(--text); }
.main-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
}
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); border-radius: 12px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--text);
}

.site-main { padding: 28px 0 64px; }
.hero {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center;
  margin-bottom: 36px;
}
.hero-copy h1 {
  margin: 0 0 14px; font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-family: var(--display); letter-spacing: .03em;
  text-shadow: 0 10px 30px rgba(58,160,255,.35);
  transform: translateZ(40px);
}
.hero-copy p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin: 0 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual {
  position: relative; min-height: 260px;
  transform-style: preserve-3d;
}
.hero-stack {
  position: absolute; inset: 20px 10px;
  background: linear-gradient(145deg, rgba(58,160,255,.25), rgba(39,224,162,.18));
  border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow);
  transform: rotateY(-18deg) rotateX(8deg);
  overflow: hidden;
}
.hero-stack::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.2), transparent 40%),
    linear-gradient(120deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%);
}
.hero-badge {
  position: absolute; right: 18px; top: 18px;
  background: rgba(7,17,31,.75); border: 1px solid var(--line);
  padding: 8px 12px; border-radius: 999px; font-size: .8rem; color: var(--gold);
}

.section { margin-bottom: 40px; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0; font-size: 1.4rem; font-family: var(--display); letter-spacing: .04em;
}
.section-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.section-head a.more { color: var(--accent); font-size: .9rem; }

.league-rail {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px;
}
.league-chip {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 10px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  transform: translateZ(0);
  transition: transform .25s ease, box-shadow .25s ease;
}
.league-chip:hover {
  transform: translateY(-6px) rotateX(8deg);
  box-shadow: 0 18px 36px rgba(39,224,162,.2);
}
.league-chip img { width: 42px; height: 42px; object-fit: contain; }

.match-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.depth-card {
  background: linear-gradient(165deg, rgba(24,44,72,.92), rgba(12,24,42,.88));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .25s ease;
}
.depth-card:hover {
  transform: translateY(-8px) rotateX(4deg);
  box-shadow: 0 24px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(39,224,162,.25);
}
.match-card { padding: 16px 16px 14px; }
.match-card-top {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.league-tag {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: .82rem;
}
.league-tag img { width: 20px; height: 20px; }
.match-status {
  font-size: .75rem; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line);
}
.st-live { color: #fff; background: var(--warn); border-color: transparent; }
.st-soon { color: var(--gold); }
.st-end { color: var(--muted); }
.match-time { color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.match-teams {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center;
  margin-bottom: 14px;
}
.team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.team img {
  width: 48px; height: 48px; object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.35));
}
.team span { font-size: .9rem; line-height: 1.3; }
.score-box strong {
  font-family: var(--display); font-size: 1.25rem; letter-spacing: .06em;
}
.match-actions { display: flex; justify-content: flex-end; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 14px; border-radius: 12px; font-size: .88rem;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary {
  color: #062016; background: linear-gradient(135deg, var(--accent), #6cf0c4);
  box-shadow: 0 8px 20px rgba(39,224,162,.28);
  font-weight: 700;
}
.btn-ghost {
  color: var(--text); background: rgba(255,255,255,.04); border-color: var(--line);
}

.news-list { display: grid; gap: 14px; }
.news-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px;
  align-items: center;
}
.news-item .cover {
  width: 120px; height: 80px; border-radius: 12px; object-fit: cover;
  background: #1a3150;
}
.news-item h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--text); }
.news-item p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.news-meta { margin-top: 8px; color: var(--muted); font-size: .8rem; }

.faq, .about-box, .article, .play-box, .page-panel {
  padding: 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.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 details p { color: var(--muted); line-height: 1.7; margin: 10px 0 0; }

.about-box h2, .article h1, .page-panel h1 { margin-top: 0; }
.about-box h3 { margin: 22px 0 10px; font-size: 1.05rem; color: var(--accent); }
.about-box p, .article p, .page-panel p { color: var(--muted); line-height: 1.8; }
.about-box ul { color: var(--muted); line-height: 1.8; }

.article-meta-bar {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  color: var(--muted); font-size: .85rem; margin: 0 0 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.article-body { color: var(--text); line-height: 1.9; font-size: 1.02rem; }
.article-body p { margin: 0 0 1em; color: inherit; }
.pager {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 28px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.pager a { color: var(--accent2); }

.play-box { text-align: center; padding: 40px 20px; }
.play-box .signals { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.play-tip { color: var(--muted); font-size: .92rem; }

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5,12,22,.85);
  padding: 28px 0 36px;
}
.footer-inner { display: grid; gap: 16px; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.friend-links { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.friend-links a { color: var(--muted); }
.friend-links a:hover { color: var(--accent); }
.copyright { margin: 0; color: #6f849b; font-size: .82rem; }

.page-title {
  margin: 0 0 20px; font-family: var(--display); letter-spacing: .04em;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 180px; order: -1; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; }
  .main-nav {
    display: none; position: absolute; left: 16px; right: 16px; top: 72px;
    background: rgba(10,22,40,.96); border: 1px solid var(--line);
    border-radius: 16px; padding: 12px; flex-direction: column;
  }
  .main-nav.open { display: flex; }
  .news-item { grid-template-columns: 88px 1fr; }
  .news-item .cover { width: 88px; height: 66px; }
  .match-teams .team span { font-size: .82rem; }
}

@media (max-width: 480px) {
  .brand-text em { display: none; }
  .score-box strong { font-size: 1.05rem; }
  .team img { width: 40px; height: 40px; }
}
