/**
 * FilmyBazaar Desktop Hub Pages — movies, series, anime, trending, profile, 404
 */
@media (min-width: 768px) {
  html.fb-desktop-ott main.main.fb-hub-hidden {
    visibility: hidden;
    height: 0;
    overflow: hidden;
    pointer-events: none;
  }

  html.fb-desktop-ott .fb-hub-shell {
    display: none;
    min-height: calc(100vh - var(--fb-topnav-height, 64px));
    padding: calc(var(--fb-topnav-height, 64px) + 0.35rem) clamp(1.25rem, 2vw, 2rem) 3rem;
    margin-left: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    background: #000;
  }

  html.fb-desktop-ott .fb-hub-shell.fb-hub-open {
    display: block;
  }

  html.fb-desktop-ott .fb-hub-hero {
    position: relative;
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1.5rem;
  }

  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--trending {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.12) 0%, transparent 55%);
    margin: 0 -1.75rem 1.5rem;
    padding: 2rem 1.75rem 1.5rem;
  }

  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, transparent 55%);
    margin: 0 -1.75rem 1.5rem;
    padding: 2rem 1.75rem 1.5rem;
  }

  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--anime {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(229, 9, 20, 0.06) 100%);
    margin: 0 -1.75rem 1.5rem;
    padding: 2rem 1.75rem 1.5rem;
  }

  html.fb-desktop-ott .fb-hub-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #b3b3b3;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
  }

  html.fb-desktop-ott .fb-hub-back:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  html.fb-desktop-ott .fb-hub-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 0.35rem;
    line-height: 1.08;
    padding-top: 0.06em;
    overflow: visible;
  }

  html.fb-desktop-ott .fb-hub-sub {
    color: #808080;
    font-size: 0.95rem;
    margin: 0;
    max-width: 560px;
  }

  html.fb-desktop-ott .fb-hub-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
  }

  html.fb-desktop-ott .fb-hub-filter {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #b3b3b3;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  html.fb-desktop-ott .fb-hub-filter:hover,
  html.fb-desktop-ott .fb-hub-filter.fb-hub-filter--active {
    background: rgba(229, 9, 20, 0.15);
    border-color: rgba(229, 9, 20, 0.4);
    color: #fff;
  }

  html.fb-desktop-ott .fb-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    gap: 0.85rem;
    width: 100%;
  }

  html.fb-desktop-ott .fb-hub-grid .movie-card {
    position: relative;
    border-radius: 12px;
    background: #141414;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  html.fb-desktop-ott .fb-hub-grid .movie-card:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  }

  html.fb-desktop-ott .fb-hub-grid .movie-poster {
    width: 100%;
    height: 252px;
    object-fit: cover;
    display: block;
  }

  html.fb-desktop-ott .fb-hub-grid .fb-hub-poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #0a0a0a;
  }

  html.fb-desktop-ott .fb-hub-grid .fb-hub-poster-wrap .fb-quality-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    right: auto;
    z-index: 9;
    padding: 0.22rem 0.48rem;
    border-radius: 6px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    pointer-events: none;
  }

  html.fb-desktop-ott .fb-hub-grid .fb-hub-poster-wrap .fb-hub-type-pill {
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    z-index: 9;
    padding: 0.22rem 0.45rem;
    border-radius: 6px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #6c5ce7, #0984e3);
    pointer-events: none;
  }

  html.fb-desktop-ott .fb-hub-grid .fb-hub-poster-wrap .movie-rating {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    position: absolute;
    top: auto !important;
    bottom: 8px !important;
    right: 8px !important;
    left: auto !important;
    z-index: 10;
    width: auto !important;
    max-width: calc(100% - 16px);
    min-width: 0;
    height: auto !important;
    padding: 0.28rem 0.55rem !important;
    border-radius: 999px !important;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap !important;
    color: #ffd700 !important;
    background: rgba(0, 0, 0, 0.84) !important;
    border: 1px solid rgba(255, 215, 0, 0.35) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
  }

  html.fb-desktop-ott .fb-hub-grid .fb-hub-poster-wrap .movie-rating i {
    color: #ffd700 !important;
    font-size: 0.62rem;
    margin: 0 !important;
    flex-shrink: 0;
  }

  html.fb-desktop-ott .fb-hub-grid .fb-hub-poster-wrap .movie-rating span {
    font-variant-numeric: tabular-nums;
  }

  html.fb-desktop-ott .fb-hub-grid .fb-hub-card-meta {
    padding: 0.45rem 0.55rem 0.6rem;
    background: #141414;
  }

  html.fb-desktop-ott .fb-hub-grid .fb-hub-card-title {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  html.fb-desktop-ott .fb-hub-grid .fb-hub-card-year {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
  }

  html.fb-desktop-ott .fb-hub-rank {
    position: absolute;
    left: -0.35rem;
    bottom: 0;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 5rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.35);
    pointer-events: none;
    z-index: 2;
  }

  html.fb-desktop-ott .fb-hub-grid .fb-hub-ranked {
    position: relative;
    padding-left: 2.5rem;
  }

  html.fb-desktop-ott .fb-hub-collections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
  }

  html.fb-desktop-ott .fb-hub-collection-card {
    position: relative;
    min-height: 160px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease;
  }

  html.fb-desktop-ott .fb-hub-collection-card:hover {
    transform: scale(1.02);
  }

  html.fb-desktop-ott .fb-hub-collection-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
  }

  html.fb-desktop-ott .fb-hub-collection-card .fb-hub-col-copy {
    position: relative;
    z-index: 2;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 160px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  }

  html.fb-desktop-ott .fb-hub-collection-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem;
  }

  html.fb-desktop-ott .fb-hub-collection-card p {
    font-size: 0.8rem;
    color: #b3b3b3;
    margin: 0;
  }

  html.fb-desktop-ott .fb-hub-loading {
    text-align: center;
    padding: 0.5rem 0 1rem;
    color: #808080;
  }

  html.fb-desktop-ott .fb-hub-loading .fb-hub-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #e50914;
    border-radius: 50%;
    animation: fbHubSpin 0.8s linear infinite;
    margin: 0 auto 1rem;
  }

  @keyframes fbHubSpin {
    to { transform: rotate(360deg); }
  }

  /* Profile hub */
  html.fb-desktop-ott .fb-profile-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  html.fb-desktop-ott .fb-profile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
  }

  html.fb-desktop-ott .fb-profile-nav button {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #b3b3b3;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
  }

  html.fb-desktop-ott .fb-profile-nav button:hover,
  html.fb-desktop-ott .fb-profile-nav button.fb-profile-tab--active {
    background: rgba(229, 9, 20, 0.12);
    color: #fff;
  }

  html.fb-desktop-ott .fb-profile-nav button i {
    width: 18px;
    color: #e50914;
  }

  html.fb-desktop-ott .fb-profile-panel {
    min-height: 400px;
  }

  html.fb-desktop-ott .fb-profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  html.fb-desktop-ott .fb-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid #e50914;
  }

  html.fb-desktop-ott .fb-profile-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: #fff;
  }

  html.fb-desktop-ott .fb-profile-header p {
    margin: 0;
    color: #808080;
    font-size: 0.875rem;
  }

  html.fb-desktop-ott .fb-profile-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #808080;
  }

  html.fb-desktop-ott .fb-profile-empty i {
    font-size: 2.5rem;
    color: #404040;
    margin-bottom: 1rem;
  }

  /* 404 hub */
  html.fb-desktop-ott .fb-hub-404 {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 520px;
    margin: 0 auto;
  }

  html.fb-desktop-ott .fb-hub-404-code {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 8rem;
    line-height: 1;
    color: rgba(229, 9, 20, 0.35);
    margin: 0;
  }

  html.fb-desktop-ott .fb-hub-404 h2 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 0.75rem;
  }

  html.fb-desktop-ott .fb-hub-404 p {
    color: #808080;
    margin: 0 0 1.5rem;
  }

  html.fb-desktop-ott .fb-hub-404 .btn {
    background: #e50914;
    border: none;
    border-radius: 6px;
    padding: 0.65rem 1.5rem;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
  }

  /* Search overlay filters */
  html.fb-desktop-ott .fb-dsearch-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  html.fb-desktop-ott .fb-dsearch-filters {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
  }

  html.fb-desktop-ott .fb-dsearch-filters h4 {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #606060;
    margin: 0 0 0.65rem;
  }

  html.fb-desktop-ott .fb-dsearch-filters h4:not(:first-child) {
    margin-top: 1rem;
  }

  html.fb-desktop-ott .fb-dsearch-filter-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.4rem 0.55rem;
    margin-bottom: 0.25rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #b3b3b3;
    font-size: 0.82rem;
    cursor: pointer;
  }

  html.fb-desktop-ott .fb-dsearch-filter-btn:hover,
  html.fb-desktop-ott .fb-dsearch-filter-btn.fb-dsearch-filter--active {
    background: rgba(229, 9, 20, 0.12);
    color: #fff;
  }

  html.fb-desktop-ott .fb-dsearch-recent {
    margin-bottom: 1.5rem;
  }

  html.fb-desktop-ott .fb-dsearch-recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.45rem 0;
    border: none;
    background: none;
    color: #b3b3b3;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
  }

  html.fb-desktop-ott .fb-dsearch-recent-item:hover {
    color: #fff;
  }

  html.fb-desktop-ott .fb-dsearch-featured {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    text-align: left;
    color: inherit;
    width: 100%;
  }

  html.fb-desktop-ott .fb-dsearch-featured img {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
  }

  /* Category hub hero themes */
  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--bollywood {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.14) 0%, transparent 60%);
    margin: 0 -1.75rem 1.5rem;
    padding: 2rem 1.75rem 1.5rem;
  }

  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--punjabi {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12) 0%, rgba(229, 9, 20, 0.08) 100%);
    margin: 0 -1.75rem 1.5rem;
    padding: 2rem 1.75rem 1.5rem;
  }

  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--hollywood {
    background: linear-gradient(135deg, rgba(0, 114, 255, 0.1) 0%, transparent 55%);
    margin: 0 -1.75rem 1.5rem;
    padding: 2rem 1.75rem 1.5rem;
  }

  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--south {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.12) 0%, rgba(229, 9, 20, 0.06) 100%);
    margin: 0 -1.75rem 1.5rem;
    padding: 2rem 1.75rem 1.5rem;
  }

  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--horror {
    background: linear-gradient(135deg, rgba(80, 0, 120, 0.25) 0%, rgba(0, 0, 0, 0.4) 100%);
    margin: 0 -1.75rem 1.5rem;
    padding: 2rem 1.75rem 1.5rem;
  }

  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--romance {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.14) 0%, transparent 55%);
    margin: 0 -1.75rem 1.5rem;
    padding: 2rem 1.75rem 1.5rem;
  }

  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--comedy {
    background: linear-gradient(135deg, rgba(255, 235, 59, 0.1) 0%, transparent 55%);
    margin: 0 -1.75rem 1.5rem;
    padding: 2rem 1.75rem 1.5rem;
  }

  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--tamil,
  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--telugu,
  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--malayalam,
  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--kannada {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.14) 0%, rgba(229, 9, 20, 0.08) 100%);
    margin: 0 -1.75rem 1.5rem;
    padding: 2rem 1.75rem 1.5rem;
  }

  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--bengali,
  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--marathi {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.12) 0%, rgba(76, 175, 80, 0.08) 100%);
    margin: 0 -1.75rem 1.5rem;
    padding: 2rem 1.75rem 1.5rem;
  }

  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--korean,
  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--japanese {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.12) 0%, rgba(63, 81, 181, 0.1) 100%);
    margin: 0 -1.75rem 1.5rem;
    padding: 2rem 1.75rem 1.5rem;
  }

  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--action {
    background: linear-gradient(135deg, rgba(255, 61, 61, 0.16) 0%, rgba(255, 152, 0, 0.08) 100%);
    margin: 0 -1.75rem 1.5rem;
    padding: 2rem 1.75rem 1.5rem;
  }

  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--scifi {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.14) 0%, rgba(63, 81, 181, 0.12) 100%);
    margin: 0 -1.75rem 1.5rem;
    padding: 2rem 1.75rem 1.5rem;
  }

  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--thriller {
    background: linear-gradient(135deg, rgba(55, 0, 90, 0.28) 0%, rgba(0, 0, 0, 0.35) 100%);
    margin: 0 -1.75rem 1.5rem;
    padding: 2rem 1.75rem 1.5rem;
  }

  html.fb-desktop-ott .fb-hub-hero.fb-hub-hero--documentary {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.12) 0%, rgba(96, 125, 139, 0.1) 100%);
    margin: 0 -1.75rem 1.5rem;
    padding: 2rem 1.75rem 1.5rem;
  }

  html.fb-desktop-ott .fb-hub-load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0 1rem;
    padding-bottom: 1rem;
  }

  html.fb-desktop-ott .fb-hub-load-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  }

  html.fb-desktop-ott .fb-hub-load-more:hover:not(:disabled) {
    background: rgba(229, 9, 20, 0.2);
    border-color: rgba(229, 9, 20, 0.45);
    transform: translateY(-1px);
  }

  html.fb-desktop-ott .fb-hub-load-more:disabled {
    opacity: 0.65;
    cursor: wait;
  }

  html.fb-desktop-ott .fb-hub-load-hint {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
  }

  html.fb-desktop-ott .fb-hub-grid .movie-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  html.fb-desktop-ott .fb-hub-grid .movie-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  }

  html.fb-desktop-ott .fb-dsearch-featured strong {
    display: block;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.25rem;
  }

  html.fb-desktop-ott .fb-dsearch-panel {
    width: min(960px, 100%);
  }
}
