/* FilmyBazaar — Premium mobile OTT (Netflix-style) — max-width 768px only */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@700;800&display=swap');

@media (max-width: 768px) {
  html.fb-mobile-ott {
    --fb-mw-bg: #0b0b0b;
    --fb-mw-surface: #141414;
    --fb-mw-card: #1a1a1a;
    --fb-mw-primary: #e50914;
    --fb-mw-text: #ffffff;
    --fb-mw-muted: #b3b3b3;
    --fb-mw-accent: #00d4ff;
    --fb-mw-nav-h: calc(56px + env(safe-area-inset-bottom, 0px));
    --fb-mw-header-h: 52px;
    --fb-mw-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --fb-mw-dur: 0.25s;
  }

  html.fb-mobile-ott body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--fb-mw-bg) !important;
    color: var(--fb-mw-text);
    padding-bottom: var(--fb-mw-nav-h);
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y pinch-zoom;
    overscroll-behavior-y: auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  html.fb-mobile-ott .notification.fb-mw-toast {
    z-index: 18500 !important;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
  }

  /* Hidden until Play opens it — do not force display on app load */
  html.fb-mobile-ott #serverSelectionModal {
    display: none !important;
  }

  html.fb-mobile-ott #serverSelectionModal.fb-server-modal-open,
  html.fb-mobile-ott #serverSelectionModal.show {
    z-index: 17500 !important;
    display: flex !important;
    align-items: flex-end;
    justify-content: center;
  }

  html.fb-mobile-ott #serverSelectionModal .modal-overlay {
    z-index: 0 !important;
  }

  html.fb-mobile-ott #serverSelectionModal .modal-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(88dvh, 720px) !important;
    margin: 0 !important;
    border-radius: 18px 18px 0 0 !important;
    z-index: 1 !important;
  }

  html.fb-mobile-ott #videoPlayerModal.show {
    z-index: 17500 !important;
  }

  html.fb-mobile-ott #videoPlayerModal .modal-container {
    width: 100% !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  html.fb-mobile-ott #videoPlayerModal .modal-content,
  html.fb-mobile-ott #videoContainer {
    height: 100% !important;
    padding: 0 !important;
  }

  html.fb-mobile-ott #videoContainer iframe,
  html.fb-mobile-ott #videoContainer video {
    width: 100% !important;
    height: 100% !important;
    min-height: 50dvh !important;
    border: 0 !important;
  }

  html.fb-mobile-ott #videoPlayerModal .modal-close {
    top: max(12px, env(safe-area-inset-top)) !important;
    right: 12px !important;
    z-index: 10 !important;
  }

  html.fb-mobile-ott body.video-playing .fb-mw-nav,
  html.fb-mobile-ott body.modal-open .fb-mw-nav {
    display: none !important;
  }

  html.fb-mobile-ott .loading-screen:not(.fb-splash-mobile) {
    background: var(--fb-mw-bg) !important;
  }

  /* Lock scroll only while splash is on screen (not after .hide / fade) */
  html.fb-msplash-active body:has(#loadingScreen:not(.hide):not(.fb-splash-exit)) {
    overflow: hidden;
  }

  html.fb-mobile-ott #loadingScreen.hide,
  html.fb-mobile-ott #loadingScreen.fb-splash-exit {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
    opacity: 0 !important;
  }

  html.fb-mobile-ott:not(.fb-msplash-active) body,
  html.fb-mobile-ott body.fb-app-ready {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100% !important;
    touch-action: pan-y pinch-zoom !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html.fb-mobile-ott main.main {
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
    touch-action: pan-y;
  }

  /* Hide desktop chrome noise on mobile app shell */
  html.fb-mobile-ott .nav-menu,
  html.fb-mobile-ott .fb-nav-apk,
  html.fb-mobile-ott .fb-filter-stack,
  html.fb-mobile-ott .fb-mood-filter,
  html.fb-mobile-ott .scroll-top,
  html.fb-mobile-ott .fb-traffic-hub,
  html.fb-mobile-ott .fb-loadmore-section,
  html.fb-mobile-ott .footer,
  html.fb-mobile-ott #trending-movies,
  html.fb-mobile-ott #trending-tv,
  html.fb-mobile-ott #web-series,
  html.fb-mobile-ott #aiRecommendationsSection,
  html.fb-mobile-ott #allMoviesSection,
  html.fb-mobile-ott .genre-filter {
    display: none !important;
  }

  html.fb-mobile-ott #hamburgerPanel,
  html.fb-mobile-ott #hamburgerOverlay {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html.fb-mobile-ott .hamburger-menu.active {
    background: rgba(229, 9, 20, 0.22) !important;
    border-color: rgba(229, 9, 20, 0.45) !important;
  }

  html.fb-mobile-ott.fb-mw-tab-profile .main,
  html.fb-mobile-ott.fb-mw-tab-trending .main,
  html.fb-mobile-ott.fb-mw-tab-list .main {
    display: none !important;
  }

  /* Top bar — Netflix style */
  html.fb-mobile-ott .header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.45) 70%, transparent 100%) !important;
    backdrop-filter: none !important;
    transition: background var(--fb-mw-dur) var(--fb-mw-ease);
  }

  html.fb-mobile-ott .header.fb-mw-scrolled {
    background: rgba(11, 11, 11, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
  }

  html.fb-mobile-ott .header-container {
    padding: max(8px, env(safe-area-inset-top)) 14px 8px !important;
    max-width: none !important;
  }

  html.fb-mobile-ott .logo {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    font-family: 'Poppins', sans-serif !important;
  }

  html.fb-mobile-ott .logo i {
    display: none !important;
  }

  html.fb-mobile-ott .fb-brand-filmy,
  html.fb-mobile-ott .fb-brand-bazaar {
    -webkit-text-fill-color: #fff !important;
    background: none !important;
    color: #fff !important;
  }

  html.fb-mobile-ott .fb-brand-bazaar {
    color: var(--fb-mw-primary) !important;
  }

  html.fb-mobile-ott .header .logo.fb-logo-with-credit {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1px !important;
    line-height: 1.1;
  }

  html.fb-mobile-ott .fb-made-by--header {
    margin-top: 0;
  }

  html.fb-mobile-ott .fb-made-by--header .fb-made-by-kicker {
    font-size: 0.42rem;
    letter-spacing: 0.11em;
  }

  html.fb-mobile-ott .fb-made-by--header .fb-made-by-name {
    font-size: 0.54rem;
  }

  html.fb-mobile-ott .fb-mw-menu-brand .fb-made-by--menu {
    margin: 4px 0 2px;
  }

  html.fb-mobile-ott .fb-mw-menu-brand .fb-made-by--menu .fb-made-by-name {
    font-size: 0.72rem;
  }

  html.fb-mobile-ott .fb-mw-profile-hero .fb-made-by--profile {
    justify-content: center;
    width: 100%;
    margin: 0 0 8px;
  }

  html.fb-mobile-ott .fb-mw-profile-hero .fb-made-by--profile .fb-made-by-kicker {
    font-size: 0.52rem;
  }

  html.fb-mobile-ott .fb-mw-profile-hero .fb-made-by--profile .fb-made-by-name {
    font-size: 0.78rem;
  }

  html.fb-mobile-ott .hamburger-menu {
    position: relative;
    z-index: 9002;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    pointer-events: auto !important;
    cursor: pointer;
    touch-action: manipulation;
  }

  html.fb-mobile-ott .header .header-actions,
  html.fb-mobile-ott .header .mobile-search-trigger {
    position: relative;
    z-index: 9002;
    pointer-events: auto !important;
  }

  html.fb-mobile-ott .mobile-search-trigger {
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  html.fb-mobile-ott main.main {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: calc(var(--fb-mw-nav-h) + 12px) !important;
  }

  /* Hero carousel */
  html.fb-mobile-ott .hero {
    height: min(78vh, 640px) !important;
    min-height: 420px !important;
    margin-bottom: 0 !important;
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
  }

  html.fb-mobile-ott .hero {
    width: 100% !important;
    border-radius: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html.fb-mobile-ott .hero-backdrop {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    min-height: 100% !important;
    background-size: cover !important;
    background-position: center 22% !important;
    background-color: #141414 !important;
    transition: opacity 0.45s ease !important;
  }

  html.fb-mobile-ott .fb-mw-hero-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  html.fb-mobile-ott .fb-mw-hero-img.is-loaded {
    opacity: 1;
  }

  html.fb-mobile-ott .hero-overlay {
    z-index: 1 !important;
  }

  html.fb-mobile-ott .hero-content {
    z-index: 2 !important;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html.fb-mobile-ott .hero-overlay {
    background: linear-gradient(
      0deg,
      var(--fb-mw-bg) 0%,
      rgba(11, 11, 11, 0.72) 28%,
      rgba(11, 11, 11, 0.12) 52%,
      rgba(11, 11, 11, 0.35) 100%
    ) !important;
    opacity: 1 !important;
  }

  html.fb-mobile-ott .hero-backdrop.fade-out {
    opacity: 1 !important;
  }

  html.fb-mobile-ott .hero-content {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    padding: 0 16px 28px !important;
    text-align: left !important;
    animation: none !important;
  }

  html.fb-mobile-ott .hero-badge {
    background: rgba(229, 9, 20, 0.9) !important;
    font-size: 0.65rem !important;
    padding: 0.25rem 0.65rem !important;
    margin-bottom: 0.5rem !important;
    -webkit-text-fill-color: #fff !important;
  }

  html.fb-mobile-ott .hero-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(1.65rem, 6.5vw, 2.1rem) !important;
    font-weight: 800 !important;
    line-height: 1.12 !important;
    margin-bottom: 0.5rem !important;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8) !important;
  }

  html.fb-mobile-ott .hero-description {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
    color: var(--fb-mw-muted) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 0.65rem !important;
  }

  html.fb-mobile-ott .fb-mw-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.85rem;
    font-size: 0.78rem;
    color: var(--fb-mw-muted);
  }

  html.fb-mobile-ott .fb-mw-hero-rate {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 215, 0, 0.35);
    color: #ffd700;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  html.fb-mobile-ott .fb-mw-hero-rate i {
    font-size: 0.72rem;
  }

  html.fb-mobile-ott .fb-mw-hero-year {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
  }

  html.fb-mobile-ott .fb-mw-hero-meta .fb-mw-genres {
    color: var(--fb-mw-muted);
  }

  html.fb-mobile-ott .hero-actions {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
  }

  html.fb-mobile-ott .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    border-radius: 6px !important;
    padding: 0.7rem 1rem !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    min-height: 44px;
    transition: transform var(--fb-mw-dur) var(--fb-mw-ease), box-shadow var(--fb-mw-dur) var(--fb-mw-ease);
  }

  html.fb-mobile-ott .hero-actions .btn-primary {
    background: #fff !important;
    color: #000 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
    -webkit-background-clip: border-box !important;
  }

  html.fb-mobile-ott .hero-actions .btn-secondary,
  html.fb-mobile-ott .hero-actions #watchTrailerHero {
    display: none !important;
  }

  html.fb-mobile-ott .hero-actions .btn-outline {
    background: rgba(42, 42, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
    flex: 0 1 auto;
    min-width: 120px;
  }

  html.fb-mobile-ott .fb-mw-hero-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    padding-bottom: 4px;
  }

  html.fb-mobile-ott .fb-mw-hero-dots button {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: transform var(--fb-mw-dur) ease, background var(--fb-mw-dur) ease;
  }

  html.fb-mobile-ott .fb-mw-hero-dots button.is-active {
    background: var(--fb-mw-primary);
    transform: scale(1.35);
  }

  /* Content rows */
  html.fb-mobile-ott .fb-mw-rows {
    padding: 8px 0 24px;
  }

  html.fb-mobile-ott .fb-mw-row {
    margin-bottom: 1.35rem;
    content-visibility: auto;
    contain-intrinsic-size: auto 220px;
  }

  html.fb-mobile-ott .fb-mw-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 10px;
    gap: 10px;
  }

  html.fb-mobile-ott .fb-mw-row-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--fb-mw-text);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  html.fb-mobile-ott .fb-mw-row-chevron {
    color: var(--fb-mw-muted);
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  html.fb-mobile-ott .fb-mw-rail {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 16px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  html.fb-mobile-ott .fb-mw-rail::-webkit-scrollbar {
    display: none;
  }

  html.fb-mobile-ott .fb-mw-rail--wide .fb-mw-card {
    flex: 0 0 min(72vw, 280px);
    scroll-snap-align: start;
  }

  html.fb-mobile-ott .fb-mw-rail--poster .fb-mw-card {
    flex: 0 0 118px !important;
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    scroll-snap-align: start;
  }

  html.fb-mobile-ott .fb-mw-rail > .fb-mw-skeleton {
    flex: 0 0 118px !important;
    width: 118px !important;
    min-width: 118px !important;
  }

  /* Search screen — horizontal poster rows (not vertical list) */
  html.fb-mobile-ott .fb-msearch-results {
    display: block !important;
    flex-direction: unset !important;
    gap: 0 !important;
  }

  html.fb-mobile-ott .fb-msearch-rail,
  html.fb-mobile-ott .fb-msearch-results-rail {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 2px 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  html.fb-mobile-ott .fb-msearch-rail::-webkit-scrollbar,
  html.fb-mobile-ott .fb-msearch-results-rail::-webkit-scrollbar {
    display: none;
  }

  html.fb-mobile-ott .fb-msearch-results-section {
    margin-bottom: 0;
    padding-bottom: 8px;
  }

  html.fb-mobile-ott .fb-msearch-results-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--fb-mw-muted);
  }

  /* My List — horizontal row like home */
  html.fb-mobile-ott .fb-mw-list-rail {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 16px 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  html.fb-mobile-ott .fb-mw-list-rail .fb-mw-list-card {
    flex: 0 0 118px !important;
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: none;
    background: transparent;
    padding: 0;
    position: relative;
    cursor: pointer;
  }

  html.fb-mobile-ott .fb-mw-list-rail .fb-mw-list-card .fb-mw-card-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    object-fit: cover;
  }

  html.fb-mobile-ott .fb-mw-list-rail .fb-mw-list-card .fb-mw-card-label {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--fb-mw-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  html.fb-mobile-ott .fb-mw-card {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-align: left;
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--fb-mw-dur) var(--fb-mw-ease), box-shadow var(--fb-mw-dur) var(--fb-mw-ease);
    touch-action: manipulation;
  }

  html.fb-mobile-ott .fb-mw-card:active {
    transform: scale(0.96);
  }

  html.fb-mobile-ott .fb-mw-card-poster-wrap {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
  }

  html.fb-mobile-ott .fb-mw-card-poster {
    display: block;
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    background: var(--fb-mw-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  }

  html.fb-mobile-ott .fb-mw-card-scrim {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      transparent 38%,
      transparent 52%,
      rgba(0, 0, 0, 0.72) 100%
    );
    pointer-events: none;
  }

  html.fb-mobile-ott .fb-mw-rail--wide .fb-mw-card-poster {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  html.fb-mobile-ott .fb-mw-rail--poster .fb-mw-card-poster {
    aspect-ratio: 2 / 3;
    height: auto;
  }

  html.fb-mobile-ott .fb-mw-card-glow {
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    opacity: 0;
    background: radial-gradient(circle at 50% 100%, rgba(229, 9, 20, 0.45), transparent 70%);
    pointer-events: none;
    transition: opacity var(--fb-mw-dur) ease;
  }

  html.fb-mobile-ott .fb-mw-card:focus-visible .fb-mw-card-glow,
  html.fb-mobile-ott .fb-mw-card:active .fb-mw-card-glow {
    opacity: 1;
  }

  html.fb-mobile-ott .fb-mw-card-foot {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 6px;
    min-width: 0;
  }

  html.fb-mobile-ott .fb-mw-card-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--fb-mw-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  html.fb-mobile-ott .fb-mw-card-foot-meta {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  html.fb-mobile-ott .fb-mw-rate-bar {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 1;
    min-width: 0;
  }

  html.fb-mobile-ott .fb-mw-rate-bar span {
    flex: 1;
    max-width: 18px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
  }

  html.fb-mobile-ott .fb-mw-rate-bar span.is-on {
    background: linear-gradient(90deg, #ffd700, #ffaa00);
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.35);
  }

  html.fb-mobile-ott .fb-mw-foot-score {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 800;
    color: #ffd700;
    letter-spacing: 0.02em;
  }

  /* Rating pill on poster */
  html.fb-mobile-ott .fb-mw-rate {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: rgba(0, 0, 0, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  }

  html.fb-mobile-ott .fb-mw-rate i {
    color: #ffd700;
    font-size: 0.62rem;
  }

  html.fb-mobile-ott .fb-mw-rate-num {
    font-variant-numeric: tabular-nums;
  }

  html.fb-mobile-ott .fb-mw-rate-votes {
    font-size: 0.58rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    padding-left: 2px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    margin-left: 2px;
  }

  html.fb-mobile-ott .fb-mw-rate--high {
    border-color: rgba(255, 215, 0, 0.35);
    background: linear-gradient(135deg, rgba(40, 30, 0, 0.9), rgba(0, 0, 0, 0.82));
  }

  html.fb-mobile-ott .fb-mw-rate--high .fb-mw-rate-num {
    color: #ffe566;
  }

  html.fb-mobile-ott .fb-mw-rate--good .fb-mw-rate-num {
    color: #ffd700;
  }

  html.fb-mobile-ott .fb-mw-rate--mid .fb-mw-rate-num {
    color: #e0e0e0;
  }

  html.fb-mobile-ott .fb-mw-rate--low .fb-mw-rate-num {
    color: #b3b3b3;
  }

  html.fb-mobile-ott .fb-mw-type-pill {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 4;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #6c5ce7, #0984e3);
    box-shadow: 0 4px 12px rgba(9, 132, 227, 0.35);
  }

  html.fb-mobile-ott .fb-mw-year {
    position: absolute;
    bottom: 6px;
    left: 6px;
    z-index: 4;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  html.fb-mobile-ott .fb-mw-rail--wide .fb-mw-card-label {
    color: var(--fb-mw-text);
    font-size: 0.8rem;
  }

  html.fb-mobile-ott .fb-mw-badge-top10 {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--fb-mw-primary);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.45);
  }

  html.fb-mobile-ott .fb-mw-card:has(.fb-mw-type-pill) .fb-mw-badge-top10 {
    top: 32px;
  }

  html.fb-mobile-ott .fb-mw-badge-new {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(229, 9, 20, 0.95);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
  }

  html.fb-mobile-ott .fb-mw-badge-series {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: linear-gradient(135deg, #6c5ce7, #0984e3);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
    letter-spacing: 0.04em;
  }

  html.fb-mobile-ott .fb-mw-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
  }

  html.fb-mobile-ott .fb-mw-progress span {
    display: block;
    height: 100%;
    background: var(--fb-mw-primary);
  }

  html.fb-mobile-ott .fb-mw-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    pointer-events: none;
  }

  html.fb-mobile-ott .fb-mw-skeleton {
    flex: 0 0 118px;
    height: 177px;
    border-radius: 8px;
    background: linear-gradient(90deg, #1a1a1a 0%, #252525 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    animation: fbMwShimmer 1.2s ease-in-out infinite;
  }

  @keyframes fbMwShimmer {
    0% {
      background-position: 100% 0;
    }
    100% {
      background-position: -100% 0;
    }
  }

  /* Continue watching section (app.js target) */
  html.fb-mobile-ott #continueWatchingSection {
    display: none;
  }

  html.fb-mobile-ott #continueWatchingSection.fb-mw-has-items {
    display: block !important;
  }

  html.fb-mobile-ott #continueWatchingSection .section-header {
    display: none;
  }

  html.fb-mobile-ott #continueWatchingSection .slider {
    display: flex !important;
    gap: 10px;
    overflow-x: auto;
    padding: 0 16px 8px;
    scroll-snap-type: x mandatory;
    grid-auto-flow: unset !important;
    grid-auto-columns: unset !important;
  }

  html.fb-mobile-ott #continueWatchingSection .movie-card {
    flex: 0 0 min(72vw, 280px) !important;
    scroll-snap-align: start;
    border-radius: 8px !important;
    transform: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  }

  html.fb-mobile-ott #continueWatchingSection .movie-poster {
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 8px !important;
  }

  html.fb-mobile-ott #continueWatchingSection .movie-info {
    transform: none !important;
    position: relative !important;
    background: transparent !important;
    padding: 8px 2px 0 !important;
  }

  /* Bottom navigation */
  html.fb-mobile-ott .fb-mw-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12000;
    padding: 0 10px max(10px, env(safe-area-inset-bottom, 0px));
    pointer-events: none;
  }

  html.fb-mobile-ott .fb-mw-nav-inner {
    pointer-events: auto;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
    padding: 8px 6px;
    border-radius: 20px;
    background: rgba(12, 12, 12, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.65),
      0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  }

  html.fb-mobile-ott .fb-mw-nav-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 2px;
    border: none;
    background: transparent;
    color: var(--fb-mw-muted);
    cursor: pointer;
    border-radius: 14px;
    transition:
      color var(--fb-mw-dur) ease,
      background var(--fb-mw-dur) ease,
      transform 0.15s ease;
    min-height: 52px;
    touch-action: manipulation;
  }

  html.fb-mobile-ott .fb-mw-nav-item:active {
    transform: scale(0.94);
  }

  html.fb-mobile-ott .fb-mw-nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
      background var(--fb-mw-dur) ease,
      box-shadow var(--fb-mw-dur) ease,
      transform var(--fb-mw-dur) var(--fb-mw-ease);
  }

  html.fb-mobile-ott .fb-mw-nav-icon i {
    font-size: 1.05rem;
    transition: color var(--fb-mw-dur) ease, transform var(--fb-mw-dur) var(--fb-mw-ease);
  }

  html.fb-mobile-ott .fb-mw-nav-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
  }

  html.fb-mobile-ott .fb-mw-nav-item.is-active {
    color: var(--fb-mw-text);
  }

  html.fb-mobile-ott .fb-mw-nav-item.is-active .fb-mw-nav-icon {
    background: linear-gradient(145deg, rgba(229, 9, 20, 0.35), rgba(229, 9, 20, 0.12));
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.28);
  }

  html.fb-mobile-ott .fb-mw-nav-item.is-active .fb-mw-nav-icon i {
    color: #fff;
    transform: scale(1.06);
  }

  html.fb-mobile-ott .fb-mw-nav-item.is-active .fb-mw-nav-label {
    color: #fff;
  }

  html.fb-mobile-ott .fb-mw-nav-badge {
    position: absolute;
    top: 2px;
    right: 50%;
    margin-right: -22px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--fb-mw-primary);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
  }

  html.fb-mobile-ott .fb-mw-in-list {
    background: rgba(229, 9, 20, 0.2) !important;
    border-color: var(--fb-mw-primary) !important;
    color: #fff !important;
  }

  html.fb-mobile-ott .fb-mw-actor-head-text h1 {
    margin: 0;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
  }

  html.fb-mobile-ott .fb-mw-actor-head-text p {
    margin: 2px 0 0;
    font-size: 0.78rem;
    color: var(--fb-mw-muted);
  }

  html.fb-mobile-ott .fb-mw-panel-head .fb-mw-actor-head-text {
    flex: 1;
    min-width: 0;
  }

  html.fb-mobile-ott .fb-mw-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 24px;
  }

  html.fb-mobile-ott .fb-mw-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--fb-mw-surface);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }

  html.fb-mobile-ott .fb-mw-history-item span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.fb-mobile-ott .fb-mw-history-item .fa-clock {
    color: var(--fb-mw-primary);
  }

  html.fb-mobile-ott .fb-mw-history-item .fa-chevron-right {
    color: var(--fb-mw-muted);
    font-size: 0.75rem;
  }

  /* Mobile menu drawer (hamburger) */
  html.fb-mobile-ott .fb-mw-menu {
    position: fixed;
    inset: 0;
    z-index: 16500;
    pointer-events: none;
    visibility: hidden;
  }

  html.fb-mobile-ott .fb-mw-menu.is-open {
    pointer-events: auto;
    visibility: visible;
  }

  html.fb-mobile-ott .fb-mw-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.28s ease;
  }

  html.fb-mobile-ott .fb-mw-menu.is-open .fb-mw-menu-backdrop {
    opacity: 1;
  }

  html.fb-mobile-ott .fb-mw-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 340px);
    height: 100%;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #161616 0%, #0b0b0b 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -24px 0 80px rgba(0, 0, 0, 0.65);
    transform: translateX(104%);
    transition: transform 0.34s var(--fb-mw-ease, cubic-bezier(0.22, 1, 0.36, 1));
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  html.fb-mobile-ott .fb-mw-menu.is-open .fb-mw-menu-panel {
    transform: translateX(0);
  }

  html.fb-mobile-ott .fb-mw-menu-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
  }

  html.fb-mobile-ott .fb-mw-menu-brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  html.fb-mobile-ott .fb-mw-menu-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, var(--fb-mw-primary), #ff6b6b);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.35);
  }

  html.fb-mobile-ott .fb-mw-menu-brand-name {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
  }

  html.fb-mobile-ott .fb-mw-menu-brand-name strong {
    color: var(--fb-mw-primary);
  }

  html.fb-mobile-ott .fb-mw-menu-brand-tag {
    margin: 2px 0 0;
    font-size: 0.72rem;
    color: var(--fb-mw-muted);
  }

  html.fb-mobile-ott .fb-mw-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
  }

  html.fb-mobile-ott .fb-mw-menu-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 16px 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  html.fb-mobile-ott .fb-mw-menu-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 9, 20, 0.15);
    color: var(--fb-mw-primary);
    flex-shrink: 0;
  }

  html.fb-mobile-ott .fb-mw-menu-user-title {
    margin: 0 0 2px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
  }

  html.fb-mobile-ott .fb-mw-menu-user-meta {
    margin: 0;
    font-size: 0.75rem;
    color: var(--fb-mw-muted);
  }

  html.fb-mobile-ott .fb-mw-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px 12px;
  }

  html.fb-mobile-ott .fb-mw-menu-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 76px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--fb-mw-surface);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition:
      border-color 0.2s ease,
      background 0.2s ease,
      transform 0.15s ease;
  }

  html.fb-mobile-ott .fb-mw-menu-tile:active {
    transform: scale(0.97);
    border-color: rgba(229, 9, 20, 0.35);
  }

  html.fb-mobile-ott .fb-mw-menu-tile i {
    font-size: 1.1rem;
    color: var(--fb-mw-primary);
  }

  html.fb-mobile-ott .fb-mw-menu-apk {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 4px 16px 14px;
    min-height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3ddc84, #2bb573);
    color: #062a14;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(61, 220, 132, 0.25);
  }

  html.fb-mobile-ott .fb-mw-menu-section {
    padding: 0 16px 12px;
  }

  html.fb-mobile-ott .fb-mw-menu-section-title {
    margin: 0 0 8px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fb-mw-muted);
  }

  html.fb-mobile-ott .fb-mw-menu-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  html.fb-mobile-ott .fb-mw-menu-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--fb-mw-muted);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
  }

  html.fb-mobile-ott .fb-mw-menu-links a i {
    width: 18px;
    color: var(--fb-mw-primary);
    text-align: center;
  }

  html.fb-mobile-ott .fb-mw-menu-links a:active {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  html.fb-mobile-ott .fb-mw-menu-foot {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
  }

  html.fb-mobile-ott .fb-mw-menu-foot p {
    margin: 0;
    font-size: 0.72rem;
    color: var(--fb-mw-muted);
  }

  html.fb-mobile-ott .fb-mw-menu-version {
    margin-top: 4px !important;
    color: rgba(255, 255, 255, 0.35) !important;
  }

  html.fb-mobile-ott body.fb-mw-menu-open .fb-mw-nav {
    opacity: 0;
    pointer-events: none;
  }

  /* Full-screen panels */
  html.fb-mobile-ott .fb-mw-panel {
    position: fixed;
    inset: 0;
    z-index: 14000;
    background: var(--fb-mw-bg);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.32s var(--fb-mw-ease), opacity 0.28s ease, visibility 0.28s;
    overflow: hidden;
  }

  html.fb-mobile-ott .fb-mw-panel.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  html.fb-mobile-ott .fb-mw-panel-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: max(12px, env(safe-area-inset-top)) 14px 12px;
    background: rgba(11, 11, 11, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  html.fb-mobile-ott .fb-mw-panel-head h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    flex: 1;
  }

  html.fb-mobile-ott .fb-mw-back {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  html.fb-mobile-ott .fb-mw-panel-body {
    flex: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom);
  }

  html.fb-mobile-ott .fb-mw-list-empty {
    grid-column: 1 / -1;
    padding: 40px 20px;
    text-align: center;
    color: var(--fb-mw-muted);
    font-size: 0.9rem;
    line-height: 1.5;
  }

  html.fb-mobile-ott .fb-mw-list-rail .fb-mw-list-empty {
    flex: 0 0 100%;
    width: 100%;
    grid-column: unset;
  }

  html.fb-mobile-ott .fb-mw-list-empty strong {
    color: #fff;
    font-weight: 700;
  }

  html.fb-mobile-ott .fb-mw-list-card {
    position: relative;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    text-align: left;
    width: 100%;
  }

  html.fb-mobile-ott .fb-mw-list-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    touch-action: manipulation;
    pointer-events: auto;
  }

  html.fb-mobile-ott .fb-mw-list-remove:active {
    background: var(--fb-mw-primary);
    transform: scale(1.05);
  }

  html.fb-mobile-ott .fb-mw-list-remove i {
    pointer-events: none;
  }

  html.fb-mobile-ott .fb-mw-genres-lead {
    padding: 12px 16px 4px;
    color: var(--fb-mw-muted);
    font-size: 0.85rem;
    margin: 0;
  }

  html.fb-mobile-ott .fb-mw-genre-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px 16px 28px;
  }

  html.fb-mobile-ott .fb-mw-genre-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    min-height: 88px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.9), rgba(20, 20, 20, 0.95));
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease;
  }

  html.fb-mobile-ott .fb-mw-genre-tile:active {
    transform: scale(0.98);
    border-color: var(--fb-mw-primary);
  }

  html.fb-mobile-ott .fb-mw-genre-tile-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(229, 9, 20, 0.2);
    color: var(--fb-mw-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }

  html.fb-mobile-ott .fb-mw-genre-tile-label {
    font-size: 0.92rem;
    font-weight: 700;
  }

  html.fb-mobile-ott .fb-mw-genre-strip {
    padding: 8px 0 4px;
  }

  html.fb-mobile-ott .fb-mw-genre-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px 12px;
    scrollbar-width: none;
  }

  html.fb-mobile-ott .fb-mw-genre-scroll::-webkit-scrollbar {
    display: none;
  }

  html.fb-mobile-ott .fb-mw-genre-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
  }

  html.fb-mobile-ott .fb-mw-genre-chip i {
    color: var(--fb-mw-primary);
    font-size: 0.75rem;
  }

  html.fb-mobile-ott .fb-mw-detail-more {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 14px 0 10px;
  }

  html.fb-mobile-ott .fb-mw-detail-more:has(#fbMwCompareBtn) {
    grid-template-columns: repeat(4, 1fr);
  }

  html.fb-mobile-ott .fb-mw-detail-more:not(:has(#fbMwCompareBtn)) {
    grid-template-columns: repeat(3, 1fr);
  }

  html.fb-mobile-ott .fb-mw-more-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--fb-mw-muted);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
  }

  html.fb-mobile-ott .fb-mw-more-btn i {
    font-size: 1rem;
    color: #fff;
  }

  html.fb-mobile-ott .fb-mw-more-btn:active {
    background: rgba(229, 9, 20, 0.15);
    color: #fff;
  }

  /* Detail */
  html.fb-mobile-ott .fb-mw-detail-hero {
    position: relative;
    min-height: 240px;
  }

  html.fb-mobile-ott .fb-mw-detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 15%;
    filter: brightness(0.55);
  }

  html.fb-mobile-ott .fb-mw-detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--fb-mw-bg) 0%, transparent 55%);
  }

  html.fb-mobile-ott .fb-mw-detail-content {
    position: relative;
    padding: 0 16px 24px;
    margin-top: -80px;
  }

  html.fb-mobile-ott .fb-mw-detail-poster-row {
    display: flex;
    gap: 14px;
    align-items: flex-end;
  }

  html.fb-mobile-ott .fb-mw-detail-poster {
    width: 110px;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
    flex-shrink: 0;
  }

  html.fb-mobile-ott .fb-mw-detail-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 6px;
  }

  html.fb-mobile-ott .fb-mw-detail-meta {
    font-size: 0.78rem;
    color: var(--fb-mw-muted);
    margin-bottom: 12px;
  }

  html.fb-mobile-ott .fb-mw-detail-actions {
    display: flex;
    gap: 10px;
    margin: 16px 0;
  }

  html.fb-mobile-ott .fb-mw-detail-actions .btn {
    flex: 1;
    border-radius: 6px !important;
    min-height: 44px;
    font-weight: 700 !important;
  }

  html.fb-mobile-ott .fb-mw-detail-actions .btn-primary {
    background: #fff !important;
    color: #000 !important;
  }

  html.fb-mobile-ott .fb-mw-detail-actions .btn-outline {
    background: rgba(42, 42, 42, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
  }

  html.fb-mobile-ott .fb-mw-detail-section {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  html.fb-mobile-ott .fb-mw-detail-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 10px;
  }

  html.fb-mobile-ott .fb-mw-genre-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
  }

  html.fb-mobile-ott .fb-mw-genre-chips span {
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: var(--fb-mw-muted);
  }

  html.fb-mobile-ott .fb-mw-cast-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  html.fb-mobile-ott .fb-mw-cast-item {
    flex: 0 0 72px;
    scroll-snap-align: start;
    text-align: center;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0;
  }

  html.fb-mobile-ott .fb-mw-cast-item img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.12);
  }

  html.fb-mobile-ott .fb-mw-cast-item span {
    display: block;
    font-size: 0.65rem;
    margin-top: 6px;
    color: var(--fb-mw-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 72px;
  }

  /* Profile */
  html.fb-mobile-ott .fb-mw-profile-hero {
    padding: 24px 16px;
    text-align: center;
    background: linear-gradient(180deg, rgba(229, 9, 20, 0.15), transparent);
  }

  html.fb-mobile-ott .fb-mw-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--fb-mw-primary), #831010);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 8px 28px rgba(229, 9, 20, 0.35);
  }

  html.fb-mobile-ott .fb-mw-profile-menu {
    padding: 8px 16px 24px;
  }

  html.fb-mobile-ott .fb-mw-profile-menu button,
  html.fb-mobile-ott .fb-mw-profile-menu a {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--fb-mw-surface);
    color: var(--fb-mw-text);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
  }

  html.fb-mobile-ott .fb-mw-profile-menu i {
    width: 22px;
    color: var(--fb-mw-primary);
  }

  /* Category grid */
  html.fb-mobile-ott .fb-mw-cat-hero {
    padding: 20px 16px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.2), rgba(0, 212, 255, 0.08));
  }

  html.fb-mobile-ott .fb-mw-cat-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    scrollbar-width: none;
  }

  html.fb-mobile-ott .fb-mw-cat-filters button {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--fb-mw-surface);
    color: var(--fb-mw-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
  }

  html.fb-mobile-ott .fb-mw-cat-filters button.is-active {
    background: var(--fb-mw-primary);
    border-color: var(--fb-mw-primary);
    color: #fff;
  }

  html.fb-mobile-ott .fb-mw-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px 24px;
  }

  html.fb-mobile-ott .fb-mw-cat-grid .fb-mw-card {
    width: 100%;
  }

  html.fb-mobile-ott .fb-mw-cat-grid .fb-mw-card-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
  }

  /* Full-screen detail modal — above panels (z-index 14000) */
  html.fb-mobile-ott #movieModal.fb-mw-detail-modal {
    z-index: 16000 !important;
  }

  html.fb-mobile-ott #movieModal.fb-mw-detail-modal.show {
    display: block !important;
  }

  html.fb-mobile-ott body.fb-mw-detail-open .fb-mw-panel.is-open {
    visibility: hidden;
    pointer-events: none;
  }

  html.fb-mobile-ott #movieModal.fb-mw-detail-modal .modal-overlay {
    background: #000 !important;
  }

  html.fb-mobile-ott #movieModal.fb-mw-detail-modal .modal-container,
  html.fb-mobile-ott #movieModal.fb-mw-detail-modal .fb-mw-detail-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    min-height: 100dvh;
    max-height: none !important;
    height: 100dvh;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: var(--fb-mw-bg) !important;
    overflow: hidden !important;
  }

  html.fb-mobile-ott #movieModal.fb-mw-detail-modal .modal-content {
    padding: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  html.fb-mobile-ott #movieModal.fb-mw-detail-modal .modal-close {
    position: fixed !important;
    top: max(12px, env(safe-area-inset-top)) !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    z-index: 20 !important;
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  html.fb-mobile-ott .fb-mw-detail-page {
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--fb-mw-bg);
  }

  html.fb-mobile-ott .fb-mw-detail-loading {
    padding: 24px 16px;
    color: var(--fb-mw-muted);
    text-align: center;
  }

  html.fb-mobile-ott .fb-mw-detail-hero {
    position: relative;
    height: 42vh;
    min-height: 220px;
    max-height: 380px;
    overflow: hidden;
    background: #141414;
  }

  html.fb-mobile-ott .fb-mw-detail-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
  }

  html.fb-mobile-ott .fb-mw-detail-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.35) 0%,
      transparent 35%,
      var(--fb-mw-bg) 100%
    );
    pointer-events: none;
  }

  html.fb-mobile-ott .fb-mw-detail-sheet {
    position: relative;
    margin-top: -48px;
    padding: 0 16px calc(24px + env(safe-area-inset-bottom));
    z-index: 2;
  }

  html.fb-mobile-ott .fb-mw-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
  }

  html.fb-mobile-ott .fb-mw-detail-badges .fb-content-badges {
    position: static;
    flex-direction: row;
  }

  html.fb-mobile-ott .fb-mw-detail-type {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--fb-mw-primary);
    margin: 0 0 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  html.fb-mobile-ott .fb-mw-detail-type i {
    margin-right: 4px;
  }

  html.fb-mobile-ott .fb-mw-star {
    color: #ffd700;
  }

  html.fb-mobile-ott .fb-mw-story {
    color: var(--fb-mw-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
  }

  html.fb-mobile-ott .fb-mw-section-hint {
    font-size: 0.75rem;
    color: var(--fb-mw-muted);
    margin: -4px 0 10px;
  }

  html.fb-mobile-ott .fb-mw-trailer-btn {
    width: 100%;
    margin-bottom: 8px;
    border-radius: 6px !important;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
  }

  /* TV episodes */
  html.fb-mobile-ott .fb-mw-episodes-wrap h3 i {
    margin-right: 6px;
    color: var(--fb-mw-primary);
  }

  html.fb-mobile-ott .fb-mw-season-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 8px;
    scrollbar-width: none;
  }

  html.fb-mobile-ott .fb-mw-season-tabs::-webkit-scrollbar {
    display: none;
  }

  html.fb-mobile-ott .fb-mw-season-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--fb-mw-surface);
    color: var(--fb-mw-muted);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  html.fb-mobile-ott .fb-mw-season-tab.is-active {
    background: var(--fb-mw-primary);
    border-color: var(--fb-mw-primary);
    color: #fff;
  }

  html.fb-mobile-ott .fb-mw-episode-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  html.fb-mobile-ott .fb-mw-ep-loading {
    color: var(--fb-mw-muted);
    font-size: 0.85rem;
    padding: 12px 0;
  }

  html.fb-mobile-ott .fb-mw-episode {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--fb-mw-surface);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  }

  html.fb-mobile-ott .fb-mw-episode.is-active {
    border-color: rgba(229, 9, 20, 0.65);
    background: rgba(229, 9, 20, 0.12);
  }

  html.fb-mobile-ott .fb-mw-episode:active {
    transform: scale(0.99);
  }

  html.fb-mobile-ott .fb-mw-ep-thumb {
    width: 112px;
    height: 63px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 6px;
  }

  html.fb-mobile-ott .fb-mw-ep-num {
    flex-shrink: 0;
    width: 22px;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--fb-mw-muted);
    text-align: center;
  }

  html.fb-mobile-ott .fb-mw-ep-body {
    flex: 1;
    min-width: 0;
  }

  html.fb-mobile-ott .fb-mw-ep-body strong {
    display: block;
    font-size: 0.88rem;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  html.fb-mobile-ott .fb-mw-ep-body small {
    display: block;
    font-size: 0.72rem;
    color: var(--fb-mw-muted);
    line-height: 1.35;
  }

  html.fb-mobile-ott .fb-mw-ep-play {
    flex-shrink: 0;
    color: #fff;
    font-size: 0.85rem;
    width: 28px;
    text-align: center;
  }

  /* Cast & crew cards */
  html.fb-mobile-ott .fb-mw-people-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  html.fb-mobile-ott .fb-mw-person-card {
    flex: 0 0 100px;
    scroll-snap-align: start;
    border: none;
    background: transparent;
    padding: 0;
    text-align: center;
    cursor: pointer;
    color: inherit;
  }

  html.fb-mobile-ott .fb-mw-person-card img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }

  html.fb-mobile-ott .fb-mw-person-name {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 2px;
  }

  html.fb-mobile-ott .fb-mw-person-role {
    display: block;
    font-size: 0.65rem;
    color: var(--fb-mw-muted);
    line-height: 1.2;
    margin-bottom: 4px;
  }

  html.fb-mobile-ott .fb-mw-person-cta {
    display: block;
    font-size: 0.6rem;
    color: var(--fb-mw-accent);
    font-weight: 600;
  }

  html.fb-mobile-ott .fb-mw-person-cta i {
    margin-right: 2px;
  }

  html.fb-mobile-ott .movie-detail {
    display: none !important;
  }

  html.fb-mobile-ott body.fb-mw-detail-open .fb-mw-nav,
  html.fb-mobile-ott body.fb-msearch-open .fb-mw-nav,
  html.fb-mobile-ott body.fb-mw-menu-open .fb-mw-nav,
  html.fb-mobile-ott body.video-playing .fb-mw-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(120%);
    transition: transform 0.28s var(--fb-mw-ease), opacity 0.2s ease;
  }

  html.fb-mobile-ott .fb-msearch-screen {
    z-index: 15000 !important;
  }

  html.fb-mobile-ott .fb-msearch-bg {
    background: var(--fb-mw-bg) !important;
  }

  html.fb-mobile-ott #fb-apk-popup {
    bottom: calc(var(--fb-mw-nav-h) + 8px) !important;
  }

  /* Hide legacy desktop report/review modals on mobile (use bottom sheets) */
  html.fb-mobile-ott #reportIssueModal,
  html.fb-mobile-ott #reviewModal,
  html.fb-mobile-ott #trailerModal {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Report / Review bottom sheets — above detail (z-index 16000) */
  html.fb-mobile-ott .fb-mw-action-sheet {
    position: fixed;
    inset: 0;
    z-index: 17000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  html.fb-mobile-ott .fb-mw-action-sheet.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
  }

  html.fb-mobile-ott .fb-mw-action-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  html.fb-mobile-ott .fb-mw-action-sheet-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: min(88dvh, 720px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg, #1c1c1c 0%, #0b0b0b 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.65);
    transform: translateY(100%);
    transition: transform 0.32s var(--fb-mw-ease, cubic-bezier(0.22, 1, 0.36, 1));
  }

  html.fb-mobile-ott .fb-mw-action-sheet.is-open .fb-mw-action-sheet-panel {
    transform: translateY(0);
  }

  html.fb-mobile-ott .fb-mw-action-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
    margin: 10px auto 6px;
    flex-shrink: 0;
  }

  html.fb-mobile-ott .fb-mw-action-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
  }

  html.fb-mobile-ott .fb-mw-action-sheet-head h2 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  html.fb-mobile-ott .fb-mw-action-sheet-head h2 i {
    color: var(--fb-mw-sheet-accent, var(--fb-mw-primary));
  }

  html.fb-mobile-ott .fb-mw-action-sheet-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
  }

  html.fb-mobile-ott .fb-mw-action-sheet-body {
    padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  html.fb-mobile-ott .fb-mw-sheet-subtitle {
    font-size: 0.85rem;
    color: var(--fb-mw-muted);
    margin: 0 0 14px;
    line-height: 1.4;
  }

  html.fb-mobile-ott .fb-mw-sheet-subtitle strong {
    color: #fff;
  }

  html.fb-mobile-ott .fb-mw-sheet-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fb-mw-muted);
    margin: 0 0 6px;
  }

  html.fb-mobile-ott .fb-mw-sheet-input {
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--fb-mw-surface);
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
  }

  html.fb-mobile-ott .fb-mw-sheet-textarea {
    min-height: 100px;
    resize: vertical;
  }

  html.fb-mobile-ott .fb-mw-star-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  html.fb-mobile-ott .fb-mw-star-btn {
    border: none;
    background: transparent;
    font-size: 2.2rem;
    line-height: 1;
    color: #444;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s ease, transform 0.15s ease;
  }

  html.fb-mobile-ott .fb-mw-star-btn.is-on {
    color: #ffd700;
    transform: scale(1.08);
  }

  html.fb-mobile-ott .fb-mw-rating-label {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffd700;
    margin: 0 0 16px;
  }

  html.fb-mobile-ott .fb-mw-sheet-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
  }

  html.fb-mobile-ott .fb-mw-sheet-btn {
    flex: 1;
    min-height: 48px;
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
  }

  html.fb-mobile-ott .fb-mw-sheet-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  html.fb-mobile-ott .fb-mw-sheet-btn--primary {
    background: var(--fb-mw-primary);
    color: #fff;
  }

  html.fb-mobile-ott .fb-mw-sheet-btn--gold {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #111;
  }

  html.fb-mobile-ott body.fb-mw-sheet-open .fb-mw-nav {
    opacity: 0;
    pointer-events: none;
  }

  /* Genre full browse */
  html.fb-mobile-ott .fb-mw-genre-browse {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  html.fb-mobile-ott .fb-mw-genre-browse-hero {
    flex-shrink: 0;
    padding: calc(12px + env(safe-area-inset-top)) 16px 20px;
    background: linear-gradient(
      145deg,
      color-mix(in srgb, var(--fb-genre-accent, #e50914) 42%, #0b0b0b) 0%,
      #0b0b0b 72%
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  html.fb-mobile-ott .fb-mw-genre-browse-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  html.fb-mobile-ott .fb-mw-genre-browse-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
  }

  html.fb-mobile-ott .fb-mw-genre-browse-hero-main {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  html.fb-mobile-ott .fb-mw-genre-browse-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    background: color-mix(in srgb, var(--fb-genre-accent, #e50914) 55%, rgba(255, 255, 255, 0.08));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
  }

  html.fb-mobile-ott .fb-mw-genre-browse-hero h1 {
    margin: 0 0 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.15;
  }

  html.fb-mobile-ott .fb-mw-genre-browse-hero p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--fb-mw-muted);
  }

  html.fb-mobile-ott .fb-mw-genre-browse-toolbar {
    flex-shrink: 0;
    padding: 12px 16px 8px;
    background: #0b0b0b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  html.fb-mobile-ott .fb-mw-genre-browse-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
  }

  html.fb-mobile-ott .fb-mw-genre-browse-tabs button {
    flex: 1;
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--fb-mw-surface);
    color: var(--fb-mw-muted);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
  }

  html.fb-mobile-ott .fb-mw-genre-browse-tabs button.is-active {
    background: var(--fb-mw-primary);
    border-color: var(--fb-mw-primary);
    color: #fff;
  }

  html.fb-mobile-ott .fb-mw-genre-browse-sort {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  html.fb-mobile-ott .fb-mw-genre-browse-sort::-webkit-scrollbar {
    display: none;
  }

  html.fb-mobile-ott .fb-mw-genre-browse-sort button {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: var(--fb-mw-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
  }

  html.fb-mobile-ott .fb-mw-genre-browse-sort button.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
  }

  html.fb-mobile-ott .fb-mw-genre-browse-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  html.fb-mobile-ott .fb-mw-genre-browse-foot {
    padding: 8px 16px 24px;
    text-align: center;
  }

  html.fb-mobile-ott .fb-mw-load-more {
    width: 100%;
    max-width: 280px;
    min-height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
  }

  html.fb-mobile-ott .fb-mw-load-more:disabled {
    opacity: 0.6;
  }

  html.fb-mobile-ott .fb-mw-genre-empty {
    grid-column: 1 / -1;
    padding: 32px 16px;
    text-align: center;
    color: var(--fb-mw-muted);
    font-size: 0.9rem;
    line-height: 1.5;
  }

  html.fb-mobile-ott .fb-mw-genre-empty span {
    font-size: 0.82rem;
    opacity: 0.85;
  }

  /* Continue watching — match rating style */
  html.fb-mobile-ott #continueWatchingSection .movie-card {
    position: relative;
  }

  html.fb-mobile-ott #continueWatchingSection .movie-rating {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
  }

  html.fb-mobile-ott #continueWatchingSection .movie-rating i {
    color: #ffd700 !important;
    margin-right: 0 !important;
  }

  /* Mobile-native report / review sheets */
  html.fb-mobile-ott .fb-mw-action-sheet-brand {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    padding: 10px 0 0;
    flex-shrink: 0;
  }

  html.fb-mobile-ott .fb-mw-action-sheet-brand-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fb-mw-sheet-accent, var(--fb-mw-primary));
    margin-right: 6px;
    vertical-align: middle;
  }

  html.fb-mobile-ott .fb-mw-action-sheet-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--fb-mw-sheet-accent, #e50914), transparent);
    border-radius: 18px 18px 0 0;
  }

  html.fb-mobile-ott .fb-mw-sheet-title-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: rgba(229, 9, 20, 0.12);
    border: 1px solid rgba(229, 9, 20, 0.25);
  }

  html.fb-mobile-ott .fb-mw-sheet-title-card--gold {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.28);
  }

  html.fb-mobile-ott .fb-mw-sheet-title-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: var(--fb-mw-sheet-accent, var(--fb-mw-primary));
    font-size: 1.2rem;
    flex-shrink: 0;
  }

  html.fb-mobile-ott .fb-mw-sheet-kicker {
    margin: 0 0 2px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fb-mw-muted);
  }

  html.fb-mobile-ott .fb-mw-sheet-title-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
  }

  html.fb-mobile-ott .fb-mw-sheet-hint {
    font-size: 0.8rem;
    color: var(--fb-mw-muted);
    margin: 0 0 12px;
    line-height: 1.4;
  }

  html.fb-mobile-ott .fb-mw-issue-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
  }

  html.fb-mobile-ott .fb-mw-issue-chip {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--fb-mw-surface);
    color: var(--fb-mw-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
  }

  html.fb-mobile-ott .fb-mw-issue-chip.is-active {
    background: var(--fb-mw-primary);
    border-color: var(--fb-mw-primary);
    color: #fff;
  }

  html.fb-mobile-ott .fb-mw-optional {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.7;
  }

  html.fb-mobile-ott .fb-mw-sheet-actions--stack {
    flex-direction: column;
  }

  html.fb-mobile-ott .fb-mw-sheet-actions--stack .fb-mw-sheet-btn {
    flex: none;
    width: 100%;
  }

  html.fb-mobile-ott .fb-mw-star-btn i {
    pointer-events: none;
  }

  /* Trailer — fullscreen above detail & sheets */
  html.fb-mobile-ott .fb-mw-trailer-overlay {
    position: fixed;
    inset: 0;
    z-index: 18000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  html.fb-mobile-ott .fb-mw-trailer-overlay.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
  }

  html.fb-mobile-ott .fb-mw-trailer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  html.fb-mobile-ott .fb-mw-trailer-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.3s var(--fb-mw-ease, cubic-bezier(0.22, 1, 0.36, 1));
  }

  html.fb-mobile-ott .fb-mw-trailer-overlay.is-open .fb-mw-trailer-panel {
    transform: translateY(0) scale(1);
  }

  html.fb-mobile-ott .fb-mw-trailer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 0 4px;
  }

  html.fb-mobile-ott .fb-mw-trailer-kicker {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  html.fb-mobile-ott .fb-mw-trailer-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
  }

  html.fb-mobile-ott .fb-mw-trailer-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  }

  html.fb-mobile-ott .fb-mw-trailer-stage iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  html.fb-mobile-ott body.fb-mw-trailer-open .fb-mw-nav {
    opacity: 0;
    pointer-events: none;
  }
}

@media (min-width: 769px) {
  .fb-mw-nav,
  .fb-mw-menu,
  .fb-mw-panel,
  .fb-mw-rows,
  #continueWatchingSection.fb-mw-injected {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.fb-mobile-ott .fb-mw-card,
  html.fb-mobile-ott .fb-mw-nav-item,
  html.fb-mobile-ott .fb-mw-panel {
    transition: none !important;
    animation: none !important;
  }
}
