        body {
            background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
            color: #fff;
            font-family: 'Poppins', sans-serif;
        }

        .container {
            max-width: 3000px;
            padding: 20px;
        }
        
        .section-title {
            font-size: 2rem;
            color: #fff;
            position: relative;
            padding-bottom: 3px;
            border-bottom: 4px solid #8a2be2;
            display: inline-block;
            text-shadow: 0 0 10px rgba(138, 43, 226, 0.7);
            font-weight: 700;
        }
        
        .genre-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 10px;
            margin-top: 20px;
             max-height: 172px; 
            overflow-y: auto; 
            
        }

        .genre-container::-webkit-scrollbar {
            width: 6px;
        }

        .genre-container::-webkit-scrollbar-track {
            background: #1a1a1a;
            border-radius: 3px;
        }

        .genre-container::-webkit-scrollbar-thumb {
            background: #8a2be2;
            border-radius: 3px;
        }

        .genre-container::-webkit-scrollbar-thumb:hover {
            background: #4b0082;
        }
        
        .genre-tag {
            background: #1a1a1a;
            border: 1px solid #333;
            color: #ddd;
            padding: 12px 10px;
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
            position: relative;
            overflow: hidden;
            user-select: none;
        }
        
        .genre-tag:hover {
            box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
            border-color: #8a2be2;
        }
        
        .genre-tag.active {
            background: linear-gradient(135deg, #8a2be2, #4b0082);
            color: white;
            border-color: #8a2be2;
            box-shadow: 0 0 15px rgba(138, 43, 226, 0.6);
        }
        
        .genre-tag::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), transparent);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 0;
        }
        
        .genre-tag:hover::before {
            opacity: 1;
        }
        
        .genre-tag span {
            position: relative;
            z-index: 1;
        }
        
        .filter-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 20px 0;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .comic-grid {
            display: grid;
            gap: 20px;
            padding: 20px 0;
        }
        
        .comic-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        
        @media (min-width: 768px) {
            .comic-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }
        
        @media (min-width: 992px) {
            .comic-grid {
                grid-template-columns: repeat(6, 1fr);
            }
        }
        
        .comic-card {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            background: #1a1a1a;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        }
        
        .comic-card:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 15px 30px rgba(138, 43, 226, 0.4);
            z-index: 10;
        }
        
        .comic-card img {
            width: 100%;
            height: 320px;
            object-fit: cover;
            display: block;
        }
        
        .comic-card h3 {
            margin: 0;
            padding-top: 8px;
            font-size: medium;
            background: #000;
            color: #e9e9e9;
            text-decoration: none !important;
            font-weight: 700;
            min-height: 60px; 
            max-height: 4em; 
            line-height: 1.6em;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align:center;
            padding-left: 6px;
            padding-right: 6px;
        }
        
        .comic-image {
            position: relative;
            display: block;
            width: 100%;
        }
        
        .comic-image::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
            z-index: 1;
        }
        
        .comic-card:hover .comic-image::after {
            opacity: 1;
        }
        
        .comic-card:hover h3 {
            color: #fff !important;
        }
        
        .comic-card a {
            text-decoration: none !important;
            color: inherit;
            display: block;
            height: 100%;
        }
        
        @media (max-width: 768px) {
            .slide-item {
                flex: 0 0 95%; 
                min-width: 95%;
            }

            .comic-card h3 {
                font-weight: 700;
                min-height: 30px; 
                max-height: 4em; 
                line-height: 1.6em;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                margin-bottom: 10px;
                padding-left: 6px;
                padding-right: 6px;
            }
        }

        .read-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 32px;
            color: #ce50ff;
            opacity: 0;
            transition: all 0.3s ease;
            pointer-events: none;
            z-index: 2;
        }
        
        .comic-card:hover .read-icon {
            opacity: 1;
            font-size: 36px;
        }
        
        .no-results {
            grid-column: 1 / -1;
            text-align: center;
            padding: 40px;
            font-size: 1.2rem;
            color: #aaa;
        }
        
        .flag-icon {
            all: unset; 
            display: inline-block !important;
            width: 30px !important;
            height: auto !important;
            position: absolute !important;
            top: 10px !important;
            right: 8px !important;
            max-width: none !important;
            border-radius: 3px !important;
            z-index: 999 !important;
        }
        
        .loading-spinner {
            display: none;
            border: 4px solid rgba(138, 43, 226, 0.3);
            border-top: 4px solid #8a2be2;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 20px auto;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .comic-card {
            animation: fadeInUp 0.5s ease-out forwards;
            opacity: 0;
        }
        
        .comic-card:nth-child(1) { animation-delay: 0.1s; }
        .comic-card:nth-child(2) { animation-delay: 0.2s; }
        .comic-card:nth-child(3) { animation-delay: 0.3s; }
        .comic-card:nth-child(4) { animation-delay: 0.4s; }
        .comic-card:nth-child(5) { animation-delay: 0.5s; }
        .comic-card:nth-child(6) { animation-delay: 0.6s; }
        .comic-card:nth-child(7) { animation-delay: 0.7s; }
        .comic-card:nth-child(8) { animation-delay: 0.8s; }
        .comic-card:nth-child(9) { animation-delay: 0.9s; }
        .comic-card:nth-child(10) { animation-delay: 1.0s; }
        .comic-card:nth-child(11) { animation-delay: 1.1s; }
        .comic-card:nth-child(12) { animation-delay: 1.2s; }
        .comic-card:nth-child(13) { animation-delay: 1.3s; }
        .comic-card:nth-child(14) { animation-delay: 1.4s; }
        .comic-card:nth-child(15) { animation-delay: 1.5s; }
        .comic-card:nth-child(16) { animation-delay: 1.6s; }
        .comic-card:nth-child(17) { animation-delay: 1.7s; }
        .comic-card:nth-child(18) { animation-delay: 1.8s; }
        .comic-card:nth-child(19) { animation-delay: 1.9s; }
        .comic-card:nth-child(20) { animation-delay: 2.0s; }
        .comic-card:nth-child(21) { animation-delay: 2.1s; }
        .comic-card:nth-child(22) { animation-delay: 2.2s; }
        .comic-card:nth-child(23) { animation-delay: 2.3s; }
        .comic-card:nth-child(24) { animation-delay: 2.4s; }
        .comic-card:nth-child(25) { animation-delay: 2.5s; }
        .comic-card:nth-child(26) { animation-delay: 2.6s; }
        .comic-card:nth-child(27) { animation-delay: 2.7s; }
        .comic-card:nth-child(28) { animation-delay: 2.8s; }
        .comic-card:nth-child(29) { animation-delay: 2.9s; }
        .comic-card:nth-child(30) { animation-delay: 3.0s; }
        .comic-card:nth-child(31) { animation-delay: 3.1s; }
        .comic-card:nth-child(32) { animation-delay: 3.2s; }
        .comic-card:nth-child(33) { animation-delay: 3.3s; }
        .comic-card:nth-child(34) { animation-delay: 3.4s; }
        .comic-card:nth-child(35) { animation-delay: 3.5s; }
        .comic-card:nth-child(36) { animation-delay: 3.6s; }
		
        .ad-desktop, .ad-mobile {
            display: none;
        }

        @media (min-width: 769px) {
            .ad-desktop {
                display: flex;
                flex-wrap: wrap;
                gap: 10px;
                justify-content: center;
            }
            .ad-desktop div {
                flex: 0 0 auto;
            }
        }

        @media (max-width: 768px) {
            .ad-mobile {
                display: block;
            }
            .ad-mobile div {
                margin-bottom: 10px;
            }
        }
        
        .filter-form {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 20px;
            width: 100%;
            background: #1a1a1a;
            padding: 15px;
            border-radius: 8px;
            border: 1px solid #333;
        }
        
        .filter-group {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-width: 150px;
        }
        
        .filter-group label {
            margin-bottom: 5px;
            color: #ddd;
            font-size: 0.9rem;
        }
        
        .filter-select {
            padding: 10px;
            border-radius: 5px;
            border: 1px solid #8a2be2;
            background: #0a0a0a;
            color: white;
            font-size: 0.9rem;
        }
        
        .filter-button {
            padding: 10px 20px;
            border-radius: 5px;
            background: linear-gradient(135deg, #8a2be2, #4b0082);
            color: white;
            border: none;
            cursor: pointer;
            align-self: flex-end;
            margin-top: auto;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }
        
        .filter-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
        }
        
        @media (max-width: 768px) {
            .filter-form {
                flex-direction: column;
                align-items: center;
            }
            
            .filter-group {
                width: 100%;
            }
            
            .filter-button {
                width: 100%;
                margin-top: 10px;
            }
        }

        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 20px;
            padding-bottom: 20px;
        }
        
        .page-item {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #ce50ff;
            padding: 8px 16px;
            text-decoration: none;
            border: 1px solid #8a2be2;
            margin: 0 4px;
            width: 45px;
            height: 45px;
            border-radius: 5px;
            transition: all 0.3s ease;
        }
        
        .pagination a:hover {
            background: linear-gradient(to right, #8a2be2, #4b0082);
            color: white;
        }
        
        .pagination a.active {
            background: linear-gradient(to right, #8a2be2, #4b0082);
            color: white;
            font-weight: bold;
        }
        
        .page-text {
            font-weight: 600;
            font-size: 17px;
        }

        .page-item.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .page-text.active {
            font-weight: 700;
            color: white;
        }

        @media (max-width: 480px) {
            .page-item {
                width: 40px;
                height: 40px;
            }
            
            .page-text {
                font-weight: 600;
                font-size: 15px;
            }
            
            .genre-container {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
                gap: 12px;
                margin-top: 20px;
                max-height: 160px; 
                overflow-y: auto; 
            }

            .genre-tag {
                font-size: 0.7rem;
                padding: 12px 10px;
            }

            .section-title {
                font-size: 1.4rem;
            }
        }

        @media (max-width: 360px) {
            .page-item {
                width: 35px;
                height: 35px;
            }
            
            .page-text {
                font-weight: 600;
                font-size: 13px;
            }
        }