/**
 * S-Series — Professional OTT layout (Netflix / Prime style)
 * Scoped to .ott-layout — does NOT hide content or break carousels.
 */

.ott-layout {
  --ott-bg: #0b0b10;
  --ott-bg-elevated: #12121a;
  --ott-accent: #e50914;
  --ott-accent-hover: #f40612;
  --ott-text: #ffffff;
  --ott-muted: #b3b3c2;
  --ott-border: rgba(255, 255, 255, 0.08);
  --ott-radius: 10px;
  --ott-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --ott-container: min(1680px, 94vw);
}

.ott-layout,
.ott-layout body {
  background-color: var(--ott-bg) !important;
}

.ott-layout #app-content {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(229, 9, 20, 0.12), transparent 55%),
    var(--ott-bg);
}

/* ——— Header: logo + two-row nav (no bottom clipping) ——— */
.ott-layout .main-menu,
.ott-layout .main-menu .header-section,
.ott-layout .header-section .mod-menu,
.ott-layout .header-section .row,
.ott-layout .header-section #menu,
.ott-layout .header-section .header-menu,
.ott-layout .header-section .main-nav {
  overflow: visible !important;
}

@media only screen and (min-width: 1001px) {
  .ott-layout .main-menu .header-section {
    min-height: 72px !important;
    height: auto !important;
    padding: 8px 0 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
  }
}

/* Header grid: logo | menu | search + profile */
.ott-layout .header-section .mod-menu > .row {
  display: grid !important;
  grid-template-columns: minmax(88px, 12%) minmax(0, 1fr) minmax(280px, max-content) !important;
  align-items: center !important;
  gap: 6px 16px !important;
  margin: 0 !important;
}

.ott-layout .header-section .mod-menu > .row > [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ott-layout .nav-order-last,
.ott-layout .ott-header-nav-col {
  float: none !important;
  order: unset !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding-right: 4px !important;
  box-sizing: border-box !important;
  position: relative !important;
  right: auto !important;
  z-index: 40 !important;
}

.ott-layout .main-nav.ott-header-nav,
.ott-layout .main-nav.leftnav {
  float: none !important;
  width: 100% !important;
  position: relative !important;
}

.ott-layout .ott-header-actions-col {
  justify-self: end !important;
  align-self: center !important;
  position: relative !important;
  z-index: 70 !important;
  min-width: max-content !important;
  flex-shrink: 0 !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
}

.ott-layout .ott-header-actions-col .ott-header-actions,
.ott-layout .ott-header-actions-col .right-sub-item-area {
  pointer-events: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  background: var(--ott-bg) !important;
  box-shadow: -18px 0 22px var(--ott-bg) !important;
  padding: 6px 0 6px 18px !important;
  min-width: max-content !important;
  flex-shrink: 0 !important;
}

.ott-layout .search-item-block {
  flex-shrink: 0 !important;
}

.ott-layout .header-section .mod-menu .row {
  align-items: center !important;
}

.ott-layout .header-section .logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: clamp(100px, 12vw, 170px) !important;
  height: auto !important;
  min-height: 68px !important;
  max-height: 86px !important;
  overflow: visible !important;
  margin: 0 !important;
  align-self: center !important;
}

/* Full logo visible (no bottom crop) — override theme 48px header img rule */
.ott-layout .header-section .logo img {
  width: 100% !important;
  height: auto !important;
  max-width: 170px !important;
  max-height: 82px !important;
  min-height: unset !important;
}

.ott-layout .header-section .logo.logo-text-brand {
  width: auto !important;
  max-width: min(42vw, 220px) !important;
  min-height: unset !important;
  max-height: none !important;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  color: #fff !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.ott-layout .header-section .logo.logo-text-brand:hover,
.ott-layout .header-section .logo.logo-text-brand:focus {
  color: #ff0015 !important;
  text-decoration: none !important;
}

.ott-layout .header-section .logo img {
  object-fit: contain !important;
  object-position: center center !important;
}

/* Single-line navigation */
.ott-layout .ott-nav-wrap {
  padding: 2px 0 6px !important;
  width: 100% !important;
}

@media only screen and (min-width: 1001px) {
  .ott-layout .ott-nav-wrap {
    display: block !important;
  }
}

.ott-layout .ott-nav-primary {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: 0 !important;
  white-space: nowrap !important;
}

@media only screen and (min-width: 1001px) {
  .ott-layout .ott-nav-primary {
    flex-wrap: nowrap !important;
    gap: 0 !important;
    max-width: 100% !important;
  }

  .ott-layout .main-menu .ott-nav-primary > li > a {
    padding: 8px 6px 10px !important;
    font-size: 10.5px !important;
    letter-spacing: 0.015em !important;
  }

  .ott-layout .header-section .logo {
    width: clamp(78px, 8.5vw, 130px) !important;
    min-height: 54px !important;
    max-height: 72px !important;
  }

  .ott-layout .header-section .logo img {
    max-height: 68px !important;
  }
}

@media only screen and (min-width: 1001px) and (max-width: 1500px) {
  .ott-layout .main-menu .ott-nav-primary > li > a {
    padding: 8px 4px 10px !important;
    font-size: 9.5px !important;
    letter-spacing: 0 !important;
  }

  .ott-layout .header-section .mod-menu > .row {
    grid-template-columns: minmax(72px, 9%) minmax(0, 1fr) minmax(250px, max-content) !important;
    gap: 4px 8px !important;
  }
}

@media only screen and (min-width: 1501px) {
  .ott-layout .main-menu .ott-nav-primary > li > a {
    padding: 8px 7px 10px !important;
    font-size: 11px !important;
  }
}

.ott-layout .ott-nav-wrap,
.ott-layout .ott-header-nav-col,
.ott-layout .main-menu .vfx-item-nav {
  overflow: visible !important;
}

.ott-layout .main-menu .vfx-item-nav .ott-more-menu {
  max-height: 70vh !important;
  overflow-y: auto !important;
  min-width: 240px !important;
}

.ott-layout .main-menu .vfx-item-nav > li.ott-nav-more {
  z-index: 55 !important;
  margin-right: 6px !important;
}

.ott-layout .main-menu .vfx-item-nav .ott-more-menu .ott-more-divider {
  height: 1px !important;
  margin: 6px 12px !important;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.12) !important;
  pointer-events: none !important;
}

