:root {
  --bg: #f3f6fa;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --border: #e5eaf1;
  --text: #152238;
  --muted: #718096;
  --accent: #087f68;
  --accent-dim: #076653;
  --accent-soft: #e1f4ed;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(25, 43, 68, .055);
  --panel-shadow: 0 18px 48px rgba(25, 43, 68, .10);
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background: radial-gradient(ellipse at 50% -30%, #dcefe9 0, transparent 48%), var(--bg);
  color: var(--text);
}

.app-shell { max-width: 1360px; padding: 26px 28px 64px; }
.top-bar {
  position: relative;
  padding: 20px 24px;
  margin-bottom: 22px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(226,234,241,.9);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.brand { gap: 14px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(145deg, #087f68, #16a17e);
  color: white;
  font-size: 1.45rem;
  box-shadow: 0 8px 18px rgba(8,127,104,.2);
}
.brand h1 { font-size: 1.32rem; letter-spacing: -.035em; }
.main-nav { gap: 6px; }
.main-nav a {
  padding: 9px 12px;
  border-radius: 10px;
  transition: background .18s ease, color .18s ease;
}
.main-nav a:hover, .main-nav a.router-link-active { background: #eaf5f1; color: var(--accent-dim); }
.btn-primary-link, .btn-primary {
  background: linear-gradient(135deg, #087f68, #10a17c);
  box-shadow: 0 5px 12px rgba(8,127,104,.16);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-primary-link:hover, .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(8,127,104,.22); filter: saturate(1.08); }
.btn-ghost, .modal-close { transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.btn-ghost:hover, .modal-close:hover { border-color: #b8d8cd; background: #f3faf7; }

.filter-panel {
  padding: 20px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.filter-panel__head { margin-bottom: 16px; }
.sport-tab { border-radius: 12px; padding: 10px 15px; }
.sport-tab.active { background: linear-gradient(135deg, #087f68, #12a17b); box-shadow: 0 7px 16px rgba(8,127,104,.18); }
.sport-tab:not(.active):hover { background: #f0f8f5; }
.league-search input, .league-select-wrap select, select, input, textarea {
  border-color: #dce4ed;
  border-radius: 11px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.league-search input:focus, select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: #54ad91;
  box-shadow: 0 0 0 4px rgba(8,127,104,.10);
}
.league-quick__chip { border-radius: 10px; }
.filter-panel:has(.league-select-wrap option[value="all"]:checked) .range-field,
.filter-panel:has(.league-select-wrap option[value="all"]:checked) .league-count { display: none; }
.mode-tabs { background: #f2f5f8; }

.match-grid { gap: 16px; }
.match-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(25,43,68,.045);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.match-card.clickable:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(25,43,68,.10); border-color: #a7d6c5; }
.match-meta { margin-bottom: 14px; }
.badge { border-radius: 999px; padding: 5px 10px; letter-spacing: .035em; }
.badge[data-status=live] { animation: live-pulse 2.4s ease-in-out infinite; }
.team-line { padding: 8px 0; }
.name { font-weight: 600; }
.score { color: #14253c; font-size: 1.35rem; font-weight: 700; }
.league { margin-top: 12px; padding-top: 10px; border-top: 1px solid #eef1f5; }
.footer { margin-top: 40px; }

.modal-backdrop[data-v-18a381e7], .wheel-modal-backdrop[data-v-30691d8c] { backdrop-filter: blur(5px); }
.modal-panel[data-v-18a381e7], .wheel-modal[data-v-30691d8c] {
  border-color: #e3eaf0;
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(14,31,51,.22);
}
.modal-hero[data-v-18a381e7] { background: linear-gradient(135deg, #f4f8fb, #eaf5f1); }
.player-card[data-v-18a381e7], .admin-card[data-v-91505173] { border-radius: 14px; }
.auth-card[data-v-a1e170a5], .auth-card[data-v-729b22cf] { border-radius: 20px; }
.admin-grid[data-v-91505173] { gap: 20px; }
.admin-card[data-v-91505173] { box-shadow: var(--shadow); }
th { color: #536278; font-weight: 700; }
button, a, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(8,127,104,.38); outline-offset: 2px; }

@keyframes live-pulse { 50% { box-shadow: 0 0 0 4px rgba(220,38,38,.08); } }

@media (max-width: 760px) {
  .app-shell { padding: 14px 14px 38px; }
  .top-bar { padding: 16px; gap: 12px; border-radius: 16px; }
  .top-controls { width: 100%; }
  .main-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .main-nav a { flex: 0 0 auto; }
  .filter-panel { padding: 15px; border-radius: 16px; }
  .match-grid { grid-template-columns: 1fr; gap: 12px; }
  .match-card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
