/**
 * FilmyBazaar Desktop Sidebar — premium labeled navigation
 */
@media (min-width: 768px) {
  html.fb-desktop-ott {
    --fb-sidebar-width: 232px;
  }

  html.fb-desktop-ott.fb-sidebar-collapsed {
    --fb-sidebar-width: 72px;
  }

  html.fb-desktop-ott .fb-desktop-sidebar {
    z-index: 1100;
    background:
      linear-gradient(180deg, rgba(229, 9, 20, 0.06) 0%, transparent 22%),
      linear-gradient(180deg, #0c0c0c 0%, #050505 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.45);
  }

  html.fb-desktop-ott .fb-desktop-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #e50914 0%, rgba(229, 9, 20, 0.15) 40%, transparent 100%);
    pointer-events: none;
  }

  html.fb-desktop-ott .fb-sidebar-brand {
    position: relative;
    padding: 1.15rem 1.1rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.35);
  }

  html.fb-desktop-ott .fb-sidebar-brand i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.25), rgba(229, 9, 20, 0.08));
    border: 1px solid rgba(229, 9, 20, 0.35);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.15);
    font-size: 1.1rem;
  }

  html.fb-desktop-ott .fb-sidebar-brand-text {
    font-family: var(--fb-font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    background: linear-gradient(90deg, #fff 0%, #ffb3b3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  html.fb-desktop-ott .fb-sidebar-scroll {
    padding: 0.65rem 0 0.85rem;
    scrollbar-color: rgba(229, 9, 20, 0.35) transparent;
  }

  html.fb-desktop-ott .fb-sidebar-label {
    padding: 1rem 1.15rem 0.35rem;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.35);
  }

  html.fb-desktop-ott .fb-sidebar-link {
    position: relative;
    margin: 3px 10px;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    border-left: none;
    gap: 0.75rem;
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    overflow: hidden;
  }

  html.fb-desktop-ott .fb-sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    border-radius: 0 3px 3px 0;
    background: #e50914;
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.6);
    transition: height 0.22s ease;
  }

  html.fb-desktop-ott .fb-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transform: translateX(2px);
  }

  html.fb-desktop-ott .fb-sidebar-link.fb-sidebar-active {
    background: linear-gradient(90deg, rgba(229, 9, 20, 0.18) 0%, rgba(229, 9, 20, 0.04) 100%);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.12);
  }

  html.fb-desktop-ott .fb-sidebar-link.fb-sidebar-active::before {
    height: 60%;
  }

  html.fb-desktop-ott .fb-sidebar-icon {
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  html.fb-desktop-ott .fb-sidebar-link:hover .fb-sidebar-icon {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
  }

  html.fb-desktop-ott .fb-sidebar-link.fb-sidebar-active .fb-sidebar-icon {
    background: rgba(229, 9, 20, 0.2);
    border-color: rgba(229, 9, 20, 0.45);
    color: #ff6b6b;
    box-shadow: 0 0 16px rgba(229, 9, 20, 0.25);
  }

  html.fb-desktop-ott .fb-sidebar-divider {
    margin: 0.65rem 1rem;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  }

  html.fb-desktop-ott .fb-sidebar-footer {
    padding: 0.75rem 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.25);
  }

  html.fb-desktop-ott .fb-sidebar-toggle {
    border-radius: 10px;
    border-color: rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
  }

  html.fb-desktop-ott .fb-sidebar-apk {
    margin-top: 0.35rem;
    background: linear-gradient(90deg, rgba(0, 206, 201, 0.12), rgba(0, 206, 201, 0.04)) !important;
    border: 1px solid rgba(0, 206, 201, 0.22) !important;
  }

  html.fb-desktop-ott .fb-sidebar-apk .fb-sidebar-icon {
    background: rgba(0, 206, 201, 0.15) !important;
    border-color: rgba(0, 206, 201, 0.35) !important;
    color: #00cec9 !important;
  }

  /* Collapsed: icon rail with tooltips */
  html.fb-desktop-ott.fb-sidebar-collapsed .fb-sidebar-brand {
    justify-content: center;
    padding-inline: 0.5rem;
  }

  html.fb-desktop-ott.fb-sidebar-collapsed .fb-sidebar-brand-text,
  html.fb-desktop-ott.fb-sidebar-collapsed .fb-sidebar-label,
  html.fb-desktop-ott.fb-sidebar-collapsed .fb-sidebar-toggle span {
    display: none !important;
  }

  html.fb-desktop-ott.fb-sidebar-collapsed .fb-sidebar-link {
    justify-content: center;
    padding: 0.55rem;
    margin-inline: 8px;
    overflow: visible;
  }

  html.fb-desktop-ott.fb-sidebar-collapsed .fb-sidebar-link > span:not(.fb-sidebar-icon) {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    width: auto !important;
    overflow: visible !important;
    transform: translateY(-50%) translateX(-6px);
    padding: 0.4rem 0.75rem;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.78rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  html.fb-desktop-ott.fb-sidebar-collapsed .fb-sidebar-link:hover > span:not(.fb-sidebar-icon) {
    opacity: 1 !important;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
  }

  /* Mockup UI alignment */
  html.fb-desktop-ott.fb-mockup-ui .fb-page-shell {
    margin-left: var(--fb-sidebar-width);
    width: calc(100% - var(--fb-sidebar-width));
    max-width: none;
    box-sizing: border-box;
  }

  html.fb-desktop-ott.fb-mockup-ui .fb-hub-shell {
    margin-left: 0;
    width: 100%;
    max-width: none;
  }

  html.fb-desktop-ott.fb-mockup-ui .fb-site-chrome .header {
    left: var(--fb-sidebar-width);
  }
}
