:root {
    /* Premium Zinc Dark Mode Palette */
    --bg-dark: #09090b;   /* zinc-950 */
    --bg-panel: #18181b;  /* zinc-900 */
    --text-main: #f4f4f5; /* zinc-100 */
    --text-muted: #a1a1aa;/* zinc-400 */
    --primary: #e11d48;   /* rose-600 */
    --primary-hover: #be123c; /* rose-700 */
    --border: #27272a;    /* zinc-800 */
}

body { 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    font-family: 'Inter', sans-serif; 
    -webkit-font-smoothing: antialiased;
}

/* Utility Classes */
.bg-panel { background-color: var(--bg-panel); }
.border-custom { border-color: var(--border); }
.text-muted { color: var(--text-muted); }
.btn-primary { background-color: var(--primary); color: white; transition: all 0.2s ease-in-out; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3); }

/* Sleek Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 8px; border: 2px solid var(--bg-dark); }
::-webkit-scrollbar-thumb:hover { background: #52525b; }

/* Video Player Shield and Wrapper */
.video-wrapper { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 0; overflow: hidden; }
@media (min-width: 768px) { .video-wrapper { border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); } }
.shield { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; cursor: pointer; }

/* Modals and Overlays */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(8px); }

/* Table Styling for Admin */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 12px; text-align: left; border-bottom: 1px solid var(--border); }
th { background-color: #18181b; font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; color: var(--text-muted); }
tr:hover { background-color: #27272a; }

/* Custom Range Slider for Timeline */
input[type=range] { -webkit-appearance: none; background: transparent; width: 100%; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 16px; width: 16px; border-radius: 50%; background: var(--primary); cursor: pointer; margin-top: -6px; box-shadow: 0 0 10px rgba(225, 29, 72, 0.6); transition: transform 0.1s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 4px; cursor: pointer; background: rgba(255,255,255,0.2); border-radius: 4px; }
input[type=range]:focus { outline: none; }

.controls-overlay { transition: opacity 0.3s ease-in-out; }

/* Chat Animations */
@keyframes slideIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg { animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Glassmorphism utilities */
.glass-panel { background: rgba(24, 24, 27, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* Toast Notifications */
@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(100%) translateY(-10px); }
    to { opacity: 1; transform: translateX(0) translateY(0); }
}
@keyframes toastFadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.9); }
}
.toast-slide-in { animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.toast-fade-out { animation: toastFadeOut 0.3s ease-in forwards; }