/* ================= 1. CORE STYLE (5MoviesHub Inspired) ================= */
:root {
    --bg-main: #0f0f0f;
    --bg-card: #1a1a1a;
    --primary-color: #ff9800; /* Orange highlight for 5MoviesHub style */
    --text-main: #ffffff;
    --text-muted: #999999;
    --transition: all 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { 
    background-color: var(--bg-main); 
    background-image: repeating-linear-gradient(45deg, transparent, transparent 1px, rgba(255,255,255,0.01) 1px, rgba(255,255,255,0.01) 2px);
    color: var(--text-main); 
    overflow-x: hidden; 
}

/* 5MoviesHub Header Style */
header {
    background: #000;
    padding: 10px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.header-left { display: flex; flex-direction: column; flex-shrink: 0; min-width: 180px; }
.logo { font-size: 24px; font-weight: 900; color: #fff; text-decoration: none; text-transform: uppercase; line-height: 1; letter-spacing: -0.5px; white-space: nowrap; }
.logo span { color: #ff9800; }
.tagline { font-size: 10px; color: #666; font-weight: 600; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 250px; }
@media (max-width: 1250px) { .tagline { display: none; } }

.header-nav { display: flex; align-items: center; gap: 5px; flex: 1; justify-content: center; padding: 0 10px; flex-wrap: wrap; }
.nav-link, .dropbtn { 
    color: #bbb; text-decoration: none; padding: 5px 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; transition: var(--transition); border-radius: 4px; display: flex; align-items: center; gap: 4px;
}
.nav-link:hover, .nav-dropdown:hover .dropbtn { color: #fff; background: rgba(255,152,0,0.1); }
.dropbtn i { font-size: 10px; opacity: 0.7; transition: 0.3s; }
.nav-dropdown:hover .dropbtn i { transform: rotate(180deg); color: #ff9800; opacity: 1; }

.header-right { display: flex; align-items: center; gap: 15px; flex-shrink: 0; min-width: 250px; justify-content: flex-end; }
.search-box { position: relative; max-width: 250px; flex: 1; }
.search-box form { display: flex; background: #111; border: 1px solid #222; border-radius: 20px; overflow: visible; transition: 0.3s; padding: 0 12px; width: 100%; align-items: center; }
.search-box form:focus-within { border-color: #ff9800; background: #000; box-shadow: 0 0 15px rgba(255,152,0,0.1); }
.search-box input { 
    background: transparent; border: none; padding: 10px 0; color: #fff; width: 100%; min-width: 100px; font-size: 13px; outline: none;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    max-width: 90vw;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid #222;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.9);
    z-index: 2000;
    display: none;
    overflow: hidden;
    animation: fadeIn 0.2s ease forwards;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid #1a1a1a;
    transition: 0.2s;
}

.suggestion-item:hover { background: rgba(255,152,0,0.1); }
.suggestion-item img { width: 40px; height: 55px; object-fit: cover; border-radius: 4px; }
.suggestion-info { display: flex; flex-direction: column; }
.suggestion-title { font-size: 14px; font-weight: 700; color: #fff; }
.suggestion-year { font-size: 11px; color: #999; }

/* Dropdown Content with Glassmorphism */
.nav-dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(15px);
    min-width: 240px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    z-index: 1001;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    padding-top: 5px;
}
.dropdown-content a {
    color: #999;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-transform: none;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    transition: 0.2s;
}
.dropdown-content a:hover { background: rgba(255,152,0,0.1); color: #ff9800; padding-left: 25px; }
.nav-dropdown:hover .dropdown-content { display: block; animation: fadeIn 0.3s ease forwards; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-toggle { color:#fff; font-size: 24px; cursor:pointer; display:none; padding: 5px; border-radius: 4px; transition: 0.3s; }
.menu-toggle:hover { background: rgba(255,152,0,0.1); color: #ff9800; }

/* Responsive Media Queries */
@media (max-width: 1200px) {
    header { padding: 10px 4%; height: auto; min-height: 60px; flex-wrap: wrap; }
    .header-nav { display: none; width: 100%; order: 3; } 
    .menu-toggle { display: block; order: 2; }
    .header-left { order: 1; }
    .header-right { order: 2; flex: 1; justify-content: flex-end; }
    .search-box { max-width: 200px; }
    .search-suggestions { width: 85vw; right: -50px; }

    /* Mobile Nav State */
    .header-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000;
        border-bottom: 2px solid #222;
        padding: 10px 0;
        z-index: 1001;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.9);
        animation: slideDown 0.3s ease forwards;
    }

    .header-nav.active .nav-link, .header-nav.active .dropbtn {
        width: 100%;
        padding: 15px 5%;
        border-radius: 0;
        justify-content: space-between;
        border-bottom: 1px solid #111;
    }

    .header-nav.active .nav-dropdown { width: 100%; }
    .header-nav.active .dropdown-content {
        position: static;
        width: 100%;
        background: #111;
        box-shadow: none;
        border: none;
        border-left: 3px solid #ff9800;
        display: none; /* Collapsed by default on mobile */
    }
    .header-nav.active .nav-dropdown.open .dropdown-content { display: block; }

    .tagline { display: none; }
    .logo { font-size: 22px; }

    /* Compact Download Buttons for Mobile */
    .dl-btn-premium { margin-bottom: 10px; }
    .res-tag { min-width: 60px !important; padding: 10px !important; font-size: 14px !important; }
    .dl-info { padding: 10px !important; }
    .dl-info div:first-child { font-size: 12px !important; }
}

@media (max-width: 480px) {
    .header-right { gap: 10px; }
    .search-box { max-width: 150px; }
    .search-suggestions { width: 92vw; right: -40px; }
    
    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-title-box .title { font-size: 12px !important; height: auto !important; max-height: 34px; overflow: hidden; }
    .card-info { font-size: 10px !important; display: flex !important; }
    .welcome-box { padding: 15px; }
    .welcome-box h1 { font-size: 16px !important; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main Layout (Content + Sidebar) */
.main-wrapper { display: flex; gap: 30px; padding: 30px 4%; overflow-x: hidden; }
.content-area { flex: 1; }
.sidebar-area { width: 300px; }



/* 5MoviesHub Colorful CTAs (Compact & Professional) */
.category-ctas { 
    display: flex;
    justify-content: center;
    gap: 10px; 
    margin: 15px 0; 
    flex-wrap: wrap;
}
.cta-btn { 
    padding: 6px 12px; 
    border-radius: 4px; 
    font-weight: 700; 
    text-transform: uppercase; 
    text-decoration: none; 
    color: white; 
    font-size: 11px; 
    text-align: center;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-width: 100px;
    justify-content: center;
}

.cta-btn i { font-size: 14px; opacity: 0.9; }

.cta-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    filter: brightness(1.1);
}


.cta-bollywood { background: linear-gradient(135deg, #28a745, #1e7e34); }
.cta-telugu { background: linear-gradient(135deg, #dc3545, #bd2130); }
.cta-hollywood { background: linear-gradient(135deg, #007bff, #0062cc); }
.cta-dual { background: linear-gradient(135deg, #fd7e14, #e8590c); }

/* Premium Download Buttons (Refined & Compact) */
.dl-btn-premium {
    display: flex;
    align-items: center;
    background: #111;
    border: 1px solid #222;
    border-radius: 4px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
    overflow: hidden;
}

.dl-btn-premium:hover {
    border-color: #ff9800;
    background: #161616;
}

.res-tag {
    background: #ff9800;
    color: #000;
    padding: 12px 15px;
    font-weight: 900;
    font-size: 14px;
    min-width: 70px;
    text-align: center;
    text-transform: uppercase;
}

.dl-info {
    padding: 10px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dl-title {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-transform: none;
}

.dl-meta {
    color: #888;
    font-size: 11px;
}

.dl-meta strong {
    color: #aaa;
    font-weight: 600;
}

.dl-icon {
    padding: 0 15px;
    color: #333;
    font-size: 18px;
    transition: color 0.2s;
}

.dl-btn-premium:hover .dl-icon {
    color: #ff9800;
}


/* Welcome Box (Upgraded) */
.welcome-box { 
    background: linear-gradient(to right, rgba(255, 152, 0, 0.1), transparent);
    border-left: 5px solid #ff9800;
    padding: 25px;
    border-radius: 4px;
    margin-bottom: 35px;
    color: #ccc;
    font-size: 15px;
    line-height: 1.7;
    box-shadow: 5px 5px 20px rgba(0,0,0,0.2);
}

/* Sidebar (Sticky & Professional) */
.sidebar-area { position: sticky; top: 80px; height: fit-content; }
.sidebar-widget { 
    background: #1a1a1a; 
    border: 1px solid #222; 
    padding: 25px; 
    border-radius: 8px; 
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.widget-title { 
    font-size: 15px; 
    font-weight: 900; 
    color: #fff; 
    margin-bottom: 15px; 
    border-bottom: 3px solid #ff9800; 
    padding-bottom: 8px; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.side-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 12px 0; 
    border-bottom: 1px solid #222; 
    text-decoration: none; 
    color: #aaa; 
    font-size: 14px; 
    transition: 0.3s;
}
.side-item:hover { color: #ff9800; transform: translateX(5px); }
.side-item i { color: #ff9800; font-size: 11px; }
 
/* See More Button Style */
.see-more-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.btn-see-more {
    background: transparent;
    border: 2px solid #ff9800;
    color: #ff9800;
    padding: 10px 40px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
    letter-spacing: 1px;
}
.btn-see-more:hover {
    background: #ff9800;
    color: #fff;
    box-shadow: 0 5px 20px rgba(255,152,0,0.4);
    transform: translateY(-2px);
}

/* Dynamic Movie Grid (4 Columns) */
.movie-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.movie-card { 
    background: #1a1a1a; 
    border-radius: 8px; 
    overflow: hidden; 
    border: 1px solid #222; 
    transition: all 0.4s ease; 
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.movie-card:hover { 
    border-color: #ff9800;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.card-img-box { width: 100%; aspect-ratio: 2/3; overflow: hidden; position: relative; }
.card-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s ease; }
.movie-card:hover img { transform: scale(1.05); }
.card-title-box { 
    padding: 15px; 
    background: #111; 
    border-top: 1px solid #222; 
    text-align: center; 
    min-height: 70px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.card-title-box .title { font-size: 14px; font-weight: 800; color: #eee; line-height: 1.4; transition: 0.3s; margin-bottom: 5px; }
.movie-card:hover .title { color: #ff9800; }

.card-info { font-size: 11px; color: #999; font-weight: 600; display: flex; justify-content: center; gap: 10px; align-items: center; }
.card-info .year { color: #999; }
.card-info .rating { color: #46d369; }

.trending-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ff3d00, #ff9100);
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(255, 61, 0, 0.4);
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255,255,255,0.2);
}
.trending-badge i { font-size: 11px; }

.quality-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(8px);
    color: #ff9800;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 25;
    border: 1px solid rgba(255,152,0,0.3);
}

.new-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(45deg, #00c853, #64dd17);
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 200, 83, 0.4);
    z-index: 25;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-desc { font-size: 16px; line-height: 1.6; margin-bottom: 30px; font-weight: 400; color: #f0f0f0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 1px 1px 3px rgba(0,0,0,0.9); }

.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.btn { 
    padding: 12px 25px; border-radius: 4px; border: none; font-size: 16px; font-weight: 700; 
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; 
    transition: var(--transition); white-space: nowrap; text-decoration: none;
}
.btn-primary { background: #ffffff; color: #000000; }
.btn-primary:hover { background: rgba(255,255,255,0.8); }
.btn-secondary { background: rgba(109, 109, 110, 0.7); color: white; }
.btn-secondary:hover { background: rgba(109, 109, 110, 0.9); }

/* ================= 5. MOVIE ROWS ================= */
.content-section { padding: 40px 4%; position: relative; z-index: 15; }
.row-container { margin-bottom: 40px; }
.row-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; color: #fff; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); border-left: 4px solid var(--primary-color); padding-left: 15px; }
.movie-row { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
    gap: 20px; 
    padding: 10px 0;
}

@media (max-width: 768px) {
    .movie-grid, .movie-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        display: grid !important;
    }
    .movie-card { min-width: 0; }
    .card-title-box { padding: 10px 8px; min-height: 50px; }
    .card-title-box .title { font-size: 12px; }
    .card-info { font-size: 10px; flex-wrap: wrap; }
}

/* Redundant styles removed */

/* ================= 6. DETAILS PAGE ENHANCEMENTS ================= */
.details-page { min-height: 100vh; padding-bottom: 60px; }
.det-hero { height: 50vh; position: relative; background-size: cover; background-position: top center; display: flex; align-items: flex-end; }
.det-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-main) 0%, rgba(10,10,10,0.6) 100%); }

.det-container { position: relative; z-index: 10; padding: 0 4%; margin-top: -120px; display: grid; grid-template-columns: 320px 1fr; gap: 40px; }
.det-sidebar { display: flex; flex-direction: column; gap: 20px; }
.det-poster { width: 100%; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,1); border: 1px solid rgba(255,255,255,0.1); }

.det-info { padding-top: 80px; }
.det-title { font-size: clamp(35px, 5vw, 60px); font-weight: 900; margin-bottom: 20px; line-height: 1.1; color: #fff; }

/* Cast Section - Compact Carousel */
.cast-section { margin-top: 40px; overflow: hidden; }
.cast-grid-modern { 
    display: flex; 
    gap: 15px; 
    overflow-x: auto; 
    padding: 10px 5px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar for cleaner look */
}
.cast-grid-modern::-webkit-scrollbar { display: none; }

.cast-card { 
    min-width: 130px;
    max-width: 130px;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid #222;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.cast-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1.2; /* Slightly taller for better face framing */
    overflow: hidden;
    background: #222;
}

.cast-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center top; /* Center on faces */
    display: block;
}

.cast-details { padding: 10px; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.cast-name { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 3px; line-height: 1.3; }
.cast-role { font-size: 11px; color: var(--text-muted); }


/* Gallery Section - Compact Carousel */
.gallery-section { margin-top: 40px; }
.gallery-grid { 
    display: flex; 
    gap: 12px; 
    overflow-x: auto; 
    padding-bottom: 15px;
    scrollbar-width: none;
}
.gallery-grid::-webkit-scrollbar { display: none; }
.gallery-img { min-width: 200px; max-width: 200px; height: 110px; flex-shrink: 0; }


/* Related Section */
.related-section { margin-top: 80px; padding: 0 4%; }

.det-title { font-size: clamp(35px, 5vw, 60px); font-weight: 900; margin-bottom: 20px; line-height: 1.1; }
.det-meta { display: flex; gap: 20px; align-items: center; margin-bottom: 30px; font-size: 16px; color: var(--text-muted); }
.det-meta .match { color: #46d369; font-weight: 800; }

.det-desc { font-size: 18px; line-height: 1.8; color: #e0e0e0; margin-bottom: 40px; max-width: 800px; }

/* Download Section (Competitor Inspired) */
.download-section {
    background: #111; padding: 40px; border-radius: 12px; border: 1px solid #222; margin-top: 50px;
}
.download-title { font-size: 24px; font-weight: 800; margin-bottom: 25px; color: var(--primary-color); text-transform: uppercase; letter-spacing: 1px; }
.download-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.download-card { 
    background: #181818; padding: 20px; border-radius: 8px; border: 1px solid #333; flex: 1; min-width: 200px; text-align: center;
    transition: var(--transition); text-decoration: none; color: white;
}
.download-card:hover { border-color: var(--primary-color); background: #222; transform: translateY(-5px); }
.res-label { display: block; font-size: 20px; font-weight: 900; margin-bottom: 10px; }
.size-label { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 15px; }
.dl-btn { background: var(--primary-color); color: white; padding: 10px 20px; border-radius: 4px; font-weight: 700; font-size: 14px; }

/* ================= 7. FOOTER ================= */
footer { background: #050505; padding: 80px 4% 40px; border-top: 1px solid #111; }
.footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-bottom: 50px; }
.footer-links a { color: #777; text-decoration: none; font-size: 14px; transition: 0.2s; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.seo-footer { background: rgba(255,255,255,0.02); padding: 30px; border-radius: 8px; border: 1px dotted #333; color: #666; font-size: 13px; line-height: 1.6; }

/* ================= 8. VIDEO MODAL ================= */
.video-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 2000; align-items: center; justify-content: center; }
.video-modal.show { display: flex; }
.video-container { width: 90%; max-width: 1000px; aspect-ratio: 16/9; position: relative; }
.close-video { position: absolute; top: -50px; right: 0; color: white; font-size: 40px; cursor: pointer; }

/* ================= 9. MEDIA QUERIES ================= */
/* ================= 9. COMPREHENSIVE MOBILE RESPONSIVENESS ================= */

/* Tablet & Smaller Desktops (Under 1100px) */
@media (max-width: 1100px) {
    .main-wrapper { flex-direction: column; padding: 20px 4%; }
    .sidebar-area { width: 100%; order: 2; }
    .content-area { width: 100%; order: 1; margin-bottom: 40px; }
    .movie-grid { grid-template-columns: repeat(3, 1fr); }
    .sidebar-area { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
}

/* Tablets (Under 800px) */
@media (max-width: 800px) {
    header { flex-direction: column; gap: 15px; text-align: center; }
    .nav-right { width: 100%; justify-content: center; }
    .search-box { width: 100%; }
    .search-box form { width: 100%; }
    .search-box input { flex: 1; }
    
    .secondary-nav { overflow-x: visible; white-space: normal; padding: 10px 4%; }
    .secondary-nav a { flex-shrink: 1; padding: 8px 10px; font-size: 11px; }



    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

/* Mobile Phones (Under 500px) */
@media (max-width: 500px) {
    .logo { font-size: 24px; }
    .tagline { font-size: 10px; }
    
    .category-ctas { grid-template-columns: repeat(2, 1fr); }
    .cta-btn { min-width: unset; width: 100%; font-size: 11px; padding: 10px 5px; }
    
    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-title-box { padding: 8px; min-height: 50px; }
    .card-title-box .title { font-size: 11px; }
    
    .welcome-box { padding: 15px; font-size: 13px; }
    .welcome-box h1 { font-size: 16px !important; }

    .sidebar-area { grid-template-columns: 1fr; }
    
    /* Show page fixes */
    .movie-meta-flex { flex-direction: column; align-items: center; }
    .poster-box { width: 100% !important; max-width: 250px; }
    .details-box h1 { font-size: 18px !important; }
}

/* Very Small Phones (Under 350px) */
@media (max-width: 350px) {
    .movie-grid { grid-template-columns: 1fr; }
}

/* Tags Section (Restored) */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.tag-item { background: #1a1a1a; color: #888; padding: 5px 12px; border-radius: 20px; font-size: 11px; text-decoration: none; transition: 0.2s; border: 1px solid #222; }
.tag-item:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }




/* Movie Info Table */
.movie-info-table {
    background: #111;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #222;
    margin-top: 25px;
}
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #222;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: #999; font-size: 13px; font-weight: 600; text-transform: uppercase; }
.info-value { color: #eee; font-size: 14px; font-weight: 500; text-align: right; }

/* Download Modal / Pre-loader */
.dl-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.dl-modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0,0,0,1);
    border-top: 4px solid #ff9800;
}

.dl-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 152, 0, 0.1);
    border-left-color: #ff9800;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.dl-text-title { color: #fff; font-size: 20px; font-weight: 900; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.dl-text-sub { color: #888; font-size: 14px; margin-bottom: 25px; }

.dl-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}
.dl-modal-close:hover {
    color: #ff9800;
    transform: rotate(90deg);
}

.dl-progress-bar {
    width: 100%;
    height: 6px;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}
.dl-progress-inner {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, #ff9800, #ff5722);
    animation: progressFill 3s ease-in-out forwards;
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: 100%; }
}
/* ================= 10. PAGINATION ================= */
.download-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.download-subtitle {
    color: #888;
    font-size: 13px;
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.5;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    width: 100%;
}
.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}
.page-link {
    background: #1a1a1a;
    color: #999;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #222;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}
.page-link:hover {
    background: rgba(255,152,0,0.1);
    color: #ff9800 !important;
    border-color: #ff9800;
    transform: translateY(-2px);
}
.page-link.active {
    background: #ff9800;
    color: #fff !important;
    border-color: #ff9800;
    box-shadow: 0 4px 15px rgba(255,152,0,0.4);
}
.dots {
    color: #444;
    font-weight: 900;
    padding: 0 5px;
}
