/* Subtile UI/UX Upgrade - Shared Styles */

/* ===== Smooth Scrolling ===== */
html { scroll-behavior: smooth; }

/* ===== Selection ===== */
::selection { background: rgba(255,255,255,0.15); color: #fff; }

/* ===== Focus Visible ===== */
:focus-visible { outline: 2px solid rgba(255,255,255,0.4); outline-offset: 2px; border-radius: 4px; }

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ===== Skeleton Loader ===== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s ease-in-out infinite;
    border-radius: 8px;
}
.skeleton-card {
    border-radius: 1.5rem;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
}
.skeleton-card .skeleton-poster {
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s ease-in-out infinite;
}
.skeleton-card .skeleton-text {
    height: 0.9rem;
    margin: 0.8rem 0.8rem 0;
    width: 70%;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s ease-in-out infinite;
    border-radius: 4px;
}
.skeleton-card .skeleton-text-sm {
    height: 0.7rem;
    margin: 0.5rem 0.8rem 0.8rem;
    width: 50%;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s ease-in-out infinite;
    border-radius: 4px;
}
.skeleton-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
}
.skeleton-sub .skeleton-line {
    height: 0.8rem;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s ease-in-out infinite;
    border-radius: 4px;
}
.skeleton-sub .skeleton-line-short { width: 120px; }
.skeleton-sub .skeleton-line-medium { width: 200px; }
.skeleton-sub .skeleton-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s ease-in-out infinite;
}
@keyframes skeletonFadeOut {
    from { opacity: 1; }
    to { opacity: 0; pointer-events: none; }
}
.skeleton-exit {
    animation: skeletonFadeOut 0.3s ease forwards;
}

/* ===== Fade In Up ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ===== Scale In ===== */
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.scale-in { animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ===== Pulse Glow ===== */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}
.pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }

