/**
 * FilmyBazaar Desktop Detail Modal — mockup-aligned (768px+ only)
 */
@media (min-width: 768px) {
  #movieModal.fb-dm-open,
  html.fb-desktop-ott #movieModal.fb-dm-open {
    z-index: 2800 !important;
    pointer-events: auto;
  }

  #movieModal.fb-dm-open.show,
  html.fb-desktop-ott #movieModal.fb-dm-open.show,
  #movieModal.show:has(.fb-dm-page),
  html.fb-desktop-ott #movieModal.show:has(.fb-dm-page) {
    display: block !important;
    position: fixed !important;
    top: var(--fb-dm-top, var(--fb-hh, var(--fb-topnav-height, 64px))) !important;
    left: var(--fb-sidebar-width, 72px) !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #000 !important;
  }

  #movieModal.fb-dm-open .modal-overlay,
  html.fb-desktop-ott #movieModal.fb-dm-open .modal-overlay {
    display: none !important;
  }

  #movieModal.fb-dm-open .modal-container,
  html.fb-desktop-ott #movieModal.fb-dm-open .modal-container,
  html.fb-desktop-ott #movieModal.fb-dm-open.fb-dm-fullpage .modal-container,
  #movieModal.show:has(.fb-dm-page) .modal-container,
  html.fb-desktop-ott #movieModal.show:has(.fb-dm-page) .modal-container {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    background: #0a0a0a !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    z-index: 2 !important;
    animation: none !important;
  }

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

  #movieModal.fb-dm-open .modal-content,
  html.fb-desktop-ott #movieModal.fb-dm-open .modal-content {
    padding: 0 !important;
    height: 100% !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(229, 9, 20, 0.75) rgba(255, 255, 255, 0.08);
  }

  html.fb-desktop-ott #movieModal.fb-dm-open .modal-content::-webkit-scrollbar {
    width: 10px;
  }

  html.fb-desktop-ott #movieModal.fb-dm-open .modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
  }

  html.fb-desktop-ott #movieModal.fb-dm-open .modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e50914, #b8070f);
    border-radius: 999px;
    border: 2px solid rgba(10, 10, 10, 0.85);
  }

  html.fb-desktop-ott #movieModal.fb-dm-open .modal-content::-webkit-scrollbar-thumb:hover {
    background: #f40612;
  }

  html.fb-desktop-ott #movieModal.fb-dm-open .modal-content {
    height: 100% !important;
    max-height: none !important;
  }

  html.fb-desktop-ott body.fb-modal-open #fb-wa,
  html.fb-desktop-ott body.fb-modal-open #fb-apk-popup:not(.fb-gone) {
    display: none !important;
    pointer-events: none !important;
  }

  #movieModal.fb-dm-open .modal-close,
  html.fb-desktop-ott #movieModal.fb-dm-open .modal-close {
    display: none !important;
  }

  /* ——— Refined desktop detail panel ——— */
  .fb-dm-page {
    background: #0a0a0a;
    color: #fff;
    min-height: 100%;
    position: relative;
    overflow: visible;
    padding-top: 0;
    padding-bottom: 1.5rem;
  }

  .fb-dm-cinema-backdrop,
  .fb-dm-ambient {
    display: none !important;
  }

  .fb-dm-chrome {
    position: sticky;
    top: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.12rem clamp(0.75rem, 1.6vw, 1.1rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: #000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html.fb-desktop-ott body.fb-dm-layout-locked .fb-page-shell > main.main {
    visibility: hidden;
  }

  html.fb-desktop-ott body.fb-dm-layout-locked #movieModal.fb-dm-open .modal-overlay {
    display: none !important;
  }

  .fb-dm-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .fb-dm-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .fb-dm-crumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.55rem;
    min-width: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.42);
  }

  .fb-dm-crumb i {
    font-size: 0.55rem;
    opacity: 0.45;
  }

  .fb-dm-crumb-current {
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(420px, 52vw);
  }

  .fb-dm-chrome-close {
    width: 40px;
    height: 40px;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
    position: relative;
    z-index: 14;
  }

  .fb-dm-chrome-close:hover {
    background: rgba(229, 9, 20, 0.85);
    transform: scale(1.04);
  }

  .fb-dm-chrome-close i,
  #movieModal.fb-dm-open .modal-close i {
    pointer-events: none;
  }

  .fb-dm-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.15rem;
  }

  .fb-dm-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.82);
  }

  .fb-dm-pill--match {
    background: rgba(70, 211, 105, 0.14);
    border-color: rgba(70, 211, 105, 0.35);
    color: #7dff9a;
  }

  .fb-dm-pill--4k,
  .fb-dm-pill--quality.fb-dm-pill--4k {
    background: linear-gradient(135deg, #ffd700, #e6ac00);
    border-color: rgba(255, 215, 0, 0.55);
    color: #111;
    font-weight: 800;
  }

  .fb-dm-pill--quality:not(.fb-dm-pill--4k) {
    background: rgba(0, 120, 255, 0.16);
    border-color: rgba(0, 120, 255, 0.35);
    color: #7ec8ff;
    font-weight: 800;
  }

  .fb-dm-poster-quality {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    z-index: 4;
    pointer-events: none;
  }

  .fb-dm-hero-art {
    position: relative;
  }

  .fb-dm-pill i {
    color: #ffc947;
    font-size: 0.62rem;
  }

  .fb-dm-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .fb-dm-genre-tag {
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
  }

  .fb-dm-tagline {
    margin: -0.25rem 0 0;
    font-size: 0.92rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
  }

  .fb-dm-modal-bar {
    display: none;
  }

  .fb-dm-hero-split {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 0;
    padding: 0;
    align-items: start;
    max-width: none;
    margin: 0;
    position: relative;
    z-index: 1;
    min-height: 0;
  }

  html.fb-desktop-ott .fb-dm-hero-media {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem 0 1rem 1.15rem;
    background: linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }

  html.fb-desktop-ott .fb-dm-media {
    width: 100%;
    max-width: 260px;
  }

  html.fb-desktop-ott .fb-dm-poster {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  html.fb-desktop-ott .fb-dm-poster img {
    width: 100%;
    display: block;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    max-height: min(72vh, 520px);
  }

  .fb-dm-media-close {
    display: none !important;
  }

  .fb-dm-hero-info {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.75rem clamp(0.85rem, 1.8vw, 1.35rem);
    position: relative;
    z-index: 2;
  }

  .fb-dm-hero-info .fb-dm-title,
  html.fb-desktop-ott .fb-dm-page .fb-dm-hero-info .fb-dm-title {
    font-family: 'Poppins', 'Inter', sans-serif !important;
    font-size: clamp(1.45rem, 2.4vw, 2.15rem) !important;
    font-weight: 700 !important;
    line-height: 1.18 !important;
    margin: 0 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
    overflow: visible !important;
    word-break: break-word;
    padding-top: 0.06em;
  }

  .fb-dm-year {
    margin: -0.35rem 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
  }

  .fb-dm-stars {
    display: flex;
    gap: 0.18rem;
    color: rgba(255, 255, 255, 0.22);
    font-size: 0.92rem;
  }

  .fb-dm-stars .is-on { color: #ffc947; }

  .fb-dm-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
    margin-top: 0.1rem;
  }

  .fb-dm-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.2rem;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.86);
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 600;
    transition: background 0.15s ease;
  }

  .fb-dm-quick-btn i { font-size: 1rem; }

  .fb-dm-quick-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.09);
  }

  .fb-dm-quick-btn.is-active { color: #ff4747; }

  .fb-dm-quick-btn:disabled {
    opacity: 0.35;
    cursor: default;
  }

  .fb-dm-watch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.8rem 1.15rem;
    border: none;
    border-radius: 11px;
    background: linear-gradient(135deg, #ff4747, #e50914);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(229, 9, 20, 0.32);
    transition: filter 0.15s ease, transform 0.15s ease;
    position: relative;
    z-index: 3;
  }

  .fb-dm-watch:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
  }

  .fb-dm-stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.85rem clamp(1rem, 2.5vw, 2rem) 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  @media (min-width: 1100px) {
    .fb-dm-stats-row {
      grid-template-columns: repeat(6, minmax(0, 1fr));
    }
  }

  .fb-dm-stat {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .fb-dm-stat-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.3rem;
  }

  .fb-dm-stat strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
  }

  .fb-dm-overview-block {
    padding: 0.85rem clamp(1rem, 2.5vw, 2rem) 0.35rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  .fb-dm-overview-block h3 {
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
    font-weight: 700;
  }

  .fb-dm-page .fb-dm-body-extra {
    padding: 0.65rem clamp(1rem, 2.5vw, 2rem) 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.35rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
  }

  .fb-dm-loading .fb-dm-shimmer,
  .fb-dm-sh-line.fb-dm-shimmer {
    border-radius: 10px;
    background: linear-gradient(90deg, #141414 0%, #222 50%, #141414 100%);
    background-size: 200% 100%;
    animation: fbDmShimmer 1.2s ease-in-out infinite;
  }

  .fb-dm-loading .fb-dm-hero-art.fb-dm-shimmer {
    aspect-ratio: 16 / 10;
    min-height: 210px;
  }

  .fb-dm-load-msg {
    margin: 1rem clamp(1rem, 2.5vw, 2rem) 2rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
  }

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

  .fb-dm-page .fb-dm-cast-item strong {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    margin-bottom: 0.12rem;
  }

  .fb-dm-page .fb-dm-cast-item span {
    display: block;
    font-size: 0.67rem;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.3;
  }

  .fb-dm-sim-rail--poster .fb-dm-sim-card--poster {
    flex: 0 0 112px;
  }

  .fb-dm-sim-rail--poster .fb-dm-sim-card--poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
  }

  #movieModal.fb-dm-playing .fb-dm-hero-split,
  html.fb-desktop-ott #movieModal.fb-dm-playing .fb-dm-hero-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: stretch;
  }

  #movieModal.fb-dm-playing .fb-dm-hero-media,
  html.fb-desktop-ott #movieModal.fb-dm-playing .fb-dm-hero-media {
    align-items: stretch;
    align-self: stretch;
  }

  #movieModal.fb-dm-playing .fb-dm-media,
  html.fb-desktop-ott #movieModal.fb-dm-playing .fb-dm-media {
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: min(72vh, 520px);
  }

  #movieModal.fb-dm-playing .fb-dm-player,
  html.fb-desktop-ott #movieModal.fb-dm-playing .fb-dm-player {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  #movieModal.fb-dm-playing .fb-dm-player-mount,
  html.fb-desktop-ott #movieModal.fb-dm-playing .fb-dm-player-mount {
    flex: 1;
    aspect-ratio: auto;
    min-height: min(72vh, 520px);
    height: 100%;
    border-radius: 10px;
  }

  #movieModal.fb-dm-playing .fb-dm-player-mount .custom-video-player,
  #movieModal.fb-dm-playing .fb-dm-player-mount .fb-dm-inline-player,
  html.fb-desktop-ott #movieModal.fb-dm-playing .fb-dm-player-mount .custom-video-player,
  html.fb-desktop-ott #movieModal.fb-dm-playing .fb-dm-player-mount .fb-dm-inline-player {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    display: block !important;
  }

  #movieModal.fb-dm-playing .fb-dm-player-mount iframe,
  html.fb-desktop-ott #movieModal.fb-dm-playing .fb-dm-player-mount iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  #movieModal.fb-dm-playing .fb-dm-hero-art,
  html.fb-desktop-ott #movieModal.fb-dm-playing .fb-dm-hero-art {
    aspect-ratio: 16 / 9;
  }

  #movieModal.fb-dm-playing .fb-dm-layout,
  html.fb-desktop-ott #movieModal.fb-dm-playing .fb-dm-layout {
    grid-template-columns: minmax(320px, 42%) 1fr !important;
  }

  .fb-dm,
  html.fb-desktop-ott .fb-dm {
    color: #fff;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    position: relative;
  }

  html.fb-desktop-ott .fb-dm-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    min-height: 520px;
  }

  html.fb-desktop-ott .fb-dm-left {
    background: #080808;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  html.fb-desktop-ott .fb-dm-poster {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  }

  html.fb-desktop-ott .fb-dm-media {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 100%;
  }

  html.fb-desktop-ott .fb-dm-player {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
  }

  html.fb-desktop-ott .fb-dm-player[hidden] {
    display: none !important;
  }

  html.fb-desktop-ott .fb-dm-poster[hidden] {
    display: none !important;
  }

  html.fb-desktop-ott .fb-dm-player-chrome {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.25rem;
  }

  html.fb-desktop-ott .fb-dm-player-back,
  html.fb-desktop-ott .fb-dm-player-lanes {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
  }

  html.fb-desktop-ott .fb-dm-player-back:hover,
  html.fb-desktop-ott .fb-dm-player-lanes:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  html.fb-desktop-ott .fb-dm-player-title {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }

  html.fb-desktop-ott .fb-dm-player-mount {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 280px;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  }

  html.fb-desktop-ott .fb-dm-player-mount .custom-video-player,
  html.fb-desktop-ott .fb-dm-player-mount .fb-dm-inline-player {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: inherit;
  }

  html.fb-desktop-ott .fb-dm-player-mount iframe {
    border-radius: inherit;
  }

  #movieModal.fb-dm-open .fb-dm-server-picker,
  html.fb-desktop-ott #movieModal.fb-dm-open .fb-dm-server-picker,
  html.fb-desktop-ott .fb-dm-server-picker,
  html.fb-desktop-ott .fb-dm-server-picker--portal {
    position: fixed;
    z-index: 3500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    pointer-events: auto;
    inset: 0;
  }

  /* Portal picker beside sidebar (body-level, avoids double offset + overflow clip) */
  html.fb-desktop-ott .fb-dm-server-picker--portal {
    left: var(--fb-sidebar-width);
    top: var(--fb-dm-top, var(--fb-hh, var(--fb-topnav-height, 64px)));
    width: calc(100% - var(--fb-sidebar-width));
    height: calc(100vh - var(--fb-dm-top, var(--fb-hh, var(--fb-topnav-height, 64px))));
    right: auto;
    bottom: auto;
  }

  /* Legacy in-container picker — fill panel only, no second sidebar offset */
  html.fb-desktop-ott #movieModal.fb-dm-open .modal-container .fb-dm-server-picker:not(.fb-dm-server-picker--portal) {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    inset: auto !important;
  }

  html.fb-desktop-ott .fb-dm-server-panel,
  html.fb-desktop-ott .fb-dm-server-panel--clean {
    position: relative;
    width: min(340px, 100%);
    padding: 0;
    border-radius: 18px;
    background: rgba(22, 22, 24, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.35),
      0 24px 64px rgba(0, 0, 0, 0.55);
    overflow: hidden;
  }

  html.fb-desktop-ott .fb-dm-server-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 2;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    transition: background 0.15s ease, color 0.15s ease;
  }

  html.fb-desktop-ott .fb-dm-server-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  html.fb-desktop-ott .fb-dm-server-list {
    padding: 1.35rem 1.1rem 1.1rem;
  }

  html.fb-desktop-ott .fb-dm-server-clean-head {
    padding-right: 1.75rem;
    margin-bottom: 0.85rem;
  }

  html.fb-desktop-ott .fb-dm-server-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
  }

  html.fb-desktop-ott .fb-dm-server-clean-head h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
  }

  html.fb-desktop-ott .fb-dm-server-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  html.fb-desktop-ott .fb-dm-lane {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 46px;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  }

  html.fb-desktop-ott .fb-dm-lane:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
  }

  html.fb-desktop-ott .fb-dm-lane.is-default {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
  }

  html.fb-desktop-ott .fb-dm-lane-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lane, #ff3d3d);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lane, #ff3d3d) 22%, transparent);
    flex-shrink: 0;
  }

  html.fb-desktop-ott .fb-dm-lane-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    flex: 1;
    min-width: 0;
  }

  html.fb-desktop-ott .fb-dm-lane-name {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  html.fb-desktop-ott .fb-dm-lane-sub {
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.42);
  }

  html.fb-desktop-ott .fb-dm-lane-play {
    font-size: 0.62rem;
    opacity: 0;
    color: rgba(255, 255, 255, 0.55);
    transition: opacity 0.15s ease, transform 0.15s ease;
    transform: translateX(-4px);
  }

  html.fb-desktop-ott .fb-dm-lane:hover .fb-dm-lane-play,
  html.fb-desktop-ott .fb-dm-lane.is-default .fb-dm-lane-play {
    opacity: 1;
    transform: translateX(0);
  }

  html.fb-desktop-ott .fb-dm-server-hint {
    margin: 0.65rem 0 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255, 215, 120, 0.92);
  }

  html.fb-desktop-ott .fb-dm-server-micro {
    margin: 0.85rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.68rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.32);
    text-align: center;
  }

  html.fb-desktop-ott .fb-dm-poster img {
    width: 100%;
    display: block;
    aspect-ratio: 2/3;
    object-fit: cover;
  }

  html.fb-desktop-ott .fb-dm-trailer-btn {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease;
  }

  html.fb-desktop-ott .fb-dm-trailer-btn:hover {
    background: rgba(229, 9, 20, 0.85);
  }

  html.fb-desktop-ott .fb-dm-trailer-btn i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
  }

  html.fb-desktop-ott .fb-dm-seasons {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  html.fb-desktop-ott .fb-dm-season-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
  }

  html.fb-desktop-ott .fb-dm-season-btn span:last-child {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
  }

  html.fb-desktop-ott .fb-dm-season-btn:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  html.fb-desktop-ott .fb-dm-season-btn.is-active {
    background: #e50914;
    color: #fff;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.35);
  }

  html.fb-desktop-ott .fb-dm-season-btn.is-active span:last-child {
    color: rgba(255, 255, 255, 0.85);
  }

  html.fb-desktop-ott .fb-dm-season-btn.is-soon {
    opacity: 0.55;
    cursor: default;
  }

  html.fb-desktop-ott .fb-dm-main {
    padding: 1.75rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  html.fb-desktop-ott .fb-dm-main .fb-dm-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.08;
    margin: 0;
    text-transform: uppercase;
  }

  html.fb-desktop-ott .fb-dm-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    color: #b3b3b3;
    font-size: 0.82rem;
  }

  html.fb-desktop-ott .fb-dm-meta-dot {
    opacity: 0.4;
  }

  html.fb-desktop-ott .fb-dm-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
  }

  html.fb-desktop-ott .fb-dm-genres {
    color: #808080;
    font-size: 0.85rem;
    margin: 0;
  }

  html.fb-desktop-ott .fb-dm-overview {
    color: #b3b3b3;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
    max-width: 720px;
  }

  html.fb-desktop-ott .fb-dm-more {
    color: #e50914;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    font-size: inherit;
  }

  html.fb-desktop-ott .fb-dm-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.25rem;
  }

  html.fb-desktop-ott .fb-dm-play {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.6rem;
    border: none;
    border-radius: 999px;
    background: #e50914;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(229, 9, 20, 0.4);
    transition: transform 0.15s ease, background 0.15s ease;
  }

  html.fb-desktop-ott .fb-dm-play:hover {
    background: #f40612;
    transform: scale(1.02);
  }

  html.fb-desktop-ott .fb-dm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
  }

  html.fb-desktop-ott .fb-dm-btn:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  html.fb-desktop-ott .fb-dm-icon-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  html.fb-desktop-ott .fb-dm-btn--report {
    border-color: rgba(229, 9, 20, 0.5);
    color: #ff6b6b;
    background: transparent;
  }

  html.fb-desktop-ott .fb-dm-report-wrap {
    position: relative;
    margin-left: auto;
  }

  html.fb-desktop-ott .fb-dm-report-tip {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(260px, 70vw);
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 12;
  }

  html.fb-desktop-ott .fb-dm-report-tip i {
    color: #e50914;
    margin-right: 0.35rem;
  }

  html.fb-desktop-ott .fb-dm-report-tip strong {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
  }

  html.fb-desktop-ott .fb-dm-report-tip span {
    display: block;
    color: #808080;
    font-size: 0.76rem;
    line-height: 1.45;
  }

  html.fb-desktop-ott .fb-dm-report-wrap:hover .fb-dm-report-tip,
  html.fb-desktop-ott .fb-dm-report-wrap:focus-within .fb-dm-report-tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  html.fb-desktop-ott .fb-dm-icon-btn.is-liked {
    background: rgba(229, 9, 20, 0.2);
    border-color: rgba(229, 9, 20, 0.45);
    color: #fff;
  }

  html.fb-desktop-ott .fb-dm-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.5rem;
    padding-bottom: 0;
  }

  html.fb-desktop-ott .fb-dm-tab {
    padding: 0.65rem 0;
    border: none;
    background: none;
    color: #808080;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.15s ease;
  }

  html.fb-desktop-ott .fb-dm-tab:hover {
    color: #fff;
  }

  html.fb-desktop-ott .fb-dm-tab.is-active {
    color: #fff;
  }

  html.fb-desktop-ott .fb-dm-tab.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: #e50914;
    border-radius: 3px 3px 0 0;
  }

  html.fb-desktop-ott .fb-dm-panel {
    padding-top: 1.25rem;
    min-height: 200px;
  }

  html.fb-desktop-ott .fb-dm-panel[hidden] {
    display: none !important;
  }

  html.fb-desktop-ott .fb-dm-ep-head {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  html.fb-desktop-ott .fb-dm-ep-head h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
  }

  html.fb-desktop-ott .fb-dm-ep-head span {
    color: #808080;
    font-size: 0.85rem;
  }

  html.fb-desktop-ott .fb-dm-ep-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  html.fb-desktop-ott .fb-dm-ep-row {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.65rem 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
  }

  html.fb-desktop-ott .fb-dm-ep-row:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  html.fb-desktop-ott .fb-dm-ep-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #1a1a1a;
  }

  html.fb-desktop-ott .fb-dm-ep-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  html.fb-desktop-ott .fb-dm-ep-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.15s ease;
  }

  html.fb-desktop-ott .fb-dm-ep-row:hover .fb-dm-ep-play {
    opacity: 1;
  }

  html.fb-desktop-ott .fb-dm-ep-play i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
  }

  html.fb-desktop-ott .fb-dm-ep-info h4 {
    margin: 0 0 0.25rem;
    font-size: 0.92rem;
    font-weight: 600;
  }

  html.fb-desktop-ott .fb-dm-ep-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #808080;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  html.fb-desktop-ott .fb-dm-ep-dur {
    color: #808080;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  html.fb-desktop-ott .fb-dm-ep-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0;
    border: none;
    background: none;
    color: #b3b3b3;
    font-size: 0.85rem;
    cursor: pointer;
  }

  html.fb-desktop-ott .fb-dm-ep-more:hover {
    color: #fff;
  }

  html.fb-desktop-ott .fb-dm-cast-head,
  html.fb-desktop-ott .fb-dm-sim-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
  }

  html.fb-desktop-ott .fb-dm-cast-head h3,
  html.fb-desktop-ott .fb-dm-sim-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
  }

  html.fb-desktop-ott .fb-dm-view-all {
    color: #e50914;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
  }

  html.fb-desktop-ott .fb-dm-cast-rail {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
  }

  html.fb-desktop-ott .fb-dm-cast-item {
    flex: 0 0 auto;
    width: 88px;
    text-align: center;
    cursor: pointer;
  }

  html.fb-desktop-ott .fb-dm-cast-item img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 0.45rem;
  }

  html.fb-desktop-ott .fb-dm-cast-item span {
    display: block;
    font-size: 0.75rem;
    color: #b3b3b3;
    line-height: 1.3;
  }

  html.fb-desktop-ott .fb-dm-sim-rail {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
  }

  html.fb-desktop-ott .fb-dm-sim-card {
    flex: 0 0 220px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #1a1a1a;
    transition: transform 0.15s ease;
    position: relative;
  }

  html.fb-desktop-ott .fb-dm-sim-card:hover {
    transform: scale(1.03);
  }

  html.fb-desktop-ott .fb-dm-sim-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
  }

  html.fb-desktop-ott .fb-dm-sim-label {
    display: block;
    padding: 0.55rem 0.65rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  html.fb-desktop-ott .fb-dm-sim-block,
  html.fb-desktop-ott .fb-dm-episodes-block {
    margin-top: 1.75rem;
  }

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

  html.fb-desktop-ott .fb-dm-details-grid dt {
    color: #808080;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
  }

  html.fb-desktop-ott .fb-dm-details-grid dd {
    margin: 0 0 0.75rem;
    color: #fff;
    font-size: 0.88rem;
  }

  html.fb-desktop-ott .fb-dm-movie .fb-dm-layout {
    grid-template-columns: 260px 1fr;
  }

  html.fb-desktop-ott .fb-dm-movie .fb-dm-body-extra {
    padding: 0 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  html.fb-desktop-ott .fb-dm-loading {
    padding: 2rem;
    text-align: center;
    color: #808080;
  }
}
