:root {
  --accent: #ef4444;
  --accent-glow: rgba(239, 68, 68, 0.15);
  --bg: #09090b;
  --card: #18181b;
  --border: #27272a;
}
* { font-family: 'Plus Jakarta Sans', sans-serif; }
body { background: var(--bg); color: #f4f4f5; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #52525b; }

.glass { background: rgba(9, 9, 11, 0.85); backdrop-filter: blur(12px); }
.sidebar-item { transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; }
.sidebar-item:hover { background: rgba(255, 255, 255, 0.05); }
.sidebar-item.active { background: var(--accent-glow); color: var(--accent); }

.video-card { transition: all 350ms cubic-bezier(0.23, 1, 0.32, 1); }
.video-card:hover { transform: translateY(-4px); }
.video-card:hover .thumb-img { transform: scale(1.05); }
.video-card:hover .play-overlay { opacity: 1; }
.video-card.watched .watched-overlay { display: block; }

.play-overlay { 
  opacity: 0; 
  transition: all 300ms ease; 
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
.thumb-img { transition: transform 600ms cubic-bezier(0.23, 1, 0.32, 1); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeInUp 0.4s ease forwards; opacity: 0; }

.sk { 
  background: linear-gradient(90deg, #18181b 25%, #27272a 50%, #18181b 75%); 
  background-size: 200% 100%; 
  animation: skeleton 1.5s infinite; 
}
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.btn-primary { 
  background: var(--accent); 
  transition: all 200ms; 
  box-shadow: 0 4px 12px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.1); box-shadow: 0 6px 16px var(--accent-glow); }

.modal-enter { animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.live-pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.aspect-video { aspect-ratio: 16/9; }

.admin-only { display: none !important; }
body.is-admin .admin-only { display: flex !important; }
body.is-admin .guest-only { display: none !important; }
/* Fix for specific grid/flex elements */
body.is-admin button.admin-only { display: inline-flex !important; }

/* Toast styles */
.toast { animation: toastIn 0.35s ease, toastOut 0.35s ease 2.65s forwards; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

#ytPlayerDiv { width: 100%; height: 100%; border-radius: 20px 20px 0 0; }
#ytPlayerDiv iframe { width: 100% !important; height: 100% !important; border-radius: inherit; }