/* ===== Toast Upgrade ===== */
.toast-upgraded {
    background: rgba(15, 15, 18, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0.8rem 1.2rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    max-width: min(380px, 90vw);
}
.toast-upgraded.toast-exit {
    animation: toastOut 0.3s ease forwards;
}
.toast-success { border-left: 3px solid #34d399; }
.toast-error { border-left: 3px solid #ef4444; }
.toast-warning { border-left: 3px solid #f59e0b; }
.toast-info { border-left: 3px solid #3b82f6; }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(16px) scale(0.96); }
}

/* ===== Better Buttons ===== */
.btn-upgraded {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-upgraded::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-upgraded:hover::after { opacity: 1; }
.btn-upgraded:active { transform: scale(0.97); }

/* ===== Card Hover Glow ===== */
.card-glow {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-glow:hover {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 20px 60px rgba(0,0,0,0.5);
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: linear-gradient(135deg, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Glass Card ===== */
.glass-card {
    background: rgba(18, 18, 24, 0.6);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

/* ===== Enhanced Glassmorphism ===== */
.glass-enhanced {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-enhanced:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* ===== Gradient Borders ===== */
.gradient-border {
    position: relative;
    border: none;
    background: transparent;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05), rgba(139,92,246,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0.6;
}
.gradient-border:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0.1), rgba(139,92,246,0.5));
}

/* ===== Gradient Button ===== */
.btn-gradient {
    background: linear-gradient(135deg, #fff 0%, #e5e7eb 100%);
    color: #000;
    font-weight: 800;
    border: none;
    border-radius: 14px;
    padding: 0.75rem 1.8rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(255,255,255,0.15);
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,255,255,0.25);
}
.btn-gradient:active {
    transform: translateY(0) scale(0.98);
}
.btn-gradient-dark {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.03) 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.btn-gradient-dark:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.06) 100%);
    box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}

/* ===== Animated Background Disabled ===== */
.animated-bg {
    display: none !important;
}

/* ===== Enhanced Responsive Typography Scale ===== */
.typo-hero { font-size: clamp(2.2rem, 5.5vw, 4.5rem); line-height: 1.1; letter-spacing: -0.025em; }
.typo-h1 { font-size: clamp(1.6rem, 3.5vw, 2.75rem); line-height: 1.2; letter-spacing: -0.02em; }
.typo-h2 { font-size: clamp(1.3rem, 2.5vw, 2rem); line-height: 1.25; letter-spacing: -0.015em; }
.typo-h3 { font-size: clamp(1.05rem, 2vw, 1.4rem); line-height: 1.3; }
.typo-body { font-size: clamp(0.95rem, 1.2vw, 1.05rem); line-height: 1.65; }
.typo-small { font-size: clamp(0.825rem, 1vw, 0.925rem); line-height: 1.5; }
.typo-caption { font-size: clamp(0.75rem, 0.9vw, 0.825rem); line-height: 1.4; letter-spacing: 0.02em; }

/* Responsive Container & Padding Fixes */
@media (max-width: 640px) {
    .container { padding-left: 1rem !important; padding-right: 1rem !important; }
    .btn-pill { padding: 0.75rem 1.4rem !important; font-size: 0.95rem !important; min-height: 44px; }
    .category-tab { padding: 0.5rem 1rem; font-size: 0.82rem; min-height: 38px; }
    .movie-card .poster-container { border-radius: 12px; }
    .movie-card h3 { font-size: 0.95rem !important; }
    .search-wrapper input { font-size: 0.95rem !important; padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
}

@media (min-width: 1921px) {
    .container { max-width: 1800px !important; }
    body { font-size: 18px; }
}

/* ===== Shimmer Text ===== */
@keyframes shimmerText {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.shimmer-text {
    background: linear-gradient(90deg, #fff 0%, #a78bfa 25%, #fff 50%, #a78bfa 75%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s linear infinite;
}

/* ===== Glow Effects ===== */
.glow-purple { box-shadow: 0 0 20px rgba(139,92,246,0.3), 0 0 60px rgba(139,92,246,0.1); }
.glow-blue { box-shadow: 0 0 20px rgba(59,130,246,0.3), 0 0 60px rgba(59,130,246,0.1); }
.glow-green { box-shadow: 0 0 20px rgba(16,185,129,0.3), 0 0 60px rgba(16,185,129,0.1); }
.glow-amber { box-shadow: 0 0 20px rgba(245,158,11,0.3), 0 0 60px rgba(245,158,11,0.1); }

/* ===== Divider ===== */
.divider-gradient {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    border: none;
}

/* ===== Badge Variants ===== */
.badge-premium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-weight: 800;
    padding: 0.2rem 0.7rem;
    border-radius: 6px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-new {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #000;
    font-weight: 800;
    padding: 0.2rem 0.7rem;
    border-radius: 6px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-hot {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: #fff;
    font-weight: 800;
    padding: 0.2rem 0.7rem;
    border-radius: 6px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== Input Focus Glow ===== */
.input-glow:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ===== Mobile Nav ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 7, 0.99);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}
.mobile-nav.active { display: flex; }
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
    .desktop-nav { display: none !important; }
    .mobile-nav a, .mobile-nav button {
        font-size: 1.3rem;
        font-weight: 700;
        color: #fff;
        text-decoration: none;
        padding: 0.8rem 2rem;
        border-radius: 12px;
        transition: all 0.2s;
    }
    .mobile-nav a:hover, .mobile-nav button:hover {
        background: rgba(255,255,255,0.08);
    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Better Footer ===== */
.footer-upgraded {
    background: rgba(5, 5, 7, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem 0 1.5rem;
}
.footer-upgraded a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-upgraded a:hover { color: rgba(255, 255, 255, 0.8); }

/* ===== Stagger Animation ===== */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }

/* ===== Rating Stars ===== */
.star-interactive i {
    cursor: pointer;
    transition: all 0.15s ease;
    color: rgba(255,255,255,0.15);
}
.star-interactive i:hover { transform: scale(1.2); }
.star-interactive i.active { color: #fbbf24; }

/* ===== Badge Shine ===== */
@keyframes badgeShine {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}
.badge-shine {
    background-size: 200% 100%;
    animation: badgeShine 3s linear infinite;
}

/* ===== Page Transition ===== */
.page-enter {
    animation: pageEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* --- Small phones (≤480px) --- */
@media (max-width: 480px) {
    .footer-upgraded { padding: 2rem 0 1rem; }
    .footer-upgraded .flex { flex-direction: column !important; gap: 1rem !important; }
    .footer-upgraded a { font-size: 0.8rem; }
    .glass-card { border-radius: 12px; }
    .btn-upgraded { padding: 0.6rem 1rem !important; font-size: 0.8rem !important; }
}

/* --- Tablets (768px-1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer-upgraded { padding: 2.5rem 0 1.2rem; }
}

/* ===== Responsive Utilities ===== */
.flex-wrap { flex-wrap: wrap; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.word-break { word-break: break-word; overflow-wrap: break-word; }

/* ===== MOBILE PERFORMANCE: Disable heavy blur ===== */
@media (max-width: 768px) {
    *, *::before, *::after {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .pulse-glow { animation: none !important; }
    .badge-shine { animation: none !important; }
    .skeleton { animation: none !important; }
}

/* ===== MICRO-ANIMATIONS ===== */

/* Button click ripple */
.btn-ripple {
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-ripple:active {
    transform: scale(0.96);
}
.btn-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.btn-ripple.ripple-active::after {
    opacity: 1;
}

/* Card hover lift */
.card-hover {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.card-hover:active {
    transform: translateY(0) scale(0.99);
}

/* Success pulse */
@keyframes successPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.success-pulse {
    animation: successPulse 0.6s ease;
}

/* Shake error */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
.shake {
    animation: shake 0.4s ease;
}

/* Fade scale in */
@keyframes fadeScaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.fade-scale-in {
    animation: fadeScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Slide up */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.slide-up {
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Bounce in */
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.08); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}
.bounce-in {
    animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Number count up */
@keyframes countUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.count-up {
    animation: countUp 0.3s ease forwards;
}

/* ===== SEARCH IMPROVEMENTS ===== */

/* Search suggestions dropdown */
.search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(12, 12, 15, 0.98);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    display: none;
}
.search-suggestions.active { display: block; }

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.search-suggestion-item:last-child { border-bottom: none; }
.search-suggestion-item:hover {
    background: rgba(255,255,255,0.09);
}
.search-suggestion-item .suggestion-icon {
    width: 38px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
    background: #181822;
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.search-suggestion-item .suggestion-info {
    flex: 1;
    min-width: 0;
}
.search-suggestion-item .suggestion-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-suggestion-item .suggestion-meta {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 2px;
    font-weight: 500;
}

/* Recent searches */
.search-recent {
    padding: 0.5rem;
}
.search-recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.3rem;
}
.search-recent-header span {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.search-recent-header button {
    font-size: 0.7rem;
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
.search-recent-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 0.85rem;
    color: #d1d5db;
}
.search-recent-item:hover {
    background: rgba(255,255,255,0.06);
}
.search-recent-item i {
    color: #6b7280;
    font-size: 0.75rem;
}

/* Search filters */
.search-filters {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow-x: auto;
}
.search-filter-chip {
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: #9ca3af;
    transition: all 0.2s ease;
}
.search-filter-chip:hover {
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}
.search-filter-chip.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* No results state */
.search-no-results {
    padding: 2rem 1rem;
    text-align: center;
    color: #6b7280;
}
.search-no-results i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}
.search-no-results p {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Loading spinner in search */
.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.8rem;
}
.search-loading i {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Dark Filter Styles ===== */
html { color-scheme: dark; }

select, .filter-select {
  color-scheme: dark;
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  padding: 0.4rem 2rem 0.4rem 0.75rem !important;
  font-size: 0.8rem !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.5rem center !important;
  transition: all 0.2s ease !important;
}
select:hover, .filter-select:hover {
  border-color: var(--border-hover) !important;
  background: var(--surface-hover) !important;
}
select:focus, .filter-select:focus {
  outline: none !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.15) !important;
}
select option, .filter-select option {
  background: var(--surface) !important;
  color: var(--text) !important;
  padding: 0.5rem !important;
}

.filter-pill, .filter-btn {
  background: var(--surface) !important;
  color: var(--text-muted) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 9999px !important;
  padding: 0.35rem 0.85rem !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.filter-pill:hover, .filter-btn:hover {
  background: var(--surface-hover) !important;
  border-color: var(--border-hover) !important;
  color: var(--text) !important;
}
.filter-pill.active, .filter-btn.active {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}
