/* NOVA+ final card-display patch. Card and rail dimensions are intentionally untouched. */
html.nova-web-shell body #nova-app .nova-card-final-card {
  position:relative!important;
  background:transparent!important;
  padding-bottom:0!important;
}

html.nova-web-shell body #nova-app .nova-card-final-card .nova-card-final-art {
  position:relative!important;
  overflow:hidden!important;
}

html.nova-web-shell body #nova-app .nova-card-final-card .nova-card-final-native-title,
html.nova-web-shell body #nova-app .nova-card-final-card .nova-card-final-native-meta,
html.nova-web-shell body #nova-app .nova-card-final-card .nova-card-final-native-copy {
  display:none!important;
}

html.nova-web-shell body #nova-app .nova-card-final-left-badges {
  position:absolute!important;
  top:8px!important;
  left:8px!important;
  z-index:12!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:4px!important;
  max-width:72%!important;
  direction:ltr!important;
  pointer-events:none!important;
}

html.nova-web-shell body #nova-app .nova-card-final-rating {
  position:absolute!important;
  top:8px!important;
  right:8px!important;
  z-index:13!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:21px!important;
  padding:0 7px!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:6px!important;
  background:rgba(7,8,13,.82)!important;
  color:#ffd64e!important;
  font-size:10px!important;
  line-height:19px!important;
  font-weight:800!important;
  white-space:nowrap!important;
  box-shadow:0 3px 12px rgba(0,0,0,.32)!important;
  backdrop-filter:blur(7px)!important;
  pointer-events:none!important;
}

html.nova-web-shell body #nova-app .nova-card-final-badge {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:21px!important;
  padding:0 7px!important;
  border:1px solid rgba(255,255,255,.13)!important;
  border-radius:6px!important;
  color:#fff!important;
  font-size:10px!important;
  line-height:19px!important;
  font-weight:800!important;
  white-space:nowrap!important;
  box-shadow:0 3px 12px rgba(0,0,0,.32)!important;
  backdrop-filter:blur(7px)!important;
}

html.nova-web-shell body #nova-app .nova-card-final-badge--age,
html.nova-web-shell body #nova-app .nova-card-final-badge--quality {
  min-height:19px!important;
  padding:0 6px!important;
  border-radius:5px!important;
  border-color:rgba(148,163,184,.24)!important;
  background:linear-gradient(180deg,rgba(24,28,40,.94),rgba(10,12,19,.9))!important;
  font-size:9px!important;
  line-height:17px!important;
  font-weight:750!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 4px 12px rgba(0,0,0,.3)!important;
}

html.nova-web-shell body #nova-app .nova-card-final-badge--count {
  position:relative!important;
  min-height:18px!important;
  padding:0 0 0 6px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#fff!important;
  font-size:9px!important;
  line-height:16px!important;
  font-weight:750!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  text-shadow:0 1px 5px rgba(0,0,0,.9)!important;
}

html.nova-web-shell body #nova-app .nova-card-final-badge--count::before {
  content:""!important;
  width:2px!important;
  height:13px!important;
  margin-inline-end:4px!important;
  border-radius:2px!important;
  background:linear-gradient(180deg,#55c7ff,#8b5cf6)!important;
  box-shadow:0 0 5px rgba(112,101,246,.45)!important;
}

html.nova-web-shell body #nova-app .nova-card-final-badge--translated {
  background:rgba(29,137,168,.9)!important;
}

html.nova-web-shell body #nova-app .nova-card-final-copy {
  display:grid!important;
  gap:4px!important;
  width:100%!important;
  margin:6px 0 0!important;
  padding:0!important;
  box-sizing:border-box!important;
  background:transparent!important;
  text-align:start!important;
}

html.nova-web-shell body #nova-app .nova-card-final-title {
  display:-webkit-box!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:1!important;
  color:#fff!important;
  font-size:14px!important;
  line-height:1.25!important;
  font-weight:750!important;
  text-align:start!important;
  text-overflow:ellipsis!important;
  text-shadow:none!important;
}