.ott-layout .main-menu .vfx-item-nav > li {
  float: none !important;
  flex: 0 0 auto !important;
  position: relative !important;
}

.ott-layout .main-menu .vfx-item-nav > li > a {
  display: inline-block !important;
  padding: 8px 14px 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #c8cdd8 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  transition: color 0.2s ease, border-color 0.2s ease !important;
  background: transparent !important;
}

/* Dropdown menus — under parent item, dark panel, readable text */
.ott-layout .main-menu .vfx-item-nav > li > ul.mega-list,
.ott-layout .header-section .ott-nav-primary > li > ul.dm-align-2 {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: auto !important;
  margin: 0 !important;
  margin-top: 0 !important;
  width: min(280px, 92vw) !important;
  min-width: 220px !important;
  max-width: 300px !important;
  background: #161b26 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55) !important;
  z-index: 300 !important;
  padding: 6px 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  float: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  max-height: 0 !important;
  transition: opacity 0.15s ease, visibility 0.15s ease, max-height 0.2s ease !important;
}

.ott-layout .main-menu .vfx-item-nav > li > ul.mega-list::before,
.ott-layout .header-section .ott-nav-primary > li > ul.dm-align-2::before {
  content: "" !important;
  position: absolute !important;
  top: -10px !important;
  left: 0 !important;
  right: 0 !important;
  height: 10px !important;
}

.ott-layout .main-menu .vfx-item-nav > li:hover > ul.mega-list,
.ott-layout .main-menu .vfx-item-nav > li.hover > ul.mega-list,
.ott-layout .header-section .ott-nav-primary > li:hover > ul.dm-align-2,
.ott-layout .header-section .ott-nav-primary > li.hover > ul.dm-align-2 {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  max-height: 70vh !important;
  display: block !important;
}

/* Right-side nav items: anchor dropdown to parent (not under search/login) */
@media only screen and (min-width: 1001px) {
  .ott-layout .main-menu .vfx-item-nav > li:nth-last-child(-n+3) > ul.mega-list,
  .ott-layout .header-section .ott-nav-primary > li:nth-last-child(-n+3) > ul.dm-align-2,
  .ott-layout .main-menu .vfx-item-nav > li.ott-nav-more > ul.mega-list {
    left: auto !important;
    right: 0 !important;
  }

  .ott-layout .main-menu .vfx-item-nav > li > .arrow {
    display: none !important;
  }
}

.ott-layout .header-section ul li ul.dm-align-2:not(.ott-more-menu) {
  left: 0 !important;
}

@media only screen and (min-width: 1001px) {
  .ott-layout .header-section .ott-nav-primary > li:nth-last-child(-n+3) > ul.dm-align-2 {
    left: auto !important;
    right: 0 !important;
  }
}

.ott-layout .main-menu .vfx-item-nav .mega-list {
  border-radius: 10px !important;
}

.ott-layout .main-menu .vfx-item-nav .mega-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  overflow: visible !important;
}

.ott-layout .main-menu .vfx-item-nav .mega-list li:last-child {
  border-bottom: none !important;
}

.ott-layout .main-menu .vfx-item-nav .mega-list li a {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 10px 16px !important;
  color: #e8eaed !important;
  border-bottom: none !important;
  background: transparent !important;
}

.ott-layout .main-menu .vfx-item-nav .mega-list li a:hover {
  color: #ffffff !important;
  background: rgba(229, 9, 20, 0.15) !important;
  letter-spacing: 0 !important;
}

.ott-layout .main-menu .vfx-item-nav > li > a:hover,
.ott-layout .main-menu .vfx-item-nav > li:hover > a {
  color: #ffffff !important;
  border-bottom-color: rgba(255, 255, 255, 0.35) !important;
}

.ott-layout .main-menu .vfx-item-nav > li > a.active,
.ott-layout .main-menu .vfx-item-nav > li.active > a {
  color: #ffffff !important;
  border-bottom-color: var(--ott-accent) !important;
  opacity: 1 !important;
}

/* Header actions: search + login (grouped; override theme absolute positioning) */
.ott-layout .header-section .right-sub-item-area,
.ott-layout .ott-header-actions {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  padding: 8px 0 !important;
  margin: 0 !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
}

