:root {
  --bg-void: #0B0F19;
  --bg-deep: #0A3D4C;
  --bg-berry: #4C1A1A;
  --accent-green: #39FF14;
  --accent-cyan: #00FFFF;
  --accent-gold: #FFD700;
  --text-light: #F5F7FA;
  --text-dim: #A0A8B8;
  --line-dark: #2A3B4C;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(0, 255, 255, 0.18);
  --font-display: Impact, 'Arial Black', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Roboto Mono', 'Courier New', monospace;
  --header-h: 72px;
  --radius-cut: 10px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-green: 0 0 20px rgba(57, 255, 20, 0.25);
  --shadow-cyan: 0 0 20px rgba(0, 255, 255, 0.2);
  --shadow-panel: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-light);
  background:
    radial-gradient(ellipse at 15% -10%, rgba(0, 255, 255, 0.12), transparent 50%),
    radial-gradient(ellipse at 90% 110%, rgba(57, 255, 20, 0.08), transparent 45%),
    var(--bg-void);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(-45deg, transparent 0 18px, rgba(0, 255, 255, 0.022) 18px 19px);
  z-index: 0;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
}

a:hover {
  color: var(--accent-green);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Layout */
.container-wide {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.container-narrow {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

#main-content {
  position: relative;
  z-index: 1;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--bg-deep);
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid var(--accent-cyan);
  transition: top 0.25s var(--ease-out);
}

.skip-link:focus {
  top: 12px;
  color: var(--accent-green);
}

/* HEADER */
.site-header {
  position: relative;
  z-index: 100;
  background:
    linear-gradient(135deg, rgba(10, 61, 76, 0.3) 0%, transparent 35%),
    linear-gradient(315deg, rgba(76, 26, 26, 0.25) 0%, transparent 45%),
    var(--bg-void);
  border-bottom: 1px solid var(--line-dark);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.header-shell {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
  position: relative;
}

.header-shell::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green) 45%, transparent 90%);
  opacity: 0.7;
  pointer-events: none;
}

/* Brand */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-block: 14px;
  color: var(--text-light);
  flex-shrink: 0;
}

.site-brand:hover {
  color: var(--text-light);
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-cyan) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  display: inline-block;
  flex-shrink: 0;
  box-shadow: var(--shadow-green);
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 8px;
  background: var(--bg-void);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand-name em {
  font-style: normal;
  color: var(--accent-green);
  font-size: 0.72em;
  margin-left: 2px;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 255, 255, 0.4);
  padding: 4px 8px;
  background: rgba(0, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  transform: translateY(2px);
}

/* Nav */
.nav-bar {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 14px;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--accent-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text-light);
}

.nav-link:hover::before,
.nav-link[aria-current="page"]::before {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--accent-green);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
}

.nav-label {
  font-family: var(--font-body);
}

/* Nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 10px;
  min-width: 58px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, background 0.2s;
}

.nav-toggle:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 255, 255, 0.06);
}

.toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--accent-cyan);
  transition: transform 0.3s var(--ease-out), background 0.3s;
}

.toggle-text {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--accent-green);
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--accent-green);
}

/* League tabs */
.league-tabs {
  display: flex;
  gap: 0;
  background: rgba(10, 61, 76, 0.25);
  border-top: 1px solid var(--line-dark);
  position: relative;
  overflow-x: auto;
  scrollbar-width: thin;
}

.league-tabs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
  opacity: 0.3;
}

.league-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  color: var(--text-dim);
  font-size: 0.82rem;
  border-right: 1px solid var(--line-dark);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  background: transparent;
}

.league-tab:hover {
  background: rgba(0, 255, 255, 0.06);
  color: var(--accent-cyan);
}

.league-tab[aria-current="true"] {
  background: var(--bg-berry);
  color: var(--accent-gold);
}

.league-name {
  font-weight: 600;
}

.league-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-gold);
  background: rgba(255, 215, 0, 0.08);
  padding: 2px 6px;
  border: 1px solid rgba(255, 215, 0, 0.25);
}

/* FOOTER */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(64px, 8vw, 120px);
  background:
    linear-gradient(180deg, var(--bg-void) 0%, rgba(10, 61, 76, 0.65) 30%, rgba(76, 26, 26, 0.5) 70%, var(--bg-void) 100%);
  border-top: 1px solid var(--line-dark);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green) 35%, var(--accent-gold) 80%, transparent);
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 5vw, 56px);
  padding-block: clamp(44px, 6vw, 80px);
}

.footer-block {
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .brand-name {
  font-size: 1.5rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: 14px;
  max-width: 300px;
  line-height: 1.8;
}

.footer-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 14px;
  background: rgba(57, 255, 20, 0.06);
  border: 1px solid rgba(57, 255, 20, 0.2);
  font-size: 0.78rem;
  color: var(--accent-green);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.trust-pulse {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 2.4s infinite;
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-cyan);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-dark);
}

