/* Cinematic Dark Theme */
        :root {
            --bg-color: #141414; /* Netflix Black */
            --navbar-bg: #000000;
            --card-bg: #181818;
            --text-main: #FFFFFF;
            --text-muted: #B3B3B3;
            --accent: #E50914; /* Crimson Red */
            --accent-hover: #F40612;
        }
        body { margin: 0; font-family: 'Roboto', sans-serif; background: var(--bg-color); color: var(--text-main); line-height: 1.5; }
        a { color: var(--text-main); text-decoration: none; transition: color 0.2s; }
        a:hover { color: var(--accent); }
        
        /* Navbar */
        .navbar { background: var(--navbar-bg); padding: 15px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 20px rgba(0,0,0,0.8); }
        .nav-container { max-width: 1300px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
        .logo { font-size: 26px; font-weight: 900; display: flex; align-items: center; gap: 8px; letter-spacing: 1px; color: var(--accent); }
        .nav-links { display: flex; gap: 25px; align-items: center; }
        .nav-links a { font-weight: 500; font-size: 15px; }
        
        /* Search Bar */
        .search-form { display: flex; background: #222; border: 1px solid #333; border-radius: 4px; padding: 4px 12px; }
        .search-form input { background: transparent; border: none; color: #FFF; outline: none; padding: 8px; width: 220px; font-size: 14px; }
        .search-form button { background: transparent; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; transition: 0.2s; }
        .search-form button:hover { color: var(--accent); }

        .container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
        
        /* Category Chips */
        .category-scroll { width: 100%; overflow-x: auto; padding: 25px 0 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
        .category-scroll::-webkit-scrollbar { display: none; }
        .category-chips { display: inline-flex; gap: 10px; padding: 0 5px; }
        .chip { display: inline-flex; align-items: center; gap: 6px; background: #222; border: 1px solid #333; padding: 8px 18px; border-radius: 4px; font-weight: 500; font-size: 14px; white-space: nowrap; transition: all 0.2s; }
        .chip i { color: var(--text-muted); font-size: 18px; transition: 0.2s; }
        .chip:hover { background: var(--accent); border-color: var(--accent); color: #FFF; }
        .chip:hover i { color: #FFF; }

        /* Section Titles */
        .section-title { font-size: 22px; font-weight: 700; margin: 40px 0 20px; display: flex; align-items: center; gap: 10px; border-left: 4px solid var(--accent); padding-left: 12px; }

        /* Media Grid */
        .media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; margin-bottom: 50px; }
        .media-card { background: transparent; overflow: hidden; transition: transform 0.3s; cursor: pointer; }
        .media-card:hover { transform: scale(1.05); }
        
        /* Poster Ratio (2:3) */
        .media-poster { position: relative; width: 100%; padding-top: 150%; background: #222; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
        .media-poster img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
        
        /* Play Overlay */
        .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
        .overlay i { font-size: 54px; color: rgba(255,255,255,0.9); border: 2px solid rgba(255,255,255,0.9); border-radius: 50%; padding: 5px; background: rgba(0,0,0,0.3); }
        .media-card:hover .overlay { opacity: 1; }
        
        /* Typography */
        .media-info { padding: 12px 4px; }
        .media-title { font-size: 15px; font-weight: 500; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #FFF; }
        .media-meta { font-size: 13px; color: var(--text-muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        
        footer { background: #000; padding: 25px 0; text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 20px; border-top: 1px solid #222; }
        
        @media (max-width: 768px) {
            .nav-container { flex-direction: column; align-items: stretch; gap: 15px; }
            .nav-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
            .search-form { width: 100%; }
            .search-form input { width: 100%; }
            .media-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
        }
        
        
        /* Dropdown Menu CSS */
.dropdown { position: relative; display: inline-block; }
.dropbtn { font-weight: 500; font-size: 15px; display: flex; align-items: center; }
.dropdown-content { 
    display: none; position: absolute; background-color: var(--card-bg); 
    min-width: 200px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5); z-index: 101; 
    border-radius: 6px; overflow: hidden; margin-top: 10px; border: 1px solid #333;
}
.dropdown-content a { color: var(--text-main); padding: 12px 16px; text-decoration: none; display: flex; align-items: center; font-size: 14px; }
.dropdown-content a:hover { background-color: #222; color: var(--accent); }
.dropdown:hover .dropdown-content { display: block; }

/* Homepage Category Chips CSS */
.category-scroll { width: 100%; overflow-x: auto; padding: 25px 0 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; /* Hides scrollbar */ }
.category-chips { display: inline-flex; gap: 10px; padding: 0 5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #222; border: 1px solid #333; padding: 8px 18px; border-radius: 20px; font-weight: 500; font-size: 14px; white-space: nowrap; transition: all 0.2s; }
.chip i { color: var(--text-muted); font-size: 18px; transition: 0.2s; }
.chip:hover { background: var(--card-bg); border-color: var(--accent); color: #FFF; }
.chip:hover i { color: var(--accent); }

/* Dropdown Menu CSS - FIXED */
.dropdown { 
    position: relative; 
    display: inline-block; 
}
.dropbtn { 
    font-weight: 500; 
    font-size: 15px; 
    display: flex; 
    align-items: center; 
    padding-bottom: 15px; /* Added internal padding to naturally bridge the gap */
    margin-bottom: -15px; /* Offsets padding so elements below don't shift */
}
.dropdown-content { 
    display: none; 
    position: absolute; 
    background-color: var(--card-bg); 
    min-width: 200px; 
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5); 
    z-index: 101; 
    border-radius: 6px; 
    overflow: hidden; 
    margin-top: 5px; /* Tightened gap */
    border: 1px solid #333;
}

/* This creates an invisible hit-box bridge above the menu so the mouse never leaves the element */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.dropdown-content a { 
    color: var(--text-main); 
    padding: 12px 16px; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    font-size: 14px; 
}
.dropdown-content a:hover { 
    background-color: #222; 
    color: var(--accent); 
}
.dropdown:hover .dropdown-content { 
    display: block; 
}



  /* Cinematic Dark Theme - Matched with index.php */
        :root {
            --bg-color: #141414; 
            --navbar-bg: #000000;
            --card-bg: #181818;
            --text-main: #FFFFFF;
            --text-muted: #B3B3B3;
            --accent: #E50914; 
            --accent-hover: #F40612;
        }
        body { margin: 0; font-family: 'Roboto', sans-serif; background: var(--bg-color); color: var(--text-main); line-height: 1.5; }
        a { color: var(--text-main); text-decoration: none; transition: color 0.2s; }
        a:hover { color: var(--accent); }
        
        /* Navbar Layout matching index.php */
        .navbar { background: var(--navbar-bg); padding: 15px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 20px rgba(0,0,0,0.8); }
        .nav-container { max-width: 1300px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
        .logo { font-size: 26px; font-weight: 900; display: flex; align-items: center; gap: 8px; letter-spacing: 1px; color: var(--accent); }
        .nav-links { display: flex; gap: 25px; align-items: center; }
        .nav-links a { font-weight: 500; font-size: 15px; }
        
        /* Search Bar Layout matching index.php */
        .search-form { display: flex; background: #222; border: 1px solid #333; border-radius: 4px; padding: 4px 12px; }
        .search-form input { background: transparent; border: none; color: #FFF; outline: none; padding: 8px; width: 220px; font-size: 14px; }
        .search-form button { background: transparent; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; transition: 0.2s; }
        .search-form button:hover { color: var(--accent); }

        .container { max-width: 1300px; margin: 0 auto; padding: 0 20px; min-height: 75vh; }

        /* Category Chips Layout matching index.php */
        .category-scroll { width: 100%; overflow-x: auto; padding: 25px 0 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
        .category-scroll::-webkit-scrollbar { display: none; }
        .category-chips { display: inline-flex; gap: 10px; padding: 0 5px; }
        .chip { display: inline-flex; align-items: center; gap: 6px; background: #222; border: 1px solid #333; padding: 8px 18px; border-radius: 20px; font-weight: 500; font-size: 14px; white-space: nowrap; transition: all 0.2s; }
        .chip i { color: var(--text-muted); font-size: 18px; transition: 0.2s; }
        .chip:hover { background: var(--card-bg); border-color: var(--accent); color: #FFF; }
        .chip:hover i { color: var(--accent); }
        .chip.active { background: var(--accent); border-color: var(--accent); color: #FFF; }
        .chip.active i { color: #FFF; }

        /* Section Titles Layout matching index.php */
        .section-title { font-size: 22px; font-weight: 700; margin: 40px 0 20px; display: flex; align-items: center; gap: 10px; border-left: 4px solid var(--accent); padding-left: 12px; }

        /* Media Grid Layout matching index.php */
        .media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; margin-bottom: 50px; }
        .media-card { background: transparent; overflow: hidden; transition: transform 0.3s; cursor: pointer; }
        .media-card:hover { transform: scale(1.05); }
        
        /* Poster Layout matching index.php */
        .media-poster { position: relative; width: 100%; padding-top: 150%; background: #222; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
        .media-poster img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
        
        /* Play Overlay Layout matching index.php */
        .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
        .overlay i { font-size: 54px; color: rgba(255,255,255,0.9); border: 2px solid rgba(255,255,255,0.9); border-radius: 50%; padding: 5px; background: rgba(0,0,0,0.3); }
        .media-card:hover .overlay { opacity: 1; }
        
        /* Typography Layout matching index.php */
        .media-info { padding: 12px 4px; }
        .media-title { font-size: 15px; font-weight: 500; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #FFF; }
        .media-meta { font-size: 13px; color: var(--text-muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        
        /* Pagination Design Controls */
        .pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 40px 0 60px; }
        .page-btn { background: #222; padding: 10px 24px; border: 1px solid #333; border-radius: 4px; font-weight: 600; color: #FFF; text-decoration: none; transition: background 0.2s; }
        .page-btn:hover { background: var(--accent); border-color: var(--accent); }

        footer { background: #000; padding: 25px 0; text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 40px; border-top: 1px solid #222; }
        
        /* Dropdown CSS Menu matching index.php */
        .dropdown { position: relative; display: inline-block; }
        .dropbtn { font-weight: 500; font-size: 15px; display: flex; align-items: center; }
        .dropdown-content { 
            display: none; position: absolute; background-color: var(--card-bg); 
            min-width: 200px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5); z-index: 101; 
            border-radius: 6px; overflow: hidden; margin-top: 10px; border: 1px solid #333;
        }
        .dropdown-content a { color: var(--text-main); padding: 12px 16px; text-decoration: none; display: flex; align-items: center; font-size: 14px; }
        .dropdown-content a:hover { background-color: #222; color: var(--accent); }
        .dropdown:hover .dropdown-content { display: block; }

        @media (max-width: 768px) {
            .nav-container { flex-direction: column; align-items: stretch; gap: 15px; }
            .nav-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
            .search-form { width: 100%; }
            .search-form input { width: 100%; }
            .media-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
        }


footer .footer-links a:hover {
    color: var(--accent) !important;
}

