/* =====================================================
   Netflix-Style Movie Website CSS
   movies.techandclick.site
   ===================================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --netflix-red: #E50914;
    --netflix-dark: #141414;
    --netflix-gray: #2F2F2F;
    --netflix-light-gray: #B3B3B3;
    --text-color: #FFFFFF;
    --hover-bg: #3A3A3A;
}

body {
    font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--netflix-dark);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar with better styling */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 100%);
    padding: 15px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(229, 9, 20, 0.3);
}

.navbar.scrolled {
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(10px);
}

.navbar .logo {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--netflix-red);
    text-decoration: none;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

.navbar .logo i {
    font-size: 1.8rem;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-left: 50px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--netflix-red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--netflix-red);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--netflix-red);
}

.nav-links a.active::after {
    width: 100%;
}

/* Navbar Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown .dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-menu a::after {
    display: none !important; /* Remove underline animation in dropdown */
}

.dropdown-menu a:hover {
    background: rgba(229, 9, 20, 0.1);
    color: var(--netflix-red);
    padding-left: 25px;
}

.dropdown-menu a i {
    color: var(--netflix-red);
    font-size: 1rem;
    width: 20px;
}

.dropdown-menu a .count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--netflix-light-gray);
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Custom Scrollbar for Dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--netflix-red);
    border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #ff0a16;
}

/* Search Box */
.navbar .search-box {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--netflix-light-gray);
    border-radius: 4px;
    padding: 8px 15px;
}

.navbar .search-box input {
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 0 10px;
    font-size: 14px;
    width: 250px;
    outline: none;
}

.navbar .search-box button {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 16px;
}

/* Hero Section - Enhanced */
.hero {
    position: relative;
    height: auto;
    min-height: 280px;
    display: flex;
    align-items: center;
    padding: 30px 4%;
    margin-top: 70px;
    background: linear-gradient(to right, rgba(0,0,0,0.95) 40%, rgba(0,0,0,0.3) 100%),
                var(--netflix-dark);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, var(--netflix-dark) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero-content .meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--netflix-light-gray);
    align-items: center;
    flex-wrap: wrap;
}

.hero-content .meta .quality {
    background: var(--netflix-red);
    padding: 5px 12px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(229, 9, 20, 0.4);
}

.hero-content .meta .year,
.hero-content .meta .size {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-content .description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    line-height: 1.7;
    color: var(--netflix-light-gray);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.hero-content .buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--netflix-red);
    color: white;
}

.btn-primary:hover {
    background: #B20710;
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(109, 109, 110, 0.7);
    color: white;
}

.btn-secondary:hover {
    background: rgba(109, 109, 110, 0.9);
}

/* Movie Sections */
.movie-section {
    padding: 40px 4%;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Movie Card Improvements */
.movie-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--netflix-gray);
}

.movie-card:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4);
    z-index: 10;
}

.movie-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.movie-card img:hover {
    opacity: 0.8;
}

