:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #14141c;
  --bg-card: #1a1a24;
  --accent: #e50914;
  --accent-hover: #f40612;
  --gold: #f59e0b;
}
* { scrollbar-width: thin; scrollbar-color: #333 transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
body {
  background: radial-gradient(ellipse at top, #1a1a2e 0%, #0a0a0f 50%);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
}
.modal-backdrop-auth { background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); }
.search-box { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.search-box.active { width: 200px; padding-left: 2.25rem; padding-right: 0.75rem; opacity: 1; }
@media (min-width: 640px) { .search-box.active { width: 280px; } }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 20px rgba(229, 9, 20, 0.3); } 50% { box-shadow: 0 0 30px rgba(229, 9, 20, 0.6); } }
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in-card { animation: fadeInUp 0.5s ease-out both; }
.fade-in-card:nth-child(1) { animation-delay: 0.02s; }
.fade-in-card:nth-child(2) { animation-delay: 0.04s; }
.fade-in-card:nth-child(3) { animation-delay: 0.06s; }
.fade-in-card:nth-child(4) { animation-delay: 0.08s; }
.fade-in-card:nth-child(5) { animation-delay: 0.10s; }

.modal-anim { animation: scaleIn 0.25s ease-out; }

.skeleton-card {
  background: linear-gradient(90deg, #1a1a24 0%, #252530 50%, #1a1a24 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.spinner {
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #f59e0b;
  border-radius: 50%;
  width: 28px; height: 28px;
  animation: spin 0.8s linear infinite;
}

.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(229, 9, 20, 0.3);
}
.card-hover:hover img { transform: scale(1.08); }
.card-hover img { transition: transform 0.5s ease; }

.btn-primary {
  background: linear-gradient(135deg, #e50914 0%, #b0060f 100%);
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #f40612 0%, #c80811 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transition: all 0.2s ease;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.nav-blur {
  background: linear-gradient(180deg, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.8) 70%, transparent 100%);
  backdrop-filter: blur(12px);
}

.avatar-ring {
  background: linear-gradient(135deg, #e50914, #f59e0b);
  padding: 2px;
  border-radius: 50%;
}

@media (max-width: 480px) {
  .grid { gap: 0.5rem !important; }
}

.genre-chip {
  transition: all 0.2s ease;
}
.genre-chip:hover { transform: translateY(-2px); }
.genre-chip.active {
  background: linear-gradient(135deg, #e50914 0%, #b0060f 100%);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

.badge-glow {
  animation: pulse-glow 2s infinite;
}

/* Footer + welcome (backup if JS inline styles fail) */
#siteFooter a:hover { opacity: 0.85; }
