:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-2: #111113;
  --card: #121214;
  --card-hover: #161619;
  --text: #fafafa;
  --muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.1);
  --primary: #6d5efc;
  --primary-soft: rgba(109, 94, 252, 0.16);
  --accent: #38e1ff;
  --emerald: #34d399;
  --lang-bg: rgba(255, 255, 255, 0.06);
}

body.light-theme {
  color-scheme: light;
  --bg: #f6f7f9;
  --bg-2: #ffffff;
  --card: #ffffff;
  --card-hover: #f3f4f6;
  --text: #0a0a0a;
  --muted: #5a5f66;
  --border: rgba(0, 0, 0, 0.1);
  --primary: #5b4ff0;
  --primary-soft: rgba(91, 79, 240, 0.12);
  --lang-bg: rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 77, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.player-modal {
  display: none;
}
.player-modal.open {
  display: block;
}
.video-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease;
}
.video-overlay.visible {
  opacity: 1;
  visibility: visible;
}
.video-overlay.error {
  color: #ff9a9a;
}
.video-overlay.error .spinner {
  display: none;
}