/* Image loading placeholder */
.movie-card img[src=""],
.movie-card img:not([src]),
.movie-card img[src="#"] {
    background: linear-gradient(135deg, #2F2F2F 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.movie-card img[src=""]:before,
.movie-card img:not([src]):before,
.movie-card img[src="#"]:before {
    content: '🎬';
    font-size: 4rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Image error handling */
.movie-card .img-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.movie-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    padding: 20px 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .overlay {
    opacity: 1;
}

.movie-card .title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card .meta {
    font-size: 0.85rem;
    color: var(--netflix-light-gray);
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.movie-card .quality-badge {
    background: var(--netflix-red);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Single Movie Page */
.movie-detail {
    padding: 120px 4% 40px;
}

.movie-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.movie-poster-large {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.movie-poster-large img {
    width: 100%;
    height: auto;
    display: block;
}

.movie-info h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.movie-info .meta-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--netflix-light-gray);
    flex-wrap: wrap;
}

.movie-info .meta-info .quality {
    background: var(--netflix-red);
    padding: 5px 12px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
}

.movie-info .stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: var(--netflix-light-gray);
}

.movie-info .stats div {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Download Section */
.download-section {
    background: var(--netflix-gray);
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
}

.download-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.download-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
    border-color: rgba(255,255,255,0.3);
}

.download-btn.gdflix {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.download-btn.hubcloud {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.download-btn.filepress {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.download-btn.multicloud {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--netflix-red);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--netflix-dark) 0%, #000000 100%);
    padding: 60px 4% 30px;
    margin-top: 80px;
    border-top: 1px solid rgba(229, 9, 20, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--netflix-red);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--netflix-light-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--netflix-red);
}

.footer-section p {
    color: var(--netflix-light-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--netflix-light-gray);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.footer-bottom .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.footer-bottom .social-links a {
    color: var(--netflix-light-gray);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-bottom .social-links a:hover {
    color: var(--netflix-red);
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-links {
        display: none; /* Hide on tablets/mobile */
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 3%;
    }
    
    .navbar .logo {
        font-size: 1.5rem;
    }
    
    .navbar .search-box input {
        width: 120px;
        font-size: 12px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .description {
        font-size: 0.95rem;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .movie-card img {
        height: 220px;
    }
    
    .movie-header {
        grid-template-columns: 1fr;
    }
    
    .download-links {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

/* Categories Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.category-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
}

.category-card:hover {
    background: linear-gradient(145deg, rgba(229, 9, 20, 0.2), rgba(229, 9, 20, 0.1));
    border-color: rgba(229, 9, 20, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
}

.category-card i {
    font-size: 2.5rem;
    color: #E50914;
    margin-bottom: 15px;
    display: block;
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
}

.category-card p {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

.category-card .count {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    background: rgba(229, 9, 20, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #E50914;
    font-weight: 600;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1), rgba(0,0,0,0.3));
    padding: 80px 20px 60px;
    text-align: center;
    margin-top: 70px;
    border-bottom: 1px solid rgba(229, 9, 20, 0.2);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.page-header h1 i {
    color: #E50914;
    margin-right: 10px;
}

.page-header p {
    font-size: 1.1rem;
    color: #B3B3B3;
    max-width: 700px;
    margin: 0 auto;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 10px 18px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem;
}

.page-btn:hover {
    background: #E50914;
    border-color: #E50914;
    transform: translateY(-2px);
}

.page-btn.active {
    background: #E50914;
    border-color: #E50914;
    font-weight: 600;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--netflix-red);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.scroll-to-top:hover {
    background: #B20710;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
}

.scroll-to-top.show {
    display: flex;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #2F2F2F 25%, #3A3A3A 50%, #2F2F2F 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

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

.skeleton-card {
    width: 100%;
    height: 300px;
    border-radius: 8px;
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Pulse Animation for Featured Badge */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.featured-badge {
    animation: pulse 2s infinite;
}


/* Quality Selector Tabs */
.quality-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.quality-tab {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 2px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 140px;
}

.quality-tab i {
    font-size: 1.5rem;
    color: #E50914;
    margin-bottom: 5px;
}

.quality-tab .size {
    font-size: 0.85rem;
    color: #999;
    font-weight: 400;
}

.quality-tab:hover {
    background: linear-gradient(145deg, rgba(229, 9, 20, 0.2), rgba(229, 9, 20, 0.1));
    border-color: rgba(229, 9, 20, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.3);
}

.quality-tab.active {
    background: linear-gradient(145deg, #E50914, #b8070f);
    border-color: #E50914;
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
}

.quality-tab.active .size {
    color: #fff;
}

.quality-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.quality-content.active {
    display: block;
}

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

/* Responsive Quality Tabs */
@media (max-width: 768px) {
    .quality-tabs {
        gap: 10px;
    }
    
    .quality-tab {
        padding: 12px 20px;
        min-width: 110px;
        font-size: 0.9rem;
    }
    
    .quality-tab i {
        font-size: 1.2rem;
    }
}


/* Main Wrapper with Sidebar Layout */
.main-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.content-area {
    flex: 1;
    min-width: 0;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-section {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.05);
}

.sidebar-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    color: #E50914;
}

.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    text-decoration: none;
    color: #B3B3B3;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sidebar-category-item:hover {
    background: rgba(229, 9, 20, 0.1);
    border-color: rgba(229, 9, 20, 0.3);
    color: #fff;
    transform: translateX(5px);
}

.sidebar-category-item i {
    color: #E50914;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-category-item .cat-name {
    flex: 1;
    font-size: 0.95rem;
}

.sidebar-category-item .cat-count {
    background: rgba(229, 9, 20, 0.2);
    color: #E50914;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* =====================================================
   MOVIE GRID & CARD — Mobile-first, Professional
   ===================================================== */

.movie-grid {
    display: grid;
    /* Mobile: 3 columns | Tablet: 4 | Desktop: 5-6 */
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

@media (min-width: 480px)  { .movie-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (min-width: 768px)  { .movie-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (min-width: 1024px) { .movie-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
@media (min-width: 1400px) { .movie-grid { grid-template-columns: repeat(6, 1fr); gap: 18px; } }

/* Card */
.movie-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #1c1c1c;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.35);
    z-index: 2;
}

/* Poster wrapper — fixed aspect ratio 2:3 */
.movie-card-poster {
    position: relative;
    width: 100%;
    padding-top: 150%; /* 2:3 ratio */
    overflow: hidden;
    background: #111;
}

.movie-card-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.movie-card:hover .movie-card-poster img {
    transform: scale(1.06);
}

/* Quality badges on poster */
.quality-badges-group {
    position: absolute;
    top: 5px;
    left: 5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 3;
}

.quality-badge {
    display: inline-block;
    background: rgba(229, 9, 20, 0.92);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    backdrop-filter: blur(2px);
    line-height: 1.4;
}

/* Gradient overlay at bottom of poster */
.movie-card-poster::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    pointer-events: none;
}

/* Info below poster */
.movie-card-info {
    padding: 7px 6px 8px;
}

.movie-card-info .movie-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.movie-card-info .movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 0.68rem;
    color: #888;
}

.movie-card-info .movie-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Hide old overlay */
.movie-card .overlay { display: none; }

/* Mobile touch feedback */
@media (hover: none) {
    .movie-card:active {
        transform: scale(0.97);
        box-shadow: 0 4px 12px rgba(229,9,20,0.3);
    }
}

@media (max-width: 480px) {
    .movie-card-info .movie-title { font-size: 0.72rem; }
    .movie-card-info .movie-meta  { font-size: 0.62rem; }
    .quality-badge { font-size: 0.55rem; padding: 1px 4px; }
}

.movie-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Movie Card with Title Below Poster */
.movie-card {
    position: relative;
    border-radius: 8px;
    overflow: visible;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.movie-card-poster {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.movie-card-poster img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
}

.movie-card:hover .movie-card-poster img {
    transform: scale(1.05);
}

/* Movie Info Below Poster - Always Visible */
.movie-card-info {
    padding: 10px 5px;
}

.movie-card-info .movie-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-info .movie-meta {
    font-size: 0.75rem;
    color: #999;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.movie-card-info .movie-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.movie-card img {
    width: 100%;
    height: auto;
    display: block;
}

.movie-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.movie-card:hover img {
    transform: scale(1.1);
}

/* Quality badges positioned on top of poster - Always visible */
.quality-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(229, 9, 20, 0.95);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Multiple quality badges */
.quality-badges-group {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
}

.quality-badges-group .quality-badge {
    position: relative;
    top: 0;
    right: 0;
}

/* Movie overlay - Remove/Hide */
.movie-card .overlay {
    display: none;
}

/* Responsive Sidebar */
@media (max-width: 1024px) {
    .main-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: -1;
    }
    
    .sidebar-categories {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .sidebar-categories {
        grid-template-columns: 1fr;
    }
}

/* ── Category List View ── */
.movie-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.movie-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.movie-list-item:hover {
    background: rgba(229,9,20,0.1);
    border-color: rgba(229,9,20,0.4);
}

.movie-list-poster {
    flex-shrink: 0;
    width: 52px;
    height: 72px;
    border-radius: 4px;
    overflow: hidden;
    background: #1a1a1a;
}

.movie-list-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.movie-list-info {
    flex: 1;
    min-width: 0;
}

.movie-list-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.78rem;
    color: #999;
}

.movie-list-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.quality-badge-sm {
    background: #E50914;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.movie-list-arrow {
    flex-shrink: 0;
    color: #555;
    font-size: 0.85rem;
}

.movie-list-item:hover .movie-list-arrow {
    color: #E50914;
}

@media (max-width: 480px) {
    .movie-list-poster {
        width: 42px;
        height: 58px;
    }
    .movie-list-info h3 {
        font-size: 0.85rem;
    }
}

/* ── Mobile Navbar ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(15,15,15,0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        gap: 0;
        padding: 10px 0 20px;
        border-bottom: 1px solid #333;
        z-index: 999;
        margin-left: 0;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 12px 24px;
        font-size: 1rem;
        border-bottom: 1px solid #222;
    }
    .navbar .logo { font-size: 1.5rem; }
    .search-box input { width: 130px; }
}

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 30px 0 20px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: #1c1c1c;
    color: #ccc;
    border: 1px solid #333;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.page-btn:hover,
.page-btn.active {
    background: #E50914;
    color: #fff;
    border-color: #E50914;
}

@media (max-width: 480px) {
    .page-btn { padding: 7px 11px; font-size: 0.8rem; }
}

/* ── Hide sidebar (categories) on mobile ── */
@media (max-width: 768px) {
    .sidebar {
        display: none !important;
    }
    .main-wrapper {
        flex-direction: column;
    }
    .content-area {
        width: 100% !important;
    }
}

/* ── Fix excessive gaps ── */

/* Hero section bottom gap */
.hero-section,
.hero,
section.hero {
    margin-bottom: 0 !important;
    padding-bottom: 20px !important;
}

/* Main wrapper top gap */
.main-wrapper {
    margin-top: 10px !important;
    padding-top: 0 !important;
}

/* Movie section gaps */
.movie-section {
    padding: 15px 0 10px !important;
    margin-bottom: 10px !important;
}

/* Section title gap */
.section-title {
    margin-bottom: 12px !important;
    margin-top: 0 !important;
}

/* Remove extra padding on content area */
.content-area {
    padding-top: 0 !important;
}

/* Featured section gap */
section.movie-section + section.movie-section {
    margin-top: 0 !important;
    padding-top: 10px !important;
}

/* Mobile: tighter gaps */
@media (max-width: 768px) {
    .hero-section,
    .hero {
        padding-bottom: 10px !important;
        margin-bottom: 0 !important;
    }
    .main-wrapper {
        margin-top: 5px !important;
    }
    .movie-section {
        padding: 10px 0 5px !important;
    }
}

/* ── Hero size fix ── */
@media (max-width: 768px) {
    .hero {
        min-height: 180px !important;
        padding: 20px 4% !important;
        margin-top: 60px !important;
    }
    .hero h1 { font-size: 1.2rem !important; }
    .hero .description { display: none; }
}

/* =====================================================
   HERO SLIDER
   ===================================================== */

.hero-slider {
    position: relative;
    width: 100%;
    margin-top: 64px; /* navbar height */
    overflow: hidden;
    background: #0a0a0a;
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 320px;
    padding: 40px 5%;
    background-size: cover;
    background-position: center top;
    align-items: center;
    animation: slideIn 0.6s ease;
}

.hero-slide.active {
    display: flex;
}

@keyframes slideIn {
    from { opacity: 0; transform: scale(1.03); }
    to   { opacity: 1; transform: scale(1); }
}

.hero-slide .hero-content {
    max-width: 560px;
    z-index: 2;
}

.hero-slide h1 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.hero-slide .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.hero-slide .meta span {
    background: rgba(255,255,255,0.12);
    color: #eee;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.hero-slide .meta .quality {
    background: #E50914;
    color: #fff;
    font-weight: 700;
}

/* Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-arrow:hover { background: #E50914; }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.slider-dot.active {
    background: #E50914;
    transform: scale(1.3);
}

/* Mobile */
@media (max-width: 768px) {
    .hero-slider { margin-top: 58px; }
    .hero-slide  { min-height: 220px; padding: 24px 4%; }
    .hero-slide h1 { font-size: 1.1rem; }
    .slider-arrow { width: 30px; height: 30px; font-size: 0.8rem; }
}

/* =====================================================
   HOMEPAGE SECTIONS — Professional Layout
   ===================================================== */

/* Page container */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 16px 30px;
}

/* Section header with See All */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.see-all {
    color: #E50914;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.see-all:hover { opacity: 0.8; }

.movie-count-badge {
    background: rgba(229,9,20,0.15);
    color: #E50914;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(229,9,20,0.3);
}

/* ── Category Quick Links Bar ── */
.category-bar {
    background: #111;
    border-bottom: 1px solid #222;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }

.category-bar-inner {
    display: flex;
    gap: 8px;
    padding: 10px 0;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1c1c1c;
    color: #ccc;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #2a2a2a;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}
.cat-chip span {
    background: #E50914;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}
.cat-chip:hover {
    background: rgba(229,9,20,0.15);
    border-color: #E50914;
    color: #fff;
}

/* ── Quality Cards Section ── */
.quality-section {
    margin: 20px 0 10px;
}

.quality-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.quality-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}
.quality-card i { font-size: 1.6rem; }
.quality-card span { font-size: 0.9rem; color: #fff; }
.quality-card small { font-size: 0.7rem; color: rgba(255,255,255,0.6); font-weight: 400; }
.quality-card:hover { transform: translateY(-4px); }

.q4k   { background: linear-gradient(135deg,#1a1a2e,#16213e); border-color: #a855f7; color: #a855f7; }
.q4k:hover { box-shadow: 0 6px 20px rgba(168,85,247,0.3); }

.q1080 { background: linear-gradient(135deg,#1a1a2e,#0f3460); border-color: #3b82f6; color: #3b82f6; }
.q1080:hover { box-shadow: 0 6px 20px rgba(59,130,246,0.3); }

.q720  { background: linear-gradient(135deg,#1a1a2e,#064e3b); border-color: #10b981; color: #10b981; }
.q720:hover { box-shadow: 0 6px 20px rgba(16,185,129,0.3); }

.q480  { background: linear-gradient(135deg,#1a1a2e,#1c1917); border-color: #f59e0b; color: #f59e0b; }
.q480:hover { box-shadow: 0 6px 20px rgba(245,158,11,0.3); }

/* Mobile */
@media (max-width: 768px) {
    .page-container { padding: 8px 10px 20px; }
    .quality-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .quality-card { padding: 14px 8px; }
    .quality-card i { font-size: 1.3rem; }
    .quality-card span { font-size: 0.8rem; }
    .category-bar { padding: 0 10px; }
}

@media (max-width: 480px) {
    .quality-cards { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   HORIZONTAL SCROLL ROWS (Bengali, Hindi, Web Series)
   ===================================================== */

/* Scroll row container */
.movie-scroll-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.movie-scroll-row::-webkit-scrollbar { display: none; }

/* Each card in scroll row */
.movie-scroll-row .movie-card {
    flex: 0 0 140px;
    scroll-snap-align: start;
}

/* On desktop: use normal grid (no horizontal scroll) */
@media (min-width: 769px) {
    .movie-scroll-row {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        overflow-x: visible;
        scroll-snap-type: none;
    }
    .movie-scroll-row .movie-card {
        flex: unset;
    }
}

/* Scroll hint arrows on mobile */
.scroll-section-wrapper {
    position: relative;
}
.scroll-arrow-btn {
    display: none;
}
@media (min-width: 769px) {
    .scroll-arrow-btn {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        background: rgba(229,9,20,0.85);
        color: #fff;
        border: none;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 5;
        font-size: 0.85rem;
        transition: background 0.2s;
    }
    .scroll-arrow-btn:hover { background: #E50914; }
    .scroll-arrow-left  { left: -16px; }
    .scroll-arrow-right { right: -16px; }
}

/* Fix category bar chip size */
.cat-chip {
    font-size: 0.82rem !important;
    padding: 7px 14px !important;
}
