.search-img {
  width: 70px;
  height: 90px;
  object-fit: cover;
  flex-shrink: 0;
}

.related-img {
  height: 280px;
}

.dash-product-box {
  position: relative;
}

.header-search {
  /*width: 500px;*/
}

.card-search-result {
  position: absolute !important;
  top: 62px;
  width: 500px;
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--bs-card-bg);
}
.card-search-result .list-group-item {
  background-color: var(--bs-card-bg);
  color: var(--bs-body-color);
  border-color: var(--bs-border-color);
}
.card-search-result .list-group-item:hover {
  background-color: var(--bs-tertiary-bg);
}

@media (max-width: 768px) {
  .card-search-result {
    position: unset;
    width: auto;
    /*width: 267%;
    position: absolute;
    top: 61px;
    left: -92%;*/
  }
}
.pricing-badge {
  position: absolute;
  top: 0;
  z-index: 9;
  right: 0;
  width: 100%;
  display: block;
  font-size: 15px;
  padding: 0;
  overflow: hidden;
  height: 100px;
}

.pricing-badge .badge {
  float: right;
  transform: rotate(45deg);
  right: -67px;
  top: 17px;
  position: relative;
  text-align: center;
  width: 200px;
  font-size: 13px;
  margin: 0;
  padding: 7px 10px;
  font-weight: 500;
  color: #fff;
  background: #776acf;
}

.data-title {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: auto;
  padding: 10px;
  z-index: 5;
  border-radius: 0 0 5px 5px;
  color: white;
  background-color: var(--bs-blue);
  text-shadow: 1px 1px black;
  color: #fff;
  line-height: 0.7rem;
}

.imdb-rate-badge {
  position: absolute;
  top: 0;
  z-index: 9;
  right: 0;
  width: 100%;
  display: block;
  font-size: 15px;
  padding: 0;
  overflow: hidden;
  height: 100px;
}

.imdb-rate-badge .badge {
  float: right;
  /*transform: rotate(45deg);*/
  right: -8px;
  top: 17px;
  position: relative;
  text-align: center;
  width: 68px;
  font-size: 13px;
  margin: 0;
  padding: 7px 10px;
  font-weight: 500;
  color: #fff;
  background: #776acf;
}

.year-badge {
  position: absolute;
  top: 0;
  z-index: 9;
  right: 0;
  width: 100%;
  display: block;
  font-size: 15px;
  padding: 0;
  overflow: hidden;
  height: 100px;
}

.year-badge .badge {
  float: left;
  top: 17px;
  position: relative;
  text-align: center;
  width: 68px;
  font-size: 13px;
  margin: 0;
  padding: 7px 10px;
  font-weight: 500;
  color: #fff;
  background: #776acf;
  right: 8px;
}

.swiper-year-badge {
  position: absolute;
  top: 0;
  z-index: 9;
  right: 0;
  width: 80%;
  display: block;
  font-size: 15px;
  padding: 0;
  overflow: hidden;
  height: 100px;
}

.swiper-year-badge .badge {
  float: left;
  top: 17px;
  position: relative;
  text-align: center;
  width: 68px;
  font-size: 13px;
  margin: 0;
  padding: 7px 10px;
  font-weight: 500;
  color: #fff;
  background: #776acf;
  right: 8px;
}

.series-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
}

.series-card:hover .play {
  display: block;
}

/* Match the catalogue cards: a subtle lift, shadow and cover zoom for season selectors. */
.season-selector-card {
  overflow: hidden;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

.season-selector-card:hover {
  box-shadow: 0 12px 24px rgba(15, 23, 42, .18), 0 3px 8px rgba(15, 23, 42, .1);
  transform: translateY(-4px);
}

.season-selector-card .card-img {
  transform: scale(1);
  transition: transform 280ms ease;
  will-change: transform;
}

.season-selector-card:hover .card-img {
  transform: scale(1.055);
}

@media (prefers-reduced-motion: reduce) {
  .season-selector-card,
  .season-selector-card .card-img {
    transition: none;
  }

  .season-selector-card:hover,
  .season-selector-card:hover .card-img {
    transform: none;
  }
}

.dash-product-img img {
  height: 250px !important;
  margin-bottom: 30px;
  cursor: pointer;
}

#myVideo {
  right: 0;
  bottom: 0;
  width: 100%;
  max-height: 100%;
}

figure.image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

figure.image img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  margin: auto;
}

iframe {
  width: 100%;
  height: 600px;
  display: block;
  margin: 0 auto;
}

.search-box .form-control {
  border-radius: 30px;
  padding-left: 40px;
}

.search-box .search-icon {
  font-size: 16px;
  position: absolute;
  left: 13px;
  top: 2px;
  color: #959396;
  line-height: 38px;
}

.search-spinner {
  position: absolute;
  top: 10px;
  color: #776acf;
  right: 11px;
}

.search-box .uil-backspace {
  cursor: pointer;
  font-size: 20px;
  position: absolute;
  top: 0px;
  color: #959396;
  line-height: 38px;
  right: 11px;
}

.card-search-result .search-result-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  padding: 10px 12px;
}

.card-search-result .search-result-cover {
  width: 70px;
  height: 90px;
  overflow: hidden;
  border-radius: 6px;
}

.card-search-result .search-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.card-search-result .search-result-meta {
  min-width: 0;
}

.card-search-result .search-result-meta h6 {
  line-height: 1.2;
  margin: 0;
}

.card-search-result .search-result-meta p {
  margin: 4px 0 0;
}

.card-search-result .search-result-meta small {
  display: block;
  margin-top: 2px;
}

.search-clear {
  position: absolute;
  top: 0;
  right: 11px;
  z-index: 2;
  width: 28px;
  height: 38px;
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.search-mega-menu {
  --search-surface: var(--bs-vuesy-card-bg, #fff);
  position: absolute !important;
  top: calc(100% + 10px);
  right: 0;
  width: 880px;
  max-width: calc(100vw - 24px);
  max-height: min(720px, calc(100vh - 110px));
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--bs-vuesy-card-border-color, var(--bs-border-color, #eff0f2));
  border-radius: 14px;
  background: var(--search-surface);
  box-shadow: 0 22px 52px rgba(29, 27, 57, 0.22), 0 3px 12px rgba(0, 0, 0, 0.12);
  z-index: 1080;
}

.search-mega-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bs-border-color);
}

.search-mega-menu__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #776acf;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-mega-menu__header h2 {
  margin: 0;
  color: var(--bs-heading-color, var(--bs-body-color));
  font-size: 18px;
  font-weight: 700;
}

.search-mega-menu__count,
.search-mega-section__header > span:last-child {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(119, 106, 207, 0.12);
  color: #6559b3;
  font-size: 12px;
  font-weight: 700;
}

.search-mega-menu__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.search-mega-section + .search-mega-section {
  border-left: 1px solid var(--bs-border-color);
}

.search-mega-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
  font-size: 13px;
  font-weight: 700;
}

.search-mega-section__header i {
  margin-right: 5px;
  color: #776acf;
  font-size: 16px;
  vertical-align: -1px;
}

.search-mega-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.search-mega-menu .search-result-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid var(--bs-border-color);
  background: transparent;
  color: var(--bs-body-color);
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.search-mega-menu .search-result-item:hover,
.search-mega-menu .search-result-item:focus-visible {
  background: rgba(119, 106, 207, 0.08);
  color: var(--bs-body-color);
  transform: translateX(2px);
}

.search-mega-menu .search-result-cover {
  width: 58px;
  height: 78px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.search-mega-menu .search-result-meta h6 {
  overflow: hidden;
  margin: 0;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-mega-menu .search-result-meta p,
.search-mega-menu .search-result-meta small {
  color: var(--bs-secondary-color, #74788d);
}

.search-mega-menu__empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 42px 24px;
  color: var(--bs-secondary-color, #74788d);
  text-align: center;
}

.search-mega-menu__empty i {
  color: #776acf;
  font-size: 34px;
}

.search-mega-menu__empty strong {
  color: var(--bs-body-color);
}

@media (max-width: 1399.98px) {
  /* The fixed horizontal nav normally clips its contents at this breakpoint.
     Keep the results panel outside that clipping context while it is rendered. */
  html.header-search-open body[data-layout=horizontal] .topnav,
  body[data-layout=horizontal] .topnav:has(.search-mega-menu) {
    max-height: none !important;
    overflow: visible !important;
  }
}
@media (max-width: 767.98px) {
  .search-mega-menu {
    position: absolute !important;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 146px);
    max-height: calc(100dvh - 146px);
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: none;
  }
  .search-mega-menu__body {
    grid-template-columns: 1fr;
  }
  .search-mega-section + .search-mega-section {
    border-top: 1px solid var(--bs-border-color);
    border-left: 0;
  }
}
@media (max-width: 420px) {
  .search-mega-menu__header {
    padding: 14px 16px;
  }
  .search-mega-menu__header h2 {
    font-size: 16px;
  }
  .search-mega-menu .search-result-item {
    padding: 9px 12px;
  }
  .search-mega-section__header {
    padding: 10px 12px;
  }
}

/* ==========================================================================
   UNIFIED CONTENT CARD HOVER EFFECT & PURPLE BORDER
   ========================================================================== */

/* Swiper Slider Cards (Premier & Popular sliders) */
.swiper-slide a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--bs-border-color, rgba(226, 232, 240, 0.8));
  background: var(--bs-card-bg, #fff);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  will-change: transform;
}

.swiper-slide a:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(119, 106, 207, 0.22), 0 4px 10px rgba(0, 0, 0, 0.12);
  border-color: #776acf !important;
}

.swiper-slide a img {
  transform: scale(1);
  transition: transform 0.3s ease;
  will-change: transform;
}

.swiper-slide a:hover img {
  transform: scale(1.05);
}

/* Season selector cards */
.season-selector-card {
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid var(--bs-border-color, rgba(226, 232, 240, 0.8)) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s ease, border-color 0.22s ease !important;
}

.season-selector-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px rgba(119, 106, 207, 0.22), 0 4px 10px rgba(0, 0, 0, 0.12) !important;
  border-color: #776acf !important;
}

.season-selector-card .card-img {
  transition: transform 0.3s ease;
}

.season-selector-card:hover .card-img {
  transform: scale(1.04);
}

/* Favorites cards */
.favorite-grid-card,
.favorites-page .card.h-100 {
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid var(--bs-border-color, rgba(226, 232, 240, 0.8)) !important;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s ease, border-color 0.22s ease !important;
}

.favorite-grid-card:hover,
.favorites-page .card.h-100:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 24px rgba(119, 106, 207, 0.22), 0 4px 10px rgba(0, 0, 0, 0.12) !important;
  border-color: #776acf !important;
}

.favorite-grid-card .card-img-top,
.favorites-page .card.h-100 .card-img-top {
  transition: transform 0.3s ease;
}

.favorite-grid-card:hover .card-img-top,
.favorites-page .card.h-100:hover .card-img-top {
  transform: scale(1.04);
}

/* Search results item thumb & highlight */
.search-result-item {
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.search-result-item .search-result-cover {
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--bs-border-color, rgba(226, 232, 240, 0.8));
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.search-result-item .search-img {
  transition: transform 0.3s ease;
}

.search-result-item:hover .search-result-cover {
  border-color: #776acf !important;
  box-shadow: 0 4px 12px rgba(119, 106, 207, 0.25);
}

.search-result-item:hover .search-img {
  transform: scale(1.06);
}

.search-result-item:hover h6 {
  color: #776acf !important;
  transition: color 0.18s ease;
}

/* Dark Mode Unified Overrides */
body[data-layout-mode="dark"] {
    /* General Bootstrap Fallbacks */
    --bs-card-bg: #24243c;
    --bs-body-color: #9295a4;
    --bs-border-color: #2d2d49;
    --bs-tertiary-bg: #1b1c31;

    /* Blog / Contact (--bl-, --cnt-) */
    --bl-bg-card: #24243c;
    --bl-bg-page: #1b1c31;
    --bl-bg-subtle: #2a2a42;
    --bl-text-main: #d8d8df;
    --bl-text-muted: #9295a4;
    
    --cnt-bg-card: #24243c;
    --cnt-bg-page: #1b1c31;
    --cnt-bg-subtle: #2a2a42;
    --cnt-text-main: #d8d8df;
    --cnt-text-muted: #9295a4;

    /* Homepage (--hp-) */
    --hp-card-bg: #24243c;
    --hp-bg-subtle: #1b1c31;
    --hp-card-border: #2d2d49;
    --hp-text-main: #d8d8df;
    --hp-text-muted: #9295a4;
    --hp-text-dim: #7b8190;
    --hp-bg-hover: rgba(119, 106, 207, 0.15);

    /* Movie Detail (--mv-) */
    --mv-card-bg: #24243c;
    --mv-bg-subtle: #1b1c31;
    --mv-card-border: #2d2d49;
    --mv-text-main: #d8d8df;
    --mv-text-muted: #9295a4;
    --mv-text-dim: #7b8190;
    --mv-bg-hover: rgba(119, 106, 207, 0.15);

    /* Series Catalog (--sc-) */
    --sc-card-bg: #24243c;
    --sc-bg-subtle: #1b1c31;
    --sc-card-border: #2d2d49;
    --sc-text-main: #d8d8df;
    --sc-text-muted: #9295a4;
    --sc-text-dim: #7b8190;
    --sc-bg-hover: rgba(119, 106, 207, 0.15);
}

body[data-layout-mode="dark"] .cnt-hero-header,
body[data-layout-mode="dark"] .bl-hero-header {
    background: var(--bs-card-bg);
}

body[data-layout-mode="dark"] .cnt-input.is-invalid {
    background-color: rgba(244, 106, 106, 0.1);
}

body[data-layout-mode="dark"] .text-muted {
    color: var(--bs-body-color) !important;
}

body[data-layout-mode="dark"] .text-dark {
    color: var(--bs-body-color) !important;
}

body[data-layout-mode="dark"] .table-primary {
    --bs-table-color: #d8d8df;
    --bs-table-bg: rgba(119, 106, 207, 0.1);
    --bs-table-border-color: #2d2d49;
    --bs-table-striped-bg: rgba(119, 106, 207, 0.15);
    --bs-table-striped-color: #d8d8df;
    --bs-table-active-bg: rgba(119, 106, 207, 0.2);
    --bs-table-active-color: #d8d8df;
    --bs-table-hover-bg: rgba(119, 106, 207, 0.2);
    --bs-table-hover-color: #d8d8df;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

/* ==========================================================================
   NAVBAR OVERFLOW FIX FOR SCREENS < 1600px (e.g. Macbooks)
   ========================================================================== */
@media (min-width: 1200px) and (max-width: 1599px) {
  body[data-layout=horizontal] .navbar-header {
    max-width: 98% !important;
  }
  .topnav .navbar-nav .nav-item {
    margin: 0 0.3rem !important;
  }
  .topnav-menu .nav-link i {
    /* display: none !important; */
  }
  .topnav-menu .nav-link {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
  .header-search-box {
    width: 220px;
    transition: width 0.3s ease;
  }
  .header-search-box:focus-within, html.header-search-open .header-search-box {
    width: 320px;
  }
}

/* ==========================================================================
   MOBILE & TABLET MENU FIX (for screens < 1200px)
   ========================================================================== */
@media (max-width: 1199.98px) {
  body[data-layout=horizontal] .topnav {
    position: fixed;
    top: 85px;
    right: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    background-color: var(--bs-topnav-bg, #fff);
    box-shadow: 0 2px 3px rgba(52, 58, 64, 0.06);
    max-height: calc(100vh - 85px) !important;
    overflow-y: auto !important;
  }

  /* Fix for the 992px - 1199px gap where mobile styles were missing */
  .topnav .navbar-collapse {
    background-color: var(--bs-topnav-bg, #fff);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .topnav .navbar-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }
  .topnav .nav-item {
    margin: 0 !important;
    width: 100%;
    min-height: 0;
  }
  .topnav .nav-link {
    padding: 0.4rem 1.25rem !important;
    display: block;
    width: 100%;
    line-height: 1.5 !important;
  }
  body[data-topbar=dark] .topnav .navbar-nav .nav-link {
    color: var(--bs-menu-item-color);
  }
  body[data-topbar=dark] .topnav .navbar-nav .nav-link:focus,
  body[data-topbar=dark] .topnav .navbar-nav .nav-link:focus i,
  body[data-topbar=dark] .topnav .navbar-nav .nav-link:focus svg,
  body[data-topbar=dark] .topnav .navbar-nav .nav-link:hover,
  body[data-topbar=dark] .topnav .navbar-nav .nav-link:hover i,
  body[data-topbar=dark] .topnav .navbar-nav .nav-link:hover svg,
  body[data-topbar=dark] .topnav .navbar-nav .nav-item .nav-link.active,
  body[data-topbar=dark] .topnav .navbar-nav .nav-item .nav-link.active i,
  body[data-topbar=dark] .topnav .navbar-nav .nav-item .nav-link.active svg {
    color: var(--bs-menu-item-active-color);
  }
  .topnav .header-search-item {
    padding: 1rem 1.5rem !important;
    width: 100%;
  }
  .header-search {
    width: 100% !important;
  }
}

/* Public scrollbars: native where available, SimpleBar where already used. */
@media (forced-colors: none) {
  html, *:not(.simplebar-content-wrapper):not(.simplebar-hide-scrollbar) {
    scrollbar-color: #776acf #f1effa;
    scrollbar-width: auto;
  }
  html::-webkit-scrollbar, *:not(.simplebar-content-wrapper):not(.simplebar-hide-scrollbar)::-webkit-scrollbar {
    width: 12px;
    height: 12px;
  }
  html::-webkit-scrollbar-track, *:not(.simplebar-content-wrapper):not(.simplebar-hide-scrollbar)::-webkit-scrollbar-track {
    background: #f1effa;
  }
  html::-webkit-scrollbar-thumb, *:not(.simplebar-content-wrapper):not(.simplebar-hide-scrollbar)::-webkit-scrollbar-thumb {
    background: #776acf;
    border: 2px solid #f1effa;
    border-radius: 999px;
  }
  html::-webkit-scrollbar-thumb:hover, *:not(.simplebar-content-wrapper):not(.simplebar-hide-scrollbar)::-webkit-scrollbar-thumb:hover {
    background: #594cb4;
  }
  .simplebar-track { background: #f1effa; border-radius: 999px; }
  .simplebar-scrollbar:before { background: #776acf; }
  .simplebar-scrollbar.simplebar-visible:before { opacity: 1; }
  .simplebar-track:hover .simplebar-scrollbar:before { background: #594cb4; }
}
@media (forced-colors: active) {
  .simplebar-offset { right: 0 !important; bottom: 0 !important; }
  .simplebar-content-wrapper { scrollbar-width: auto; scrollbar-color: auto; }
  .simplebar-content-wrapper::-webkit-scrollbar { display: block; }
  .simplebar-track { display: none; }
}

@media (max-width: 767.98px) {
  .topnav .navbar-collapse .header-search-box:focus-within,
  html.header-search-open body[data-layout="horizontal"] .topnav .navbar-collapse .header-search-box {
    position: fixed !important;
    top: 80px;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px) !important;
    min-width: 0 !important;
    max-width: calc(100% - 24px) !important;
    z-index: 1081;
  }
}

@media (max-width:767.98px) {
  .topnav .search-mega-menu { position:absolute!important; top:calc(100% + 10px); left:0; right:0; width:100%; max-width:100%; max-height:calc(100vh - 146px); max-height:calc(100dvh - 146px); }
}
