:root {
  --bg: #05080f;
  --sidebar: #08111d;
  --card: rgba(12, 18, 28, 0.75);
  --border: rgba(255, 255, 255, 0.06);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-purple: #8b5cf6;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

html.light {
  --bg: #f3f6fb;
  --sidebar: #ffffff;
  --card: rgba(255, 255, 255, 0.9);
  --border: rgba(2, 6, 23, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.5), rgba(139, 92, 246, 0.5));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

body {
  background: radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.13), transparent 30%),
              radial-gradient(circle at 90% 0%, rgba(139, 92, 246, 0.1), transparent 35%),
              var(--bg);
  color: var(--text-primary);
  transition: background-color 0.35s ease, color 0.25s ease;
}

.glass {
  background: var(--card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card-raise {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-raise:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 26px 50px rgba(2, 6, 23, 0.35);
}

.menu-item {
  position: relative;
  transition: all 0.25s ease;
}

.menu-item:hover {
  transform: translateX(4px);
  background: rgba(59, 130, 246, 0.12);
}

.menu-item.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.22), rgba(139, 92, 246, 0.2));
  color: #fff;
}

.menu-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple));
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.9);
}

.badge-live {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.badge-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8);
  animation: livePulse 1.5s infinite;
}

.badge-upcoming {
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.45);
}

.badge-ended {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.stat-number {
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sticky-head thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--card) 96%, #000 4%);
  backdrop-filter: blur(10px);
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0.08));
  background-size: 240% 100%;
  animation: shimmer 1.2s infinite linear;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -40% 0; }
}

.toast {
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.24s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.page-enter {
  animation: pageIn 0.35s ease;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hide-mobile {
  display: none;
}

@media (min-width: 1024px) {
  .hide-mobile {
    display: inline-flex;
  }
}
