body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #000000;
    background-image: linear-gradient(to bottom, #0f172a, #000000);
    color: #ffffff;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

/* Glassmorphism & UI Tweaks */
.glass-nav {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }

.glass-bubble {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Animations */
@keyframes shimmer { 0% { background-position: -468px 0; } 100% { background-position: 468px 0; } }
.skeleton {
    background: #1e293b;
    background-image: linear-gradient(to right, #1e293b 0%, #334155 20%, #1e293b 40%, #1e293b 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%; 
    animation: shimmer 1.5s infinite linear forwards;
}

.pop-in { animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes popIn { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* Sidebar Transition */
#mobileSidebar { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

/* Optimization for poster images */
img {
    content-visibility: auto;
}

/* --- MOBILE RESPONSIVENESS TWEAKS --- */

/* Scrolling wrapper snapping for better mobile feel */
.scrolling-wrapper {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.card-snap {
    scroll-snap-align: start;
}

/* Modal Enhancements for Mobile */
#modalContent {
    max-width: 100%;
}

@media (max-width: 768px) {
    /* Adjust Hero for smaller screens */
    #heroSection {
        height: 55vh;
    }
    #heroTitle {
        font-size: 2.25rem;
        line-height: 1.1;
    }
    #heroPlot {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }

    /* Grid adjustments */
    #searchGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Modal padding and layout */
    .md\:p-10 {
        padding: 1.5rem !important;
    }
    
    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Sticky filter buttons bigger for fingers */
    .sticky button {
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
}

/* Custom Scrollbar for Desktop (Hidden on mobile via .hide-scroll) */
@media (min-width: 1024px) {
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #000;
    }
    ::-webkit-scrollbar-thumb {
        background: #1e293b;
        border-radius: 10px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #334155;
    }
}
