:root {
  --bg: #0a0a0f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(251,191,36,0.10), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(217,70,239,0.12), transparent 45%),
    var(--bg);
  background-attachment: fixed;
  color: #f5f5f5;
}
.display { font-family: 'Bricolage Grotesque', sans-serif; }
textarea, .font-mono { font-family: 'JetBrains Mono', monospace; }

.panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.player-glow {
  box-shadow: 0 0 40px rgba(217,70,239,0.15), 0 0 80px rgba(251,191,36,0.08);
}

.ctrl-btn {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #f5f5f5;
  cursor: pointer;
  transition: all 0.2s;
}
.ctrl-btn:hover { background: rgba(251,191,36,0.2); border-color: rgba(251,191,36,0.5); }

.shimmer {
  background: linear-gradient(100deg, #1a1a22 30%, #2a2a35 50%, #1a1a22 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.toast-in { animation: toastIn 0.3s ease-out; }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* scrollbar for storyboard */
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }