/* ==========================================================================
   StreamFliz - Noir Crimson Design System (New Frontend Identity)
   Typography: Space Grotesk (Display) + Plus Jakarta Sans (Body)
   Palette: Deep Obsidian (#050507 / #0b0b0f / #121217) + Crimson (#e50914)
   ========================================================================== */

:root {
  --noir-bg: #050507;
  --noir-surface: #0b0b0f;
  --noir-card: #111116;
  --noir-elevated: #17171e;
  --noir-border: rgba(255, 255, 255, 0.08);
  --noir-border-hover: rgba(229, 9, 20, 0.5);
  --noir-red: #e50914;
  --noir-red-hover: #ff1e2b;
  --noir-text: #f8fafc;
  --noir-muted: #9ca3af;
  --noir-dim: #71717a;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html,
body {
  background-color: var(--noir-bg) !important;
  color: var(--noir-text);
  font-family: var(--font-sans) !important;
}

h1, h2, h3, h4, h5, h6,
.font-outfit,
.title-font,
.sec-title-modern,
.desi-head-title,
.trending-main-title,
.top-trending-title,
.details-main-title {
  font-family: var(--font-display) !important;
  letter-spacing: -0.025em;
}

/* Unified Full-Width Cinema Container */
.container,
.container-fluid,
.max-w-7xl {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}

@media (min-width: 1920px) {
  .container, .container-fluid, .max-w-7xl {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
}

@media (max-width: 1024px) {
  .container, .container-fluid, .max-w-7xl {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 640px) {
  .container, .container-fluid, .max-w-7xl {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* ==========================================================================
   HEADER NAVIGATION BAR
   ========================================================================== */
#header.header-home {
  height: 66px !important;
  background: rgba(5, 5, 7, 0.9) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65) !important;
}

#header .container {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.header-primary-nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 14px;
}

@media (min-width: 1200px) {
  .header-primary-nav {
    display: flex;
  }
}

.header-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #a1a1aa !important;
  transition: all 0.18s ease;
  white-space: nowrap;
  position: relative;
}

.header-pill-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06);
}

.header-pill-link.active {
  color: #ffffff !important;
  background: rgba(229, 9, 20, 0.14);
}

.header-pill-link.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: #e50914;
}

#header #search {
  max-width: 360px !important;
  margin: 0 !important;
}

@media (min-width: 1536px) {
  #header #search {
    max-width: 440px !important;
  }
}

@media (max-width: 1199px) {
  #header #search {
    max-width: 440px !important;
    margin: 0 auto !important;
  }
}

#header .search-content form#header-search-form {
  height: 40px !important;
  border-radius: 10px !important;
  background: #101015 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#header .search-content form#header-search-form:focus-within {
  border-color: #e50914 !important;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.16) !important;
}

.btn-login-modern {
  border-radius: 9px !important;
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  padding: 8px 15px !important;
}

/* Mobile Search Dropdown Positioning */
@media (max-width: 991px) {
  #header #search.active {
    background: #09090d !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 10px 12px !important;
  }
  #header #search.active .search-content form#header-search-form {
    height: 42px !important;
  }
}

/* ==========================================================================
   SIDEBAR DRAWER REFINEMENTS
   ========================================================================== */
#sidebar_menu {
  background: #08080c !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#sidebar_menu .sidebar-quick-grid .sq-icon-wrap,
#sidebar_menu .sb-nav-icon {
  background: #131319 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e4e4e7 !important;
  border-radius: 9px !important;
}

#sidebar_menu .nav-link:hover .sb-nav-icon,
#sidebar_menu .nav-link.active .sb-nav-icon,
#sidebar_menu .sq-item:hover .sq-icon-wrap {
  background: #e50914 !important;
  border-color: #e50914 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   HOME HERO SPOTLIGHT (FULL-WIDTH CINEMA BANNER)
   ========================================================================== */
.noir-hero-section {
  padding: 18px 0 10px;
}

.noir-hero-shell {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #08080c;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.noir-hero-shell #slider,
.noir-hero-shell #slider.slider-container.swiper-container {
  height: 520px !important;
  min-height: 520px !important;
  border-radius: 0 !important;
  border: none !important;
  background: transparent !important;
}

.noir-hero-shell .deslide-item {
  height: 100% !important;
  min-height: 520px !important;
}

.noir-hero-shell .deslide-cover-img img,
.noir-hero-shell .deslide-cover-img .film-poster-img {
  object-position: center 22% !important;
}

.noir-hero-shell .deslide-cover-img::before {
  background: linear-gradient(
    90deg,
    #050507 0%,
    rgba(5, 5, 7, 0.92) 34%,
    rgba(5, 5, 7, 0.52) 64%,
    rgba(5, 5, 7, 0.16) 100%
  ) !important;
}

.noir-hero-shell .deslide-cover-img::after {
  background: linear-gradient(
    to top,
    #050507 0%,
    rgba(5, 5, 7, 0.55) 28%,
    transparent 68%
  ) !important;
}

.noir-hero-shell .deslide-item-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  max-width: 680px !important;
  padding: 48px 46px 40px 46px !important;
}

.noir-spotlight-kicker {
  display: inline-flex !important;
  align-items: center !important;
  align-self: flex-start !important;
  width: fit-content !important;
  max-width: 100%;
  gap: 8px;
  padding: 4px 11px;
  border-radius: 6px;
  background: rgba(229, 9, 20, 0.18);
  border: 1px solid rgba(229, 9, 20, 0.45);
  color: #fca5a5;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.noir-hero-shell .desi-head-title {
  font-size: clamp(28px, 3.6vw, 48px) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  margin-bottom: 14px !important;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.85) !important;
}

.noir-hero-shell .slider-btn-watch {
  border-radius: 10px !important;
  padding: 11px 22px !important;
  height: 42px !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  background: #e50914 !important;
  box-shadow: 0 10px 26px rgba(229, 9, 20, 0.35) !important;
}

.noir-hero-shell .slider-btn-watch:hover {
  background: #ff1e2b !important;
  transform: translateY(-1px);
}

.noir-hero-shell .slider-btn-detail {
  border-radius: 10px !important;
  padding: 11px 20px !important;
  height: 42px !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(10px);
}

.noir-hero-shell .slider-btn-detail:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

.noir-hero-shell #slider .swiper-pagination {
  right: 108px !important;
  bottom: 24px !important;
  left: auto !important;
}

.noir-hero-shell #slider .swiper-navigation {
  display: flex !important;
  right: 24px !important;
  bottom: 18px !important;
  gap: 8px !important;
}

@media (max-width: 1024px) {
  .noir-hero-shell #slider,
  .noir-hero-shell #slider.slider-container.swiper-container,
  .noir-hero-shell .deslide-item {
    height: 460px !important;
    min-height: 460px !important;
  }
  .noir-hero-shell .deslide-item-content {
    padding: 36px 28px 36px 28px !important;
    max-width: 600px !important;
  }
}

@media (max-width: 768px) {
  .noir-hero-section {
    padding: 10px 0 6px !important;
  }
  .noir-hero-shell {
    border-radius: 14px;
  }
  .noir-hero-shell #slider,
  .noir-hero-shell #slider.slider-container.swiper-container {
    height: auto !important;
    min-height: 435px !important;
  }
  .noir-hero-shell #slider .swiper-wrapper {
    align-items: stretch !important;
    height: auto !important;
  }
  .noir-hero-shell #slider .swiper-slide,
  .noir-hero-shell .deslide-item {
    height: auto !important;
    min-height: 435px !important;
  }
  .noir-hero-shell .deslide-cover-img img,
  .noir-hero-shell .deslide-cover-img .film-poster-img {
    object-position: center 18% !important;
  }
  .noir-hero-shell .deslide-cover-img::before {
    background: linear-gradient(
      to top,
      #050507 0%,
      rgba(5, 5, 7, 0.94) 38%,
      rgba(5, 5, 7, 0.65) 62%,
      rgba(5, 5, 7, 0.18) 100%
    ) !important;
  }
  .noir-hero-shell .deslide-cover-img::after {
    display: none !important;
  }
  .noir-hero-shell .deslide-item-content {
    padding: 148px 16px 42px 16px !important;
    max-width: 100% !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
  }
  .noir-spotlight-kicker {
    align-self: flex-start !important;
    width: fit-content !important;
    font-size: 10px !important;
    padding: 4px 10px !important;
    margin-bottom: 10px !important;
  }
  .noir-hero-shell .desi-head-title {
    font-size: 22px !important;
    line-height: 1.18 !important;
    margin-bottom: 10px !important;
  }
  .noir-hero-shell .slider-meta-row {
    gap: 5px !important;
    margin-bottom: 10px !important;
  }
  .noir-hero-shell .desi-description {
    font-size: 12px !important;
    line-height: 1.45 !important;
    margin-bottom: 14px !important;
    -webkit-line-clamp: 2 !important;
  }
  .noir-hero-shell .slider-btn-group {
    gap: 10px !important;
    margin-top: 2px !important;
  }
  .noir-hero-shell .slider-btn-watch,
  .noir-hero-shell .slider-btn-detail {
    height: 38px !important;
    padding: 0 18px !important;
    font-size: 12.5px !important;
  }
  .noir-hero-shell #slider .swiper-navigation {
    display: flex !important;
    top: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    left: auto !important;
    gap: 6px !important;
  }
  .noir-hero-shell #slider .swiper-button {
    width: 30px !important;
    height: 30px !important;
    font-size: 11px !important;
  }
  .noir-hero-shell #slider .swiper-pagination {
    left: 16px !important;
    right: auto !important;
    bottom: 14px !important;
    gap: 5px !important;
  }
}

/* ==========================================================================
   QUICK BROWSE PILL RAIL & DOMAIN NOTICE BAR
   ========================================================================== */
.noir-quick-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0 14px;
  flex-wrap: wrap;
}

.noir-quick-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1 1 auto;
  min-width: 0;
  padding-bottom: 2px;
}

.noir-quick-pills::-webkit-scrollbar {
  display: none;
}

.noir-chip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 9999px;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d4d4d8 !important;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.noir-chip-link:hover {
  background: rgba(229, 9, 20, 0.15);
  border-color: rgba(229, 9, 20, 0.45);
  color: #ffffff !important;
}

.noir-chip-link.is-featured {
  background: #e50914;
  border-color: #e50914;
  color: #ffffff !important;
  font-weight: 700;
}

/* ==========================================================================
   TRENDING NOW CHART SYSTEM (NOIR CINEMA RANKED CARDS + SMART FILTERS)
   ========================================================================== */
.noir-trending-wrap {
  padding: 14px 0 22px;
}

/* Pre-Swiper initialization layout guard: prevents giant single-card flash before JS loads */
#trending-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: 12px;
}
#trending-swiper:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 calc((100% - 12px) / 2);
  width: calc((100% - 12px) / 2);
}
@media (min-width: 480px) {
  #trending-swiper:not(.swiper-initialized) .swiper-wrapper { gap: 14px; }
  #trending-swiper:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 calc((100% - 28px) / 3);
    width: calc((100% - 28px) / 3);
  }
}
@media (min-width: 768px) {
  #trending-swiper:not(.swiper-initialized) .swiper-wrapper { gap: 16px; }
  #trending-swiper:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 calc((100% - 48px) / 4);
    width: calc((100% - 48px) / 4);
  }
}
@media (min-width: 1024px) {
  #trending-swiper:not(.swiper-initialized) .swiper-wrapper { gap: 18px; }
  #trending-swiper:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 calc((100% - 72px) / 5);
    width: calc((100% - 72px) / 5);
  }
}
@media (min-width: 1280px) {
  #trending-swiper:not(.swiper-initialized) .swiper-wrapper { gap: 18px; }
  #trending-swiper:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 calc((100% - 90px) / 6);
    width: calc((100% - 90px) / 6);
  }
}

.noir-trending-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.noir-trending-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.noir-trend-filters {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: #0c0c10;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.noir-trend-tab {
  padding: 5px 11px;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  color: #a1a1aa;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.noir-trend-tab:hover {
  color: #ffffff;
}

.noir-trend-tab.is-active {
  background: #e50914;
  color: #ffffff;
}

.noir-trending-wrap .navi-prev,
.noir-trending-wrap .navi-next {
  width: 34px !important;
  height: 34px !important;
  border-radius: 9px !important;
  background: #0d0d12 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e4e4e7 !important;
}

.noir-trending-wrap .navi-prev:hover,
.noir-trending-wrap .navi-next:hover {
  background: #e50914 !important;
  border-color: #e50914 !important;
  color: #ffffff !important;
  transform: none !important;
}

.noir-trend-card {
  position: relative;
  display: block;
  background: #08080c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.noir-trend-card:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 9, 20, 0.65);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.78), 0 0 24px rgba(229, 9, 20, 0.22);
}

.noir-trend-card.is-rank-top {
  border-color: rgba(229, 9, 20, 0.32);
}

.noir-trend-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #0c0c12;
  overflow: hidden;
  display: block;
}

.noir-trend-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.noir-trend-card:hover .noir-trend-poster img {
  transform: scale(1.06);
  filter: brightness(0.9);
}

.noir-trend-crown {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 14;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 9999px;
  background: #e50914;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.5);
}

.noir-trend-format-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 14;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(5, 5, 7, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e4e4e7;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.noir-trend-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  background: linear-gradient(
    to top,
    #060609 0%,
    rgba(6, 6, 9, 0.88) 34%,
    rgba(6, 6, 9, 0.42) 66%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 6;
}

.noir-trend-overlay-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  padding: 14px 12px 13px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  pointer-events: none;
}

.noir-trend-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
  transition: color 0.25s ease, transform 0.25s ease;
}

.noir-trend-card.is-rank-top .noir-trend-num,
.noir-trend-card:hover .noir-trend-num {
  color: #e50914;
}

.noir-trend-card:hover .noir-trend-num {
  transform: translateY(-2px);
}

.noir-trend-title-wrap {
  min-width: 0;
  flex: 1;
}

.noir-trend-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  transition: color 0.2s ease;
}

.noir-trend-card:hover .noir-trend-title {
  color: #fca5a5 !important;
}

.noir-trend-accent-line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2.5px;
  width: 0;
  background: #e50914;
  z-index: 15;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.noir-trend-card.is-rank-top .noir-trend-accent-line {
  width: 34%;
}

.noir-trend-card:hover .noir-trend-accent-line {
  width: 100%;
}

.noir-trend-track {
  margin-top: 12px;
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 9999px;
  overflow: hidden;
}

.noir-trend-track-fill {
  height: 100%;
  width: 38%;
  background: linear-gradient(90deg, #e50914 0%, #ff4b55 100%);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

@media (max-width: 640px) {
  .noir-trending-top {
    gap: 10px;
  }
  .noir-trend-filters {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .noir-trend-filters::-webkit-scrollbar {
    display: none;
  }
  .noir-trend-overlay-info {
    padding: 12px 10px 11px;
    gap: 7px;
  }
  .noir-trend-num {
    font-size: 26px;
  }
  .noir-trend-title {
    font-size: 12.5px;
  }
}

/* ==========================================================================
   NEW CONTENT CARD REFINEMENTS
   ========================================================================== */
.content-card .card-poster-wrap {
  border-radius: 12px !important;
  background: #0d0d12 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.content-card:hover .card-poster-wrap {
  border-color: rgba(229, 9, 20, 0.55) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.72), 0 0 18px rgba(229, 9, 20, 0.18) !important;
}

.card-format-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 15;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(5, 5, 7, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: #e4e4e7;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
}

.card-hover-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 7, 0.35);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
  z-index: 8;
}

.content-card:hover .card-hover-play {
  opacity: 1;
}

.card-hover-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: #e50914;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.55);
  transform: scale(0.86);
  transition: transform 0.22s ease;
}

.content-card:hover .card-hover-play-btn {
  transform: scale(1);
}

.card-chip-audio {
  border-radius: 6px !important;
  padding: 3px 6px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   TOP TEN SIDEBAR WIDGET (EDITORIAL RANKED ROWS)
   ========================================================================== */
@media (min-width: 1121px) {
  .home-main-cols {
    grid-template-columns: minmax(0, 1fr) 365px !important;
  }
}

#main-sidebar .hud-panel {
  background: #0b0b0f !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 16px !important;
}

.noir-rank-audio-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.noir-rank-type {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #d4d4d8;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
}

.noir-rank-audio {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.noir-rank-audio i {
  font-size: 8px;
}

.noir-rank-audio.is-sub {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4f4f5;
}

.noir-rank-audio.is-dub {
  background: #e50914;
  border: 1px solid #e50914;
  color: #ffffff;
}

.noir-rank-audio.is-multi {
  background: rgba(229, 9, 20, 0.16);
  border: 1px solid rgba(229, 9, 20, 0.45);
  color: #fca5a5;
}

.noir-rank-feature {
  position: relative;
  display: block;
  height: 126px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(229, 9, 20, 0.4);
  background: #121218;
  margin-bottom: 10px;
}

.noir-rank-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
  transition: transform 0.35s ease;
}

.noir-rank-feature:hover img {
  transform: scale(1.04);
}

.noir-rank-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 7, 0.95) 0%, rgba(5, 5, 7, 0.58) 55%, rgba(5, 5, 7, 0.15) 100%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  gap: 12px;
}

.noir-rank-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.18s ease;
}

.noir-rank-row:hover {
  background: #17171f;
  border-color: rgba(229, 9, 20, 0.45);
  transform: translateX(2px);
}

.noir-rank-num {
  width: 24px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #52525b;
  flex-shrink: 0;
}

.noir-rank-row:nth-child(-n+3) .noir-rank-num {
  color: #e50914;
}

.noir-rank-thumb {
  width: 42px;
  height: 56px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  background: #070709;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.noir-rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   LATEST EPISODES PORTRAIT GRID (CLASSIC 2:3 STRUCTURE, NEW NOIR DROP STYLE)
   ========================================================================== */
.noir-ep-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.noir-ep-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.noir-ep-filters {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: #0c0c10;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.noir-ep-tab {
  padding: 5px 11px;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  color: #a1a1aa;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.noir-ep-tab:hover {
  color: #ffffff;
}

.noir-ep-tab.is-active {
  background: #e50914;
  color: #ffffff;
}

.noir-drop-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #0b0b0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.noir-drop-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 9, 20, 0.6);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.72), 0 0 18px rgba(229, 9, 20, 0.18);
}

.noir-drop-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #101016;
  overflow: hidden;
}

.noir-drop-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.noir-drop-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.noir-drop-card:hover .noir-drop-poster img {
  transform: scale(1.06);
}

.noir-drop-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  background: linear-gradient(to top, rgba(6, 6, 9, 0.92) 0%, rgba(6, 6, 9, 0.28) 60%, transparent 100%);
  pointer-events: none;
  z-index: 4;
}

.noir-drop-ep {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 12;
  padding: 3px 8px;
  border-radius: 6px;
  background: #e50914;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.45);
  pointer-events: none;
}

.noir-drop-badges {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  z-index: 12;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  pointer-events: none;
}

.noir-drop-audio-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 6px;
  border-radius: 5px;
  background: rgba(12, 12, 16, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f4f4f5;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  backdrop-filter: blur(8px);
}

.noir-drop-audio-badge.is-crimson {
  background: rgba(229, 9, 20, 0.9);
  border-color: rgba(255, 95, 105, 0.55);
  color: #ffffff;
}

.noir-drop-audio-badge.is-multi {
  background: rgba(45, 10, 14, 0.92);
  border-color: rgba(229, 9, 20, 0.55);
  color: #fca5a5;
}

.noir-drop-dl {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(5, 5, 7, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.noir-drop-dl:hover {
  background: #e50914;
  border-color: #e50914;
}

.noir-drop-line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 24px;
  background: #e50914;
  z-index: 14;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.noir-drop-card:hover .noir-drop-line {
  width: 100%;
}

.noir-drop-body {
  padding: 10px 11px 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  flex: 1;
}

.noir-drop-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #f4f4f5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.noir-drop-title a {
  color: inherit !important;
  transition: color 0.18s ease;
}

.noir-drop-card:hover .noir-drop-title a {
  color: #ff3b47 !important;
}

  .noir-drop-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: #71717a;
  white-space: nowrap;
  overflow: hidden;
}

/* ==========================================================================
   HOME AIRING SCHEDULE (NOIR TIMETABLE CARDS GRID)
   ========================================================================== */
.noir-sched-shell {
  background: #0b0b0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.noir-sched-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.noir-sched-clock {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: #a1a1aa;
  background: #131319;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 9px;
  border-radius: 9999px;
  font-variant-numeric: tabular-nums;
}

.noir-sched-days-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #08080c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.noir-sched-arrow {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #121218;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.18s ease;
}

.noir-sched-arrow:hover {
  background: #e50914;
  border-color: #e50914;
  color: #ffffff;
}

.noir-sched-tabs {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 6px;
  overflow-x: auto;
}

.noir-sched-tabs .sched-day-btn {
  min-width: 68px !important;
  flex: 1 1 0% !important;
  padding: 8px 6px !important;
  border-radius: 9px !important;
  background: #101016 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}

.noir-sched-tabs .sched-day-btn:hover {
  background: #171720 !important;
  border-color: rgba(229, 9, 20, 0.35) !important;
}

.noir-sched-tabs .sched-day-btn.is-active {
  background: #e50914 !important;
  border-color: #e50914 !important;
  box-shadow: 0 6px 18px rgba(229, 9, 20, 0.35) !important;
}

.noir-sched-tabs .sched-date {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  color: #71717a !important;
  margin: 0 !important;
}

.noir-sched-tabs .sched-day-btn.is-active .sched-date {
  color: rgba(255, 255, 255, 0.85) !important;
}

.noir-sched-tabs .sched-short {
  font-family: var(--font-display) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #d4d4d8 !important;
  margin: 0 !important;
}

.noir-sched-tabs .sched-day-btn.is-active .sched-short {
  color: #ffffff !important;
}

.noir-sched-tabs .sched-bar {
  display: none !important;
}

#schedule-list.noir-sched-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 14px !important;
}

@media (max-width: 767px) {
  #schedule-list.noir-sched-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 12px !important;
  }
  .noir-sched-arrow {
    display: none !important;
  }
  .noir-sched-tabs .sched-day-btn {
    min-width: 52px !important;
    padding: 7px 4px !important;
  }
  .noir-sched-tabs .sched-short {
    font-size: 13.5px !important;
  }
}

.noir-sched-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 11px !important;
  border-radius: 11px !important;
  background: #111117 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  transition: all 0.2s ease !important;
  min-width: 0;
}

.noir-sched-row:hover {
  background: #171720 !important;
  border-color: rgba(229, 9, 20, 0.5) !important;
  transform: translateY(-1px);
}

.noir-sched-time {
  width: 48px !important;
  flex-shrink: 0 !important;
  text-align: center;
  padding: 5px 4px;
  border-radius: 7px;
  background: #08080c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #e4e4e7 !important;
  font-variant-numeric: tabular-nums;
}

.noir-sched-row:hover .noir-sched-time {
  border-color: rgba(229, 9, 20, 0.5);
  color: #fca5a5 !important;
}

.noir-sched-poster {
  width: 38px;
  height: 52px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  background: #07070a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.noir-sched-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.noir-sched-info {
  flex: 1 1 0%;
  min-width: 0;
}

.noir-sched-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #f4f4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 4px 0;
  transition: color 0.18s ease;
}

.noir-sched-row:hover .noir-sched-title {
  color: #ff3b47;
}

.noir-sched-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.noir-sched-tag {
  padding: 1.5px 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: #d4d4d8;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.noir-sched-tag.is-red {
  background: rgba(229, 9, 20, 0.16);
  color: #fca5a5;
  border-color: rgba(229, 9, 20, 0.4);
}

.noir-sched-ep-txt {
  font-size: 11px;
  font-weight: 700;
  color: #a1a1aa;
}

.noir-sched-play {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #191922;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.noir-sched-row:hover .noir-sched-play {
  background: #e50914;
  border-color: #e50914;
  color: #ffffff;
}

.noir-sched-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  color: #71717a;
  font-size: 13px;
}

@media (max-width: 639px) {
  .noir-ep-header {
    gap: 10px;
  }
  .noir-ep-filters {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .noir-ep-filters::-webkit-scrollbar {
    display: none;
  }
  .noir-drop-body {
    padding: 8px 9px 9px;
  }
  .noir-drop-title {
    font-size: 12.5px;
  }
  .noir-drop-ep {
    top: 6px;
    left: 6px;
    font-size: 9.5px;
    padding: 2px 6px;
  }
  .noir-drop-badges {
    bottom: 6px;
    left: 6px;
    right: 6px;
  }
  .noir-drop-audio-badge {
    font-size: 9px;
    padding: 2px 5px;
  }
}