.title-index {
  font-size: 0.8rem;
  color: var(--accent-green);
}

.footer-nav-list,
.footer-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-list a,
.footer-meta-list a {
  color: var(--text-dim);
  font-size: 0.88rem;
  transition: color 0.2s, padding-left 0.25s;
}

.footer-nav-list a::before,
.footer-meta-list a::before {
  content: '/';
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-right: 6px;
  opacity: 0.5;
}

.footer-nav-list a:hover,
.footer-meta-list a:hover {
  color: var(--accent-green);
  padding-left: 4px;
}

.footer-address {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.footer-contact-line {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.footer-contact-line a {
  color: var(--text-light);
  border-bottom: 1px dotted var(--accent-cyan);
}

.footer-contact-line a:hover {
  color: var(--accent-green);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--line-dark);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-green);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, color 0.2s;
  border-radius: 0;
  position: relative;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-green);
  color: var(--bg-void);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.btn-primary:hover {
  background: var(--text-light);
  color: var(--bg-void);
  box-shadow: var(--shadow-green);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.btn-ghost:hover {
  background: rgba(0, 255, 255, 0.1);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-2px);
  color: var(--text-light);
}

/* Section & panels */
.section {
  padding-block: clamp(44px, 7vw, 96px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  color: var(--text-light);
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-green);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: clamp(22px, 3vw, 34px);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, calc(100% - 2px) 100%, 0 calc(100% - 2px));
  position: relative;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.glass-panel:hover {
  border-color: rgba(0, 255, 255, 0.4);
  box-shadow: var(--shadow-cyan);
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.card:hover {
  border-color: var(--glass-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-panel);
}

/* Grid */
.grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Data & statistics */
.data-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(42, 59, 76, 0.6);
}

.data-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.data-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 700;
}

.data-value.gold {
  color: var(--accent-gold);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.data-value.neon {
  color: var(--accent-green);
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.3);
}

/* Filter tags */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line-dark);
}

.filter-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  padding: 10px 18px;
  border: 1px solid transparent;
  border-bottom: none;
  position: relative;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.filter-tag:hover {
  color: var(--accent-cyan);
}

.filter-tag.is-active {
  color: var(--bg-void);
  background: var(--accent-green);
  border-color: var(--accent-green);
  box-shadow: var(--shadow-green);
}

[data-filter-item].is-hidden {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  [data-filter-item] {
    animation: fade-slide-in 0.45s var(--ease-out) both;
  }
  [data-filter-item].is-hidden {
    animation: none;
  }
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: clamp(24px, 4vw, 44px);
}

.breadcrumb a {
  color: var(--accent-cyan);
}

.breadcrumb a:hover {
  color: var(--accent-green);
}

.breadcrumb-sep {
  color: var(--line-dark);
}

.breadcrumb-current {
  color: var(--text-light);
}

/* Image placeholder */
.image-placeholder {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 61, 76, 0.5), rgba(11, 15, 25, 0.9));
  border: 1px solid var(--line-dark);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.image-placeholder::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), rgba(57, 255, 20, 0.08), transparent);
  transform: rotate(18deg);
  animation: shimmer-move 5s infinite alternate;
}

.image-placeholder::after {
  content: attr(data-caption);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
  padding: 8px 14px;
  background: rgba(11, 15, 25, 0.7);
  border-left: 2px solid var(--accent-cyan);
}

/* Utilities */
.text-mono { font-family: var(--font-mono); }
.text-gold { color: var(--accent-gold); }
.text-green { color: var(--accent-green); }
.text-cyan { color: var(--accent-cyan); }
.text-dim { color: var(--text-dim); }
.mt-8 { margin-top: clamp(32px, 5vw, 64px); }
.mb-8 { margin-bottom: clamp(32px, 5vw, 64px); }

/* Animations */
@keyframes shimmer-move {
  0% { transform: translateX(-10%) rotate(18deg); opacity: 0.6; }
  100% { transform: translateX(30%) rotate(18deg); opacity: 1; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes fade-slide-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive: tablet & below */
@media (max-width: 1100px) {
  :root {
    --header-h: 64px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: mobile */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-bar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 15, 25, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
    z-index: 98;
    overflow-y: auto;
  }

  .nav-bar[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: min(100%, 400px);
  }

  .nav-link {
    justify-content: space-between;
    padding: 16px 18px;
    font-size: 1.05rem;
    border: 1px solid var(--line-dark);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 5px;
  }

  .nav-link::before {
    display: none;
  }

  .nav-link[aria-current="page"] {
    background: rgba(57, 255, 20, 0.08);
    border-left: 3px solid var(--accent-green);
    color: var(--accent-green);
  }

  .nav-index {
    font-size: 0.75rem;
  }

  .header-shell {
    align-items: center;
  }

  .brand-badge {
    display: none;
  }

  .league-tabs {
    padding-bottom: 4px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .nav-bar {
    transition: none;
  }
}
