﻿:root {
    --primary: #E50914;
    --bg: #050505;
    --surface: #0d0d0d;
    --glass: rgba(5, 5, 5, 0.98);
}

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);
}

.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 */
#volume-slider {
    height: 12px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

#volume-slider:focus {
    outline: none;
}

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

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    width: 10px;
    background: white;
    border-radius: 50%;
    margin-top: -3.5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    background: var(--primary);
}

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

#volume-slider::-moz-range-progress {
    background: var(--primary);
    height: 3px;
    border-radius: 2px;
}

#volume-slider::-moz-range-thumb {
    height: 10px;
    width: 10px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

#volume-slider::-moz-range-thumb:hover {
    transform: scale(1.3);
    background: var(--primary);
}

/* 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);
}

/* Premium Glass Cards */
.glass-card {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}

/* Search Results Styles */
#search-results {
    background: rgb(10 10 10 / 98%);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.search-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-item img {
    width: 40px;
    height: 60px;
    border-radius: 6px;
    object-cover: cover;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Cinema Mode for TV */
body.cinema-mode {
    overflow: hidden !important;
}

body.cinema-mode header,
body.cinema-mode footer,
body.cinema-mode .container > *:not(#video-container) {
    display: none !important;
}

body.cinema-mode main {
    padding: 0 !important;
}

body.cinema-mode #video-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    border: none !important;
    border-radius: 0 !important;
    background: black;
}

body.cinema-mode #video-player {
    object-fit: cover !important;
}

#interaction-overlay {
    background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.9) 100%);
}

/* Premium Episode Placeholder */
.ep-placeholder {
    background: #080808;
    position: relative;
    overflow: hidden;
}

.ep-placeholder::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 30% 30%, rgba(229, 9, 20, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 70% 70%, rgba(229, 9, 20, 0.08) 0%, transparent 40%);
    filter: blur(60px);
    animation: rotate-placeholder 15s linear infinite;
}

.ep-placeholder::after {
    content: 'LOVECINE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.8em;
    color: rgba(255,255,255,0.04);
    pointer-events: none;
}

@keyframes rotate-placeholder {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* LoveCine Redesign Global Styles */
.mesh-gradient { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(at 0% 0%, rgba(239, 68, 68, 0.15) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(0, 0, 0, 0.5) 0px, transparent 50%); z-index: -1; }
.glass-panel { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.ranking-number { font-size: 230px; font-weight: 900; line-height: 160px; color: #000; -webkit-text-stroke: 4px #595959; text-shadow: 0 0 25px rgba(0,0,0,0.8); width: 150px; height: 190px; position: relative; flex-shrink: 0; display: flex; align-items: flex-end; justify-content: flex-start; padding-bottom: 1rem; }
.text-glow { text-shadow: 0 0 30px rgba(239, 68, 68, 0.5); }
.text-glow-strong { text-shadow: 0 0 40px rgba(239, 68, 68, 0.8); }
.animate-in { animation: fadeIn 0.8s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Player Overlay Styles */
@keyframes pulse-aura { 0%, 100% { transform: scale(1); opacity: 0.15; } 50% { transform: scale(1.2); opacity: 0.3; } }
.pulse-aura { animation: pulse-aura 4s infinite ease-in-out; }
.controls-overlay { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.controls-hidden { opacity: 0; cursor: none; }
.tooltip-wrap { position: absolute; bottom: 100%; margin-bottom: 16px; pointer-events: none; z-index: 120; transition: all 0.2s ease; opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.8); }
.tooltip-visible { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.tooltip-box { position: relative; background: rgba(9, 9, 11, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); padding: 6px 12px; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); display: flex; }
.tooltip-arrow { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-4px) rotate(45deg); width: 8px; height: 8px; background: rgba(9, 9, 11, 0.95); border-right: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.dropdown-enter { transform: translateY(15px) scale(0.95); opacity: 0; pointer-events: none; }
.dropdown-active { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.dropdown-transition { transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1); }