/* PROVIDEOS Premium Vanilla Styling Sheets */

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-dark: #0b0c10;
    --bg-card: rgba(17, 19, 26, 0.65);
    --border-glass: rgba(255, 255, 255, 0.05);
    --brand-primary: #e50914; /* Netflix Red */
    --brand-secondary: #ff8a00; /* Amber Orange */
    --brand-glow: rgba(229, 9, 20, 0.35);
    --gold-glow: rgba(255, 138, 0, 0.35);
    --text-white: #ffffff;
    --text-dim: #9ca3af;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

/* Glassmorphism Standard Classes */
.glass-effect {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* Premium Gold Glow Cards */
.premium-glow-card {
    background: rgba(20, 16, 10, 0.7);
    border: 1px solid rgba(255, 138, 0, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-glow-card:hover {
    border-color: var(--brand-secondary);
    box-shadow: 0 0 25px rgba(255, 138, 0, 0.25);
    transform: translateY(-4px);
}

/* Hide default horizontal scrollbar but keep functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Custom Scrollbar for administrative pages */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0b0c10;
}
::-webkit-scrollbar-thumb {
    background: #222530;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e50914;
}

/* Smooth Auto-Scroll Carousels */
.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding-bottom: 1rem;
}

/* Movie Card Premium Styling & Hover Mechanics */
.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    aspect-ratio: 2/3;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.movie-card img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

/* Group Hover Trigger: Triggered when mouse enters the entire card group */
.group:hover .movie-card {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(229, 9, 20, 0.25), 0 15px 25px rgba(0, 0, 0, 0.8);
    border-color: rgba(229, 9, 20, 0.45);
}

.group:hover .movie-card img {
    transform: scale(1.08);
    opacity: 0.15; /* Dim static poster cleanly when video begins playing */
}

/* Hover video preview class */
.group:hover .movie-card-video {
    opacity: 1; /* Smoothly fade-in the playing trailer */
}

/* Custom Interactive Video Player Styling */
.custom-player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: black;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.player-controls {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-player-wrapper:hover .player-controls,
.custom-player-wrapper:focus-within .player-controls {
    opacity: 1;
}

/* Custom seek and volume range inputs */
.player-slider {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.2);
    height: 4px;
    border-radius: 2px;
    outline: none;
    transition: background 0.3s;
}

.player-slider:hover {
    background: rgba(255,255,255,0.3);
}

.player-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand-primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--brand-primary);
    transition: transform 0.2s;
}

.player-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* Modal Popup slide animations */
@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-slide-up {
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Shimmer placeholder logic */
.shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