html.nova-web-shell body #nova-app .nova-card-final-meta {
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  color:rgba(255,255,255,.52)!important;
  font-size:11px!important;
  line-height:1.25!important;
  font-weight:500!important;
  text-align:start!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}

html.nova-web-shell body #nova-app .nova-card-final-landscape .nova-card-final-title {
  font-size:14px!important;
}

html.nova-web-shell body #nova-app .nova-card-final-landscape .shahid-landscape-duration,
html.nova-web-shell body #nova-app .nova-card-final-landscape .nx2-browser-card-chip {
  z-index:11!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  min-width:0!important;
  min-height:18px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:rgba(255,255,255,.94)!important;
  font-size:10px!important;
  line-height:18px!important;
  font-weight:750!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  text-shadow:0 1px 6px rgba(0,0,0,.95)!important;
}

html.nova-web-shell body #nova-app .nova-card-final-landscape :is(.shahid-landscape-duration,.nx2-browser-card-chip) svg {
  width:10px!important;
  height:10px!important;
}

/* Home identity and mobile commercial surface; no rail/card geometry is changed. */
html.nova-web-shell #nova-global-header .nova-home-account-avatar {
  width:22px!important;height:22px!important;border-radius:50%!important;object-fit:cover!important;
  border:1px solid rgba(255,255,255,.24)!important;background:#090b12!important;
  box-shadow:0 0 0 1px rgba(96,74,255,.28),0 3px 10px rgba(0,0,0,.32)!important;
}
html.nova-web-shell #nova-global-header .nova-home-account-button {
  width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;
  padding:5px!important;border:0!important;background:transparent!important;box-shadow:none!important;
}
html.nova-web-shell #nova-global-header .home-menu-button,
html.nova-web-shell #nova-global-header .home-menu-button svg {
  width:42px!important;min-width:42px!important;max-width:42px!important;height:18px!important;max-height:18px!important;
}
.nova-account-inline-avatar{width:100%!important;height:100%!important;border-radius:inherit!important;object-fit:cover!important;display:block!important;}

@media (max-width:767px) {
  html.nova-web-shell body #nova-app [data-nova-page="home"] .nova-commercial-display-card,
  html.nova-web-shell body #nova-app .nx2-page--home .nova-commercial-display-card {
    height:clamp(390px,66dvh,560px)!important;
    min-height:390px!important;
    aspect-ratio:auto!important;
  }
  html.nova-web-shell body #nova-app [data-nova-page="home"] .nova-commercial-display-cta,
  html.nova-web-shell body #nova-app .nx2-page--home .nova-commercial-display-cta {
    min-height:42px!important;padding:0 18px!important;border-radius:9px!important;
    border:1px solid rgba(255,255,255,.28)!important;background:#fff!important;color:#08090d!important;
    font-size:13px!important;font-weight:850!important;box-shadow:0 10px 28px rgba(0,0,0,.42)!important;
  }
  html.nova-web-shell body #nova-app [data-nova-page="home"] .nova-commercial-display-meta,
  html.nova-web-shell body #nova-app .nx2-page--home .nova-commercial-display-meta {
    align-items:flex-start!important;justify-content:flex-end!important;flex-direction:column!important;
    background:linear-gradient(90deg,rgba(3,5,14,.92) 0%,rgba(3,5,14,.54) 42%,rgba(3,5,14,.06) 76%)!important;
  }
  html.nova-web-shell body #nova-app [data-nova-page="home"] .nova-commercial-display-copy,
  html.nova-web-shell body #nova-app .nx2-page--home .nova-commercial-display-copy {
    width:min(78%,390px)!important;text-align:left!important;align-items:start!important;direction:rtl!important;
    margin-right:auto!important;margin-left:0!important;
  }
  html.nova-web-shell body #nova-app [data-nova-page="home"] .nova-commercial-display-cta,
  html.nova-web-shell body #nova-app .nx2-page--home .nova-commercial-display-cta {
    align-self:flex-start!important;margin-right:auto!important;margin-left:0!important;
  }
}