.ott-layout .search-item-block,
.ott-layout .subscribe-btn-item,
.ott-layout .signup-btn-item,
.ott-layout .user-menu {
  position: static !important;
  float: none !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.ott-layout .search-item-block .navbar-form {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

.ott-layout .subscribe-btn-item,
.ott-layout .signup-btn-item {
  margin: 0 !important;
}

.ott-layout .search-item-block .navbar-form [type="submit"] {
  width: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 8px !important;
  transition: background 0.2s ease, border-color 0.2s ease !important;
}

.ott-layout .search-item-block .navbar-form [type="submit"]:hover {
  background: var(--ott-accent) !important;
  border-color: var(--ott-accent) !important;
  color: #fff !important;
}

/* User profile — flex layout (no avatar overlap on search) */
.ott-layout .user-menu {
  margin-left: 0 !important;
}

.ott-layout .user-menu .user-name {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding-left: 0 !important;
  line-height: 1.2 !important;
  max-width: max-content !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

.ott-layout .user-menu .user-name .ott-user-display-name {
  position: static !important;
  left: auto !important;
  top: auto !important;
  overflow: visible !important;
  text-overflow: clip !important;
  min-width: 0 !important;
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: none !important;
  display: block !important;
}

.ott-layout .user-name .ott-user-avatar {
  position: static !important;
  left: auto !important;
  top: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  overflow: visible !important;
}

.ott-layout .user-menu .user-name i {
  padding-left: 0 !important;
  flex-shrink: 0 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  display: inline-block !important;
  opacity: 0.85;
}

.ott-layout .user-name .ott-user-avatar::after {
  top: 0 !important;
  right: -2px !important;
}

.ott-layout .user-menu ul.content-user {
  top: calc(100% + 8px) !important;
  right: 0 !important;
}

@media only screen and (max-width: 991px) {
  .ott-layout .user-menu .user-name {
    font-size: 12px !important;
  }
}

@media only screen and (max-width: 767px) {
  .ott-layout .user-menu .user-name .ott-user-display-name,
  .ott-layout .user-menu .user-name i {
    display: none !important;
  }

  .ott-layout .user-menu .user-name {
    max-width: 36px !important;
    gap: 0 !important;
  }
}

/* megamenu.css / responsive.css pin actions with right: 42–55px — keep search beside login */
.ott-layout .header-section .right-sub-item-area,
.ott-layout .ott-header-actions {
  position: relative !important;
  right: auto !important;
  left: auto !important;
}

/* Mobile menu toggle — hidden on desktop, shown ≤1000px */
.ott-layout .ott-mobile-menu-toggle {
  display: none !important;
}

.ott-layout .ott-mobile-menu-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  font-size: 18px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.ott-layout .ott-mobile-menu-btn:hover,
.ott-layout .ott-mobile-menu-btn:focus {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

@media only screen and (max-width: 1000px) {
  .ott-layout .header-section .right-sub-item-area,
  .ott-layout .ott-header-actions {
    position: static !important;
    right: auto !important;
  }

  .ott-layout .ott-header-nav-col {
    overflow: visible !important;
    position: relative !important;
  }

  .ott-layout .main-menu .header-section {
    position: relative !important;
  }

  .ott-layout .ott-mobile-menu-toggle {
    display: block !important;
    flex-shrink: 0 !important;
  }

  .ott-layout .header-section .mod-menu > .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .ott-layout .header-section .mod-menu > .row > .col-2:first-child {
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: 42% !important;
  }

  .ott-layout .ott-header-nav-col {
    position: static !important;
    flex: 0 0 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .ott-layout .ott-header-actions-col {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .ott-layout .ott-header-actions-col .ott-header-actions,
  .ott-layout .ott-header-actions-col .right-sub-item-area {
    width: 100% !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    padding-left: 8px !important;
    box-shadow: none !important;
  }

  .ott-layout .signup-btn-item a span {
    display: none !important;
  }

  .ott-layout .subscribe-btn-item {
    display: none !important;
  }

  .ott-layout .header-section .main-nav .nav.top-nav {
    position: relative !important;
    float: none !important;
    right: auto !important;
    top: auto !important;
    text-align: left !important;
  }

  /* Keep mobile nav hidden until hamburger opens it (Bootstrap collapse) */
  .ott-layout .header-section #menu.collapse:not(.show) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .ott-layout .header-section #menu.collapse.show,
  .ott-layout .header-section #menu.collapsing {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: var(--ott-mobile-header-height, 68px) !important;
    width: 100% !important;
    z-index: 9999 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #ececec !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    max-height: min(72vh, 520px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .ott-layout .header-section #menu.collapse.show > ul,
  .ott-layout .header-section #menu.collapsing > ul {
    background: #ffffff !important;
    margin: 0 !important;
  }

  .ott-layout .ott-nav-primary {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    white-space: normal !important;
  }

  .ott-layout .ott-nav-primary > li {
    width: 100% !important;
    border-bottom: 1px solid #ececec !important;
  }

  .ott-layout .ott-nav-primary > li:last-child {
    border-bottom: none !important;
  }

  .ott-layout .main-menu .vfx-item-nav.ott-nav-primary > li > a {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    text-align: left !important;
    color: #1d2025 !important;
    font-weight: 400 !important;
    font-size: 15px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    border-bottom: none !important;
    opacity: 1 !important;
  }

  .ott-layout .main-menu .vfx-item-nav.ott-nav-primary > li > a:hover,
  .ott-layout .main-menu .vfx-item-nav.ott-nav-primary > li:hover > a {
    color: var(--ott-accent) !important;
    background: transparent !important;
    border-bottom: none !important;
  }

  .ott-layout .main-menu .vfx-item-nav.ott-nav-primary > li > a.active,
  .ott-layout .main-menu .vfx-item-nav.ott-nav-primary > li.active > a {
    color: var(--ott-accent) !important;
    font-weight: 700 !important;
    border-bottom: none !important;
    opacity: 1 !important;
  }

  .ott-layout .ott-nav-primary > li > ul.mega-list,
  .ott-layout .header-section .ott-nav-primary > li > ul.dm-align-2 {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #f7f7f7 !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    max-height: none !important;
  }

  .ott-layout .main-menu .vfx-item-nav .mega-list li {
    border-bottom: 1px solid #ececec !important;
  }

  .ott-layout .main-menu .vfx-item-nav .mega-list li a {
    color: #1d2025 !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    padding: 10px 24px !important;
  }

  .ott-layout .main-menu .vfx-item-nav .mega-list li a:hover {
    color: var(--ott-accent) !important;
    background: transparent !important;
  }

  .ott-layout .ott-nav-primary > li.hover > ul.mega-list,
  .ott-layout .ott-nav-primary > li.active > ul.mega-list,
  .ott-layout .header-section .ott-nav-primary > li.hover > ul.dm-align-2 {
    display: block !important;
  }
}

.ott-layout .signup-btn-item a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: var(--ott-accent) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 9px 16px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border: none !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.ott-layout .signup-btn-item a:hover {
  background: var(--ott-accent-hover) !important;
  transform: translateY(-1px);
}

.ott-layout .signup-btn-item a img {
  width: 16px !important;
  height: 16px !important;
  filter: brightness(0) invert(1);
}

@media (max-width: 991px) {
  .ott-layout .header-section .logo {
    width: clamp(90px, 18vw, 150px) !important;
    min-height: 58px !important;
    max-height: 74px !important;
  }

  .ott-layout .header-section .logo img {
    max-height: 70px !important;
  }
}

@media (max-width: 767px) {
  .ott-layout .header-section .logo {
    width: 100px !important;
    min-height: 52px !important;
    max-height: 68px !important;
  }

  .ott-layout .header-section .logo img {
    max-height: 64px !important;
  }
}

/* ——— Page shell (homepage) ——— */
.ott-layout .ott-home {
  padding-bottom: 48px;
}

.ott-layout .ott-home .container-fluid {
  max-width: var(--ott-container) !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(12px, 2vw, 28px);
  padding-right: clamp(12px, 2vw, 28px);
}

/* ——— Hero banner ——— */
.ott-layout .slider-area {
  margin-top: 0;
  padding: 0 clamp(12px, 2vw, 28px) 8px;
  max-width: 100%;
}

.ott-layout .slider-area .container-fluid {
  max-width: var(--ott-container) !important;
  padding: 0;
}

.ott-layout .slider-area .splide {
  border-radius: 14px;
  overflow: hidden;
  background: var(--ott-bg-elevated);
  border: 1px solid var(--ott-border);
  box-shadow: var(--ott-shadow);
}

/* Homepage content rows */
.ott-layout.ott-home-page .ott-home .ott-row {
  position: relative;
  z-index: 8;
  padding-top: 4px !important;
  padding-bottom: 28px !important;
}

.ott-layout.ott-home-page .ott-home .ott-section-head {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 14px !important;
}

.ott-layout.ott-home-page .ott-home .ott-section-head h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ott-layout.ott-home-page .ott-home .ott-section-head h3::before {
  content: "";
  width: 4px;
  height: 0.95em;
  background: var(--ott-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.ott-layout.ott-home-page .ott-home .ott-section-head .view-more a {
  color: var(--ott-muted) !important;
  font-size: 12px !important;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.ott-layout.ott-home-page .ott-home .ott-section-head .view-more a:hover {
  color: #fff !important;
  border-bottom-color: var(--ott-accent);
}

/* Homepage carousels — room for card lift on hover */
.ott-layout.ott-home-page .ott-home .owl-carousel .owl-stage-outer {
  overflow: visible !important;
  padding: 10px 4px 20px !important;
}

.ott-layout.ott-home-page .ott-home .single-video:hover {
  z-index: 12;
  position: relative;
}

.ott-layout.ott-home-page .ott-home .banner_ads_item {
  position: relative;
  z-index: 7;
  padding-top: 12px !important;
}

.ott-layout .slider-area .splide__track {
  background: #0f0f14;
}

/* Lighter cinematic overlay (not flat black crush) */
.ott-layout .slider-area .splide .splide__slide::after {
  height: 55% !important;
  background: linear-gradient(
    to top,
    rgba(8, 8, 12, 0.88) 0%,
    rgba(8, 8, 12, 0.35) 55%,
    transparent 100%
  ) !important;
  opacity: 1 !important;
}

.ott-layout .slider-area .splide .splide__track::before,
.ott-layout .slider-area .splide .splide__track::after {
  width: 4% !important;
  opacity: 0.65 !important;
}

.ott-layout .slider-area .splide__slide .splide-slide-poster {
  width: 100% !important;
  height: clamp(280px, 42vw, 520px) !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  filter: brightness(1.04) saturate(1.08);
  background: #0f0f14;
}

.ott-layout .slider-area .splide__slide--promo .splide-slide-media {
  position: relative;
  width: 100%;
  height: clamp(280px, 42vw, 520px);
  overflow: hidden;
  background: #000;
}

.ott-layout .slider-area .splide__slide--promo .splide-slide-media .splide-slide-poster {
  width: 100% !important;
  height: 100% !important;
}

.ott-layout .slider-area .splide__slide .slider-coming-soon-poster {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.ott-layout .slider-area .splide__slide .slider-coming-soon-poster--fade {
  opacity: 0.15;
}

.ott-layout .slider-inline-trailer {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #000;
}

.ott-layout .slider-inline-trailer__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ott-layout .slider-inline-trailer__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.ott-layout .splide-slider-details-area .slider-trailer-link {
  text-decoration: none;
}

/* Fullscreen trailer overlay — no browser window / URL bar */
.trailer-theater {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.trailer-theater.is-open {
  display: flex;
}

.trailer-theater__backdrop {
  position: absolute;
  inset: 0;
  background: #000;
}

.trailer-theater__stage {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: #000;
}

.trailer-theater__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.trailer-theater__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.trailer-theater__close:hover {
  background: rgba(229, 9, 20, 0.92);
}

body.trailer-theater-open {
  overflow: hidden !important;
}

.trailer-theater.is-open .trailer-theater__stage {
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  max-width: 100dvw;
  max-height: 100dvh;
}

.trailer-theater.is-open.trailer-theater--landscape .trailer-theater__stage,
.trailer-theater.is-open.trailer-theater--landscape .trailer-theater__frame {
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  max-width: 100dvw;
  max-height: 100dvh;
}

@media (orientation: landscape) {
  .trailer-theater.is-open {
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  }

  .trailer-theater.is-open .trailer-theater__stage {
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
  }

  .trailer-theater.is-open .trailer-theater__close {
    top: max(12px, env(safe-area-inset-top, 12px));
    right: max(12px, env(safe-area-inset-right, 12px));
  }
}

@media (max-width: 991px) and (orientation: landscape) {
  .trailer-theater.is-open.trailer-theater--landscape .trailer-theater__stage {
    position: fixed;
    inset: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    z-index: 3;
  }
}

/* Portrait phones: force horizontal player layout */
@media (max-width: 991px) and (orientation: portrait) {
  .trailer-theater.is-open.trailer-theater--force-landscape .trailer-theater__stage {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vh;
    width: 100dvh;
    height: 100vw;
    height: 100dvw;
    max-width: none;
    max-height: none;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center center;
    z-index: 3;
  }

  .trailer-theater.is-open.trailer-theater--force-landscape .trailer-theater__frame {
    width: 100%;
    height: 100%;
  }

  .trailer-theater.is-open.trailer-theater--force-landscape .trailer-theater__close {
    top: max(12px, env(safe-area-inset-top, 12px));
    right: max(12px, env(safe-area-inset-right, 12px));
  }
}

.trailer-theater.is-open:fullscreen .trailer-theater__stage,
.trailer-theater.is-open:-webkit-full-screen .trailer-theater__stage {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
}

.ott-layout .splide__slide--promo.is-trailer-playing .splide-slide-poster {
  visibility: hidden;
}

.ott-layout .splide__slide--promo.is-trailer-playing .splide-slider-details-area--promo {
  opacity: 0;
  visibility: hidden;
}

.ott-layout .splide__slide--promo .splide-slider-details-area--promo {
  z-index: 8 !important;
  pointer-events: none;
}

.ott-layout .splide__slide--promo .splide-slider-details-area--promo .slider-trailer-btn,
.ott-layout .splide__slide--promo .splide-slider-details-area--promo .btn-watch,
.ott-layout .splide__slide--promo .splide-slider-details-area--promo .btn-buy-plan {
  pointer-events: auto;
}

.ott-layout .splide__slide--promo::after {
  height: 70% !important;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.15) 70%,
    transparent 100%
  ) !important;
}

.ott-layout .splide__slide--promo .slider-coming-soon-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #e50914;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.ott-layout .splide__slide--promo .splide-slider-details-area h1 {
  color: #fff !important;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 1) !important;
}

.ott-layout .splide-slider-details-area .btn-watch img,
.ott-layout .splide-slider-details-area .btn-buy-plan img {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  filter: none !important;
}

.ott-layout #home-hero-splide {
  background: #0f0f14 !important;
}

.ott-layout #home-hero-splide .splide__track {
  background: #0f0f14 !important;
}

.ott-layout .splide-slider-details-area a.btn-watch,
.ott-layout .splide-slider-details-area button.btn-watch {
  position: relative;
  z-index: 8;
  pointer-events: auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ott-accent) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 10px 18px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent !important;
  box-shadow: 0 8px 22px rgba(229, 9, 20, 0.4);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ott-layout .splide-slider-details-area .slider-trailer-btn {
  border: 0;
  cursor: pointer;
}

.ott-layout .slider-area .splide__slide--video {
  position: relative;
  width: 100% !important;
  min-width: 100%;
  flex: 0 0 100%;
}

.ott-layout .slider-area .splide__slide--video .slider-video-sizing {
  width: 100%;
  height: clamp(280px, 42vw, 520px);
  visibility: hidden;
  pointer-events: none;
}

.ott-layout .slider-area .splide__slide--video .slider-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: clamp(280px, 42vw, 520px);
  overflow: hidden;
  background: #000;
}

.ott-layout .slider-area .splide__slide--video .slider-video-poster,
.ott-layout .slider-area .splide__slide--video .slider-video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ott-layout .slider-area .splide__slide--video .slider-video-poster {
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.ott-layout .slider-area .splide__slide--video .slider-video-frame {
  z-index: 2;
}

.ott-layout .slider-coming-soon-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ott-layout .splide-slider-details-area {
  left: clamp(20px, 4vw, 48px) !important;
  bottom: clamp(22px, 4vw, 44px) !important;
  max-width: min(560px, 72%);
  z-index: 6 !important;
}

.ott-layout .splide-slider-details-area h1 {
  font-size: clamp(1.6rem, 3.8vw, 2.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 16px !important;
}

/* Professional hero actions: primary Watch + subtle Buy Plan */
.ott-layout .splide-slider-details-area a.btn-watch {
  position: relative;
  z-index: 8;
  pointer-events: auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ott-accent) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 10px 18px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent !important;
  box-shadow: 0 8px 22px rgba(229, 9, 20, 0.4);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ott-layout .splide-slider-details-area a.btn-watch img,
.ott-layout .splide-slider-details-area button.btn-watch img {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  opacity: 0.95;
}

.ott-layout .splide-slider-details-area a.btn-watch:hover,
.ott-layout .splide-slider-details-area button.btn-watch:hover {
  background: var(--ott-accent-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(229, 9, 20, 0.5);
}

.ott-layout .splide-slider-details-area a.btn-buy-plan {
  position: relative;
  z-index: 8;
  pointer-events: auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ott-layout .splide-slider-details-area a.btn-buy-plan img {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
}

.ott-layout .splide-slider-details-area a.btn-buy-plan:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
}

.ott-layout .slider-area .splide__arrow {
  display: flex !important;
  visibility: visible !important;
  opacity: 0.9 !important;
  width: 44px !important;
  height: 44px !important;
  background: rgba(0, 0, 0, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
}

.ott-layout .slider-area .splide__arrow:hover {
  background: var(--ott-accent) !important;
  border-color: var(--ott-accent) !important;
}

/* ——— Content rails ——— */
.ott-layout .video-carousel-area,
.ott-layout .video-shows-section {
  padding-top: 8px !important;
  padding-bottom: 20px !important;
  margin-top: 4px;
}

.ott-layout .vfx-item-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--ott-border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.ott-layout .vfx-item-section h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem) !important;
  font-weight: 700 !important;
  color: var(--ott-text) !important;
  margin: 0 !important;
  letter-spacing: 0.01em;
}

.ott-layout .vfx-item-section .view-more a {
  color: var(--ott-muted) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.ott-layout .vfx-item-section .view-more a:hover {
  color: var(--ott-accent) !important;
}

/* ——— Professional content cards (cinema overlay titles) ——— */
.ott-layout .single-video a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ott-layout .single-video .video-img,
.ott-layout .view-movie-list-item .single-video .video-img,
.ott-layout .vfx-item-ptb .single-video .video-img {
  --ott-title-size: clamp(13px, 4.6cqi, 16px);
  --ott-poster-ratio: 2 / 3;

  display: block !important;
  height: auto !important;
  position: relative !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #0e0e14 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease !important;
}

.ott-layout .video-shows-carousel .single-video .video-img,
.ott-layout .tv-season-video-carousel .single-video .video-img,
.ott-layout .video-carousel .single-video .video-img,
.ott-layout .trending-section .single-video .video-img,
.ott-layout .recently-watched-video-carousel .single-video .video-img,
.ott-layout .view-all-video-area .single-video .video-img,
.ott-layout .view-movie-list-item .single-video .video-img,
.ott-layout .view-shows-list-item .single-video .video-img {
  container-type: inline-size;
  container-name: ott-card;
}

/* List pages — home-style overlay titles; hide below-poster title bars */
.ott-layout .view-all-video-area .season-title-item,
.ott-layout .view-movie-list-item .season-title-item,
.ott-layout .view-shows-list-item .season-title-item {
  display: none !important;
}

/* Poster fills the card */
.ott-layout .single-video .video-img > img,
.ott-layout .video-img a > img,
.ott-layout .video-item img,
.ott-layout .movie-item img {
  width: 100% !important;
  aspect-ratio: var(--ott-poster-ratio) !important;
  height: auto !important;
  min-height: unset !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  border-radius: 0 !important;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease !important;
}

/* Soft bottom vignette always on */
.ott-layout .single-video .video-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 6, 10, 0.92) 0%,
    rgba(6, 6, 10, 0.35) 38%,
    transparent 62%
  );
  opacity: 1;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ott-layout .single-video:hover .video-img::before {
  opacity: 1;
  background: linear-gradient(
    to top,
    rgba(6, 6, 10, 0.95) 0%,
    rgba(6, 6, 10, 0.45) 42%,
    rgba(0, 0, 0, 0.2) 70%,
    transparent 100%
  );
}

/* Glass play hint on hover */
.ott-layout .single-video .video-img::after {
  content: "\f04b";
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", FontAwesome;
  font-weight: 900;
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-size: 14px;
  color: #0c0c12;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  padding-left: 3px;
}

.ott-layout .single-video:hover .video-img::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ott-layout .single-video:hover .video-img {
  transform: translateY(-4px) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
}

.ott-layout .single-video:hover .video-img > img {
  transform: scale(1.05) !important;
  filter: brightness(1.04);
}

/* Title overlaid on poster — hard 2-line clamp, rest hidden */
.ott-layout .video-img span.video-item-content,
.ott-layout .video-shows-section .video-img span.video-item-content,
.ott-layout .recently-watched-video-carousel .video-img span.video-item-content,
.ott-layout .sport-video-block .video-img span.video-item-content,
.ott-layout .live-tv-video-block .video-img span.video-item-content {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  top: auto !important;
  width: auto !important;
  box-sizing: border-box !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  background: transparent !important;
  font-size: var(--ott-title-size) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65) !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0.01em;
  color: #f5f5f7 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  border: 0 !important;
  border-radius: 0 !important;
  z-index: 3 !important;
  contain: none !important;

  /* Exactly 2 lines — anything else is clipped */
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  height: calc(var(--ott-title-size) * 1.25 * 2) !important;
  min-height: calc(var(--ott-title-size) * 1.25 * 2) !important;
  max-height: calc(var(--ott-title-size) * 1.25 * 2) !important;
}

@container ott-card (max-width: 150px) {
  .ott-layout .single-video .video-img {
    --ott-title-size: clamp(11px, 5.2cqi, 13px);
  }

  .ott-layout .video-img span.video-item-content {
    left: 9px !important;
    right: 9px !important;
    bottom: 10px !important;
  }
}

@container ott-card (min-width: 210px) {
  .ott-layout .single-video .video-img {
    --ott-title-size: clamp(14px, 4.2cqi, 17px);
  }

  .ott-layout .video-img span.video-item-content {
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
  }
}

/* Premium / VIP badge — hidden on content cards */
.ott-layout .vid-lab-premium,
.ott-layout .single-video .video-img .vid-lab-premium,
.ott-layout .video-img .vid-lab-premium {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.ott-layout .vid-lab-premium img,
.ott-layout .vid-lab-premium::after {
  display: none !important;
  content: none !important;
}

/* Owl item spacing */
.ott-layout .owl-carousel .owl-item {
  padding: 2px 4px;
}

/* Carousel dots — brand red */
.ott-layout .owl-carousel .owl-dots {
  margin-top: 14px !important;
}

.ott-layout .owl-carousel .owl-dots .owl-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.35) !important;
  margin: 0 5px !important;
}

.ott-layout .owl-carousel .owl-dots .owl-dot.active,
.ott-layout .owl-carousel .owl-dots .owl-dot:hover {
  background: var(--ott-accent) !important;
  transform: scale(1.15);
}

/* Desktop: show carousel arrows for discoverability */
@media (min-width: 992px) {
  .ott-layout .video-carousel .owl-nav,
  .ott-layout .video-shows-carousel .owl-nav,
  .ott-layout .tv-season-video-carousel .owl-nav,
  .ott-layout .recently-watched-video-carousel .owl-nav {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .ott-layout .owl-carousel .owl-nav button.owl-prev,
  .ott-layout .owl-carousel .owl-nav button.owl-next {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 42px !important;
    height: 42px !important;
    position: absolute !important;
    top: 38% !important;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 50% !important;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .ott-layout .owl-carousel .owl-nav button.owl-prev:hover,
  .ott-layout .owl-carousel .owl-nav button.owl-next:hover {
    background: var(--ott-accent) !important;
    border-color: var(--ott-accent) !important;
  }

  .ott-layout .owl-carousel .owl-nav button.owl-prev {
    left: -8px !important;
  }

  .ott-layout .owl-carousel .owl-nav button.owl-next {
    right: -8px !important;
  }

  .ott-layout .owl-carousel .owl-nav button i {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #fff !important;
    font-size: 18px !important;
  }
}

@media (max-width: 991px) {
  .ott-layout .owl-carousel .owl-nav {
    display: none !important;
  }
}

/* Trending: cinematic landscape thumbs with consistent professional height */
.ott-layout .trending-section.trending-landscape .single-video .video-img {
  --ott-poster-ratio: 16 / 9;
  --ott-title-size: clamp(13px, 3.8cqi, 16px);
  container-type: inline-size;
  container-name: ott-card;
  aspect-ratio: auto !important;
  height: clamp(152px, 17.5vw, 220px) !important;
  min-height: 152px !important;
  max-height: 220px !important;
  background: #0e0e14 !important;
  overflow: hidden !important;
}

.ott-layout .trending-section.trending-landscape .single-video .video-img > img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.ott-layout .trending-section.trending-landscape .video-img span.video-item-content {
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  font-size: var(--ott-title-size) !important;
  font-weight: 800 !important;
  height: calc(var(--ott-title-size) * 1.25 * 2) !important;
  min-height: calc(var(--ott-title-size) * 1.25 * 2) !important;
  max-height: calc(var(--ott-title-size) * 1.25 * 2) !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
}

@media (max-width: 767px) {
  .ott-layout .trending-section.trending-landscape .single-video .video-img {
    height: clamp(132px, 42vw, 180px) !important;
    min-height: 132px !important;
    max-height: 180px !important;
  }
}

/* Banner ads spacing */
.ott-layout .banner_ads_item {
  max-width: var(--ott-container);
  margin-left: auto;
  margin-right: auto;
}

/* Safety: never hide main content */
.ott-layout #app-content,
.ott-layout #app-content .owl-carousel .owl-item,
.ott-layout #app-content .owl-carousel .owl-item img,
.ott-layout #app-content .splide__slide,
.ott-layout #app-content .splide__slide img {
  visibility: visible !important;
}

@media (max-width: 767px) {
  /* Full-bleed OTT hero — edge to edge, no boxed card */
  .ott-layout .slider-area,
  .ott-layout.ott-home-page .slider-area {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .ott-layout .slider-area.pt-3 {
    padding-top: 0 !important;
  }

  .ott-layout .slider-area .container-fluid,
  .ott-layout .slider-area .row {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .ott-layout .slider-area .splide,
  .ott-layout #home-hero-splide {
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #000 !important;
  }

  .ott-layout .slider-area .splide__track {
    background: #000 !important;
  }

  .ott-layout .slider-area .splide .splide__track::before,
  .ott-layout .slider-area .splide .splide__track::after {
    display: none !important;
  }

  .ott-layout .slider-area .splide__slide .splide-slide-poster,
  .ott-layout .slider-area .splide__slide--promo .splide-slide-media,
  .ott-layout .slider-area .splide__slide--video .slider-video-sizing,
  .ott-layout .slider-area .splide__slide--video .slider-video-wrap {
    height: clamp(260px, 62vw, 420px) !important;
    width: 100% !important;
    border-radius: 0 !important;
  }

  .ott-layout .slider-area .splide__slide .splide-slide-poster {
    object-fit: cover !important;
    object-position: center 30% !important;
  }

  .ott-layout .slider-area .splide .splide__slide::after {
    height: 70% !important;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.45) 45%,
      transparent 100%
    ) !important;
  }

  .ott-layout .splide-slider-details-area {
    left: 16px !important;
    right: 16px !important;
    bottom: 18px !important;
    max-width: calc(100% - 32px) !important;
  }

  .ott-layout .splide-slider-details-area h1 {
    font-size: clamp(1.45rem, 7vw, 1.85rem) !important;
    margin-bottom: 12px !important;
  }

  .ott-layout .splide-slider-details-area a.btn-watch,
  .ott-layout .splide-slider-details-area button.btn-watch,
  .ott-layout .splide-slider-details-area a.btn-buy-plan {
    width: auto !important;
    min-width: 0 !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
  }

  .ott-layout .splide__slide--promo .splide-slider-details-area--promo {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .ott-layout .single-video:hover .video-img {
    transform: translateY(-4px) scale(1.02) !important;
  }

  .ott-layout .single-video .video-img::after {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 13px;
  }

  /* Web Series — smaller posters on mobile */
  .ott-layout .video-shows-section .video-shows-carousel .owl-item {
    padding: 2px 3px;
  }

  .ott-layout .video-shows-section .video-shows-carousel .single-video .video-img {
    border-radius: 10px !important;
  }

  .ott-layout .video-shows-section .video-shows-carousel .video-img span.video-item-content {
    --ott-title-size: clamp(10px, 3.6cqi, 12px);
    font-size: var(--ott-title-size) !important;
    height: calc(var(--ott-title-size) * 1.25 * 2) !important;
    min-height: calc(var(--ott-title-size) * 1.25 * 2) !important;
    max-height: calc(var(--ott-title-size) * 1.25 * 2) !important;
  }
}

/* Override legacy fixed 280px card heights */
.ott-layout .single-video .video-img,
.ott-layout .single-video .video-img img,
.ott-layout .view-movie-list-item .single-video .video-img,
.ott-layout .view-movie-list-item .single-video .video-img img,
.ott-layout .vfx-item-ptb .single-video .video-img,
.ott-layout .vfx-item-ptb .single-video .video-img img {
  height: auto !important;
  min-height: 0 !important;
}

/* Recently watched — undo legacy absolute/fixed-size rules */
.ott-layout .recently-watched-video-carousel .single-video {
  width: auto !important;
  min-height: 0 !important;
}

.ott-layout .recently-watched-video-carousel .video-img {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
}

.ott-layout .recently-watched-video-carousel .video-img img {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  min-height: unset !important;
  object-fit: cover !important;
  border: none !important;
}

.ott-layout .recently-watched-video-carousel .video-img::before {
  display: block !important;
}

/* Keep cinema overlay titles (beat older absolute/single-line theme rules) */
.ott-layout .video-img span.video-item-content,
.ott-layout .video-shows-section .video-img span.video-item-content,
.ott-layout .recently-watched-video-carousel .video-item-content,
.ott-layout .recently-watched-video-carousel .video-img span.video-item-content {
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  position: absolute !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: left !important;
  height: calc(var(--ott-title-size, 14px) * 1.25 * 2) !important;
  min-height: calc(var(--ott-title-size, 14px) * 1.25 * 2) !important;
  max-height: calc(var(--ott-title-size, 14px) * 1.25 * 2) !important;
  padding: 0 !important;
  background: transparent !important;
  font-weight: 800 !important;
}

/* Login / signup — dark-theme error banner (avoid grey Bootstrap alert patch) */
.login-item-block .login-error-alert {
  background: rgba(229, 9, 20, 0.12) !important;
  border: 1px solid rgba(229, 9, 20, 0.55) !important;
  color: #ffd6d6 !important;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  padding: 12px 16px;
  margin-bottom: 1rem !important;
  box-shadow: none;
}

.login-item-block .login-error-alert div + div {
  margin-top: 4px;
}

/* Login / signup — logo on top, title inside form card */
.ott-layout.login-signup-page .hero-wrap {
  align-items: center !important;
}

.ott-layout.login-signup-page .login-signup-hero {
  justify-content: center !important;
  align-items: center !important;
  padding: clamp(1.25rem, 4vh, 2.5rem) 1rem;
}

.ott-layout.login-signup-page .login-signup-stack {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
}

.ott-layout.login-signup-page .login-signup-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.ott-layout.login-signup-page .login-signup-logo-wrap a {
  display: inline-flex;
  justify-content: center;
}

.ott-layout.login-signup-page .login-signup-logo {
  max-height: clamp(56px, 12vw, 88px);
  width: auto;
  height: auto;
}

.ott-layout.login-signup-page .login-signup-card {
  width: 100%;
  margin: 0 !important;
  align-self: stretch !important;
}

.ott-layout.login-signup-page .login-signup-form-title {
  margin: 0 0 1.25rem;
  padding-bottom: 10px;
  text-align: left;
  color: #fff;
}

.ott-layout.login-signup-page .login-signup-form-title::before {
  left: 0;
  transform: none;
}

/* SweetAlert toast on auth pages — no grey full-screen overlay */
.sseries-auth-toast-container.swal2-container {
  pointer-events: none !important;
  background: transparent !important;
}

.sseries-auth-toast-container .swal2-popup.swal2-toast {
  background: rgba(26, 34, 52, 0.96) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

/* S-Series Originals — landscape 16:9 thumbnails */
.ott-layout .original-video-block .single-video .video-img,
.ott-layout .view-all-video-area.originals-landscape .single-video .video-img,
.ott-layout .related-video-item.originals-landscape .single-video .video-img,
.ott-layout .ott-original-detail__related .single-video .video-img {
  --ott-poster-ratio: 16 / 9;
  --ott-title-size: clamp(13px, 4.2cqi, 16px);
  container-type: inline-size;
  container-name: ott-card;
}

.ott-layout .original-video-block .single-video .video-img > img,
.ott-layout .view-all-video-area.originals-landscape .single-video .video-img > img,
.ott-layout .related-video-item.originals-landscape .single-video .video-img > img,
.ott-layout .ott-original-detail__related .single-video .video-img > img {
  aspect-ratio: 16 / 9 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.ott-layout .original-video-block .video-img span.video-item-content,
.ott-layout .view-all-video-area.originals-landscape .video-img span.video-item-content,
.ott-layout .related-video-item.originals-landscape .video-img span.video-item-content,
.ott-layout .ott-original-detail__related .video-img span.video-item-content {
  left: 10px !important;
  right: 10px !important;
  bottom: 10px !important;
  width: auto !important;
  max-width: none !important;
  font-size: var(--ott-title-size) !important;
  font-weight: 800 !important;
  padding: 0 !important;
  height: calc(var(--ott-title-size) * 1.25 * 2) !important;
  min-height: calc(var(--ott-title-size) * 1.25 * 2) !important;
  max-height: calc(var(--ott-title-size) * 1.25 * 2) !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Hide legacy below-poster titles on originals grids */
.ott-layout .view-all-video-area.originals-landscape .season-title-item,
.ott-layout .related-video-item.originals-landscape .season-title-item,
.ott-layout .ott-original-detail__related .season-title-item {
  display: none !important;
}

/* Originals collection grid — wider landscape cards */
.ott-layout .view-all-video-area.originals-landscape .row > [class*="col-"] {
  margin-bottom: 22px;
  padding-left: 12px;
  padding-right: 12px;
}

@media (max-width: 767px) {
  .ott-layout .view-all-video-area.originals-landscape .row > [class*="col-"] {
    margin-bottom: 14px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .ott-layout .view-all-video-area.originals-landscape .video-img span.video-item-content {
    --ott-title-size: 12px;
    font-size: 12px !important;
  }
}

@media (max-width: 575px) {
  .ott-layout .view-all-video-area.originals-landscape .row > [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* ——— Originals details: split poster + copy (sharp image, no stretched bg) ——— */
.ott-layout .ott-original-detail {
  background: var(--ott-bg);
  margin: 0;
  padding: 0;
}

.ott-layout .ott-original-detail__hero {
  position: relative;
  overflow: hidden;
  background: #0a0a0f;
  padding: 36px 0 44px;
}

.ott-layout .ott-original-detail__atmosphere {
  position: absolute;
  inset: -40px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ott-layout .ott-original-detail__atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(42px) saturate(1.15) brightness(0.45);
  transform: scale(1.18);
  opacity: 0.85;
}

.ott-layout .ott-original-detail__atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 40%, rgba(229, 9, 20, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(11, 11, 16, 0.35) 0%, rgba(11, 11, 16, 0.92) 100%);
}

.ott-layout .ott-original-detail__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--ott-container);
  margin: 0 auto;
  padding: 0 24px;
}

.ott-layout .ott-original-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.ott-layout .ott-original-detail__copy {
  max-width: 640px;
}

.ott-layout .ott-original-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.ott-layout .ott-original-detail__chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.18);
  border: 1px solid rgba(229, 9, 20, 0.45);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ott-layout .ott-original-detail__chip:hover {
  background: rgba(229, 9, 20, 0.32);
  border-color: var(--ott-accent);
  color: #fff !important;
}

.ott-layout .ott-original-detail__views {
  color: var(--ott-muted);
  font-size: 13px;
  font-weight: 600;
}

.ott-layout .ott-original-detail__views .fa {
  margin-right: 6px;
  opacity: 0.85;
}

.ott-layout .ott-original-detail__title {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ott-layout .ott-original-detail__desc {
  margin: 0 0 22px;
  color: rgba(245, 245, 247, 0.88);
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 500;
  line-height: 1.55;
  max-width: 54ch;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}

.ott-layout .ott-original-detail__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ott-layout .ott-original-detail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ott-layout .ott-original-detail__btn--primary {
  background: var(--ott-accent) !important;
  color: #fff !important;
  border: 1px solid transparent;
  box-shadow: 0 8px 22px rgba(229, 9, 20, 0.4);
}

.ott-layout .ott-original-detail__btn--primary:hover {
  background: var(--ott-accent-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(229, 9, 20, 0.5);
}

.ott-layout .ott-original-detail__btn--ghost {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.ott-layout .ott-original-detail__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff !important;
}

.ott-layout .ott-original-detail__poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #12121a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  text-decoration: none !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ott-layout .ott-original-detail__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  image-rendering: auto;
}

.ott-layout .ott-original-detail__poster:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.62);
}

.ott-layout .ott-original-detail__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  transition: background 0.25s ease;
}

.ott-layout .ott-original-detail__play i {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ott-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  padding-left: 3px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.ott-layout .ott-original-detail__poster:hover .ott-original-detail__play {
  background: rgba(0, 0, 0, 0.35);
}

.ott-layout .ott-original-detail__related {
  padding-top: 28px !important;
  padding-bottom: 36px !important;
}

.ott-layout .ott-original-detail__related .vfx-item-section h3 {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
}

@media (max-width: 991px) {
  .ott-layout .ott-original-detail__hero {
    padding: 18px 0 28px;
  }

  .ott-layout .ott-original-detail__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ott-layout .ott-original-detail__poster {
    order: -1;
  }

  .ott-layout .ott-original-detail__copy {
    max-width: 100%;
  }

  .ott-layout .ott-original-detail__desc {
    -webkit-line-clamp: 6;
    line-clamp: 6;
    max-width: none;
  }

  .ott-layout .ott-original-detail__inner {
    padding: 0 16px;
  }
}

@media (max-width: 575px) {
  .ott-layout .ott-original-detail__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ott-layout .ott-original-detail__btn {
    width: 100%;
  }

  .ott-layout .ott-original-detail__title {
    font-size: clamp(22px, 7vw, 28px);
  }

  .ott-layout .ott-original-detail__play i {
    width: 54px;
    height: 54px;
    font-size: 18px;
  }
}
