:root {
    --primary: #E50914;
    --bg: #050505;
    --surface: #0d0d0d;
    --glass: rgba(10, 10, 10, 0.75);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: white;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.font-bebas { font-family: 'Bebas Neue', sans-serif; }

/* Utilities */
.glass {
    background: var(--glass);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hide-scrollbar::-webkit-scrollbar { display: none; }

/* Animations */
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.logo-heartbeat { animation: heartbeat 3s ease-in-out infinite; }

@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
.ken-burns { animation: kenburns 30s infinite alternate ease-in-out; }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Movie Cards */
.movie-card { transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); }
.movie-card:hover { transform: scale(1.05) translateY(-5px); z-index: 30; }

.card-inner { border: 1px solid rgba(255, 255, 255, 0.05); }

/* Shimmer Loading */
.shimmer {
    background: linear-gradient(90deg, #121212 25%, #1a1a1a 50%, #121212 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }

/* Hero Gradients */
.hero-gradient {
    background: linear-gradient(to top, var(--bg) 0%, rgba(5,5,5,0.7) 30%, transparent 100%), 
                linear-gradient(to right, var(--bg) 0%, rgba(5,5,5,0.4) 40%, transparent 100%);
}

.hero-mask { background: linear-gradient(to top, var(--bg) 0%, rgba(5,5,5,0.8) 50%, rgba(5,5,5,0.3) 100%); }

/* Filters & Chips */
.filter-btn.active, .filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.network-btn.active, .network-chip.active {
    border-color: var(--primary);
    background: rgba(229, 9, 20, 0.1);
}

.pagination-btn { transition: all 0.3s; border: 1px solid rgba(255, 255, 255, 0.1); }
.pagination-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.pagination-btn:hover:not(.active) { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.2); }

/* Custom Video Player Range Inputs */
input[type="range"].player-range {
    -webkit-appearance: none;
    background: transparent;
}

input[type="range"].player-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

input[type="range"].player-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    margin-top: -4px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Volume Slider Specific (Matches Image 2) */
#volume-slider {
    height: 20px; /* Give enough height for the thumb */
}

#volume-slider::-webkit-slider-runnable-track {
    height: 5px;
    background: linear-gradient(to right, white var(--volume-percent, 80%), rgba(255,255,255,0.2) var(--volume-percent, 80%));
    border-radius: 3px;
    border: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 14px;
    width: 14px;
    background: white;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 50%;
    margin-top: -4.5px; /* Centers thumb on 5px track */
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    cursor: pointer;
}

#volume-slider::-moz-range-track {
    height: 5px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

#volume-slider::-moz-range-progress {
    background: white;
    height: 5px;
    border-radius: 3px;
}

#volume-slider::-moz-range-thumb {
    height: 14px;
    width: 14px;
    background: white;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 50%;
}

/* Settings Menu CSS */
.settings-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 20px;
    width: 180px;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 100;
}

.settings-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.settings-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    color: rgba(255, 255, 255, 0.8);
}

.settings-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.settings-item.active {
    color: var(--primary);
}
