body { font-family: 'Lato', sans-serif; background-color: #000; color: #fff; margin: 0; padding: 0; overflow-y: scroll; } #background-img { position: fixed; background-repeat: no-repeat; background-size: cover; background-position: center; width: 100%; height: 100%; z-index: -1; -webkit-filter: brightness(0.6) blur(90px); filter: brightness(0.6) blur(40px); transition: opacity 0.5s ease-in-out; /* Use transition for smoother effect */ } .fade-in-bg { opacity: 1; /* Make the background visible */ } .fade-out-bg { opacity: 0; /* Fade out the background */ } /* Fade-in animation for background */ @keyframes fadeInBg { from { opacity: 0; } to { opacity: 1; } } .container { max-width: 1400px; margin: 20px auto; padding: 20px; } .container.content-body { margin-top: 0; padding-top: 0; } h1 { color: #fff; margin-bottom: 20px; text-align: left; } .movies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; justify-items: center; } .movie-item { position: relative; backface-visibility: hidden; transform: translateZ(0); will-change: transform; perspective: 1000px; transition: transform 0.3s; cursor: pointer; } .movie-item:hover { transform: scale(0.96); } a.movie-item:active { transform: scale(0.93); transition: .1s; } .movie-poster { width: 100%; border-radius: 8px; display: block; } header { background: rgb(0 0 0 / 80%); position: sticky; top: 0px; z-index: 1000; box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px; -webkit-backdrop-filter: saturate(1) blur(20px) !important; -o-backdrop-filter: saturate(1) blur(20px) !important; -ms-backdrop-filter: saturate(1) blur(20px) !important; backdrop-filter: saturate(1) blur(20px) !important; } .nav-bar { padding: 10px 20px; display: flex; align-items: center; justify-content: center; max-width: 1400px; margin: 0px auto; border-radius: 0; } .logo { flex: 0 0 auto; display: flex; align-items: center; } .logo a { backface-visibility: hidden; transform: translateZ(0); will-change: transform; perspective: 1000px; transition: all .3s; } .logo a:hover { transform: scale(0.94); } .logo a:active img { transform: scale(1); transition: 0s; } .logo img { height: 40px; } .search-bar-container { flex: 1; display: flex; justify-content: center; } .search-bar { background-color: #333; border: none; padding: 8px; border-radius: 4px; color: #fff; width: 100%; } .search-bar::placeholder { color: #aaa; } .search-results { position: absolute; top: 100%; left: 0; width: 100%; background-color: #333; border-radius: 4px; margin-top: 5px; z-index: 1000; max-height: 400px; overflow-y: auto; display: none; opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; transform: translateY(-20px); } .search-results.show { display: block; opacity: 1; transform: translateY(0); } .search-result-header { padding: 10px; background-color: #444; font-weight: bold; position: sticky; top: 0; z-index: 10; } .search-result-item { display: flex; align-items: center; justify-content: space-between; padding: 10px; color: #fff; cursor: pointer; } .search-result-item img { width: 30px; height: 45px; border-radius: 4px; margin-right: 10px; } .search-result-item:hover { background-color: #444; } .account-button { background-color: #ff4500; color: #fff; border: none; padding: 8px 16px; border-radius: 4px; font-weight: bold; cursor: pointer; } .account-button:hover { background-color: #e03e00; } .loading { text-align: center; margin: 20px 0; } .search-result-details { display: flex; align-items: center; } .search-result-year { margin-left: auto; color: #aaa; } .category-header { text-align: left; position: sticky; top: 60px; background: transparent; z-index: 99; align-content: center; padding: 2px 0; mix-blend-mode: difference; } /* Search input - Hover effects */ .search-bar { cursor: pointer; backface-visibility: hidden; transform: translateZ(0); will-change: transform; perspective: 1000px; transition: all 0.3s; } .search-bar:hover { background-color: #121212; transform: scale(0.99); } .search-bar:focus-within { background-color: #333; transform: scale(0.99); } /* Mobile styles */ @media (max-width: 768px) { .nav-bar { flex-direction: row; gap: 12px; padding: 10px 35px; top: 0; border-radius: 0; } .logo { flex: 0 0 15%; } .search-bar-container { flex: 0 0 80%; max-width: none; margin: 0; display: flex; justify-content: flex-end; } .search-bar { width: 100%; } .movies-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } } .nav-links { margin-left: 30px; margin-right: 30px; } .nav-links ul { list-style-type: none; display: flex; gap: 20px; margin: 0; padding: 0; } .nav-links ul li a { color: #fff; text-decoration: none; font-weight: 500; transition: all .2s; } .nav-links ul li a:hover { box-shadow: 0px 1px #fff; } .hamburger-menu { display: none; cursor: pointer; flex-direction: column; gap: 5px; margin-left: auto; } .hamburger-menu .line { width: 25px; height: 3px; background-color: #fff; } .mobile-nav { display: none; position: fixed; top: 128px; right: 0; transform: translate(0%, -50%); background-color: #333; padding: 20px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); z-index: 999; width: 100%; height: 85px; max-width: 130px; text-align: center; } .mobile-nav ul { list-style-type: none; margin: 0; padding: 0; } .mobile-nav ul li { margin-bottom: 10px; } .mobile-nav ul li a { color: #fff; text-decoration: none; font-weight: bold; } @media (max-width: 768px) { .nav-links { display: none; } .hamburger-menu { display: flex; } .mobile-nav.show { display: block; animation: fadeIn 0.3s ease-out; } } @keyframes fadeIn { 0% { opacity: 0; transform: translate(0, -60%); } 100% { opacity: 1; transform: translate(0, -50%); } }