
        @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
        
        :root {
            --primary:rgb(20, 207, 13);
            --primary-light:rgb(15, 206, 31);
            --primary-dark:rgb(31, 138, 22);
            --secondary: #00b894;
            --secondary-light: #55efc4;
            --danger: #d63031;
            --warning: #fdcb6e;
            --info: #0984e3;
            --dark:rgb(10, 88, 3);
            --darker:rgb(3, 8, 1);
            --light: #f5f6fa;
            --card-bg: rgba(255, 255, 255, 0.08);
            --text-primary: #f5f6fa;
            --text-secondary: #dfe6e9;
            --shadow: 0 10px 20px rgba(0,0,0,0.3);
            --shadow-hover: 0 15px 30px rgba(0,0,0,0.5);
            --bg-gradient: radial-gradient(circle at top right,rgb(0, 0, 0) 0%,rgb(0, 0, 0) 100%);
            --glass-bg: rgba(0, 0, 0, 0.97);
            --glass-border: rgba(0, 5, 0, 0.98);
            --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-medium: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }

        body {
            background: var(--bg-gradient);
            color: var(--text-primary);
            min-height: 100vh;
            overflow-x: hidden;
        }

        .dashboard-container {
            display: grid;
            grid-template-columns: 280px 1fr;
            min-height: 100vh;
            transition: var(--transition-medium);
        }

        /* Sidebar Styles */
        .sidebar {
            background: var(--darker);
            padding: 25px;
            border-right: 1px solid var(--glass-border);
            backdrop-filter: blur(10px);
            position: relative;
            z-index: 100;
            transform: translateX(0);
            transition: var(--transition-medium);
        }

        .sidebar-header {
            padding-bottom: 25px;
            border-bottom: 1px solid var(--glass-border);
            margin-bottom: 30px;
            animation: fadeIn 0.8s ease-out;
        }

        .sidebar-header h2 {
            color: var(--primary-light);
            font-size: 26px;
            margin-bottom: 5px;
            font-weight: 700;
            letter-spacing: 0.5px;
        }

        .sidebar-header p {
            color: var(--text-secondary);
            font-size: 14px;
            opacity: 0.8;
        }

        .sidebar-menu {
            list-style: none;
        }

        .sidebar-menu li {
            margin-bottom: 12px;
            animation: slideInLeft 0.5s ease-out forwards;
            opacity: 0;
            transform: translateX(-20px);
        }

        .sidebar-menu li:nth-child(1) { animation-delay: 0.2s; }
        .sidebar-menu li:nth-child(2) { animation-delay: 0.3s; }
        .sidebar-menu li:nth-child(3) { animation-delay: 0.4s; }
        .sidebar-menu li:nth-child(4) { animation-delay: 0.5s; }
        .sidebar-menu li:nth-child(5) { animation-delay: 0.6s; }
        .sidebar-menu li:nth-child(6) { animation-delay: 0.7s; }
        .sidebar-menu li:nth-child(7) { animation-delay: 0.8s; }
        .sidebar-menu li:nth-child(8) { animation-delay: 0.9s; }
        .sidebar-menu li:nth-child(9) { animation-delay: 1.0s; }
        .sidebar-menu li:nth-child(10) { animation-delay: 1.1s; }

        .sidebar-menu a {
            display: flex;
            align-items: center;
            padding: 14px 18px;
            color: var(--text-primary);
            text-decoration: none;
            border-radius: 8px;
            transition: var(--transition-fast);
            position: relative;
            overflow: hidden;
        }

        .sidebar-menu a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 4px;
            height: 100%;
            background: var(--primary);
            transform: scaleY(0);
            transform-origin: bottom;
            transition: var(--transition-fast);
        }

        .sidebar-menu a:hover, .sidebar-menu a.active {
            background: var(--glass-bg);
            color: white;
            transform: translateX(5px);
        }

        .sidebar-menu a:hover::before, .sidebar-menu a.active::before {
            transform: scaleY(1);
        }

        .sidebar-menu i {
            margin-right: 12px;
            font-size: 18px;
            width: 24px;
            text-align: center;
            color: var(--primary-light);
            transition: var(--transition-fast);
        }

        .sidebar-menu a:hover i, .sidebar-menu a.active i {
            color: white;
            transform: scale(1.1);
        }

        /* Main Content Styles */
        .main-content {
            padding: 30px;
            overflow-y: auto;
            animation: fadeIn 0.8s ease-out;
        }

        .dashboard-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 40px;
            animation: slideInDown 0.5s ease-out;
        }

        .dashboard-header h1 {
            font-size: 32px;
            color: var(--primary-light);
            font-weight: 700;
            position: relative;
            display: inline-block;
        }

        .dashboard-header h1::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 60px;
            height: 4px;
            background: var(--primary);
            border-radius: 2px;
            animation: expandWidth 0.8s ease-out forwards;
        }

        .user-info {
            display: flex;
            align-items: center;
            background: var(--glass-bg);
            padding: 8px 15px;
            border-radius: 50px;
            transition: var(--transition-fast);
            cursor: pointer;
        }

        .user-info:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
        }

        .user-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            margin-right: 12px;
            background-size: cover;
            background-position: center;
            transition: var(--transition-fast);
            border: 2px solid var(--primary-light);
        }

        .user-info:hover .user-avatar {
            transform: scale(1.1);
            box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3);
        }

        .user-name {
            font-weight: 600;
            margin-bottom: 2px;
        }

        .user-role {
            font-size: 12px;
            color: var(--text-secondary);
            opacity: 0.8;
        }

        /* Stats Cards */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-bottom: 40px;
        }

        .stat-card {
            background: var(--card-bg);
            padding: 25px;
            border-radius: 12px;
            box-shadow: var(--shadow);
            transition: var(--transition-medium);
            border: 1px solid var(--glass-border);
            backdrop-filter: blur(5px);
            position: relative;
            overflow: hidden;
            animation: fadeInUp 0.6s ease-out forwards;
            opacity: 0;
            transform: translateY(20px);
        }

        .stat-card:nth-child(1) { animation-delay: 0.2s; }
        .stat-card:nth-child(2) { animation-delay: 0.3s; }
        .stat-card:nth-child(3) { animation-delay: 0.4s; }
        .stat-card:nth-child(4) { animation-delay: 0.5s; }
        .stat-card:nth-child(5) { animation-delay: 0.6s; }

        .stat-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            transform: rotate(30deg);
            transition: var(--transition-slow);
            opacity: 0;
        }

        .stat-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: var(--shadow-hover);
        }

        .stat-card:hover::before {
            opacity: 1;
            animation: shine 3s infinite;
        }

        .stat-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .stat-icon {
            width: 60px;
            height: 60px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: white;
            transition: var(--transition-medium);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

        .stat-card:hover .stat-icon {
            transform: rotate(10deg) scale(1.1);
        }

        .stat-icon.movies {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        }

        .stat-icon.users {
            background: linear-gradient(135deg, #00b894, #008c6d);
        }

        .stat-icon.comments {
            background: linear-gradient(135deg, #0984e3, #0652a1);
        }

        .stat-icon.ads {
            background: linear-gradient(135deg, #fdcb6e, #e17055);
        }
        
        .stat-icon.categories {
            background: linear-gradient(135deg, #6c5ce7, #a29bfe);
        }

        .stat-value {
            font-size: 36px;
            font-weight: 700;
            margin-bottom: 5px;
            background: linear-gradient(to right, var(--text-primary), var(--primary-light));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            transition: var(--transition-fast);
        }

        .stat-card:hover .stat-value {
            background: linear-gradient(to right, white, var(--primary-light));
            -webkit-background-clip: text;
        }

        .stat-label {
            color: var(--text-secondary);
            font-size: 15px;
            opacity: 0.8;
            transition: var(--transition-fast);
        }

        .stat-card:hover .stat-label {
            opacity: 1;
            color: var(--text-primary);
        }

        /* Category Badges */
        .category-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 20px;
        }

        .category-badge {
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.1);
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 14px;
            transition: var(--transition-fast);
            backdrop-filter: blur(5px);
        }

        .category-badge:hover {
            background: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
        }

        .category-badge-count {
            background: var(--primary-dark);
            color: white;
            border-radius: 50%;
            width: 26px;
            height: 26px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 10px;
            font-size: 12px;
            font-weight: bold;
            transition: var(--transition-fast);
        }

        .category-badge:hover .category-badge-count {
            background: white;
            color: var(--primary);
            transform: scale(1.1);
        }

        /* Recent Activity Tables */
        .recent-activity {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            margin-bottom: 40px;
        }

        @media (max-width: 1200px) {
            .recent-activity {
                grid-template-columns: 1fr;
            }
        }

        .activity-card {
            background: var(--card-bg);
            border-radius: 12px;
            box-shadow: var(--shadow);
            border: 1px solid var(--glass-border);
            overflow: hidden;
            backdrop-filter: blur(5px);
            transform: translateY(0);
            transition: var(--transition-medium);
            animation: fadeInUp 0.6s ease-out forwards;
            opacity: 0;
        }

        .activity-card:nth-child(1) { animation-delay: 0.4s; }
        .activity-card:nth-child(2) { animation-delay: 0.5s; }

        .activity-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        .activity-card-header {
            padding: 18px 25px;
            background: rgba(0,0,0,0.2);
            border-bottom: 1px solid var(--glass-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .activity-card-header h3 {
            font-size: 20px;
            color: var(--primary-light);
            font-weight: 600;
            position: relative;
            display: inline-block;
        }

        .activity-card-header h3::after {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 0;
            width: 40px;
            height: 3px;
            background: var(--primary);
            border-radius: 2px;
        }

        .activity-card-header a {
            color: var(--text-secondary);
            font-size: 14px;
            text-decoration: none;
            transition: var(--transition-fast);
            display: flex;
            align-items: center;
        }

        .activity-card-header a i {
            margin-left: 5px;
            transition: var(--transition-fast);
        }

        .activity-card-header a:hover {
            color: var(--primary-light);
        }

        .activity-card-header a:hover i {
            transform: translateX(3px);
        }

        .activity-card-body {
            padding: 0;
        }

        .activity-table {
            width: 100%;
            border-collapse: collapse;
        }

        .activity-table th, .activity-table td {
            padding: 15px 20px;
            text-align: left;
            border-bottom: 1px solid var(--glass-border);
            transition: var(--transition-fast);
        }

        .activity-table th {
            background: rgba(0,0,0,0.1);
            color: var(--primary-light);
            font-weight: 500;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .activity-table td {
            color: var(--text-secondary);
            font-size: 14px;
        }

        .activity-table tr:last-child td {
            border-bottom: none;
        }

        .activity-table tr:hover td {
            background: rgba(255,255,255,0.05);
            color: var(--text-primary);
            transform: translateX(5px);
        }

        .badge {
            padding: 5px 10px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            display: inline-block;
            transition: var(--transition-fast);
        }

        .badge-primary {
            background: var(--primary);
            color: white;
        }

        .badge-secondary {
            background: var(--secondary);
            color: white;
        }

        .badge-dark {
            background: var(--darker);
            color: var(--text-primary);
        }

        /* Active Content Section */
        .active-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
        }

        @media (max-width: 1200px) {
            .active-content {
                grid-template-columns: 1fr;
            }
        }

        /* Responsive adjustments */
        @media (max-width: 992px) {
            .dashboard-container {
                grid-template-columns: 1fr;
            }

            .sidebar {
                position: fixed;
                top: 0;
                left: -280px;
                width: 280px;
                height: 100vh;
                z-index: 1000;
                transition: var(--transition-medium);
            }

            .sidebar.active {
                left: 0;
                box-shadow: 10px 0 30px rgba(0,0,0,0.5);
            }

            .main-content {
                padding: 20px;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Mobile menu toggle */
        .mobile-menu-toggle {
            display: none;
            background: transparent;
            border: none;
            color: var(--text-primary);
            font-size: 24px;
            cursor: pointer;
            margin-right: 15px;
            transition: var(--transition-fast);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .mobile-menu-toggle:hover {
            background: var(--glass-bg);
            transform: rotate(90deg);
        }

        @media (min-width: 993px) {
            .mobile-menu-toggle {
                display: none;
            }
        }

        /* Mobile sidebar */
        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.7);
            z-index: 999;
            display: none;
            backdrop-filter: blur(5px);
            opacity: 0;
            transition: var(--transition-medium);
        }

        .sidebar-overlay.active {
            display: block;
            opacity: 1;
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes fadeInUp {
            from { 
                opacity: 0;
                transform: translateY(20px);
            }
            to { 
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideInLeft {
            from { 
                opacity: 0;
                transform: translateX(-20px);
            }
            to { 
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideInDown {
            from { 
                opacity: 0;
                transform: translateY(-20px);
            }
            to { 
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes expandWidth {
            from { width: 0; }
            to { width: 60px; }
        }

        @keyframes shine {
            0% { transform: rotate(30deg) translate(-10%, -10%); }
            100% { transform: rotate(30deg) translate(10%, 10%); }
        }

        /* Scrollbar styling */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(0,0,0,0.1);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-light);
        }
    






        
        /* Base Styles */
        :root {
            --primary-bg: #0f0f0f;
            --secondary-bg: #1a1a1a;
            --card-bg: #212121;
            --header-bg: rgba(15, 15, 15, 0.95);
            --text-color: #ffffff;
            --text-muted: #aaaaaa;
            --accent-color: #1fb30bff;
            --accent-hover: #20b80cff;
            --border-color: #333333;
            --input-bg: #25312aff;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
            --success-color: #2ecc71;
            --error-color: #fa9907ff;
            --menu-bg: rgba(26, 26, 26, 0.95);
        }

        body.light-theme {
            --primary-bg: #f5f5f5;
            --secondary-bg: #ffffff;
            --card-bg: #ffffff;
            --header-bg: rgba(255, 255, 255, 0.95);
            --text-color: #333333;
            --text-muted: #666666;
            --border-color: #e0e0e0;
            --input-bg: #f9f9f9;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            --menu-bg: rgba(255, 255, 255, 0.95);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--primary-bg);
            color: var(--text-color);
            line-height: 1.6;
            transition: background-color 0.3s, color 0.3s;
            overflow-x: hidden;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        button, input, textarea {
            font-family: inherit;
        }

        /* Google AdSense Ad Containers */
        .adsense-ad {
            background-color: var(--card-bg);
            border-radius: 8px;
            overflow: hidden;
            margin: 1.5rem 0;
            text-align: center;
            min-height: 90px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--border-color);
            opacity: 0;
            transition: opacity 0.5s ease-in-out, margin 0.3s ease-in-out;
        }

        .adsense-ad.loaded {
            opacity: 1;
        }

        .adsense-ad.hidden {
            display: none;
            margin: 0;
            min-height: 0;
            height: 0;
            overflow: hidden;
        }

        .adsense-ad .ad-placeholder {
            padding: 2rem;
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        .adsense-ad .ad-placeholder i {
            font-size: 2rem;
            margin-bottom: 0.5rem;
            display: block;
        }

        /* Header Ad Container */
        .header-ad {
            width: 100%;
            max-width: 728px;
            margin: 0 auto;
            height: 90px;
        }

        /* Sidebar Ad Container */
        .sidebar-ad {
            width: 100%;
            max-width: 300px;
            margin: 1rem auto;
            height: 250px;
        }

        /* In-content Ad Container */
        .in-content-ad {
            width: 100%;
            max-width: 728px;
            margin: 2rem auto;
            height: 90px;
        }

        /* Footer Ad Container */
        .footer-ad {
            width: 100%;
            max-width: 970px;
            margin: 2rem auto;
            height: 90px;
        }

        /* Mobile Ad Container */
        .mobile-ad {
            width: 100%;
            max-width: 320px;
            margin: 1rem auto;
            height: 100px;
        }

        /* Responsive Ad Container */
        .responsive-ad {
            width: 100%;
            margin: 1.5rem 0;
            min-height: 250px;
        }

        @media (max-width: 768px) {
            .header-ad,
            .in-content-ad,
            .footer-ad {
                height: 100px;
                min-height: 100px;
            }
            
            .sidebar-ad {
                height: 250px;
            }
            
            /* Hide ads completely on mobile when not active */
            .adsense-ad.hidden {
                display: none;
            }
        }

        @media (max-width: 480px) {
            .adsense-ad:not(.hidden) {
                margin: 1rem 0;
            }
            
            .header-ad,
            .in-content-ad,
            .footer-ad {
                height: 50px;
                min-height: 50px;
            }
        }

        /* Header Styles */
        header {
            position: sticky;
            top: 0;
            z-index: 100;
            background-color: var(--header-bg);
            backdrop-filter: blur(10px);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: var(--shadow);
            border-bottom: 1px solid var(--border-color);
        }

        .logo-search-container {
            display: flex;
            align-items: center;
            gap: 2rem;
            flex: 1;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--accent-color);
        }

        .logo i {
            font-size: 2rem;
        }

        .site-name {
            animation: bounce 2s infinite, colorChange 8s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
            40% {transform: translateY(-10px);}
            60% {transform: translateY(-5px);}
        }

        @keyframes colorChange {
            0% {color: #4a90e2;}
            25% {color: #9b59b6;}
            50% {color: #e74c3c;}
            75% {color: #2ecc71;}
            100% {color: #4a90e2;}
        }

        .nav-container {
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .nav-links {
            display: flex;
            gap: 1rem;
            position: relative;
        }

        .nav-links a {
            position: relative;
            padding: 0.5rem 1rem;
            font-weight: 500;
            transition: color 0.3s;
            border-radius: 4px;
        }

        .nav-links a:hover {
            color: var(--accent-color);
            background-color: rgba(31, 179, 11, 0.1);
        }

        .nav-links a.active {
            color: var(--accent-color);
            background-color: rgba(31, 179, 11, 0.15);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background-color: var(--accent-color);
            transition: all 0.3s;
            transform: translateX(-50%);
        }

        .nav-links a:hover::after, .nav-links a.active::after {
            width: 80%;
        }

        /* Auth Buttons */
        .auth-buttons {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .login-button, .register-button {
            padding: 8px 16px;
            border-radius: 4px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
        }

        .login-button {
            background-color: var(--accent-color);
            color: white;
        }

        .login-button:hover {
            background-color: var(--accent-hover);
            transform: translateY(-2px);
        }

        .register-button {
            background-color: transparent;
            color: var(--text-color);
            border: 2px solid var(--accent-color);
        }

        .register-button:hover {
            background-color: var(--accent-color);
            color: white;
            transform: translateY(-2px);
        }

        /* Dropdown menu for categories */
        .dropdown {
            position: relative;
        }

        .dropdown-toggle {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
        }

        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background-color: var(--menu-bg);
            backdrop-filter: blur(10px);
            border-radius: 8px;
            box-shadow: var(--shadow);
            min-width: 200px;
            padding: 0.5rem 0;
            display: none;
            z-index: 100;
            border: 1px solid var(--border-color);
        }

        .dropdown-menu.active {
            display: block;
            animation: fadeIn 0.2s ease-out;
        }

        .dropdown-item {
            display: block;
            padding: 0.75rem 1.5rem;
            transition: background-color 0.3s;
        }

        .dropdown-item:hover {
            background-color: rgba(31, 179, 11, 0.1);
            color: var(--accent-color);
        }

        .dropdown-divider {
            height: 1px;
            background-color: var(--border-color);
            margin: 0.5rem 0;
        }

        .search-container {
            position: relative;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .search-box {
            display: flex;
            align-items: center;
            background-color: var(--input-bg);
            border-radius: 50px;
            padding: 0.5rem 1rem;
            transition: all 0.3s;
            border: 1px solid transparent;
        }

        .search-box:focus-within {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(31, 179, 11, 0.2);
        }

        #searchInput {
            background: none;
            border: none;
            color: var(--text-color);
            outline: none;
            width: 200px;
            padding: 0.5rem 0;
        }

        #searchButton {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            transition: color 0.3s;
        }

        #searchButton:hover {
            color: var(--accent-color);
        }

        .search-results {
            position: absolute;
            top: 100%;
            right: 0;
            width: 300px;
            max-height: 400px;
            overflow-y: auto;
            background-color: var(--card-bg);
            border-radius: 8px;
            box-shadow: var(--shadow);
            margin-top: 0.5rem;
            display: none;
            z-index: 10;
            border: 1px solid var(--border-color);
        }

        .search-result-item {
            display: flex;
            padding: 1rem;
            gap: 1rem;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .search-result-item:hover {
            background-color: var(--secondary-bg);
        }

        .search-result-item img {
            width: 50px;
            height: 70px;
            object-fit: cover;
            border-radius: 4px;
        }

        .search-result-info h4 {
            margin-bottom: 0.25rem;
            font-size: 0.9rem;
        }

        .search-result-info p {
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .no-results {
            padding: 2rem 1rem;
            text-align: center;
            color: var(--text-muted);
        }

        .no-results i {
            font-size: 2rem;
            margin-bottom: 1rem;
            display: block;
        }

        .notification-icon {
            position: relative;
            cursor: pointer;
            font-size: 1.25rem;
            color: var(--text-muted);
            transition: color 0.3s;
        }

        .notification-icon:hover {
            color: var(--accent-color);
        }

        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: var(--error-color);
            color: white;
            font-size: 0.7rem;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .notifications-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            width: 350px;
            max-height: 400px;
            overflow-y: auto;
            background-color: var(--card-bg);
            border-radius: 8px;
            box-shadow: var(--shadow);
            margin-top: 0.5rem;
            display: none;
            z-index: 10;
            border: 1px solid var(--border-color);
        }

        .notifications-dropdown.active {
            display: block;
            animation: fadeIn 0.2s ease-out;
        }

        .notification-header {
            padding: 1rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .notification-header h4 {
            font-size: 1rem;
        }

        .mark-all-read {
            background: none;
            border: none;
            color: var(--accent-color);
            cursor: pointer;
            font-size: 0.8rem;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            transition: background-color 0.3s;
        }

        .mark-all-read:hover {
            background-color: var(--secondary-bg);
        }

        .notification-item {
            padding: 1rem;
            border-bottom: 1px solid var(--border-color);
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .notification-item:hover {
            background-color: var(--secondary-bg);
        }

        .notification-item.unread {
            background-color: rgba(74, 144, 226, 0.1);
        }

        .notification-title {
            font-weight: bold;
            margin-bottom: 0.25rem;
            font-size: 0.9rem;
        }

        .notification-message {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }

        .notification-time {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .notification-empty {
            padding: 2rem 1rem;
            text-align: center;
            color: var(--text-muted);
        }

        .user-dropdown {
            position: relative;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--accent-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.3s;
        }

        .user-avatar:hover {
            transform: scale(1.05);
        }

        .dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            width: 250px;
            background-color: var(--card-bg);
            border-radius: 8px;
            box-shadow: var(--shadow);
            margin-top: 0.5rem;
            display: none;
            z-index: 10;
            border: 1px solid var(--border-color);
        }

        .dropdown-menu.active {
            display: block;
            animation: fadeIn 0.2s ease-out;
        }

        .dropdown-item {
            padding: 1rem;
            display: block;
            transition: background-color 0.3s;
        }

        .dropdown-item:not(.user-name):hover {
            background-color: var(--secondary-bg);
        }

        .user-name {
            font-weight: bold;
            margin-bottom: 0.25rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: default;
        }

        .admin-badge {
            background-color: var(--accent-color);
            color: white;
            font-size: 0.7rem;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
        }

        .admin-badge[data-role="owner"] {
            background-color: #f39c12;
        }

        .user-email {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
            cursor: default;
        }

        .user-login-count, .user-usage-time {
            font-size: 0.8rem;
            color: var(--text-muted);
            cursor: default;
        }

        .dropdown-divider {
            height: 1px;
            background-color: var(--border-color);
            margin: 0.5rem 0;
        }

        .dropdown-item i {
            width: 20px;
            margin-right: 0.5rem;
            color: var(--text-muted);
        }

        .theme-toggle {
            background: none;
            border: none;
            font-size: 1.25rem;
            color: var(--text-muted);
            cursor: pointer;
            transition: color 0.3s;
        }

        .theme-toggle:hover {
            color: var(--accent-color);
        }

        .btn-with-spinner {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .btn-with-spinner .spinner {
            display: none;
            width: 16px;
            height: 16px;
            border: 2px solid transparent;
            border-top: 2px solid currentColor;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-left: 8px;
        }

        .btn-with-spinner.loading .spinner {
            display: block;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Main Content Styles */
        main {
            padding: 2rem;
            max-width: 100%;
            margin: 0 auto;
        }

        section {
            margin-bottom: 3rem;
        }

        .section-title {
            font-size: 1.75rem;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background-color: var(--accent-color);
            border-radius: 3px;
        }

        .top10-title {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .top10-badge {
            background-color: #e74c3c;
            color: white;
            font-size: 0.8rem;
            padding: 0.25rem 0.75rem;
            border-radius: 50px;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        /* Top 10 Rank Animation */
        .top10-rank {
            position: absolute;
            top: 10px;
            right: 10px;
            background: linear-gradient(45deg, #ff6b35, #f7931e);
            color: white;
            font-weight: bold;
            font-size: 1.2rem;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2;
            box-shadow: 0 2px 10px rgba(0,0,0,0.3);
            animation: pulse-gold 2s infinite;
        }

        @keyframes pulse-gold {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7); }
            70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
            100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
        }

        /* Latest Movies Animation */
        .latest-section .movie-card {
            animation: slideInFromRight 0.6s ease-out;
        }

        @keyframes slideInFromRight {
            0% { transform: translateX(100px); opacity: 0; }
            100% { transform: translateX(0); opacity: 1; }
        }

        /* Horizontal Scrolling Sections */
        .movie-scroll-container {
            position: relative;
            margin-bottom: 2rem;
        }

        .movie-scroll-wrapper {
            overflow-x: auto;
            overflow-y: hidden;
            scrollbar-width: thin;
            scrollbar-color: var(--accent-color) var(--border-color);
            padding: 1rem 0;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
        }

        .movie-scroll-wrapper::-webkit-scrollbar {
            height: 8px;
        }

        .movie-scroll-wrapper::-webkit-scrollbar-track {
            background: var(--border-color);
            border-radius: 4px;
        }

        .movie-scroll-wrapper::-webkit-scrollbar-thumb {
            background: var(--accent-color);
            border-radius: 4px;
        }

        .movie-scroll-track {
            display: flex;
            gap: 1.5rem;
            padding: 0 0.5rem;
            min-width: max-content;
        }

        /* Movie Card Styles with Clickable Poster */
        .movie-card {
            flex: 0 0 200px;
            background-color: var(--card-bg);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s, box-shadow 0.3s;
            position: relative;
        }

        .movie-card:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        }

        .categories-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            font-size: 0.7rem;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            color: white;
            z-index: 2;
        }

        .badge-trending {
            background-color: #e74c3c;
        }

        .badge-latest {
            background-color: #2ecc71;
        }

        .badge-top10 {
            background-color: #f39c12;
        }

        .badge-action {
            background-color: #9b59b6;
        }

        .badge-drama {
            background-color: #3498db;
        }

        .badge-adventure {
            background-color: #1abc9c;
        }

        .badge-series {
            background-color: #e67e22;
        }

        .badge-thriller {
            background-color: #e74c3c;
        }

        .badge-horror {
            background-color: #8e44ad;
        }

        .badge-comedy {
            background-color: #f1c40f;
        }

        .badge-romance {
            background-color: #e91e63;
        }

        .badge-scifi {
            background-color: #00bcd4;
        }

        .badge-fantasy {
            background-color: #ff9800;
        }

        /* NEW: Bad for Translator Badge */
        .badge-translator {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: #4aff44ff;
            color: green;
            font-size: 0.6rem;
            padding: 0.2rem 0.4rem;
            border-radius: 4px;
            z-index: 2;
            font-weight: bold;
            text-transform: uppercase;
            animation: blink 2s infinite;
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        /* Movie Poster Container with Overlay */
        .movie-poster-container {
            position: relative;
            width: 100%;
            height: 300px;
            overflow: hidden;
            cursor: pointer;
        }

        .movie-poster {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s, filter 0.3s;
        }

        .movie-card:hover .movie-poster {
            transform: scale(1.05);
        }

        .poster-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .movie-poster-container:hover .poster-overlay {
            opacity: 1;
        }

        .movie-info {
            padding: 1rem;
        }

        .movie-title {
            font-size: 1rem;
            margin-bottom: 0.5rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .movie-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 1rem;
        }

        .download-btn {
            display: block;
            text-align: center;
            background-color: var(--accent-color);
            color: white;
            padding: 0.5rem;
            border-radius: 4px;
            font-weight: 500;
            transition: background-color 0.3s;
        }

        .download-btn:hover {
            background-color: var(--accent-hover);
        }

        .download-btn .spinner {
            border-top-color: white;
        }

        /* Loading More Indicator */
        .loading-more {
            display: none;
            justify-content: center;
            align-items: center;
            gap: 1rem;
            padding: 2rem;
            color: var(--text-muted);
        }

        .loading-more .spinner {
            width: 20px;
            height: 20px;
            border: 2px solid transparent;
            border-top: 2px solid var(--accent-color);
        }

        /* Scroll Buttons */
        .scroll-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--card-bg);
            border: 2px solid var(--border-color);
            color: var(--text-color);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 5;
            transition: all 0.3s;
            opacity: 0.7;
        }

        .scroll-btn:hover {
            opacity: 1;
            background-color: var(--accent-color);
            color: white;
        }

        .scroll-btn-left {
            left: 10px;
        }

        .scroll-btn-right {
            right: 10px;
        }

        .scroll-btn.hidden {
            display: none;
        }

        /* Advertisements and Announcements */
        .advertisements-grid, .announcements-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }

        .ad-card, .announcement-card {
            background-color: var(--card-bg);
            border-radius: 8px;
            padding: 1.5rem;
            box-shadow: var(--shadow);
        }

        .ad-image {
            width: 100%;
            height: 200px;
            background-color: var(--secondary-bg);
            border-radius: 4px;
            margin-bottom: 1rem;
            overflow: hidden;
        }

        .ad-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .no-image {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: var(--text-muted);
        }

        .ad-content h3, .announcement-card h3 {
            margin-bottom: 0.5rem;
            font-size: 1.1rem;
        }

        .ad-content p, .announcement-card p {
            color: var(--text-muted);
            margin-bottom: 1rem;
            font-size: 0.9rem;
        }

        .ad-meta, .announcement-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        /* About Section */
        .about-content {
            background-color: var(--card-bg);
            border-radius: 8px;
            padding: 2rem;
            box-shadow: var(--shadow);
        }

        .about-text h2 {
            margin-bottom: 1rem;
            font-size: 1.75rem;
        }

        .about-text p {
            margin-bottom: 1.5rem;
            line-height: 1.8;
        }

        .about-features {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .feature-card {
            text-align: center;
            padding: 1.5rem;
            background-color: var(--secondary-bg);
            border-radius: 8px;
        }

        .feature-icon {
            font-size: 2.5rem;
            color: var(--accent-color);
            margin-bottom: 1rem;
        }

        .feature-card h3 {
            margin-bottom: 0.5rem;
            font-size: 1.1rem;
        }

        .feature-card p {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 0;
        }

        /* Scroll to Top Button */
        .scroll-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: var(--accent-color);
            color: white;
            border: none;
            box-shadow: var(--shadow);
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
            z-index: 99;
        }

        .scroll-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .scroll-top:hover {
            transform: translateY(-5px);
        }

        /* Footer */
        footer {
            background-color: var(--secondary-bg);
            padding: 3rem 2rem;
            text-align: center;
            border-top: 1px solid var(--border-color);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .social-links a {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--card-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s, background-color 0.3s;
        }

        .social-links a:hover {
            transform: translateY(-5px);
            background-color: var(--accent-color);
            color: white;
        }

        footer p {
            margin-bottom: 0.5rem;
            color: var(--text-muted);
        }

        /* Loading Spinner */
        .loading-spinner {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--primary-bg);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            transition: opacity 0.5s;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            border-top: 5px solid var(--accent-color);
            animation: spin 1s linear infinite;
            margin-bottom: 1rem;
        }

        .loading-text {
            font-size: 1.2rem;
            margin-bottom: 1rem;
            color: var(--text-color);
        }

        .loading-progress {
            width: 200px;
            height: 4px;
            background-color: var(--secondary-bg);
            border-radius: 2px;
            overflow: hidden;
        }

        .loading-progress-bar {
            height: 100%;
            background-color: var(--accent-color);
            width: 0%;
            transition: width 0.3s;
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }

        /* Ripple effect for buttons */
        .ripple {
            position: absolute;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.7);
            transform: scale(0);
            animation: ripple 0.6s linear;
        }

        @keyframes ripple {
            to {
                transform: scale(2.5);
                opacity: 0;
            }
        }

        /* Auth Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background-color: var(--card-bg);
            margin: 5% auto;
            padding: 0;
            border-radius: 12px;
            width: 90%;
            max-width: 450px;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
            animation: modalFadeIn 0.3s;
            overflow: hidden;
            border: 1px solid var(--border-color);
        }

        @keyframes modalFadeIn {
            from {opacity: 0; transform: translateY(-50px);}
            to {opacity: 1; transform: translateY(0);}
        }

        .modal-header {
            padding: 20px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: var(--header-bg);
        }

        .modal-header h2 {
            margin: 0;
            color: var(--text-color);
            font-size: 1.5rem;
        }

        .close-modal {
            color: #aaa;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.2s;
        }

        .close-modal:hover {
            color: var(--text-color);
        }

        .modal-body {
            padding: 20px;
        }

        .auth-tabs {
            display: flex;
            margin-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
        }

        .tab-link {
            background: none;
            border: none;
            padding: 10px 20px;
            cursor: pointer;
            font-size: 1rem;
            color: var(--text-muted);
            transition: all 0.3s;
            position: relative;
        }

        .tab-link.active {
            color: var(--accent-color);
            font-weight: bold;
        }

        .tab-link.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: var(--accent-color);
            border-radius: 3px 3px 0 0;
        }

        .auth-form {
            display: none;
        }

        .auth-form.active {
            display: block;
            animation: fadeIn 0.3s;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
            color: var(--text-color);
            font-weight: 500;
        }

        .form-group input {
            width: 100%;
            padding: 12px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background-color: var(--input-bg);
            color: var(--text-color);
            font-size: 1rem;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        .form-group input:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
        }

        .btn-primary {
            width: 100%;
            padding: 12px;
            background-color: var(--accent-color);
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s;
            margin-top: 10px;
        }

        .btn-primary:hover {
            background-color: var(--accent-hover);
        }

        .form-footer {
            margin-top: 15px;
            text-align: center;
        }

        .forgot-password {
            color: var(--accent-color);
            text-decoration: none;
            font-size: 0.9rem;
        }

        .forgot-password:hover {
            text-decoration: underline;
        }

        .auth-message {
            margin-top: 15px;
            padding: 10px;
            border-radius: 6px;
            text-align: center;
            display: none;
        }

        .auth-message.success {
            background-color: rgba(46, 204, 113, 0.2);
            color: #27ae60;
            border: 1px solid #27ae60;
            display: block;
        }

        .auth-message.error {
            background-color: rgba(231, 76, 60, 0.2);
            color: #e74c3c;
            border: 1px solid #e74c3c;
            display: block;
        }

        /* Login button in header when not logged in */
        .login-button {
            background-color: var(--accent-color);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 500;
            transition: background-color 0.3s;
        }

        .login-button:hover {
            background-color: var(--accent-hover);
        }

        /* Responsive Design Enhancements */
        @media (max-width: 1200px) {
            .movie-card {
                flex: 0 0 180px;
            }
            
            .movie-poster-container {
                height: 250px;
            }
            
            .search-container {
                width: 180px;
            }
            
            #searchInput {
                width: 150px;
            }
        }

        @media (max-width: 992px) {
            header {
                padding: 1rem;
            }
            
            .logo-search-container {
                gap: 1rem;
            }
            
            .nav-container {
                gap: 1rem;
            }
            
            .nav-links {
                gap: 0.5rem;
            }
            
            .movie-card {
                flex: 0 0 160px;
            }
            
            .movie-poster-container {
                height: 220px;
            }
            
            .section-title {
                font-size: 1.5rem;
            }
            
            .search-container {
                width: 150px;
            }
            
            #searchInput {
                width: 120px;
            }
            
            .notifications-dropdown,
            .dropdown-menu {
                width: 300px;
            }
        }

        @media (max-width: 768px) {
            /* Mobile Navigation */
            .nav-links {
                display: none;
            }
            
            .mobile-menu-toggle {
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                width: 30px;
                height: 21px;
                background: none;
                border: none;
                cursor: pointer;
                padding: 0;
            }
            
            .mobile-menu-toggle span {
                display: block;
                height: 3px;
                width: 100%;
                background-color: var(--text-color);
                border-radius: 3px;
                transition: all 0.3s;
            }
            
            .mobile-menu-toggle.active span:nth-child(1) {
                transform: translateY(9px) rotate(45deg);
            }
            
            .mobile-menu-toggle.active span:nth-child(2) {
                opacity: 0;
            }
            
            .mobile-menu-toggle.active span:nth-child(3) {
                transform: translateY(-9px) rotate(-45deg);
            }
            
            .mobile-nav {
                position: fixed;
                top: 70px;
                left: 0;
                width: 100%;
                background-color: var(--header-bg);
                backdrop-filter: blur(10px);
                padding: 1rem;
                box-shadow: var(--shadow);
                transform: translateY(-100%);
                opacity: 0;
                visibility: hidden;
                transition: all 0.3s;
                z-index: 99;
            }
            
            .mobile-nav.active {
                transform: translateY(0);
                opacity: 1;
                visibility: visible;
            }
            
            .mobile-nav-links {
                display: flex;
                flex-direction: column;
                gap: 0.5rem;
            }
            
            .mobile-nav-links a {
                padding: 0.75rem 1rem;
                border-radius: 6px;
                transition: background-color 0.3s;
            }
            
            .mobile-nav-links a:hover,
            .mobile-nav-links a.active {
                background-color: rgba(31, 179, 11, 0.1);
                color: var(--accent-color);
            }
            
            .mobile-dropdown-toggle {
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: 100%;
            }
            
            .mobile-dropdown-menu {
                padding-left: 1rem;
                margin-top: 0.5rem;
                display: none;
            }
            
            .mobile-dropdown-menu.active {
                display: block;
            }
            
            /* Header adjustments */
            .logo {
                font-size: 1.25rem;
            }
            
            .logo i {
                font-size: 1.5rem;
            }
            
            .search-container {
                position: static;
            }
            
            .search-box {
                width: 100%;
            }
            
            #searchInput {
                width: 100%;
            }
            
            .search-results {
                width: 100%;
                left: 0;
                right: 0;
            }
            
            /* Main content adjustments */
            main {
                padding: 1rem;
            }
            
            .movie-card {
                flex: 0 0 140px;
            }
            
            .movie-poster-container {
                height: 190px;
            }
            
            .movie-info {
                padding: 0.75rem;
            }
            
            .movie-title {
                font-size: 0.9rem;
            }
            
            .movie-meta {
                font-size: 0.8rem;
            }
            
            .download-btn {
                font-size: 0.8rem;
                padding: 0.4rem;
            }
            
            .section-title {
                font-size: 1.25rem;
            }
            
            .top10-badge {
                font-size: 0.7rem;
                padding: 0.2rem 0.6rem;
            }
            
            .top10-rank {
                width: 25px;
                height: 25px;
                font-size: 0.9rem;
            }
            
            /* Auth buttons */
            .auth-buttons {
                gap: 0.5rem;
            }
            
            .login-button,
            .register-button {
                padding: 6px 12px;
                font-size: 0.9rem;
            }
            
            /* Modal adjustments */
            .modal-content {
                width: 95%;
                margin: 10% auto;
            }
            
            /* About section adjustments */
            .about-content {
                padding: 1.5rem;
            }
            
            .about-features {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .feature-card {
                padding: 1rem;
            }
            
            /* Footer adjustments */
            footer {
                padding: 2rem 1rem;
            }
            
            .social-links {
                flex-wrap: wrap;
                gap: 0.75rem;
            }
            
            .social-links a {
                width: 35px;
                height: 35px;
            }
            
            /* Advertisements and announcements */
            .advertisements-grid,
            .announcements-list {
                grid-template-columns: 1fr;
            }
            
            .ad-card,
            .announcement-card {
                padding: 1rem;
            }
            
            .ad-image {
                height: 150px;
            }
        }

        @media (max-width: 576px) {
            header {
                padding: 0.75rem;
            }
            
            .logo {
                font-size: 1.1rem;
            }
            
            .logo i {
                font-size: 1.25rem;
            }
            
            .movie-card {
                flex: 0 0 120px;
            }
            
            .movie-poster-container {
                height: 160px;
            }
            
            .movie-info {
                padding: 0.5rem;
            }
            
            .movie-title {
                font-size: 0.85rem;
            }
            
            .movie-meta {
                font-size: 0.75rem;
                flex-direction: column;
                gap: 0.25rem;
                margin-bottom: 0.75rem;
            }
            
            .download-btn {
                font-size: 0.75rem;
                padding: 0.35rem;
            }
            
            .section-title {
                font-size: 1.1rem;
                margin-bottom: 1rem;
            }
            
            .scroll-btn {
                width: 30px;
                height: 30px;
                font-size: 0.8rem;
            }
            
            .scroll-btn-left {
                left: 5px;
            }
            
            .scroll-btn-right {
                right: 5px;
            }
            
            .user-avatar {
                width: 35px;
                height: 35px;
                font-size: 0.9rem;
            }
            
            .notification-icon {
                font-size: 1.1rem;
            }
            
            .notification-badge {
                width: 16px;
                height: 16px;
                font-size: 0.65rem;
            }
            
            .notifications-dropdown,
            .dropdown-menu {
                width: 280px;
            }
            
            .dropdown-item {
                padding: 0.75rem;
            }
            
            .user-name {
                font-size: 0.9rem;
            }
            
            .user-email,
            .user-login-count,
            .user-usage-time {
                font-size: 0.75rem;
            }
            
            .admin-badge {
                font-size: 0.65rem;
                padding: 0.2rem 0.4rem;
            }
            
            .scroll-top {
                width: 40px;
                height: 40px;
                bottom: 1rem;
                right: 1rem;
            }
            
            .loading-spinner .spinner {
                width: 40px;
                height: 40px;
            }
            
            .loading-text {
                font-size: 1rem;
            }
            
            .loading-progress {
                width: 150px;
            }
            
            /* Auth modal adjustments */
            .modal-header {
                padding: 15px;
            }
            
            .modal-header h2 {
                font-size: 1.3rem;
            }
            
            .modal-body {
                padding: 15px;
            }
            
            .tab-link {
                padding: 8px 16px;
                font-size: 0.9rem;
            }
            
            .form-group input {
                padding: 10px;
            }
            
            .btn-primary {
                padding: 10px;
            }
        }

        @media (max-width: 400px) {
            .movie-card {
                flex: 0 0 110px;
            }
            
            .movie-poster-container {
                height: 150px;
            }
            
            .movie-title {
                font-size: 0.8rem;
            }
            
            .notifications-dropdown,
            .dropdown-menu {
                width: 250px;
            }
            
            .logo .site-name {
                display: none;
            }
            
            .auth-buttons {
                flex-direction: column;
                gap: 0.25rem;
            }
            
            .login-button,
            .register-button {
                padding: 4px 8px;
                font-size: 0.8rem;
            }
        }

        /* Touch device optimizations */
        @media (hover: none) and (pointer: coarse) {
            .movie-card:hover {
                transform: none;
            }
            
            .scroll-btn {
                opacity: 1;
            }
            
            .nav-links a:hover::after,
            .nav-links a.active::after {
                width: 0;
            }
            
            .dropdown-item:hover {
                background-color: transparent;
            }
            
            .search-result-item:hover {
                background-color: transparent;
            }
            
            .notification-item:hover {
                background-color: transparent;
            }
        }

        /* High DPI screen optimizations */
        @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
            .movie-poster {
                image-rendering: -webkit-optimize-contrast;
                image-rendering: crisp-edges;
            }
        }

        /* Print styles */
        @media print {
            header,
            footer,
            .scroll-top,
            .scroll-btn,
            .download-btn,
            .auth-buttons,
            .notification-icon,
            .user-dropdown {
                display: none !important;
            }
            
            body {
                background: white !important;
                color: black !important;
            }
            
            .movie-card {
                break-inside: avoid;
                box-shadow: none !important;
                border: 1px solid #ddd;
            }
        }

        /* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection styling */
::selection {
    background: var(--primary);
    color: var(--dark);
}

/* Focus outline for accessibility */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}