/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #12172c;
}

::-webkit-scrollbar-thumb {
    background: #32385c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6366f1;
}

/* Video Progress Bar Styling */
input[type="range"] {
    -webkit-appearance: none;
    background: transparent;
}

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

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #32385c;
    border-radius: 2px;
}

/* Seat Styles */
.seat {
    width: 40px;
    height: 40px;
    border-radius: 8px 8px 4px 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 2px solid transparent;
}

.seat::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: inherit;
    border-radius: 0 0 4px 4px;
    opacity: 0.6;
}

.seat.available {
    background: #252b45;
    border-color: #32385c;
}

.seat.available:hover {
    background: #6366f1;
    border-color: #818cf8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.seat.selected {
    background: #6366f1;
    border-color: #818cf8;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
    animation: seatPulse 2s infinite;
}

.seat.occupied {
    background: #1a2035;
    border-color: #252b45;
    opacity: 0.5;
    cursor: not-allowed;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(255,255,255,0.05) 5px,
        rgba(255,255,255,0.05) 10px
    );
}

@keyframes seatPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(99, 102, 241, 0.6); }
    50% { box-shadow: 0 0 25px rgba(99, 102, 241, 0.8); }
}

/* Glassmorphism Effects */
.glass {
    background: rgba(26, 32, 53, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Live Indicator Pulse */
.live-indicator {
    position: relative;
}

.live-indicator::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: #10b981;
    opacity: 0;
    animation: livePulse 2s infinite;
    z-index: -1;
}

@keyframes livePulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Movie Card Hover Effects */
.movie-card {
    transition: all 0.3s ease;
}

.movie-card:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(8px);
}

/* Loading Animation */
.loading-skeleton {
    background: linear-gradient(
        90deg,
        #1a2035 25%,
        #252b45 50%,
        #1a2035 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Responsive Adjustments */
@media (max-width: 640px) {
    .seat {
        width: 32px;
        height: 32px;
    }
    
    .controls-row {
        gap: 0.5rem;
    }
}

/* Custom Selection Color */
::selection {
    background: #6366f1;
    color: white;
}