/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Animations */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(1.1); }
}

.animate-pulse-slow {
    animation: pulse-slow 8s infinite ease-in-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Toast Animation */
.toast-visible {
    transform: translateX(0) !important;
}

/* --- PLYR PLAYER CUSTOMIZATION (The Premium Look) --- */

:root {
    --plyr-color-main: #6366f1; /* Neon Indigo */
    --plyr-video-background: #000;
    --plyr-menu-background: rgba(20, 20, 25, 0.95);
    --plyr-menu-color: #fff;
    --plyr-range-track-height: 4px;
    --plyr-range-thumb-height: 12px;
    --plyr-range-thumb-width: 12px;
    --plyr-range-thumb-background: #fff;
    --plyr-range-thumb-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}

/* Player Container adjustments */
.plyr {
    border-radius: 0.75rem; /* Matches Tailwind rounded-xl */
    font-family: 'Inter', sans-serif;
}

/* Control Bar Gradient */
.plyr__controls {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent) !important;
    padding-bottom: 20px !important;
    padding-top: 40px !important;
}

/* Progress Bar */
.plyr__progress__buffer {
    background: rgba(255,255,255,0.15);
}

/* Play Button (Big Center) */
.plyr__control--overlaid {
    background: rgba(99, 102, 241, 0.8) !important;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}
.plyr__control--overlaid:hover {
    background: #4f46e5 !important;
    transform: scale(1.1);
}

/* Menu Styling */
.plyr__menu__container {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Captions */
.plyr__caption {
    background: rgba(0,0,0,0.6) !important;
    backdrop-filter: blur(4px);
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbar for the page */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #111;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6366f1;
}