/* ========================================= */
/* LEGACY, SEARCH & UTILITY STYLES           */
/* ========================================= */

/* Mini Switch for Dimming (Homepage) */
.mini-switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.mini-switch input { opacity: 0; width: 0; height: 0; }
.mini-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255,255,255,0.1); transition: .4s; border-radius: 20px; border: 1px solid var(--glass-border); }
.mini-slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 2px; bottom: 2px; background-color: var(--text-dim); transition: .4s; border-radius: 50%; }
.mini-switch input:checked + .mini-slider { background-color: rgba(0, 210, 255, 0.2); border-color: var(--primary); }
.mini-switch input:checked + .mini-slider:before { transform: translateX(16px); background-color: var(--primary); box-shadow: 0 0 8px var(--primary); }

.latest-grid.dim-active .m-card.is-watched { opacity: 0.35; filter: grayscale(80%); transform: scale(0.95); transition: all 0.4s ease; }
.latest-grid.dim-active .m-card.is-watched:hover { opacity: 1; filter: grayscale(0%); transform: scale(1.05); }

/* --- MARQUEE ANIMATION --- */
.marquee-wrapper { width: 100%; overflow: hidden; white-space: nowrap; position: relative; }
.marquee-content { display: inline-block; animation: scroll-left 25s linear infinite; padding-left: 100%; }
.marquee-wrapper:hover .marquee-content { animation-play-state: paused; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* --- HOMEPAGE SEARCH UI STYLES --- */
.search-wrapper { display: flex; align-items: center; background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50px; padding: 8px 15px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 15px 35px rgba(0,0,0,0.4); }
.search-wrapper:focus-within { border-color: var(--primary); background: rgba(30, 30, 30, 0.8); transform: translateY(-3px); box-shadow: 0 20px 45px rgba(0, 210, 255, 0.2); }
.search-icon { color: var(--primary); margin-left: 15px; font-size: 1.2rem; }
.google-search-input { flex: 1; background: transparent; border: none; outline: none; color: #fff; padding: 12px 20px; font-size: 1.1rem; }
.live-results-dropdown { position: absolute; top: 110%; left: 0; width: 100%; background: rgba(10, 10, 10, 0.98); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 24px; z-index: 1000; display: none; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,0.6); }
.result-item { display: flex; align-items: center; padding: 15px 25px; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.05); transition: 0.2s ease; }
.result-item:hover { background: rgba(0, 210, 255, 0.1); padding-left: 35px; }
.result-meta { font-size: 0.65rem; color: var(--primary); text-transform: uppercase; font-weight: 800; letter-spacing: 1px; margin-top: 3px; }
.search-poster-thumb { width: 45px; height: 65px; object-fit: cover; border-radius: 8px; border: 1px solid var(--glass-border); flex-shrink: 0; }
.result-item:hover .search-icon-thumb { background: var(--primary); color: #000; box-shadow: 0 0 15px rgba(0, 210, 255, 0.5); border-color: var(--primary); }

/* Google External Search Toggle Button */
.google-toggle-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); color: var(--text-dim); border-radius: 12px; width: 40px; height: 40px; align-self: center; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); flex-shrink: 0; }
.google-svg-icon { filter: grayscale(100%) opacity(0.5); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.google-toggle-btn:hover .google-svg-icon, .google-toggle-btn.active .google-svg-icon { filter: grayscale(0%) opacity(1); transform: scale(1.15); }
.google-toggle-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.google-toggle-btn.active { background: rgba(66, 133, 244, 0.1); border-color: #4285F4; color: #4285F4; box-shadow: 0 0 15px rgba(66, 133, 244, 0.3); }

/* Mobile App Download Pill */
.mobile-app-dl-btn { display: none; }
@media (max-width: 768px) {
    .mobile-app-dl-btn {
        display: flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 20px; 
        background: rgba(0, 210, 255, 0.1); border: 1px solid rgba(0, 210, 255, 0.4); color: var(--primary);
        padding: 6px 14px; border-radius: 20px; font-size: 0.65rem; font-weight: 800; text-decoration: none;
        letter-spacing: 0.5px; box-shadow: 0 0 10px rgba(0, 210, 255, 0.2); transition: all 0.3s ease;
    }
    .mobile-app-dl-btn i { font-size: 0.9rem; animation: subtleBounce 2s infinite; }
    .mobile-app-dl-btn:active { transform: scale(0.95); background: rgba(0, 210, 255, 0.2); }
}
@keyframes subtleBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* Legacy Theme Hero */
.tm-hero { height: 40vh; background: linear-gradient(to bottom, rgba(11,14,20,0.2), var(--bg)), url('../img/hero.jpg') center/cover; display: flex; align-items: center; justify-content: center; margin-bottom: 40px; }