        * { font-family: 'Vazir', sans-serif; -webkit-tap-highlight-color: transparent; }
        html { scroll-behavior: smooth; }
        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: #B91C1C; border-radius: 3px; }
        
        .dark ::-webkit-scrollbar-thumb { background: #ef4444; }
        
        .carousel-track {
            display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch; scrollbar-width: none;
        }
        .carousel-track::-webkit-scrollbar { display: none; }
        .carousel-item { scroll-snap-align: start; flex-shrink: 0; }
        
        .hero-pattern {}
        
        @keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
        @keyframes slideInRight { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }
        @keyframes slideInBottom { from { opacity:0; transform:translateY(100%); } to { opacity:1; transform:translateY(0); } }
        @keyframes pulse-slow { 0%,100%{opacity:1;} 50%{opacity:0.7;} }
        @keyframes candleFlicker { 0%,100%{opacity:1;transform:scaleY(1);} 25%{opacity:0.8;transform:scaleY(1.05);} 50%{opacity:1;transform:scaleY(0.95);} 75%{opacity:0.9;transform:scaleY(1.02);} }
        @keyframes shimmer { 0%{background-position:-200% 0;} 100%{background-position:200% 0;} }
        @keyframes spin-slow { from{transform:rotate(0deg);} to{transform:rotate(360deg);} }
        @keyframes bounceIn { 0%{transform:scale(0.3);opacity:0;} 50%{transform:scale(1.05);} 70%{transform:scale(0.9);} 100%{transform:scale(1);opacity:1;} }
        @keyframes toastIn { from{transform:translateX(100%);opacity:0;} to{transform:translateX(0);opacity:1;} }
        @keyframes toastOut { from{transform:translateX(0);opacity:1;} to{transform:translateX(100%);opacity:0;} }
        @keyframes countUp { from{opacity:0;transform:translateY(10px);} to{opacity:1;transform:translateY(0);} }
        @keyframes ripple { to{transform:scale(4);opacity:0;} }
        @keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }
        
        .animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
        .animate-slide-in { animation: slideInRight 0.6s ease-out forwards; }
        .animate-slide-in-bottom { animation: slideInBottom 0.4s ease-out forwards; }
        .animate-pulse-slow { animation: pulse-slow 3s ease-in-out infinite; }
        .animate-candle { animation: candleFlicker 2s ease-in-out infinite; }
        .animate-bounce-in { animation: bounceIn 0.5s ease-out; }
        .animate-toast-in { animation: toastIn 0.4s ease-out forwards; }
        .animate-toast-out { animation: toastOut 0.3s ease-in forwards; }
        .animate-count { animation: countUp 0.8s ease-out forwards; }
        .animate-float { animation: float 3s ease-in-out infinite; }
        
        .skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 0.5rem;
        }
        .dark .skeleton {
            background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
            background-size: 200% 100%;
        }
        
        .ripple-effect {
            position: absolute; border-radius: 50%; background: rgba(255,255,255,0.3);
            animation: ripple 0.6s linear; pointer-events: none;
        }
        
        @media (max-width: 768px) {
            .mobile-bottom-nav {
                position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
                background: rgba(26,26,26,0.95); backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
            }
            body { padding-bottom: 70px; }
        }
        
        .img-zoom { overflow: hidden; }
        .img-zoom img { transition: transform 0.5s ease; }
        .img-zoom:hover img { transform: scale(1.05); }
        
        .card-hover { transition: all 0.3s ease; }
        .card-hover:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
        .dark .card-hover:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
        
        .glass { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
        .dark .glass { background: rgba(0,0,0,0.3); }
        
        .line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
        .line-clamp-3 { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
        
        .bottom-sheet { transition: transform 0.3s ease; }
        .bottom-sheet.hidden-sheet { transform: translateY(100%); }
        
        .touch-feedback:active { transform: scale(0.95); }
        
        .progress-ring { transition: stroke-dashoffset 0.35s; transform: rotate(-90deg); transform-origin: 50% 50%; }
        
        .gradient-text {
            background: linear-gradient(135deg, #B91C1C, #F5F0EB);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
        }
        .dark .gradient-text {
            background: linear-gradient(135deg, #ef4444, #f9a8d4);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
        }
        
        .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
        .faq-answer.open { max-height: 200px; }
        
        .chip { transition: all 0.2s ease; }
        .chip.active { background: #B91C1C; color: white; }
        .dark .chip.active { background: #ef4444; }
        
        .lightbox { transition: opacity 0.3s ease; }
        
        .dark body { background: #111827; color: #f3f4f6; }
        .dark .bg-white { background-color: #1f2937; }
        .dark .bg-gray-50 { background-color: #111827; }
        .dark .bg-gray-100 { background-color: #374151; }
        .dark .text-cinema-dark { color: #f3f4f6; }
        .dark .text-gray-500 { color: #9ca3af; }
        .dark .text-gray-400 { color: #6b7280; }
        .dark .text-gray-600 { color: #d1d5db; }
        .dark .border-gray-100 { border-color: #374151; }
        .dark .shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.3); }
       /* --- منوی دسکتاپ درختی --- */
        .desktop-nav .nav-menu { list-style: none; display: flex; gap: 1.25rem; align-items: center; margin: 0; padding: 0; }
        .desktop-nav .nav-menu > li { position: relative; }
        .desktop-nav .nav-menu a { text-decoration: none; color: #374151; font-weight: 500; transition: color 0.2s; display: flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
        .desktop-nav .nav-menu > li > a:hover, .desktop-nav .nav-menu > li.active > a { color: #b91c1c; }
        .desktop-nav .nav-menu > li:hover .dropdown{
          display:block;
        }
        .dropdown {
            position: absolute; top: 100%; right: 0;
            background: #fff; min-width: 220px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.12);
            border-radius: 12px; opacity: 0; visibility: hidden;
            transform: translateY(10px); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 50; list-style: none; padding: 0.5rem 0; border: 1px solid #f3f4f6;
        }
        .nav-menu > li:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
        .dropdown li { position: relative; }
        .dropdown a { padding: 0.6rem 1.2rem; color: #4b5563; font-size: 0.9rem; }
        .dropdown a:hover { background: #fef2f2; color: #b91c1c; }
        .dropdown .dropdown { right: auto; left: 100%; top: -0.5rem; }
        .dropdown li:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
        /* --- منوی موبایل --- */
        .mobile-overlay {
            position: fixed; inset: 0; background: rgba(0,0,0,0.5);
            backdrop-filter: blur(3px); z-index: 40; opacity: 0; visibility: hidden;
            transition: all 0.3s ease;
        }
        .mobile-overlay.active { opacity: 1; visibility: visible; }
        
        .mobile-menu {
            position: fixed; top: 0; right: -300px; width: 280px; height: 100%;
            background: #fff; z-index: 45; transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            overflow-y: auto; padding: 10px; box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        }
        .mobile-menu.active { right: 0; }
        .mobile-menu ul { list-style: none; padding: 0; margin: 0; }
        .mobile-menu li { border-bottom: 1px solid #f3f4f6; }
        .mobile-menu a { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; color: #374151; text-decoration: none; font-weight: 500; }
        .mobile-menu a:hover { background: #fef2f2; color: #b91c1c; }
        .mobile-menu .sub-menu { background: #f9fafb; display: none; padding-right: 1rem; }
        .mobile-menu .sub-menu.open { display: block; }
        .mobile-menu .sub-menu a { font-size: 0.9rem; padding: 0.8rem 1.5rem; color: #4b5563; }
        .mobile-menu .arrow { transition: transform 0.3s; font-size: 0.8rem; color: #9ca3af; }
        .mobile-menu .arrow.rotate { transform: rotate(180deg); }
        .mobile-close { position: absolute; top: 15px; left: 15px; width: 36px; height: 36px; background: #f3f4f6; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #374151; cursor: pointer; border: none; }

        /* ریسپانسیو */
        @media (max-width: 1024px) {
            .desktop-nav { display: none !important; }
            .mobile-toggle { display: block !important; }
        }
        @media (min-width: 1025px) {
            .mobile-overlay, .mobile-menu { display: none !important; }
        }

        /* --- اسلایدر --- */
        .hero-slider .owl-nav button {
            position: absolute; top: 50%; transform: translateY(-50%);
            width: 44px; height: 44px; background: rgba(255,255,255,0.25) !important;
            border-radius: 50% !important; color: #fff !important; font-size: 1rem !important;
            transition: all 0.3s; backdrop-filter: blur(4px); border: none;
        }
        .hero-slider .owl-nav button:hover { background: #b91c1c !important; }
        .hero-slider .owl-nav .owl-prev { right: 15px; }
        .hero-slider .owl-nav .owl-next { left: 15px; }
        .hero-slider .owl-dots { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
        .hero-slider .owl-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5) !important; transition: all 0.3s; border: none; }
        .hero-slider .owl-dot.active { background: #fff !important; width: 28px; border-radius: 5px; }
        #newsCarousel .owl-next{
            position:absolute;
            left:-15px;
            top:48%;
        }
        #newsCarousel .owl-prev{
            position:absolute;
            right:-15px;
            top:48%;
        }
/* ============================================
   استایل‌دهی نتایج جستجو - خانه سینمای ایران
   سازگار با ساختار com-finder جوملا
   ============================================ */

/* ---------- فرم جستجو ---------- */
.com-finder__form {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(185, 28, 28, 0.08);
    margin-bottom: 30px;
    border: 1px solid #f0e6e6;
    position: relative;
    overflow: hidden;
}

.com-finder__form::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #B91C1C 0%, #7F1D1D 100%);
}

.com-finder__form fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.com-finder__form legend {
    display: none;
}

.com-finder__form label {
    color: #1A1A1A;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    font-size: 0.95rem;
}

.com-finder__form .input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.com-finder__form input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 12px 18px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Vazir', sans-serif;
    background: #F5F0EB;
    color: #1A1A1A;
    transition: all 0.3s ease;
}

.com-finder__form input[type="text"]:focus {
    outline: none;
    border-color: #B91C1C;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.1);
}

.com-finder__form .btn-primary,
.com-finder__form button[type="submit"] {
    background: linear-gradient(135deg, #B91C1C 0%, #7F1D1D 100%);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-family: 'Vazir', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.com-finder__form .btn-primary:hover,
.com-finder__form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.3);
}

.com-finder__form .btn-secondary {
    background: #F5F0EB;
    color: #1A1A1A;
    border: 2px solid #E5E7EB;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Vazir', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.com-finder__form .btn-secondary:hover {
    background: #E5E7EB;
    border-color: #B91C1C;
    color: #B91C1C;
}

/* ---------- جستجوی پیشرفته ---------- */
.com-finder__advanced {
    margin-top: 20px;
    padding: 20px;
    background: #F5F0EB;
    border-radius: 12px;
    border: 1px dashed #B91C1C;
}

.com-finder__tips {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    margin-bottom: 20px;
}

.com-finder__tips p {
    color: #6B7280;
    font-size: 0.9rem;
    line-height: 2;
    margin-bottom: 8px;
}

.filter-branch {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.filter-branch label {
    font-size: 0.85rem;
    color: #1A1A1A;
    font-weight: 600;
    margin-bottom: 6px;
}

.filter-branch select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    background: #fff;
    font-family: 'Vazir', sans-serif;
    font-size: 0.9rem;
    color: #1A1A1A;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-branch select:focus {
    outline: none;
    border-color: #B91C1C;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

/* ---------- اطلاعات جستجو ---------- */
.com-finder__explained {
    background: linear-gradient(135deg, #F5F0EB 0%, #fff 100%);
    padding: 18px 24px;
    border-radius: 14px;
    margin-bottom: 25px;
    border-right: 4px solid #B91C1C;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.com-finder__explained p {
    margin: 0;
    color: #1A1A1A;
    font-size: 0.95rem;
    line-height: 1.9;
}

.com-finder__explained .query-required {
    color: #B91C1C;
    font-weight: 700;
}

.com-finder__explained .term {
    background: linear-gradient(120deg, #fef3c7 0%, #fde68a 100%);
    padding: 2px 10px;
    border-radius: 6px;
    color: #7F1D1D;
    font-weight: 700;
}

.com-finder__explained a {
    color: #B91C1C;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px dashed #B91C1C;
    transition: all 0.3s ease;
}

.com-finder__explained a:hover {
    color: #7F1D1D;
    border-bottom-style: solid;
}

/* ---------- لیست نتایج جستجو ---------- */
.com-finder__results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---------- هر نتیجه جستجو ---------- */
.result__item {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0e6e6;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: slideInUp 0.5s ease forwards;
    opacity: 0;
}

.result__item:nth-child(1) { animation-delay: 0.05s; }
.result__item:nth-child(2) { animation-delay: 0.1s; }
.result__item:nth-child(3) { animation-delay: 0.15s; }
.result__item:nth-child(4) { animation-delay: 0.2s; }
.result__item:nth-child(5) { animation-delay: 0.25s; }
.result__item:nth-child(6) { animation-delay: 0.3s; }
.result__item:nth-child(7) { animation-delay: 0.35s; }
.result__item:nth-child(8) { animation-delay: 0.4s; }
.result__item:nth-child(9) { animation-delay: 0.45s; }
.result__item:nth-child(10) { animation-delay: 0.5s; }

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

/* نوار قرمز سمت راست */
.result__item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #B91C1C 0%, #7F1D1D 100%);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.result__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(185, 28, 28, 0.15);
    border-color: #B91C1C;
}

.result__item:hover::before {
    transform: scaleY(1);
}

/* ---------- عنوان نتیجه ---------- */
.result__title {
    margin: 0 0 14px 0;
    padding: 0;
}

.result__title-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.result__title-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.9;
    display: block;
    transition: color 0.3s ease;
}

.result__item:hover .result__title-text {
    color: #B91C1C;
}

/* مخفی کردن URL غیرضروری */
.result__title-url {
    display: none;
}

/* ---------- توضیحات نتیجه ---------- */
.result__description {
    color: #4B5563;
    font-size: 0.95rem;
    line-height: 2;
    margin: 0 0 16px 0;
    text-align: justify;
    position: relative;
    padding-right: 0;
}

/* ---------- تاریخ ---------- */
.result__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #F5F0EB 0%, #fef3c7 100%);
    color: #7F1D1D;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 12px;
    font-style: normal;
}

.result__date::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    color: #B91C1C;
    font-size: 0.8rem;
}

/* ---------- متادیتا (نوع، نویسنده، مجموعه، زبان) ---------- */
.result__taxonomy {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px dashed #E5E7EB;
}

.result__taxonomy-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #6B7280;
    background: #F5F0EB;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.result__taxonomy-item:hover {
    background: #E5E7EB;
    color: #1A1A1A;
}

.result__taxonomy-item span {
    color: #B91C1C;
    font-weight: 700;
}

/* آیکون اختصاصی برای هر نوع متادیتا */
.result__taxonomy--Type::before {
    content: '\f15c';
    font-family: 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    color: #B91C1C;
}

.result__taxonomy--Author::before {
    content: '\f007';
    font-family: 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    color: #B91C1C;
}

.result__taxonomy--Category::before {
    content: '\f07b';
    font-family: 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    color: #B91C1C;
}

.result__taxonomy--Language::before {
    content: '\f0ac';
    font-family: 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    color: #B91C1C;
}

/* مخفی کردن "زبان: fa-IR" چون برای کاربران فارسی‌زبان بی‌معنی است */
.result__taxonomy--Language {
    display: none;
}

/* ---------- هایلایت کلمات جستجو شده ---------- */
.js-highlight mark,
.result__description mark,
.result__title mark,
.highlight {
    background: linear-gradient(120deg, #fef3c7 0%, #fde68a 100%);
    color: #7F1D1D;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* ---------- صفحه‌بندی ---------- */
.search-pagination {
    margin-top: 40px;
}

.com-finder__counter {
    text-align: center;
    color: #6B7280;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 12px;
    background: #F5F0EB;
    border-radius: 10px;
}

.com-finder__counter strong {
    color: #B91C1C;
    font-weight: 700;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    background: #fff;
    color: #1A1A1A;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
    font-family: 'Vazir', sans-serif;
}

.pagination .page-link:hover {
    background: #B91C1C;
    color: #fff;
    border-color: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(185, 28, 28, 0.25);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #B91C1C 0%, #7F1D1D 100%);
    color: #fff;
    border-color: #B91C1C;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
    cursor: default;
}

.pagination .page-item.disabled .page-link {
    background: #F5F0EB;
    color: #9CA3AF;
    border-color: #E5E7EB;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

/* ---------- حالت تاریک ---------- */
.dark .com-finder__form,
.dark .result__item {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dark .com-finder__form input[type="text"],
.dark .filter-branch select {
    background: #111827;
    border-color: #374151;
    color: #F5F0EB;
}

.dark .com-finder__form input[type="text"]:focus,
.dark .filter-branch select:focus {
    background: #1f2937;
    border-color: #B91C1C;
}

.dark .com-finder__explained {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #F5F0EB;
}

.dark .result__title-text {
    color: #F5F0EB;
}

.dark .result__item:hover .result__title-text {
    color: #fca5a5;
}

.dark .result__description {
    color: #D1D5DB;
}

.dark .result__date {
    background: #374151;
    color: #fca5a5;
}

.dark .result__taxonomy-item {
    background: #374151;
    color: #D1D5DB;
}

.dark .result__taxonomy-item span {
    color: #fca5a5;
}

.dark .com-finder__counter {
    background: #1f2937;
    color: #D1D5DB;
}

.dark .pagination .page-link {
    background: #1f2937;
    color: #F5F0EB;
    border-color: #374151;
}

.dark .pagination .page-item.disabled .page-link {
    background: #111827;
    color: #6B7280;
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 768px) {
    .com-finder__form {
        padding: 18px;
    }
    
    .com-finder__form .input-group {
        flex-direction: column;
    }
    
    .com-finder__form .btn-primary,
    .com-finder__form .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .result__item {
        padding: 20px 18px;
    }
    
    .result__title-text {
        font-size: 1.05rem;
    }
    
    .result__description {
        font-size: 0.9rem;
    }
    
    .result__taxonomy {
        gap: 6px;
    }
    
    .result__taxonomy-item {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .filter-branch {
        grid-template-columns: 1fr;
    }
    
    .pagination .page-link {
        min-width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
}

/* ---------- انیمیشن‌های تکمیلی ---------- */
.result__item {
    will-change: transform, opacity;
}

/* اسکرول‌بار سفارشی */
.com-finder__results-list::-webkit-scrollbar {
    width: 8px;
}

.com-finder__results-list::-webkit-scrollbar-track {
    background: #F5F0EB;
    border-radius: 10px;
}

.com-finder__results-list::-webkit-scrollbar-thumb {
    background: #B91C1C;
    border-radius: 10px;
}
/* ===== استایل منوی موبایل و زیرمنوها ===== */

/* آیکون فلش کنار لینک‌های دارای زیرمنو */
.nav-menu li.has-dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-menu li.has-dropdown > a .arrow-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: #B91C1C;
    margin-right: 10px;
}

.nav-menu li.has-dropdown > a .arrow-icon.rotate {
    transform: rotate(180deg);
}

/* استایل پایه زیرمنوها - در موبایل مخفی هستند */
#mobileMenu .nav-menu ul.dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(185, 28, 28, 0.05);
    border-radius: 10px;
    margin-top: 5px;
}

/* وقتی کلاس open اضافه شد - زیرمنو باز می‌شود */
#mobileMenu .nav-menu ul.dropdown.open {
    max-height: 500px;
    padding: 8px 0;
}

/* استایل آیتم‌های زیرمنو */
#mobileMenu .nav-menu ul.dropdown li {
    margin: 0;
}

#mobileMenu .nav-menu ul.dropdown li a {
    display: block;
    padding: 10px 20px 10px 35px;
    color: #1A1A1A;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
    position: relative;
}

#mobileMenu .nav-menu ul.dropdown li a::before {
    content: '◂';
    position: absolute;
    right: 15px;
    color: #B91C1C;
    font-size: 0.7rem;
}

#mobileMenu .nav-menu ul.dropdown li a:hover {
    background: rgba(185, 28, 28, 0.1);
    color: #B91C1C;
    border-right-color: #B91C1C;
    padding-right: 40px;
}

/* سطح دوم زیرمنوها (در صورت وجود) */
#mobileMenu .nav-menu ul.dropdown ul.dropdown {
    background: rgba(185, 28, 28, 0.08);
    margin-right: 15px;
}

#mobileMenu .nav-menu ul.dropdown ul.dropdown li a {
    padding-right: 50px;
    font-size: 0.85rem;
}

/* حالت فعال برای آیتم والد */
#mobileMenu .nav-menu li.has-dropdown.active > a {
    color: #B91C1C;
    background: rgba(185, 28, 28, 0.05);
    border-radius: 8px;
}

/* ===== استایل‌های Dark Mode برای منو ===== */
.dark #mobileMenu .nav-menu ul.dropdown {
    background: rgba(255, 255, 255, 0.05);
}

.dark #mobileMenu .nav-menu ul.dropdown li a {
    color: #F5F0EB;
}

.dark #mobileMenu .nav-menu ul.dropdown li a:hover {
    background: rgba(185, 28, 28, 0.2);
    color: #fca5a5;
}

.dark #mobileMenu .nav-menu li.has-dropdown.active > a {
    background: rgba(185, 28, 28, 0.15);
    color: #fca5a5;
}

/* ===== انیمیشن ورود منو ===== */
.mobile-menu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu .nav-menu li {
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.4s ease forwards;
}

.mobile-menu .nav-menu li:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu .nav-menu li:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu .nav-menu li:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu .nav-menu li:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu .nav-menu li:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu .nav-menu li:nth-child(6) { animation-delay: 0.3s; }
.mobile-menu .nav-menu li:nth-child(7) { animation-delay: 0.35s; }
.mobile-menu .nav-menu li:nth-child(8) { animation-delay: 0.4s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== ریسپانسیو ===== */
@media (max-width: 1024px) {
    #mobileMenu .nav-menu ul.dropdown {
        display: block !important; /* حذف display:none احتمالی */
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}
#mod-finder-searchword129{
  width: 100%;
  border-radius: 100px;
}
.com-finder__results-list::-webkit-scrollbar-thumb:hover {
    background: #7F1D1D;
}