.nova-account-details-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-top:14px;}
.nova-account-details-grid>div{min-width:0;padding:13px;border:1px solid rgba(255,255,255,.09);border-radius:13px;background:rgba(255,255,255,.025);}
.nova-account-details-grid small,.nova-account-details-grid strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.nova-account-details-grid small{color:rgba(255,255,255,.48);font-size:11px;margin-bottom:5px;}
.nova-account-details-grid strong{color:#fff;font-size:13px;}
.sg-account-credentials{display:grid;gap:10px;margin-top:12px;}
.sg-account-credentials input{height:46px;padding:0 13px;border:1px solid rgba(255,255,255,.13);border-radius:10px;background:#08090d;color:#fff;font:inherit;}
.sg-account-login-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;}
.sg-account-login-actions button{min-height:44px;border-radius:10px;font-weight:800;}
.sg-account-login-actions [data-account-password-submit]{background:linear-gradient(100deg,#c62cff,#7050ff 52%,#16a8ff);color:#fff;}
.sg-account-login-actions [data-account-google-submit]{border:1px solid rgba(255,255,255,.16);background:#11131a;color:#fff;}

/* TOP stays untouched at the upper-left; supporting badges move clear of it. */
html.nova-web-shell body #nova-app .nova-card-final-ranked .nova-card-final-left-badges {
  top:auto!important;
  bottom:8px!important;
}

html.nova-web-shell body #nova-app .nova-card-final-card.nova-card-final-ranked > .nova-card-final-art > .nova-card-final-left-badges {
  top:auto!important;
  right:auto!important;
  bottom:8px!important;
  left:8px!important;
  align-items:flex-start!important;
  transform:none!important;
}

html.nova-web-shell body #nova-app .nova-card-final-ranked .nx2-rank-ribbon,
html.nova-web-shell body #nova-app .nova-card-final-ranked .shahid-rank-ribbon,
html.nova-web-shell body #nova-app .nova-card-final-ranked .nx2-browser-rank {
  z-index:14!important;
}

@media (max-width:767px) {
  html.nova-web-shell body #nova-app .nova-card-final-title {font-size:13px!important;}
  html.nova-web-shell body #nova-app .nova-card-final-landscape .nova-card-final-title {font-size:14px!important;}
}

/* All Movies / All Series — exact Details season-filter visual parity.
   Presentation only: the existing filter buttons, sheets and filtering logic stay unchanged. */
html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-filter-control {
  flex:0 0 auto!important;
  min-width:0!important;
  display:block!important;
}

html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-filter-control > .nova-catalog-select-card {
  position:relative!important;
  flex:0 0 auto!important;
  width:auto!important;
  height:var(--nova-catalog-control-h,38px)!important;
  min-height:var(--nova-catalog-control-h,38px)!important;
  min-width:118px!important;
  max-width:178px!important;
  margin:0!important;
  padding:0 10px!important;
  display:grid!important;
  grid-template-columns:18px minmax(38px,1fr) 14px!important;
  grid-template-rows:1fr!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  box-sizing:border-box!important;
  border:1px solid var(--nova-catalog-line,rgba(132,145,176,.20))!important;
  border-radius:8px!important;
  background:#000000!important;
  color:rgba(255,255,255,.72)!important;
  box-shadow:none!important;
  direction:rtl!important;
}

/* Keep the current concise catalog wording (e.g. كل الدول / كل الأنواع),
   while using the exact season-button geometry and palette. */
html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-filter-control > .nova-catalog-select-card > span {
  display:none!important;
}

html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-filter-control > .nova-catalog-select-card > strong {
  grid-column:2!important;
  grid-row:1!important;
  min-width:0!important;
  overflow:hidden!important;
  color:rgba(255,255,255,.82)!important;
  font-size:.73rem!important;
  font-weight:760!important;
  line-height:1!important;
  text-align:center!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-filter-control > .nova-catalog-select-card > .oscar-icon:first-child {
  grid-column:1!important;
  grid-row:1!important;
  width:18px!important;
  height:18px!important;
  color:rgba(255,255,255,.60)!important;
}

html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-filter-control > .nova-catalog-select-card > .oscar-icon:last-child {
  grid-column:3!important;
  grid-row:1!important;
  width:14px!important;
  height:14px!important;
  color:rgba(255,255,255,.45)!important;
}

html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-filter-control > .nova-catalog-select-card:hover,
html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-filter-control > .nova-catalog-select-card:focus-visible,
html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-filter-control > .nova-catalog-select-card:focus-within {
  outline:0!important;
  color:#fff!important;
  border-color:rgba(119,70,239,.48)!important;
  box-shadow:none!important;
}

html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-filter-control > .nova-catalog-select-card.active {
  color:#fff!important;
  border-color:transparent!important;
  background:
    linear-gradient(#000000,#000000) padding-box,
    var(--nova-catalog-active-border,linear-gradient(100deg,#f04ad8 0%,#9b4dff 48%,#14d7ff 100%)) border-box!important;
  box-shadow:0 0 0 1px rgba(155,77,255,.08),0 6px 18px rgba(45,111,219,.10)!important;
}

html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-filter-control > .nova-catalog-select-card.active > strong,
html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-filter-control > .nova-catalog-select-card.active > .oscar-icon {
  color:#fff!important;
}

/* Same compact season selector geometry on tablet/phone. */
@media (max-width:820px) {
  html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-filter-control > .nova-catalog-select-card {
    height:34px!important;
    min-height:34px!important;
    min-width:84px!important;
    max-width:126px!important;
    padding-inline:7px!important;
    grid-template-columns:15px minmax(38px,1fr) 13px!important;
    gap:4px!important;
    border-radius:7px!important;
  }

  html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-filter-control > .nova-catalog-select-card > strong {
    font-size:.68rem!important;
  }

  html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-filter-control > .nova-catalog-select-card > .oscar-icon:first-child {
    width:15px!important;
    height:15px!important;
  }

  html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-filter-control > .nova-catalog-select-card > .oscar-icon:last-child {
    width:13px!important;
    height:13px!important;
  }
}


/* SPACEGATE_CATALOG_HEADER_RESET_R3
   Reset-filters is a header action, hidden unless a real catalog filter/sort is active.
   Search has its own clear action and does not light this button. */
html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-actions > .nova-catalog-reset-filter.nova-catalog-reset-header {
  position:relative!important;
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(132,145,176,.20)!important;
  border-radius:11px!important;
  background:#000!important;
  color:rgba(255,255,255,.86)!important;
  box-shadow:none!important;
}
html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-actions > .nova-catalog-reset-filter.nova-catalog-reset-header:hover,
html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-actions > .nova-catalog-reset-filter.nova-catalog-reset-header:focus-visible {
  border-color:rgba(119,70,239,.55)!important;
  color:#fff!important;
  outline:0!important;
}
html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-actions > .nova-catalog-reset-filter.nova-catalog-reset-header > span {
  position:absolute!important;
  inset-block-start:-5px!important;
  inset-inline-end:-5px!important;
  min-width:17px!important;
  height:17px!important;
  padding:0 4px!important;
  display:grid!important;
  place-items:center!important;
  border:2px solid #000!important;
  border-radius:999px!important;
  background:#9b4dff!important;
  color:#fff!important;
  font-size:9px!important;
  font-weight:900!important;
  line-height:1!important;
}
@media (max-width:820px) {
  html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-actions > .nova-catalog-reset-filter.nova-catalog-reset-header {
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    border-radius:10px!important;
  }
}

/* SPACEGATE_CATALOG_SEARCH_ACTIVE_R3 — make an active saved search visibly distinct
   without treating it as a filter or showing the filter reset action. */
html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-search.active {
  border-color:rgba(119,70,239,.48)!important;
  box-shadow:0 0 0 1px rgba(119,70,239,.06)!important;
}
html.nova-web-shell body #nova-app .nova-catalog-page .nova-catalog-search.active > input {
  color:#fff!important;
}
