/* ==========================================================================
   JOMFLIX 1:1 NETFLIX-GRADE MOBILE APP STYLESHEET
   100% ISOLATED: ONLY APPLIES TO SCREENS <= 768px (SMARTPHONES & TABLETS)
   DESKTOP VIEW (> 768px) IS 100% UNTOUCHED AND UNALTERED
   ========================================================================== */

/* Hide all mobile-specific elements on desktop (> 768px) */
@media (min-width: 769px) {
  .mobile-only-block,
  .mobile-only-flex,
  #viewMobileDetail,
  .mobile-search-page-container {
    display: none !important;
  }
}

@media (max-width: 768px) {
  #viewMobileDetail[style*="display: none"] {
    display: none !important;
  }
  #viewMobileDetail[style*="display: block"] {
    display: block !important;
  }

  /* ================= 0. NETFLIX MOBILE NATIVE MOTION & VIEW TRANSITIONS ================= */
  #viewHome,
  #viewCatalog,
  #viewPopular,
  #viewGenres,
  #viewCollections,
  #viewContactUs,
  #viewCollectionDetail,
  #viewSearch {
    animation: mPageMotionFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: opacity, transform;
  }

  @keyframes mPageMotionFadeIn {
    0% {
      opacity: 0.15;
      transform: translateY(6px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  /* Activate mobile elements on mobile screens */
  .mobile-only-block {
    display: block !important;
  }
  .mobile-only-flex {
    display: flex !important;
  }
  
  /* Hide desktop-only elements, footers, and pagination bar on mobile screens */
  .desktop-only-block,
  .desktop-nav-header,
  .hero-billboard,
  .desktop-carousel-nav-btn,
  .sub-header,
  .sub-header-bar,
  #subHeaderBarCollections,
  #subHeaderBarCollectionDetail,
  footer,
  .site-footer,
  .app-footer-clean,
  .nflx-hc-footer,
  #catalogPagination,
  .pagination-bar,
  .pagination-container {
    display: none !important;
  }

  /* Base Body & Viewport Adjustments for Mobile Safari / Chrome Browser Bars */
  html {
    height: -webkit-fill-available;
  }

  body {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 16px)) !important;
    background-color: #000000 !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden !important;
  }

  .main-content {
    padding-top: 0 !important;
  }

  /* ================= 1. MOBILE TOP HEADER (GLASSMORPHISM & SMART COLLAPSE) ================= */
  .mobile-header-wrapper {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    padding-top: max(env(safe-area-inset-top, 0px), 8px) !important;
    padding-left: env(safe-area-inset-left, 0px) !important;
    padding-right: env(safe-area-inset-right, 0px) !important;
    background: rgba(22, 22, 26, 0.88) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: background 0.35s ease, box-shadow 0.35s ease !important;
  }

  /* Seamless smooth atmospheric fade when at top of page */
  .mobile-header-wrapper.at-top {
    background: linear-gradient(
      180deg,
      rgba(15, 15, 18, 0.85) 0%,
      rgba(15, 15, 18, 0.5) 50%,
      rgba(15, 15, 18, 0.15) 80%,
      transparent 100%
    ) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border-bottom: none !important;
    box-shadow: none !important;
  }

  .mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 4px 16px;
    background: transparent !important;
    border-bottom: none;
    position: relative;
    height: 44px;
  }

  .mobile-back-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.15s ease;
    flex-shrink: 0;
  }

  .mobile-back-btn:active {
    transform: scale(0.88);
  }

  .mobile-top-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    text-align: center;
  }

  /* When at home, align logo + Home to left */
  .mobile-top-bar.is-home .mobile-top-center {
    justify-content: flex-start;
  }

  .mobile-top-right-spacer {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .mobile-logo-n {
    width: 28px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(229, 9, 20, 0.4));
  }

  .mobile-page-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    font-family: var(--font-main);
  }

  /* ================= 2. SUB-NAVIGATION CATEGORY PILLS (SMART SCROLL HIDE/SHOW) ================= */
  .mobile-category-pills {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    padding: 4px 14px 12px 14px;
    background: transparent;
    overflow: hidden;
    max-height: 56px;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.28s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.22s ease, transform 0.28s cubic-bezier(0.2, 0, 0.2, 1), padding 0.28s ease;
  }

  .mobile-category-pills.hidden-pill-block {
    display: none !important;
  }

  /* Series & Films Centered Single Genre Pill & Dropdown */
  .mobile-catalog-pills {
    justify-content: center !important;
    overflow: visible !important;
  }

  .mobile-genre-dropdown-wrap {
    position: relative;
    display: inline-flex;
    justify-content: center;
  }

  /* Sleek Netflix Mobile Genre Dropdown Menu */
  .mobile-genre-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    max-height: 360px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(22, 22, 26, 0.96) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(0, 0, 0, 0.6) !important;
    padding: 8px 6px !important;
    z-index: 10000 !important;
    animation: fadeIn 0.18s ease !important;
  }

  .mobile-genre-dropdown-menu::-webkit-scrollbar {
    width: 4px;
  }
  .mobile-genre-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
  }

  .mobile-genre-menu-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    margin-bottom: 2px !important;
  }

  .mobile-genre-menu-item:active,
  .mobile-genre-menu-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
  }

  .mobile-genre-menu-item.active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
  }

  .mobile-genre-menu-item.active i {
    color: #e50914 !important;
    font-size: 13px !important;
  }

  /* When scrolling down: pill row smoothly collapses under top bar */
  .mobile-header-wrapper.pills-hidden .mobile-category-pills {
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transform: translateY(-8px) !important;
    pointer-events: none !important;
  }

  .mobile-pill-btn {
    flex: 1 1 0px !important;
    min-width: 0 !important;
    background: rgba(55, 55, 62, 0.78) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    font-size: clamp(11.5px, 3.1vw, 13.5px) !important;
    font-weight: 700 !important;
    padding: 8px 2px !important;
    border-radius: 24px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    transition: all 0.15s ease !important;
    font-family: var(--font-main) !important;
    letter-spacing: -0.2px !important;
    box-shadow: none !important;
  }

  .mobile-pill-btn.active {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: none !important;
  }

  /* Specific Centered Genre Pill (Series & Films) - Wider with NO GLOW */
  .mobile-category-pills .mobile-catalog-category-btn,
  .mobile-catalog-category-btn {
    flex: 0 0 auto !important;
    min-width: 155px !important;
    max-width: 250px !important;
    padding: 9px 34px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    gap: 16px !important;
    border-radius: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
  }

  .mobile-category-pills .mobile-catalog-category-btn .mobile-pill-caret,
  .mobile-catalog-category-btn .mobile-pill-caret {
    font-size: 11px !important;
    margin-left: 2px !important;
  }

  .mobile-category-pills .mobile-catalog-category-btn.active,
  .mobile-catalog-category-btn.active {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: none !important;
  }

  .mobile-pill-btn:active {
    transform: scale(0.95) !important;
  }

  /* ================= 3. INSET ROUNDED HERO BILLBOARD CARD ================= */
  .mobile-hero-wrapper {
    position: relative;
    padding-top: max(calc(106px + env(safe-area-inset-top, 0px)), 116px) !important;
    padding-bottom: 18px !important;
    padding-left: max(14px, env(safe-area-inset-left, 14px)) !important;
    padding-right: max(14px, env(safe-area-inset-right, 14px)) !important;
    overflow: hidden;
  }

  /* Ambient Dynamic Backdrop Glow (Fills the entire upper screen behind glassmorphism header) */
  .mobile-hero-ambient-glow {
    position: absolute;
    top: -20px;
    left: -20%;
    right: -20%;
    height: 680px;
    background-size: cover;
    background-position: center 20%;
    filter: blur(65px) saturate(185%) brightness(0.72);
    -webkit-filter: blur(65px) saturate(185%) brightness(0.72);
    opacity: 0.9;
    transform: scale(1.15);
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, background-image 0.5s ease;
  }

  .mobile-hero-ambient-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.1) 0%,
      transparent 30%,
      rgba(0, 0, 0, 0.7) 75%,
      #000000 100%
    );
  }

  /* Dynamic padding for views below fixed header */
  #viewHome,
  #viewCatalog {
    padding-top: 0 !important;
  }

  /* When genre filter is active and hero is hidden, pad catalog grid */
  .catalog-view-content {
    padding-top: 0 !important;
  }
  .sub-header.mobile-only-block {
    display: none !important;
  }

  #viewPopular,
  #viewCollections,
  #viewGenres,
  #viewCollectionDetail {
    padding-top: max(calc(60px + env(safe-area-inset-top, 0px)), 70px) !important;
    padding-left: max(14px, env(safe-area-inset-left, 14px)) !important;
    padding-right: max(14px, env(safe-area-inset-right, 14px)) !important;
  }

  #viewSearch {
    padding-top: 0 !important;
  }

  .mobile-hero-card {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 510px;
    border-radius: 18px;
    overflow: hidden;
    background: #141414;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .mobile-hero-skeleton {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    border-radius: 18px;
    background: linear-gradient(90deg, #141414 0%, #262626 50%, #141414 100%) !important;
    background-size: 200% 100% !important;
    animation: mSkeletonWave 1.4s infinite ease-in-out !important;
    transition: opacity 0.3s ease;
  }

  .mobile-hero-backdrop-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
  }

  /* Mini Red Logo in Top Left Corner of Card */
  .mobile-hero-badge-n {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    width: 20px;
    height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
  }

  /* Bottom Shadow Vignette Gradient inside Hero Card */
  .mobile-hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.2) 0%,
      transparent 30%,
      rgba(0, 0, 0, 0.4) 55%,
      rgba(0, 0, 0, 0.85) 78%,
      #000000 100%
    );
    pointer-events: none;
  }

  /* Bottom Content inside Hero Card */
  .mobile-hero-content {
    position: relative;
    z-index: 4;
    padding: 16px 16px 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mobile-hero-logo-img {
    max-width: 220px;
    max-height: 70px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9));
  }

  .mobile-hero-fallback-title {
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  }

  .mobile-hero-genres {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    margin-bottom: 14px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  }

  .mobile-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .mobile-hero-play-btn {
    flex: 1;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 6px;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease;
  }

  .mobile-hero-play-btn:active {
    transform: scale(0.96);
    background: #e6e6e6;
  }

  .mobile-hero-info-btn {
    flex: 1;
    background: rgba(45, 45, 45, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease;
  }

  .mobile-hero-info-btn:active {
    transform: scale(0.96);
    background: rgba(60, 60, 60, 0.95);
  }

  /* ================= 4. CONTENT CAROUSELS & ROWS (MOBILE OPTIMIZED) ================= */
  /* Hide Row Pagination Indicators on Mobile */
  .row-pagination-indicators,
  .indicator-dash {
    display: none !important;
  }

  /* Hide Desktop Slider Arrows on Mobile */
  .slider-handle,
  .slider-handle-left,
  .slider-handle-right,
  .desktop-carousel-nav-btn {
    display: none !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }

  /* Remove Side Sneak Peek Dark Vignette Overlays on Mobile (Crystal Clear Cards) */
  .carousel-slider-wrapper::before,
  .carousel-slider-wrapper::after,
  .carousel-slider-wrapper.has-scrolled::before {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    background: none !important;
  }

  .carousel-section {
    margin-bottom: 24px !important;
    padding: 0 !important;
  }

  .section-header {
    padding: 0 16px !important;
    margin-bottom: 8px !important;
  }

  .section-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: -0.2px !important;
  }

  .carousel-container {
    padding: 0 !important;
  }

  .carousel-track {
    padding: 0 16px !important;
    gap: 10px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    scroll-snap-type: x mandatory !important;
  }

  .carousel-track::-webkit-scrollbar {
    display: none !important;
  }

  /* Portrait Poster Card Sizing on Mobile Carousels Only */
  .carousel-track .movie-card {
    min-width: 115px !important;
    max-width: 125px !important;
    border-radius: 6px !important;
    scroll-snap-align: start !important;
  }

  .carousel-track .movie-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .carousel-track .movie-card:active {
    transform: scale(0.96) !important;
  }

  /* Landscape Episode Card Sizing on Mobile */
  .landscape-card {
    min-width: 220px !important;
    max-width: 240px !important;
    border-radius: 8px !important;
    scroll-snap-align: start !important;
  }

  /* ================= TOP 10 CARDS ON MOBILE (NETFLIX 1:1) ================= */
  .top10-carousel {
    padding: 0 16px 8px 16px !important;
    gap: 2px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    scroll-snap-type: x mandatory !important;
  }

  .top10-carousel::-webkit-scrollbar {
    display: none !important;
  }

  .top10-card {
    position: relative !important;
    flex: 0 0 162px !important;
    min-width: 162px !important;
    max-width: 168px !important;
    height: 145px !important;
    display: flex !important;
    align-items: flex-end !important;
    scroll-snap-align: start !important;
    margin: 0 !important;
    cursor: pointer !important;
  }

  .top10-card.top10-card-ten {
    flex: 0 0 162px !important;
    min-width: 162px !important;
    max-width: 168px !important;
  }

  .top10-card:hover,
  .top10-card:active {
    transform: scale(0.97) !important;
  }

  .top10-num-wrap {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 88px !important;
    height: 100% !important;
    z-index: 1 !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
  }

  .top10-num-wrap.top10-num-wrap-ten {
    width: 100px !important;
    left: 8px !important;
  }

  .top10-num-svg {
    height: 100% !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .top10-num-text {
    font-family: var(--font-main) !important;
    font-weight: 900 !important;
    font-size: 200px !important;
    fill: #000000 !important;
    stroke: #595959 !important;
    stroke-width: 7px !important;
    paint-order: stroke fill !important;
  }

  .top10-num-ten {
    font-size: 165px !important;
    letter-spacing: -16px !important;
  }

  .top10-poster-wrap {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 96px !important;
    height: 100% !important;
    aspect-ratio: 2/3 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    z-index: 2 !important;
    box-shadow: -8px 4px 18px rgba(0, 0, 0, 0.85) !important;
    background: #141414 !important;
  }

  .top10-poster {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 6px !important;
  }

  /* ================= 5. MOBILE BOTTOM NAVIGATION BAR (3 BUTTONS) ================= */
  .mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    height: calc(56px + env(safe-area-inset-bottom, 12px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 12px) !important;
    background: rgba(28, 28, 32, 0.88) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
  }

  .mobile-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    background: transparent !important;
    border: none !important;
    color: #8c8c8c !important;
    cursor: pointer !important;
    flex: 1 !important;
    height: 100% !important;
    padding: 6px 0 !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
  }

  .mobile-nav-item i,
  .mobile-nav-item svg {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    transition: transform 0.15s ease !important;
  }

  .mobile-nav-item span {
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    font-family: var(--font-main) !important;
  }

  .mobile-nav-item.active {
    color: #ffffff !important;
  }

  .mobile-nav-item.active i {
    transform: scale(1.1) !important;
    color: #ffffff !important;
  }

  .mobile-nav-item.active span {
    font-weight: 800 !important;
    color: #ffffff !important;
  }

  .mobile-nav-item:active {
    transform: scale(0.92) !important;
  }

  /* ================= 6. MOBILE DETAIL MODAL (NATIVE BOTTOM SHEET) ================= */
  .nflx-quick-modal {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .nflx-modal-content {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    margin: 0 !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    animation: nflxSheetSlideUp 0.3s cubic-bezier(0.2, 0, 0.2, 1) !important;
  }

  @keyframes nflxSheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .nflx-modal-backdrop-wrap {
    height: 230px !important;
    border-radius: 20px 20px 0 0 !important;
  }

  .nflx-modal-body {
    padding: 16px 16px 32px 16px !important;
  }

  .nflx-modal-grid-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .nflx-modal-more-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* ================= 7. MOBILE SEARCH & CATEGORIES 3-COLUMN GRID (3 3 3 3) ================= */
  #catalogGridWrap {
    padding: 0 10px !important;
    margin-top: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #catalogGrid,
  .search-results-grid,
  .catalog-grid,
  .cards-grid,
  .collection-portrait-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px 8px !important;
    padding: 10px 0 48px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #catalogGrid .movie-card,
  .catalog-grid .movie-card,
  .search-results-grid .movie-card,
  .cards-grid .movie-card,
  .collection-portrait-grid .movie-card {
    flex: unset !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 6px !important;
    scroll-snap-align: none !important;
    margin: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
  }

  #catalogGrid .card-poster-wrap,
  .catalog-grid .card-poster-wrap,
  .search-results-grid .card-poster-wrap,
  .cards-grid .card-poster-wrap,
  .collection-portrait-grid .card-poster-wrap {
    width: 100% !important;
    aspect-ratio: 2/3 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7) !important;
  }

  #catalogGrid .card-poster,
  .catalog-grid .card-poster,
  .search-results-grid .card-poster,
  .cards-grid .card-poster,
  .collection-portrait-grid .card-poster {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 2/3 !important;
    border-radius: 6px !important;
    object-fit: cover !important;
    display: block !important;
  }

  .catalog-grid .card-details,
  .search-results-grid .card-details,
  .cards-grid .card-details,
  .collection-portrait-grid .card-details {
    padding: 6px 1px 0 !important;
  }

  .catalog-grid .card-name,
  .search-results-grid .card-name,
  .cards-grid .card-name,
  .collection-portrait-grid .card-name {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    margin-top: 2px !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .catalog-grid .card-title-text,
  .search-results-grid .card-title-text,
  .cards-grid .card-title-text,
  .collection-portrait-grid .card-title-text {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
  }

  .catalog-grid .card-title-year,
  .search-results-grid .card-title-year,
  .cards-grid .card-title-year,
  .collection-portrait-grid .card-title-year {
    font-size: 10.5px !important;
    opacity: 0.65 !important;
    margin-left: 3px !important;
  }

  .catalog-grid .card-type-badge,
  .catalog-grid .card-quality-badge,
  .search-results-grid .card-type-badge,
  .search-results-grid .card-quality-badge {
    font-size: 8px !important;
    padding: 1.5px 4.5px !important;
    top: 4px !important;
    border-radius: 2px !important;
  }

  .catalog-grid .card-rating-badge,
  .search-results-grid .card-rating-badge {
    font-size: 8.5px !important;
    padding: 1.5px 4.5px !important;
    bottom: 4px !important;
    left: 4px !important;
    border-radius: 2px !important;
  }

  /* ================= 7B. MOBILE COLLECTIONS 2-COLUMN GRID (2 2 2 2) ================= */
  .collections-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px 10px !important;
    padding: 10px 12px 48px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .collections-grid .landscape-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: unset !important;
    margin: 0 !important;
  }

  .collections-grid .landscape-thumb-box {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7) !important;
  }

  .collections-grid .landscape-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .collections-grid .landscape-badge-ep,
  .collections-grid .landscape-badge-quality {
    font-size: 8px !important;
    padding: 1.5px 4.5px !important;
    border-radius: 2px !important;
  }

  .collections-grid .landscape-ep-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    margin-top: 5px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* Infinite Scroll Loading Spinner for Mobile */
  .infinite-scroll-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0 40px 0 !important;
    width: 100% !important;
    grid-column: 1 / -1 !important;
  }

  .infinite-scroll-loader .spinner-small {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #e50914;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  /* ================= 8. WATCH MODE & MORE INFO MODE (FULL THEATER IMMERSION ON MOBILE) ================= */
  body.in-watch-mode .mobile-header-wrapper,
  body.in-watch-mode .mobile-top-bar,
  body.in-watch-mode .mobile-category-pills,
  body.in-watch-mode .mobile-bottom-nav,
  body.in-mobile-detail .mobile-header-wrapper,
  body.in-mobile-detail .mobile-top-bar,
  body.in-mobile-detail .mobile-category-pills,
  body.in-mobile-detail .mobile-bottom-nav {
    display: none !important;
  }

  body.in-watch-mode {
    padding-bottom: 0 !important;
  }

  /* ================= 9. 1:1 AUTHENTIC NETFLIX MOBILE MORE INFO DETAIL PAGE ================= */
  body.in-mobile-detail {
    overflow: hidden !important;
  }

  #viewMobileDetail {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 99999;
    background: #000000 !important;
    padding-top: 0 !important;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 16px)) !important;
    animation: mDetailSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform;
  }

  #viewMobileDetail.is-closing {
    animation: mDetailSlideDown 0.20s cubic-bezier(0.32, 0.94, 0.6, 1) forwards !important;
    pointer-events: none !important;
  }

  @keyframes mDetailSlideUp {
    0% {
      transform: translateY(100%);
    }
    100% {
      transform: translateY(0);
    }
  }

  @keyframes mDetailSlideDown {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(100%);
    }
  }

  /* 16:9 Sticky Media Area (Stays pinned at top when scrolling synopsis, episodes, recs) */
  .m-detail-media-wrap {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    width: 100vw;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.85);
  }

  .m-detail-media-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
  }

  .m-detail-trailer-wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
  }

  .m-detail-trailer-iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto;
  }

  .m-detail-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .m-detail-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
  }

  .mobile-player-spinner {
    position: absolute;
    inset: 0;
    z-index: 6;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(2px);
  }

  .mobile-spinner-text {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
  }

  .m-detail-media-vignette {
    display: none !important;
  }

  /* Top Bar Actions on Video (Clean Close Button Top-Right) */
  .m-detail-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: max(calc(12px + env(safe-area-inset-top, 0px)), 16px) !important;
    padding-right: calc(14px + env(safe-area-inset-right, 0px)) !important;
    padding-bottom: 12px;
    padding-left: calc(14px + env(safe-area-inset-left, 0px)) !important;
  }

  .m-detail-top-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .m-detail-top-btn {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.15s ease;
  }

  .m-detail-top-btn:active {
    transform: scale(0.92);
  }

  /* Center Play Trailer Action */
  .m-detail-center-play {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
  }

  .m-detail-center-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #ffffff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease;
  }

  .m-detail-center-play-btn:active {
    transform: scale(0.92);
    background: rgba(229, 9, 20, 0.8);
    border-color: #ffffff;
  }

  .m-detail-audio-btn {
    position: absolute;
    bottom: 12px;
    right: 14px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
  }

  /* Body Content */
  .m-detail-body {
    position: relative;
    z-index: 4;
    padding: 10px 14px 24px 14px;
    background: #000000;
  }

  .m-detail-brand-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
  }

  .m-detail-n-symbol {
    color: #e50914;
    font-size: 18px;
    font-weight: 900;
    font-family: var(--font-main);
    line-height: 1;
    letter-spacing: -0.5px;
  }

  .m-detail-brand-type {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 2px;
    font-family: var(--font-main);
  }

  .m-detail-title-wrap {
    margin-bottom: 8px;
  }

  .m-detail-logo-img {
    max-width: 220px;
    max-height: 65px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
    display: block;
    margin-bottom: 4px;
  }

  .m-detail-title-text {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin: 0;
  }

  /* Meta Info Row */
  .m-detail-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-bottom: 14px;
  }

  .m-meta-item {
    color: #a3a3a3;
    font-size: 13px;
    font-weight: 500;
  }

  .m-meta-badge {
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
    font-size: 10px;
    font-weight: 700;
    padding: 1.5px 5px;
    border-radius: 3px;
    letter-spacing: 0.2px;
  }

  .m-meta-badge.m-meta-age {
    background: #333333;
    color: #ffffff;
  }

  .m-meta-rating {
    color: #ffc107;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }

  /* Primary Full-Width Action Buttons */
  .m-detail-primary-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
  }

  .m-btn-primary-play {
    width: 100%;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 5px;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease;
  }

  .m-btn-primary-play:active {
    transform: scale(0.98);
    background: #e6e6e6;
  }

  .m-btn-primary-download {
    width: 100%;
    background: rgba(45, 45, 45, 0.9);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.15s ease;
  }

  .m-btn-primary-download:active {
    transform: scale(0.98);
    background: rgba(60, 60, 60, 0.95);
  }

  /* Overview & Cast */
  .m-detail-overview-wrap {
    margin-bottom: 18px;
  }

  .m-detail-overview-text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 8px;
  }

  .m-detail-cast-line,
  .m-detail-director-line {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 2px;
  }

  .m-cast-label {
    color: rgba(255, 255, 255, 0.4);
  }

  /* 4-Button Quick Actions Bar */
  .m-detail-quick-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 8px 0 16px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .m-quick-action-btn {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #ffffff;
    cursor: pointer;
    padding: 6px 0;
  }

  .m-quick-action-btn i {
    font-size: 18px;
  }

  .m-quick-action-btn span {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
  }

  .m-quick-action-btn:active {
    opacity: 0.7;
    transform: scale(0.92);
  }

  /* Tabs Bar */
  .m-detail-tabs-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 16px;
  }

  .m-tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 0;
    position: relative;
    cursor: pointer;
    transition: color 0.15s ease;
  }

  .m-tab-btn.active {
    color: #ffffff;
  }

  .m-tab-red-indicator {
    display: none;
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e50914;
    border-radius: 2px 2px 0 0;
  }

  .m-tab-btn.active .m-tab-red-indicator {
    display: block;
  }

  /* Season Dropdown */
  .m-season-picker-wrap,
  .m-season-dropdown-wrap {
    position: relative !important;
    display: inline-block !important;
    margin-bottom: 16px;
  }

  .m-season-picker-btn {
    background: #24242c;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .m-season-picker-btn.single-season {
    cursor: default !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    pointer-events: none !important;
    box-shadow: none !important;
  }

  .m-season-picker-btn.single-season i,
  .m-season-picker-btn.single-season .fa-caret-down {
    display: none !important;
  }

  .m-season-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 170px;
    background: #24242c;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 6px 4px;
    max-height: 240px;
    overflow-y: auto;
  }

  .m-season-menu-item {
    padding: 9px 14px;
    color: #e6e6ee;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .m-season-menu-item:active {
    background: rgba(255, 255, 255, 0.08);
  }

  .m-season-menu-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 700;
  }

  /* Episodes List */
  .m-episodes-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .m-ep-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .m-ep-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
  }

  .m-ep-thumb-wrap {
    position: relative;
    flex: 0 0 120px;
    width: 120px;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: #181818;
  }

  .m-ep-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .m-ep-play-circle {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
  }

  .m-ep-play-circle i {
    color: #ffffff;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
  }

  .m-ep-info-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .m-ep-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .m-ep-title {
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
  }

  .m-ep-duration {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11.5px;
  }

  .m-ep-download-icon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    padding: 6px;
    cursor: pointer;
  }

  .m-ep-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    line-height: 1.4;
  }

  .m-ep-item.playing {
    border-left: 3px solid #e50914 !important;
    background: rgba(229, 9, 20, 0.08) !important;
    padding-left: 8px !important;
  }

  .m-ep-item.playing .m-ep-title {
    color: #e50914 !important;
  }

  /* ================= 9B. 1:1 DEDICATED MOBILE WATCH / PLAY VIDEO PAGE ================= */
  #viewMobileWatch {
    position: relative;
    z-index: 9999;
    background: #000000 !important;
    min-height: 100vh !important;
    padding-top: 0 !important;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 16px)) !important;
    animation: mWatchSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
  }

  #viewMobileWatch.is-closing {
    animation: mWatchSlideDown 0.20s cubic-bezier(0.4, 0, 1, 1) forwards !important;
    pointer-events: none !important;
  }

  @keyframes mWatchSlideUp {
    0% {
      opacity: 0;
      transform: translateY(30px) scale(0.98);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes mWatchSlideDown {
    0% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    100% {
      opacity: 0;
      transform: translateY(35px) scale(0.97);
    }
  }

  body.in-mobile-watch .mobile-header-wrapper,
  body.in-mobile-watch .mobile-top-bar,
  body.in-mobile-watch .mobile-category-pills,
  body.in-mobile-watch .mobile-bottom-nav {
    display: none !important;
  }

  .m-watch-player-wrap {
    position: relative;
    width: 100vw;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
    user-select: none;
    user-select: none;
    -webkit-user-select: none;
  }

  /* Fullscreen & Pseudo-Fullscreen mode (Ultra-robust for iOS & Android) */
  body.in-mobile-fullscreen {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }

  .m-watch-player-wrap.is-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    height: -webkit-fill-available !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    z-index: 9999999 !important;
    aspect-ratio: auto !important;
    background: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  .m-watch-player-wrap:fullscreen,
  .m-watch-player-wrap:-webkit-full-screen {
    position: relative !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    z-index: 9999999 !important;
    background: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  /* ================= 1. IN-PLAYER MODERN VIDEO SECTION (STICKY TOP WATCH EXPERIENCE) ================= */
  .player-section {
    width: 100%;
    background: #000;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    user-select: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.85);
  }

  .player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
  }

  video.tester-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
  }

  /* Subtitle Styling: Apple SF Pro Native, Medium 500, Transparent, Elevated 20% */
  ::cue {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, sans-serif !important;
    font-weight: 500 !important;
    font-size: 1.18rem !important;
    text-shadow: 
      -1.5px -1.5px 0 #000,  
       1.5px -1.5px 0 #000,
      -1.5px  1.5px 0 #000,
       1.5px  1.5px 0 #000,
       0 2px 6px rgba(0, 0, 0, 0.95) !important;
    line-height: 1.35 !important;
    -webkit-font-smoothing: antialiased;
  }
  video::-webkit-media-text-track-container {
    bottom: 18% !important;
    z-index: 2147483647 !important;
  }
  video::-webkit-media-text-track-display {
    background: transparent !important;
    background-color: transparent !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, sans-serif !important;
    font-weight: 500 !important;
    font-size: 1.18rem !important;
    text-shadow: 
      -1.5px -1.5px 0 #000,  
       1.5px -1.5px 0 #000,
      -1.5px  1.5px 0 #000,
       1.5px  1.5px 0 #000,
       0 2px 6px rgba(0, 0, 0, 0.95) !important;
    margin-bottom: 20px !important;
  }

  /* ================= PERSISTENT PAGE CLOSE '✕' BUTTON ================= */
  .m-watch-page-close-btn {
    position: absolute;
    top: 12px !important;
    right: 14px !important;
    z-index: 95;
    pointer-events: auto !important;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.15s ease, background 0.15s ease;
  }

  .m-watch-page-close-btn:active {
    transform: scale(0.92);
    background: rgba(229, 9, 20, 0.85);
  }

  .player-section.fullscreen-mode .m-watch-page-close-btn {
    position: fixed !important;
    top: calc(16px + env(safe-area-inset-top, 0px)) !important;
    right: calc(16px + env(safe-area-inset-right, 0px)) !important;
    z-index: 100000000 !important;
  }

  /* ================= TOUCH CONTROLS OVERLAY ================= */
  .player-overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px 14px;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    opacity: 1;
    visibility: visible;
  }
  .player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .center-play-btn {
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: transform 0.15s, background 0.15s;
  }
  .center-play-btn:active {
    transform: scale(0.9);
    background: rgba(229, 9, 20, 0.7);
    border-color: #e50914;
  }

  /* Bottom Control Bar */
  .overlay-bottom-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  /* Scrubber / Progress Bar */
  .p-progress-wrap {
    position: relative;
    width: 100%;
    height: 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  .p-progress-bg {
    position: absolute;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
  }
  .p-progress-buffered {
    position: absolute;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 2px;
    width: 0%;
    transition: width 0.2s;
  }
  .p-progress-fill {
    position: absolute;
    left: 0;
    height: 4px;
    background: var(--primary, #e50914);
    border-radius: 2px;
    width: 0%;
  }
  .p-progress-thumb {
    position: absolute;
    left: 0%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary, #e50914);
    box-shadow: 0 0 6px rgba(229, 9, 20, 0.8);
    transform: translateX(-50%);
    transition: transform 0.1s;
  }

  /* Bottom Controls Row */
  .p-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .p-bottom-left, .p-bottom-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .ctrl-icon-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: transform 0.15s, color 0.15s;
  }
  .ctrl-icon-btn:active {
    transform: scale(0.9);
    color: var(--primary, #e50914);
  }
  .time-display-lbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.3px;
  }

  /* ================= NETFLIX CLEAN MINIMALIST GREY MODAL ================= */
  .nflx-res-modal {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 85;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px;
  }
  .nflx-res-sheet {
    width: 100%;
    max-width: 400px;
    background: #24242c; /* Clean Netflix Charcoal Grey */
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9);
    animation: nflxSheetUp 0.18s cubic-bezier(0.25, 1, 0.5, 1);
  }
  @keyframes nflxSheetUp {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  .nflx-res-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nflx-res-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
  }
  .nflx-res-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #b3b3c2;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s;
  }
  .nflx-res-close:active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
  }
  .nflx-res-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 210px;
    overflow-y: auto;
  }
  .nflx-res-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 8px;
    background: transparent;
    color: #e6e6ee;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }
  .nflx-res-item:active {
    background: rgba(255, 255, 255, 0.08);
  }
  .nflx-res-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 700;
  }
  .nflx-res-left {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .nflx-res-badge-hd {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    letter-spacing: 0.5px;
  }
  .nflx-res-check {
    font-size: 0.9rem;
    color: #ffffff;
  }

  /* ================= 100% NETFLIX-GRADE MOBILE PRE-ROLL VIDEO AD OVERLAY ================= */
  .m-preroll-ad-overlay {
    position: absolute;
    inset: 0;
    z-index: 35;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: opacity 0.3s ease;
  }

  .m-preroll-ad-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
  }

  .m-preroll-top-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 36;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 4px 10px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    pointer-events: none;
  }

  .m-preroll-ad-tag {
    background: #e50914;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 2px;
    letter-spacing: 0.5px;
  }

  .m-preroll-ad-dot {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
  }

  .m-preroll-countdown-text {
    font-variant-numeric: tabular-nums;
  }

  .m-preroll-bottom-controls {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 36;
    display: flex;
    align-items: center;
  }

  .m-preroll-learn-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s ease;
  }

  .m-preroll-learn-btn:active {
    background: rgba(229, 9, 20, 0.85);
  }

  /* Loading / Countdown Overlay (Behind Close Button) */
  .loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .loading-spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--primary, #e50914);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  .countdown-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary, #e50914);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
    text-shadow: 0 0 16px rgba(229, 9, 20, 0.6);
  }
  .loading-text {
    font-size: 0.85rem;
    color: var(--text-muted, #a1a1aa);
    font-weight: 500;
    text-align: center;
    max-width: 80%;
  }

  /* Fullscreen styles for playerSection */
  .player-section.fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 9999999 !important;
  }
  .player-section.fullscreen-mode .player-wrap {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
  }

  .m-watch-time-display {
    font-size: 11.5px;
    font-weight: 600;
    color: #d1d5db;
    font-variant-numeric: tabular-nums;
  }

  .m-watch-body {
    padding: 16px 14px 40px 14px;
    background: #000000;
    color: #ffffff;
  }

  .m-watch-info-box {
    margin-bottom: 20px;
  }

  .m-watch-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.25;
    letter-spacing: -0.3px;
  }

  /* Series Quick Episode Navigation Bar (Prev / Next) */
  .m-watch-ep-nav-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 10px 0;
  }

  .m-watch-ep-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #222228;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s;
  }

  .m-watch-ep-nav-btn:active:not(:disabled) {
    transform: scale(0.97);
    background: #33333e;
  }

  .m-watch-ep-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
  }

  /* Clean Netflix "Now Playing" Indicator (Single-line Truncated) */
  .m-watch-current-ep-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1c1c24;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 12px;
    border-radius: 6px;
    margin: 10px 0 12px 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .m-watch-ep-red-tag {
    flex-shrink: 0;
    background: #e50914;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.6px;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
  }

  .m-watch-ep-text {
    color: #f1f1f4;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .m-watch-overview {
    font-size: 13px;
    line-height: 1.45;
    color: #a1a1aa;
    margin: 8px 0 0 0;
  }

  .m-watch-episodes-wrap {
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
  }

  .m-watch-episodes-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 14px;
  }

  .m-watch-episodes-heading {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
  }

  .m-watch-movie-card {
    background: #141414;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .m-watch-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
  }

  .m-watch-feature-item i {
    font-size: 24px;
    color: #e50914;
  }

  /* ================= 10. MOBILE CONTACT US (PUSAT BANTUAN) ================= */
  #viewContactUs.nflx-hc-page {
    position: relative;
    padding-top: max(calc(68px + env(safe-area-inset-top, 0px)), 76px) !important;
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 16px)) !important;
    min-height: 100vh !important;
    background: #ffffff !important;
    color: #141414 !important;
    overflow-y: auto !important;
  }

  .nflx-hc-header {
    display: none !important;
  }

  .nflx-hc-body {
    padding: 24px 16px !important;
    background: #ffffff !important;
  }

  .nflx-hc-container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .nflx-hc-heading {
    font-size: 24px !important;
    margin-top: 6px !important;
    margin-bottom: 18px !important;
    color: #141414 !important;
  }

  .nflx-hc-tabs {
    display: flex !important;
    gap: 20px !important;
    border-bottom: 2px solid #e6e6e6 !important;
    margin-bottom: 20px !important;
    overflow-x: auto !important;
  }

  .nflx-hc-tab {
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    padding: 8px 4px 10px !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #737373 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: color 0.2s ease, border-color 0.2s ease !important;
    white-space: nowrap !important;
  }

  .nflx-hc-tab.active {
    color: #000000 !important;
    font-weight: 700 !important;
    border-bottom: 3px solid #000000 !important;
  }

  .nflx-faq-card {
    margin-bottom: 10px !important;
  }

  .nflx-faq-trigger {
    padding: 14px !important;
    font-size: 14px !important;
  }

  .nflx-faq-inner {
    padding: 12px 14px !important;
    font-size: 13px !important;
  }

  /* ================= 10B. MOBILE DEDICATED COLLECTION DETAIL ================= */
  .collection-detail-main-title {
    display: block !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 8px 0 8px 0 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.3px !important;
  }

  .collection-detail-description {
    display: block !important;
    font-size: 13.5px !important;
    color: #a3a3a3 !important;
    margin-bottom: 20px !important;
    line-height: 1.45 !important;
  }

  /* ================= 11. 1:1 AUTHENTIC NETFLIX MOBILE SEARCH PAGE ================= */
  .mobile-search-page-container {
    position: relative;
    min-height: 100vh !important;
    background: #000000 !important;
    color: #ffffff !important;
    padding: max(calc(14px + env(safe-area-inset-top, 0px)), 18px) max(14px, env(safe-area-inset-right, 14px)) calc(76px + env(safe-area-inset-bottom, 16px)) max(14px, env(safe-area-inset-left, 14px)) !important;
    overflow-y: auto !important;
  }

  .m-search-header {
    margin-bottom: 20px;
  }

  .m-search-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .m-search-main-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
  }

  .m-search-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .m-search-input-box {
    flex: 1;
    display: flex;
    align-items: center;
    background: #262626;
    border-radius: 8px;
    padding: 0 12px;
    height: 42px;
    position: relative;
  }

  .m-search-icon {
    color: #999999;
    font-size: 15px;
    margin-right: 10px;
    flex-shrink: 0;
  }

  .m-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
  }

  .m-search-input::placeholder {
    color: #8c8c8c;
  }

  .m-search-clear-btn {
    background: transparent;
    border: none;
    color: #8c8c8c;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .m-search-cancel-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    padding: 0 4px;
    flex-shrink: 0;
  }

  .m-search-section-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
  }

  /* 1. Recommended List (16:9 Landscape Items) */
  .m-search-recommended-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .m-rec-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #141414;
    border-radius: 4px;
    overflow: hidden;
    padding-right: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
  }

  .m-rec-item:active {
    background: #242424;
  }

  .m-rec-thumb-wrap {
    width: 140px;
    height: 78px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #222222;
  }

  .m-rec-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .m-rec-badge-top {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #e50914;
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 2px;
    text-transform: uppercase;
    line-height: 1.1;
  }

  .m-rec-badge-bottom {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: #e50914;
    color: #ffffff;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
    line-height: 1.1;
  }

  .m-rec-title {
    flex: 1;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .m-rec-play-btn {
    color: #ffffff;
    font-size: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
  }

  /* 2. Active Search Results (3-Column Poster Grid) */
  #mSearchResultsGrid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .m-search-empty-state {
    text-align: center;
    padding: 40px 10px;
    color: #8c8c8c;
    font-size: 14px;
  }

  /* ================= 12. NETFLIX-GRADE MOBILE SKELETON SHIMMER SYSTEM ================= */
  .m-skeleton-shimmer,
  .shimmer-card {
    background: linear-gradient(90deg, #181818 0%, #292929 50%, #181818 100%) !important;
    background-size: 200% 100% !important;
    animation: mSkeletonWave 1.4s infinite ease-in-out !important;
  }

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

  /* Unified Shimmer Card in Carousels */
  .shimmer-card,
  .m-skeleton-card-portrait {
    flex: 0 0 112px !important;
    width: 112px !important;
    aspect-ratio: 2 / 3 !important;
    border-radius: 6px !important;
    background: linear-gradient(90deg, #181818 0%, #292929 50%, #181818 100%) !important;
    background-size: 200% 100% !important;
    animation: mSkeletonWave 1.4s infinite ease-in-out !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  }

  .landscape-carousel .shimmer-card,
  .m-skeleton-card-landscape {
    flex: 0 0 200px !important;
    width: 200px !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 6px !important;
    background: linear-gradient(90deg, #181818 0%, #292929 50%, #181818 100%) !important;
    background-size: 200% 100% !important;
    animation: mSkeletonWave 1.4s infinite ease-in-out !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  }

  /* Skeleton Hero Card */
  .m-skeleton-hero-card {
    width: 100%;
    height: 510px;
    border-radius: 18px;
    background: #141414;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
  }

  /* Skeleton Carousel Row */
  .m-skeleton-row-wrap {
    margin-bottom: 24px;
    padding: 0 16px;
  }

  .m-skeleton-row-title {
    width: 140px;
    height: 18px;
    border-radius: 4px;
    margin-bottom: 12px;
  }

  .m-skeleton-track {
    display: flex;
    gap: 10px;
    overflow: hidden;
  }

  /* Skeleton 3-Column Grid */
  .m-skeleton-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px 8px !important;
    padding: 10px 0 48px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .m-skeleton-grid-card {
    width: 100% !important;
    aspect-ratio: 2 / 3 !important;
    border-radius: 6px !important;
    background: #181818 !important;
  }

  /* Skeleton 2-Column Collection Grid */
  .m-skeleton-grid-2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px 10px !important;
    padding: 10px 12px 48px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .m-skeleton-collection-card {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 6px !important;
    background: #181818 !important;
  }

  /* Skeleton Search Recommendations */
  .m-skeleton-rec-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 4px;
    background: #141414;
    border-radius: 4px;
    padding-right: 14px;
    overflow: hidden;
  }

  .m-skeleton-rec-thumb {
    width: 140px;
    height: 78px;
    flex-shrink: 0;
    background: #222222;
  }

  .m-skeleton-rec-text {
    flex: 1;
    height: 16px;
    border-radius: 4px;
  }

  /* Skeleton Episode Rows */
  .m-skeleton-ep-item {
    padding: 14px 0;
    border-bottom: 1px solid #1a1a1a;
  }

  .m-skeleton-ep-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
  }

  .m-skeleton-ep-thumb {
    width: 120px;
    height: 68px;
    border-radius: 5px;
    flex-shrink: 0;
    background: #222222;
  }

  .m-skeleton-ep-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .m-skeleton-ep-title {
    width: 70%;
    height: 14px;
    border-radius: 4px;
  }

  .m-skeleton-ep-desc {
    width: 100%;
    height: 30px;
    border-radius: 4px;
  }

  /* ================= 13. PWA STANDALONE & NOTCH / STATUS BAR BUFFER ================= */
  @media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
    .mobile-header-wrapper {
      padding-top: max(env(safe-area-inset-top, 0px), 24px) !important;
    }
    .mobile-hero-wrapper {
      padding-top: max(calc(116px + env(safe-area-inset-top, 0px)), 136px) !important;
    }
    #viewPopular,
    #viewCollections,
    #viewGenres,
    #viewCollectionDetail {
      padding-top: max(calc(76px + env(safe-area-inset-top, 0px)), 96px) !important;
    }
    #viewContactUs.nflx-hc-page {
      padding-top: max(calc(84px + env(safe-area-inset-top, 0px)), 104px) !important;
    }
    .mobile-search-page-container {
      padding-top: max(calc(24px + env(safe-area-inset-top, 0px)), 42px) !important;
    }

    /* PWA More Info Page: Clean Black Notch Cushion & Backdrop starting safely below Notch */
    .m-detail-media-wrap {
      padding-top: max(env(safe-area-inset-top, 0px), 24px) !important;
      background: #000000 !important;
      box-sizing: content-box !important;
    }
    .m-detail-media-backdrop,
    .m-detail-trailer-wrap,
    .m-detail-video-wrap,
    .m-detail-center-play {
      top: max(env(safe-area-inset-top, 0px), 24px) !important;
    }
    .m-detail-top-bar {
      top: max(env(safe-area-inset-top, 0px), 24px) !important;
      padding-top: 12px !important;
    }

    /* PWA Watch / Play Page: Clean Black Notch Cushion & Crisp Close Button Placement */
    .player-section:not(.fullscreen-mode) {
      padding-top: max(env(safe-area-inset-top, 0px), 24px) !important;
      background: #000000 !important;
      box-sizing: content-box !important;
    }
    .m-watch-page-close-btn {
      top: 12px !important;
      right: 14px !important;
    }
    .player-section.fullscreen-mode {
      padding-top: 0 !important;
    }
    .player-section.fullscreen-mode .m-watch-page-close-btn {
      top: max(calc(12px + env(safe-area-inset-top, 0px)), 14px) !important;
      right: max(calc(12px + env(safe-area-inset-right, 0px)), 14px) !important;
    }
  }

  body.pwa-standalone .mobile-header-wrapper {
    padding-top: max(env(safe-area-inset-top, 0px), 24px) !important;
  }
  body.pwa-standalone .mobile-hero-wrapper {
    padding-top: max(calc(116px + env(safe-area-inset-top, 0px)), 136px) !important;
  }
  body.pwa-standalone #viewPopular,
  body.pwa-standalone #viewCollections,
  body.pwa-standalone #viewGenres,
  body.pwa-standalone #viewCollectionDetail {
    padding-top: max(calc(76px + env(safe-area-inset-top, 0px)), 96px) !important;
  }
  body.pwa-standalone #viewContactUs.nflx-hc-page {
    padding-top: max(calc(84px + env(safe-area-inset-top, 0px)), 104px) !important;
  }
  body.pwa-standalone .mobile-search-page-container {
    padding-top: max(calc(24px + env(safe-area-inset-top, 0px)), 42px) !important;
  }

  /* PWA More Info Page: Clean Black Notch Cushion & Backdrop starting safely below Notch */
  body.pwa-standalone .m-detail-media-wrap {
    padding-top: max(env(safe-area-inset-top, 0px), 24px) !important;
    background: #000000 !important;
    box-sizing: content-box !important;
  }
  body.pwa-standalone .m-detail-media-backdrop,
  body.pwa-standalone .m-detail-trailer-wrap,
  body.pwa-standalone .m-detail-video-wrap,
  body.pwa-standalone .m-detail-center-play {
    top: max(env(safe-area-inset-top, 0px), 24px) !important;
  }
  body.pwa-standalone .m-detail-top-bar {
    top: max(env(safe-area-inset-top, 0px), 24px) !important;
    padding-top: 12px !important;
  }

  /* PWA Watch / Play Page: Clean Black Notch Cushion & Crisp Close Button Placement */
  body.pwa-standalone .player-section:not(.fullscreen-mode) {
    padding-top: max(env(safe-area-inset-top, 0px), 24px) !important;
    background: #000000 !important;
    box-sizing: content-box !important;
  }
  body.pwa-standalone .m-watch-page-close-btn {
    top: 12px !important;
    right: 14px !important;
  }
  body.pwa-standalone .player-section.fullscreen-mode {
    padding-top: 0 !important;
  }
  body.pwa-standalone .player-section.fullscreen-mode .m-watch-page-close-btn {
    top: max(calc(12px + env(safe-area-inset-top, 0px)), 14px) !important;
    right: max(calc(12px + env(safe-area-inset-right, 0px)), 14px) !important;
  }

  /* Mobile Micro-Interactions (Fluid Button Feedback & Bottom Nav Tap Motion) */
  .m-watch-page-close-btn:active,
  .m-detail-top-btn:active {
    transform: scale(0.86) !important;
    transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }
  .mobile-nav-item {
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .mobile-nav-item:active {
    transform: scale(0.92);
  }
  .mobile-nav-item i {
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  }
  .mobile-nav-item.active i {
    transform: scale(1.14);
  }
  .m-detail-action-btn:active,
  .m-watch-action-btn:active,
  .m-detail-center-play-btn:active {
    transform: scale(0.92);
    transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
}

