/* ============================================
           CSS VARIABLES & RESET
        ============================================ */
        :root {
            --red: #e8210a;
            --gold: #c9a84c;
            --bg: #050505;
            --card: #111111;
            --border: #1a1a1a;
            --text: #d4d4d4;
            --font-display: 'Bebas Neue', sans-serif;
            --font-body: 'Barlow', sans-serif;
            --max-w: 1300px;
        }

        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        body { background-color: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.4; overflow-x: hidden; }
        
        /* ============================================
           HEADER
        ============================================ */
        .site-header { background: #000; border-bottom: 2px solid var(--red); padding: 15px 0; position: sticky; top: 0; z-index: 2000; box-shadow: 0 5px 25px rgba(0,0,0,0.9); }
        .header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; }
        .logo { font-family: var(--font-display); font-size: 2.2rem; color: #fff; text-decoration: none; letter-spacing: 1.5px; text-transform: uppercase; }
        .logo span { color: var(--red); }
        .header-nav { display: flex; gap: 10px; }
        .header-nav a { color: #fff; text-decoration: none; font-family: var(--font-display); font-size: 1.1rem; padding: 8px 16px; background: #111; border: 1px solid #333; border-radius: 4px; transition: 0.2s; }
        .header-nav a:hover, .header-nav a.active { background: var(--red); border-color: var(--red); }

        /* ============================================
           HERO
        ============================================ */
        .hero { text-align: center; padding: 40px 20px 25px; background: radial-gradient(circle at top, #1a0000 0%, #050505 100%); }
        .hero h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 8vw, 5rem); color: #fff; margin-bottom: 5px; line-height: 1; }
        .hero h1 span { color: var(--red); text-shadow: 0 0 20px var(--red); }
        .hero p { color: var(--gold); font-weight: 800; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 3px; }

        /* ============================================
           SEARCH ENGINE CSS
        ============================================ */
        .search-section { max-width: var(--max-w); margin: 20px auto 10px; padding: 0 15px; }
        .search-wrap { display: flex; gap: 10px; align-items: stretch; position: relative; flex-wrap: wrap; }
        .search-input-wrapper { position: relative; flex-grow: 1; display: flex; align-items: center; }
        .search-icon { position: absolute; left: 18px; font-size: 1.2rem; pointer-events: none; opacity: 0.5; }
        #searchInput { width: 100%; height: 100%; padding: 14px 50px; background: #0f0f0f; border: 1px solid #2a2a2a; border-radius: 8px; color: #fff; font-family: var(--font-body); font-size: 1rem; outline: none; transition: 0.3s; letter-spacing: 0.5px; }
        #searchInput::placeholder { color: #444; }
        #searchInput:focus { border-color: var(--red); box-shadow: 0 0 15px rgba(232,33,10,0.15); }
        #clearSearch { position: absolute; right: 16px; background: none; border: none; color: #555; font-size: 1.3rem; cursor: pointer; display: none; padding: 4px; line-height: 1; transition: color 0.2s; }
        #clearSearch:hover { color: var(--red); }
        #searchBtn { padding: 0 35px; background: var(--red); color: #fff; border: 1px solid var(--red); border-radius: 8px; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 1px; cursor: pointer; transition: 0.3s; }
        #searchBtn:hover { background: #fff; color: #000; box-shadow: 0 0 15px #fff; border-color: #fff; }
        .search-meta { margin-top: 8px; font-size: 0.8rem; color: #444; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; min-height: 18px; }
        .search-meta .count { color: var(--gold); }
        .not-found-container { text-align: center; padding: 40px 20px; grid-column: 1 / -1; }
        .not-found-container > h2 { font-family: var(--font-display); font-size: 2.2rem; color: #fff; margin-bottom: 10px; letter-spacing: 1px; }
        .not-found-container > h2 span { color: var(--red); text-transform: uppercase; }
        .not-found-container p { color: #aaa; font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px; line-height: 1.5; }
        #searchResultsSection .movie-title, .not-found-container .movie-title { font-size: 1.5rem !important; letter-spacing: 0 !important; margin-bottom: 5px !important; white-space: normal !important; line-height: 1.2 !important; overflow: visible !important; } .not-found-container .movie-info { text-align: left; }

        /* ============================================
           MOVIE GRID & CARDS (LOCKED HORIZONTAL)
        ============================================ */
        .archive-section { max-width: var(--max-w); margin: 20px auto; padding: 0 10px; }
        .movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 15px; }
        
        .movie-card { 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: 10px; 
    display: flex;
    flex-direction: row; 
    min-height: 215px;
    height: auto;
    transition: 0.4s; 
    overflow: hidden; 
    position: relative; 
}
        .movie-card:hover { border-color: var(--red); transform: scale(1.02); z-index: 10; box-shadow: 0 10px 30px rgba(232,33,10,0.2); }
        
        .poster-wrap { width: 145px; min-width: 145px; height: 100%; flex-shrink: 0; border-right: 1px solid var(--border); }
        .poster-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
        
        .movie-info { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
        .movie-title { font-family: var(--font-display); font-size: 1.6rem; color: #fff; line-height: 1.1; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .movie-summary { font-size: 0.85rem; color: #bbb; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }

        .movie-specs { display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid #222; padding-top: 6px; margin-bottom: 8px; }
        .spec-item { font-size: 0.7rem; color: #666; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
        .spec-item b { color: var(--gold); }

        .watch-btn { display: block; width: 100%; padding: 8px; background: var(--red); color: #fff; font-family: var(--font-display); font-size: 1.2rem; text-align: center; border-radius: 5px; text-decoration: none; transition: 0.3s; letter-spacing: 1px; }
        .watch-btn:hover { background: #fff; color: #000; box-shadow: 0 0 15px #fff; }

        /* ============================================
           PAGINATION & SHARE BUTTONS
        ============================================ */
        .pagination-area { display: flex; justify-content: center; gap: 20px; margin: 40px auto 20px; max-width: var(--max-w); padding: 0 15px; flex-wrap: wrap; }
        .nav-btn { display: inline-block; padding: 14px 35px; font-family: var(--font-display); font-size: 1.5rem; text-decoration: none; border-radius: 8px; transition: 0.3s; text-align: center; min-width: 250px; text-transform: uppercase; letter-spacing: 1px; }
        .back-btn { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
        .back-btn:hover { background: var(--gold); color: #000; box-shadow: 0 0 30px rgba(201,168,76,0.3); transform: translateY(-2px); }
        .next-page-btn { background: linear-gradient(135deg, #e8210a, #8b0000); color: #fff; border: 2px solid var(--red); }
        .next-page-btn:hover { background: #fff; color: #000; border-color: #fff; box-shadow: 0 0 30px rgba(232,33,10,0.4); transform: translateY(-2px); }
        .page-btn { background: var(--gold); color: #000; border: 2px solid var(--gold); }
        .page-btn:hover { background: #fff; color: #000; border-color: #fff; box-shadow: 0 0 20px rgba(201,168,76,0.4); transform: translateY(-2px); }
        .page-btn.active { background: var(--red) !important; color: #fff !important; border-color: var(--red) !important; box-shadow: 0 0 20px rgba(232,33,10,0.5); cursor: default; transform: none; }

        .share-container { max-width: var(--max-w); margin: 0 auto 40px; padding: 0 15px; text-align: center; overflow: hidden; }
        .sharethis-inline-share-buttons { display: flex !important; justify-content: center !important; flex-wrap: wrap; gap: 10px; z-index: 10; }

        /* ============================================
           SEO PROSE AREA
        ============================================ */
        .prose-wrap { max-width: 1000px; margin: 60px auto; padding: 0 15px; }
        .prose { max-width: 760px; margin: 0 auto; background: #0a0a0a; border: 1px solid #1a1a1a; border-radius: 15px; padding: 45px; position: relative; direction: ltr; text-align: left; }
        .prose::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent); }
        
        .prose h2.prose-main-title { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold); margin-bottom: 25px; border-bottom: 1px solid #222; padding-bottom: 12px; line-height: 1.15; direction: ltr; text-align: left; }
        .prose h2 { font-family: var(--font-display); font-size: 2rem; color: #fff; margin: 35px 0 15px; line-height: 1.2; border-left: 5px solid var(--red); padding-left: 14px; direction: ltr; text-align: left; }
        .prose h3 { font-family: var(--font-display); font-size: 1.5rem; color: #eee; margin: 25px 0 10px; line-height: 1.25; direction: ltr; text-align: left; }
        .prose p, .prose ul, .prose ol, .prose li { direction: ltr; text-align: left; color: #aaa; font-size: 1.08rem; line-height: 1.8; }
        .prose p { margin-bottom: 20px; }
        .prose ul, .prose ol { padding-left: 22px; margin-bottom: 20px; }
        .prose li { margin-bottom: 10px; }
        .prose strong { color: #fff; }
        .prose em { color: var(--gold); font-style: italic; }
        .prose a { color: var(--red); text-decoration: none; }
        .prose a:hover { text-decoration: underline; }

        /* ==================================================
           TABLE FIX - RESPONSIVE WRAPPER
        ================================================== */
        .table-responsive-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 30px 0; border-radius: 8px; }
        .film-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 600px; }
        .film-table thead tr { background: var(--red); }
        .film-table th { padding: 10px 12px; text-align: left; font-family: var(--font-display); color: #fff; }
        .film-table td { padding: 10px 12px; border-bottom: 1px solid #222; color: #bbb; }
        .film-table tr:hover td { background: #0f0f0f; }

        /* FAQ */
        .faq-item { border: 1px solid #222; border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
        .faq-item summary { padding: 16px; font-family: var(--font-display); font-size: 1.2rem; color: #fff; cursor: pointer; background: #161616; list-style: none; }
        .faq-item summary::-webkit-details-marker { display: none; }
        .faq-item summary::after { content: " +"; color: var(--red); float: right;}
        details[open] .faq-item summary::after { content: " −"; }
        .faq-item div { padding: 18px 20px; color: #999; line-height: 1.7; font-size: 1rem; border-top: 1px solid #222;}

        /* ============================================
           FOOTER
        ============================================ */
        footer { background: #000; border-top: 2px solid var(--red); padding: 60px 20px; text-align: center; }
        .footer-logo { font-family: var(--font-display); font-size: 2.5rem; color: #fff; margin-bottom: 20px; }
        .footer-logo span { color: var(--red); }
        .footer-links { display: flex; justify-content: center; gap: 25px; margin-bottom: 20px; flex-wrap: wrap; }
        .footer-links a { color: #666; font-weight: 700; text-decoration: none; font-size: 0.9rem; transition: 0.3s; text-transform: uppercase; }
        .footer-links a:hover { color: var(--red); }

        /* ============================================
           RESPONSIVE (MOBILE FIXES)
        ============================================ */
        @media (max-width: 768px) {
            .movie-grid { grid-template-columns: 1fr; }
            .movie-card { height: auto; min-height: 215px; }
            .prose { padding: 25px 18px; max-width: 100%; }
            .prose h2.prose-main-title { font-size: 2rem; }
            .prose h2 { font-size: 1.7rem; }
            .prose h3 { font-size: 1.3rem; }
            .prose p, .prose li { font-size: 1rem; }
            .nav-btn { width: 100%; min-width: unset; font-size: 1.3rem; }
            .film-table { font-size: 0.8rem; }
        }

        @media (max-width: 480px) {
            /* HEADER */
            .header-inner { flex-direction: column; gap: 12px; padding: 10px 5px; }
            .logo { font-size: 1.8rem; }
            .header-nav { width: 100%; justify-content: center; }
            .header-nav a { flex: 1; text-align: center; font-size: 0.9rem; padding: 8px 5px; }

            /* CARDS */
            .movie-card { height: 180px; flex-direction: row; }
            .poster-wrap { width: 110px; min-width: 110px; }
            .movie-title { font-size: 1.2rem; }
            .movie-summary { font-size: 0.75rem; -webkit-line-clamp: 2; }
            .watch-btn { font-size: 1rem; padding: 8px; }
            .spec-item { font-size: 0.65rem; }
            
            /* SEARCH */
            .search-wrap { flex-direction: column; }
            .search-input-wrapper { height: 50px; }
            #searchBtn { height: 50px; width: 100%; }
        }