.hide-content { visibility: hidden; } /* استایل منوی اصلی */ .navbar { transition: all 0.3s ease; } .nav-link { color: oklch(var(--bc)) !important; transition: all 0.3s ease; position: relative; overflow: hidden; } .nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background-color: oklch(var(--p)); transform: scaleX(0); transition: transform 0.3s ease; } .nav-link:hover::after { transform: scaleX(1); } .menu li > details > summary::after { color: oklch(var(--bc)); } /* استایل دراپ‌داون */ .menu li > details > ul { background: oklch(var(--b1)); border: 1px solid oklch(var(--bc) / 0.2); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); z-index: 20; display: flex; flex-direction: column; } .menu li > details > ul a { color: oklch(var(--bc)) !important; transition: all 0.3s ease; } .menu li > details > ul a:hover { background: oklch(var(--b2)); transform: translateX(5px); } /* Card Styles */ .card { border-radius: 15px; overflow: hidden; box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.4); transition: transform 0.2s, box-shadow 0.3s ease-in-out; } .card:hover { transform: scale(1.05); box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5); } .summary-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: oklch(var(--b2) / 0.8); color: oklch(var(--bc)); opacity: 0; display: flex; justify-content: center; align-items: center; padding: 10px; text-align: center; font-size: 0.8rem; transition: opacity 0.3s ease; } .card:hover .summary-overlay { opacity: 1; } .imdb-rating { display: flex; align-items: center; margin-top: 5px; } .imdb-icon { width: 20px; height: 20px; margin-right: 5px; } /* Box Rating Styles */ .box-rating { display: flex; align-items: center; } .box-icon { width: 20px; height: 20px; margin-right: 5px; } .pagination { display: flex; justify-content: center; /* مرکز کردن محتوا */ align-items: center; /* عمودی مرکز کردن */ margin: 20px 0; /* فاصله عمودی */ } .pagination button { margin: 0 5px; /* فاصله بین دکمه‌ها */ } .page-number { margin: 0 2px; /* فاصله بین شماره‌های صفحه */ cursor: pointer; } /* استایل منوی موبایل */ .mobile-menu { position: fixed; top: 60px; left: -100%; width: 100%; height: calc(100% - 60px); background: oklch(var(--b1)); display: flex; flex-direction: column; justify-content: center; align-items: center; transition: left 0.5s ease-in-out; z-index: 1000; overflow-y: auto; } .mobile-menu.active { left: 0; } .mobile-menu-link { color: oklch(var(--bc)); font-size: 1.5rem; margin: 0.5rem 0; transition: all 0.3s ease; } .mobile-menu-link:hover { color: oklch(var(--p)); transform: scale(1.1); } .mobile-dropdown-content { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out; } .mobile-dropdown[open] .mobile-dropdown-content { max-height: 300px; } .mobile-dropdown-link { display: block; padding: 0.5rem 1rem; color: oklch(var(--bc)); transition: all 0.3s ease; } .mobile-dropdown-link:hover { color: oklch(var(--p)); background: oklch(var(--b2)); } .mobile-dropdown > summary { list-style: none; display: flex; align-items: center; } .mobile-dropdown > summary::after { content: '▼'; margin-left: 0.5rem; transition: transform 0.3s ease; } .mobile-dropdown[open] > summary::after { transform: rotate(180deg); } @media (max-width: 1023px) { .navbar .container { padding-left: 0; } .menu-toggle { margin-right: auto; margin-left: 0; } } /* استایل دکمه همبرگر */ .hamburger { width: 30px; height: 25px; position: relative; margin: 0 auto; cursor: pointer; } .hamburger span { display: block; position: absolute; height: 3px; width: 100%; background: oklch(var(--p)); border-radius: 9px; opacity: 1; left: 0; transform: rotate(0deg); transition: .25s ease-in-out; } .hamburger span:nth-child(1) { top: 0px; } .hamburger span:nth-child(2), .hamburger span:nth-child(3) { top: 10px; } .hamburger span:nth-child(4) { top: 20px; } .hamburger.open span:nth-child(1) { top: 10px; width: 0%; left: 50%; } .hamburger.open span:nth-child(2) { transform: rotate(45deg); } .hamburger.open span:nth-child(3) { transform: rotate(-45deg); } .hamburger.open span:nth-child(4) { top: 10px; width: 0%; left: 50%; } .no-scroll { overflow: hidden; } .menu li > details > ul { opacity: 0; transform: translateY(-10px); transition: opacity 0.3s ease, transform 0.3s ease; } .menu li > details[open] > ul { opacity: 1; transform: translateY(0); } .menu li > details > summary::after { transition: transform 0.3s ease; } @media (max-width: 640px) { /* برای دستگاه‌های موبایل */ #filter-select { width: 37px; /* تنظیم عرض کوچکتر برای دستگاه‌های موبایل */ } #search-input { width: 140px; /* تنظیم عرض کوچکتر برای دستگاه‌های موبایل */ } } @media (max-width: 350px) { /* برای دستگاه‌های موبایل */ #filter-select { width: 30px; /* تنظیم عرض کوچکتر برای دستگاه‌های موبایل */ } #search-input { width: 100px; /* تنظیم عرض کوچکتر برای دستگاه‌های موبایل */ } } /* استایل‌های اسکلت */ .skeleton { background: linear-gradient(90deg, oklch(var(--b1)) 25%, oklch(var(--b1)) 50%, oklch(var(--b3)) 75%); background-size: 200% 100%; animation: loading 1.5s infinite; } .skeleton-image { width: 100%; height: 0; padding-bottom: 65.625%; /* This is equivalent to 420/640 * 100% */ background-color: #e0e0e0; } .skeleton-text { height: 18px; margin: 8px 0; border-radius: 4px; } .skeleton-text-short { width: 60%; } @keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } /* استایل برای نمایش/مخفی کردن */ .hidden { display: none; } .fade-in { animation: fadeIn 0.5s ease-in; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @import url('https://fonts.googleapis.com/css?family=Fira+Mono:400'); .glitch-container { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: oklch(var(--p)); font-size: 96px; font-family: 'Fira Mono', monospace; letter-spacing: -7px; } .glitch { position: relative; animation: glitch 1s linear infinite; } @keyframes glitch { 2%,64% { transform: translate(2px,0) skew(0deg); } 4%,60% { transform: translate(-2px,0) skew(0deg); } 62% { transform: translate(0,0) skew(5deg); } } .glitch:before, .glitch:after { content: attr(title); position: absolute; left: 0; } .glitch:before { animation: glitchTop 1s linear infinite; clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%); -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%); } @keyframes glitchTop { 2%,64% { transform: translate(2px,-2px); } 4%,60% { transform: translate(-2px,2px); } 62% { transform: translate(13px,-1px) skew(-13deg); } } .glitch:after { animation: glitchBotom 1.5s linear infinite; clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%); -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%); } @keyframes glitchBotom { 2%,64% { transform: translate(-2px,0); } 4%,60% { transform: translate(-2px,0); } 62% { transform: translate(-22px,5px) skew(21deg); } } .error-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 100%; } /* تعریف انیمیشن‌ها */ @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } } @keyframes slide-in-left { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } } @keyframes slide-in-right { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } } .animate-fade-in { animation: fade-in 0.8s ease-in-out; } .animate-slide-in-left { animation: slide-in-left 0.8s ease-in-out; } .animate-slide-in-right { animation: slide-in-right 0.8s ease-in-out; } .collapse-content { max-height: 100px; /* ارتفاع مورد نظر خود را وارد کنید */ overflow-y: auto; /* اسکرول کردن در صورت بیشتر شدن محتوا */ padding: 0px; /* کاهش padding در صورت نیاز */ } #search-dropdown { position: absolute; top: 100%; left: 0; right: 0; background-color: oklch(var(--b1)); border: 1px solid oklch(var(--bc) / 0.2); border-top: none; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); z-index: 1000; transition: all 0.3s ease-in-out; max-height: 0; overflow-y: auto; /* Changed from 'hidden' to 'auto' */ opacity: 0; scrollbar-width: thin; /* For Firefox */ scrollbar-color: oklch(var(--bc) / 0.3) oklch(var(--b1)); /* For Firefox */ } #search-dropdown.active { max-height: 300px; /* Limit the height and enable scrolling */ opacity: 1; } #search-dropdown > div { padding: 10px; border-bottom: 1px solid oklch(var(--bc) / 0.1); animation: fadeIn 0.3s ease-in-out; } #search-dropdown > div:last-child { border-bottom: none; } #search-dropdown > div:hover { background-color: oklch(var(--b2)); transition: background-color 0.2s ease; } /* Styling for Webkit browsers (Chrome, Safari, etc.) */ #search-dropdown::-webkit-scrollbar { width: 8px; } #search-dropdown::-webkit-scrollbar-track { background: oklch(var(--b1)); } #search-dropdown::-webkit-scrollbar-thumb { background-color: oklch(var(--bc) / 0.3); border-radius: 4px; border: 2px solid oklch(var(--b1)); } /* Ensure the search container has a proper positioning context */ .search-container { position: relative; }