/**
 * Desktop performance CSS — lighter GPU, paused hidden tabs
 */
@media (min-width: 768px) {
  html.fb-perf-lite.fb-tab-hidden *,
  html.fb-perf-lite.fb-tab-hidden *::before,
  html.fb-perf-lite.fb-tab-hidden *::after {
    animation-play-state: paused !important;
  }

  html.fb-perf-lite .fb-click-ripple {
    display: none !important;
  }

  html.fb-perf-lite .fb-premium-ambient {
    display: none !important;
  }

  html.fb-perf-lite .fb-site-chrome .header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #000 !important;
  }

  html.fb-perf-lite .fb-desktop-sidebar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html.fb-perf-lite .movie-card:hover {
    will-change: auto;
  }

  html.fb-local-dev #loadingScreen {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Localhost only — never blur main on npm run dev */
  html.fb-local-dev main.main,
  html.fb-local-dev .hero,
  html.fb-local-dev .section,
  html.fb-local-dev .fb-scroll-section {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  /* Snappier desktop interactions */
  html.fb-perf-lite.fb-desktop-ott .movie-card,
  html.fb-perf-lite.fb-desktop-ott .fb-backdrop-card,
  html.fb-perf-lite.fb-desktop-ott .fb-dm-quick-btn,
  html.fb-perf-lite.fb-desktop-ott .fb-dm-watch,
  html.fb-perf-lite.fb-desktop-ott .fb-dm-back-btn {
    transition-duration: 0.12s !important;
  }

  html.fb-perf-lite #movieModal.fb-dm-open .modal-overlay,
  html.fb-perf-lite #movieModal.fb-dm-open .fb-dm-chrome,
  html.fb-perf-lite .fb-dm-server-picker {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html.fb-perf-lite #movieModal.fb-dm-open .modal-container {
    animation: none !important;
  }

  /* Snappy taps — close buttons, nav, modals (whole desktop UI) */
  html.fb-perf-lite.fb-desktop-ott {
    --transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, opacity 0.12s ease;
  }

  html.fb-perf-lite.fb-desktop-ott button,
  html.fb-perf-lite.fb-desktop-ott a,
  html.fb-perf-lite.fb-desktop-ott [role="button"],
  html.fb-perf-lite.fb-desktop-ott .modal-close,
  html.fb-perf-lite.fb-desktop-ott .fb-pc,
  html.fb-perf-lite.fb-desktop-ott .fb-dm-chrome-close,
  html.fb-perf-lite.fb-desktop-ott .fb-dm-back-btn,
  html.fb-perf-lite.fb-desktop-ott .fb-dm-server-close,
  html.fb-perf-lite.fb-desktop-ott .fb-dm-media-close,
  html.fb-perf-lite.fb-desktop-ott .fb-apk-close,
  html.fb-perf-lite.fb-desktop-ott .fb-header-icon-btn,
  html.fb-perf-lite.fb-desktop-ott .nav-link,
  html.fb-perf-lite.fb-desktop-ott .fb-sidebar-link,
  html.fb-perf-lite.fb-desktop-ott .fb-hub-back,
  html.fb-perf-lite.fb-desktop-ott .fb-hub-filter,
  html.fb-perf-lite.fb-desktop-ott .section-link,
  html.fb-perf-lite.fb-desktop-ott .tab-btn {
    touch-action: manipulation;
    transition-duration: 0.1s !important;
    transition-property: background, color, border-color, opacity, box-shadow !important;
  }

  html.fb-perf-lite.fb-desktop-ott .modal-close:hover,
  html.fb-perf-lite.fb-desktop-ott .fb-pc:hover,
  html.fb-perf-lite.fb-desktop-ott .fb-dm-chrome-close:hover,
  html.fb-perf-lite.fb-desktop-ott .hamburger-close:hover {
    transform: none !important;
  }

  html.fb-perf-lite.fb-desktop-ott .modal.show .modal-container,
  html.fb-perf-lite.fb-desktop-ott #movieModal.show .modal-container {
    animation: none !important;
  }

  html.fb-perf-lite.fb-desktop-ott .fb-scroll-section,
  html.fb-perf-lite.fb-desktop-ott .fb-animate-on-scroll {
    transition-duration: 0.2s !important;
  }
}
