@charset "UTF-8";
@import url("tokens.css");

/* ------------------------------------------------------------------ */
/* Base & reset */
/* ------------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.parent-container {
  display: flex;
  gap: 12px; /* adjust as you like */
  align-items: center;
}

html {
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  /* Fix 3: refine the main vertical scrollbar without changing the site theme. */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 106, 0, 0.35) rgba(255, 255, 255, 0.06);
}

html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

html::-webkit-scrollbar-thumb {
  background: rgba(255, 106, 0, 0.35);
  border-radius: 999px;
  border: 2px solid rgba(5, 5, 8, 0.9);
}

html::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 106, 0, 0.5);
}

body {
  unicode-bidi: plaintext;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  background: var(--cp-black);
  color: var(--cp-white-soft);
  font-family: var(--cp-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Fix 2: prevent any page-level horizontal bleed while preserving row scrolling behavior. */
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

img,
video {
  max-width: 100%;
  display: block;
}

body > *,
header,
main,
section,
footer,
.page-shell,
.content {
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Page enter */
.page-shell {
  min-height: 100vh;
  opacity: 0;
  animation: pageFadeIn 0.55s var(--cp-ease-out) forwards;
}

main,
.content,
#content,
.page-shell > main {
  flex: 1 0 auto;
  min-width: 0;
  max-width: 100%;
}

footer {
  margin: 0;
  flex-shrink: 0;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------------ */
/* Layout */
/* ------------------------------------------------------------------ */

.shell {
  width: min(1280px, 100% - 32px);
  max-width: 100%;
  margin-inline: auto;
}

/* ------------------------------------------------------------------ */
/* Site header — transparent → solid on scroll */
/* ------------------------------------------------------------------ */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  height: var(--cp-header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--cp-space-2);
  background: linear-gradient(
    to bottom,

    transparent 100%
  );
  border-bottom: 1px solid transparent;
  transition:
    background var(--cp-transition),
    border-color var(--cp-transition),
    box-shadow var(--cp-transition),
    backdrop-filter var(--cp-transition);
}

.site-header.is-solid {
  background: rgba(5, 5, 8, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: var(--cp-shadow-sm);
}

.site-header__inner {
  width: min(1320px, 100%);
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cp-space-2);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--cp-space-2);
  flex-shrink: 0;
}

.site-header__logo {
  width: auto;
  cursor: pointer;
  transition: transform 0.25s var(--cp-ease-out), filter 0.25s ease;
  padding-right: 20px;
}

.site-header__logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 12px var(--cp-orange-glow));
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 28px);
  min-width: 0;
}

.site-header__link {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cp-white-soft);
  padding: var(--cp-space-1) 0;
  transition: color 0.2s ease;
}

.site-header__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cp-orange), var(--cp-orange-soft));
  border-radius: var(--cp-radius-pill);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s var(--cp-ease-out);
  box-shadow: 0 0 12px var(--cp-orange-glow);
}

.site-header__link:hover,
.site-header__link.is-active {
  color: var(--cp-white);
}

.site-header__link:hover::after,
.site-header__link.is-active::after {
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--cp-space-2);
  flex-shrink: 0;
  min-width: 0;
  max-width: 100%;
}

.header-auth-control {
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    max-width 0.22s ease,
    margin 0.22s ease,
    padding 0.22s ease,
    border-color 0.22s ease;
  transform-origin: center;
  max-width: 220px;
  white-space: nowrap;
}

.header-auth-control.is-auth-hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.96);
  max-width: 0;
  margin: 0;
  padding-inline: 0;
  overflow: hidden;
  border-width: 0;
}

/* Expandable search in bar */
.search-inline {
  display: flex;
  align-items: center;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-width 0.4s var(--cp-ease-out),
    opacity 0.3s ease;
}

.search-inline.is-open {
  max-width: 220px;
  opacity: 1;
}

.search-inline__field {
  width: 220px;
  padding: 10px 14px;
  border-radius: var(--cp-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(26, 26, 34, 0.95);
  color: var(--cp-white);
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.search-inline__field:focus {
  border-color: var(--cp-orange-muted);
  box-shadow: 0 0 0 3px var(--cp-orange-muted);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--cp-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(26, 26, 34, 0.6);
  display: grid;
  place-items: center;
  padding: 0;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
    margin: 10px;
}

.icon-btn:hover {
  background: rgba(34, 34, 44, 0.95);
  border-color: rgba(255, 106, 0, 0.35);
  box-shadow: 0 0 18px var(--cp-orange-muted);
  transform: translateY(-1px);
}

.icon-btn img {
  width: 20px;
  height: auto;
}

.avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 106, 0, 0.45);
  background: linear-gradient(145deg, var(--cp-grey-800), var(--cp-grey-950));
  color: var(--cp-white);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  overflow: hidden;
  text-decoration: none;
}

.avatar-btn:hover {
  transform: scale(1.06);
  box-shadow: var(--cp-shadow-glow);
  border-color: var(--cp-orange);
}

.avatar-btn img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.header-logout-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  background: rgba(26, 26, 34, 0.88);
  color: var(--cp-white);
  font-weight: 700;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.header-logout-btn:hover {
  background: rgba(44, 44, 54, 0.95);
  border-color: rgba(255, 106, 0, 0.4);
  box-shadow: 0 0 18px rgba(255, 106, 0, 0.18);
  transform: translateY(-1px);
}

.btn-primary {
  border: none;
  border-radius: var(--cp-radius-pill);
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--cp-white);
  background: linear-gradient(90deg, var(--cp-orange), #ff8c42);
  box-shadow: 0 4px 20px var(--cp-orange-muted);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--cp-shadow-glow);
  filter: brightness(1.06);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--cp-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(26, 26, 34, 0.85);
  color: var(--cp-white);
  font-size: 1.4rem;
  line-height: 1;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-header__nav {
    position: fixed;
    inset-inline: var(--cp-space-2);
    top: calc(var(--cp-header-h) + 8px);
    flex-direction: column;
    align-items: stretch;
    padding: var(--cp-space-2);
    border-radius: var(--cp-radius-lg);
    background: rgba(12, 12, 18, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--cp-shadow-md);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition:
      max-height 0.35s var(--cp-ease-out),
      opacity 0.25s ease;
  }

  .site-header__nav.is-open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }

  .site-header__link {
    padding: 12px;
    border-radius: var(--cp-radius-sm);
  }

  .site-header__link:hover {
    background: rgba(255, 106, 0, 0.08);
  }

  .search-inline {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Full-screen search overlay */
/* ------------------------------------------------------------------ */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(5, 5, 8, 0.97);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--cp-space-4) var(--cp-space-2);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.search-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.search-overlay__close {
  position: absolute;
  top: var(--cp-space-2);
  inset-inline-end: var(--cp-space-2);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-overlay__close:hover {
  background: rgba(255, 106, 0, 0.2);
  transform: rotate(90deg);
}

.search-overlay__close img {
  width: 22px;
  margin: auto;
}

.search-overlay__box {
  width: min(560px, 100%);
  margin-top: var(--cp-space-5);
}

.search-overlay__input {
  width: 100%;
  padding: 16px 22px;
  border-radius: var(--cp-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--cp-grey-900);
  color: var(--cp-white);
  font-size: 1.05rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.search-overlay__input:focus {
  border-color: rgba(255, 106, 0, 0.55);
  box-shadow: 0 0 0 4px var(--cp-orange-muted);
}

.search-overlay__hint {
  margin-top: var(--cp-space-1);
  font-size: 0.85rem;
  color: var(--cp-text-dim);
  text-align: center;
}

.search-overlay__results {
  width: min(720px, 100%);
  margin-top: var(--cp-space-3);
  max-height: min(50vh, 400px);
  overflow-y: auto;
  border-radius: var(--cp-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--cp-grey-950);
  display: none;
}

.search-overlay__results.has-items {
  display: block;
}

.search-result-item {
  border: none;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  justify-content: space-between;
  gap: var(--cp-space-2);
  align-items: center;
  background-color: transparent;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.is-highlighted {
  background: rgba(255, 106, 0, 0.12);
}

.search-result-item__title {
  font-weight: 600;
  color: var(--cp-white);
}

.search-result-item__meta {
  font-size: 0.8rem;
  color: var(--cp-text-muted);
}

.search-overlay__chips {
  margin-top: var(--cp-space-4);
    display: flex;
  flex-wrap: wrap;
    justify-content: center;
  gap: var(--cp-space-2);
}

.search-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--cp-radius-md);
  background: var(--cp-grey-900);
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.search-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 106, 0, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.search-chip img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: var(--cp-radius-sm);
}

/* ------------------------------------------------------------------ */
/* Hero — cinematic */
/* ------------------------------------------------------------------ */

.hero-cinematic {
  position: relative;
  --hero-home-height: clamp(520px, 76vh, 740px);
  min-height: var(--hero-home-height);
  margin-top: 0;
  overflow: hidden;
  isolation: isolate;
  background: #050505 var(--hero-bg, none) center / cover no-repeat;
  opacity: 1 !important;
  visibility: visible !important;
}

@supports (height: 100svh) {
  .hero-cinematic {
    --hero-home-height: clamp(520px, 76svh, 740px);
  }
}

.hero-cinematic__bg {
  position: absolute;
  inset: 0;
  background: #050505 var(--hero-bg, none) center / cover no-repeat;
}

.hero-cinematic__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  animation: none;
}

.hero-cinematic__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.hero-trailer-video {
  opacity: 0;
  transition: opacity 350ms ease;
}

.hero--video-loading,
.hero--video-ready {
  background: #000;
  background-image: none !important;
}

.hero--video-loading .hero-cinematic__bg,
.hero--video-ready .hero-cinematic__bg {
  background-color: #000 !important;
  background-image: none !important;
}

.hero--video-loading .hero-trailer-video {
  opacity: 0;
}

.hero--video-ready .hero-trailer-video {
  opacity: 1;
}

.hero-cinematic__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      var(--cp-black) 0%,
      rgba(5, 5, 8, 0) 10%,
      rgba(5, 5, 8, 0.219) 50%,
      rgba(5, 5, 8, 0.599) 100%
    ),
    linear-gradient(
      270deg,
      rgba(5, 5, 8, 0.165) 0%,
      rgba(5, 5, 8, 0.165) 45%,
      rgba(5, 5, 8, 0.165) 100%
    );
  pointer-events: none;
}

.hero-cinematic__vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.hero-cinematic__inner {
    position: relative;
  z-index: 2;
  max-width: 560px;
  padding: calc(var(--cp-header-h) + var(--cp-space-4)) var(--cp-space-3)
    var(--cp-space-5);
  margin-inline-start: clamp(16px, 6vw, 72px);
  animation: none;
  opacity: 1 !important;
  visibility: visible !important;
}

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-cinematic__title {
  margin: 0 0 var(--cp-space-2);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cp-white);
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.65);
}

.title-branding__logo {
  display: block;
  width: min(390px, 68vw);
  max-width: 100%;
  height: auto;
  max-height: 150px;
  margin: 0 0 var(--cp-space-2);
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.5));
}

.hero-logo {
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
}

.title-logo {
  display: block;
  max-width: 100%;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: right center;
}

.hero-title-logo,
.title-branding__logo.hero-title-logo {
  max-height: 180px;
  max-width: min(520px, 78vw);
  object-fit: contain;
}

.title-logo:not(.logo-loaded) {
  display: none !important;
}

.title-logo.logo-loaded:not(.logo-failed) + .title-logo-fallback,
.title-logo.logo-loaded:not(.logo-failed) + .title-text-fallback {
  display: none !important;
}

.title-logo.logo-failed,
.title-branding__logo.logo-failed {
  display: none !important;
}

.title-logo-fallback,
.title-text-fallback {
  display: inline;
}

.title-branding__logo[hidden],
.title-branding__text[hidden] {
  display: none !important;
}

.featured-hero .title-branding__logo {
  width: min(350px, 62vw);
  max-height: 132px;
}

.hero-cinematic__meta {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--cp-text-muted);
}

.hero-cinematic__genre {
  margin: 0 0 var(--cp-space-2);
  font-size: 0.9rem;
  color: var(--cp-orange-soft);
  font-weight: 600;
}

.hero-cinematic__desc {
  margin: 0 0 var(--cp-space-3);
  font-size: 1rem;
  color: rgba(244, 244, 246, 0.88);
  max-width: 46ch;
  line-height: 1.75;
}

.hero-cinematic__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cp-space-2);
  margin-bottom: var(--cp-space-3);
}

.btn-hero-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--cp-radius-pill);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cp-white);
  background: linear-gradient(90deg, var(--cp-orange), #ff8f4d);
  box-shadow: 0 8px 28px var(--cp-orange-muted);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-hero-play:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--cp-shadow-glow);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--cp-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(26, 26, 34, 0.65);
  color: var(--cp-white);
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.btn-hero-secondary:hover {
  background: rgba(42, 42, 52, 0.9);
  border-color: rgba(255, 106, 0, 0.45);
  transform: translateY(-2px);
}

.mute-btn {
  position: absolute;
  top: calc(var(--cp-header-h) + 16px);
  inset-inline-start: 24px;
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.mute-btn:hover {
  background: rgba(255, 106, 0, 0.25);
  transform: scale(1.06);
}

.mute-btn.muted {
  background: rgba(0, 0, 0, 0.45);
}

.mute-btn:not(.muted) {
  background: rgba(255, 106, 0, 0.28);
}

.mute-btn img {
  width: 22px;
  height: 22px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mute-btn.muted img {
  opacity: 0.75;
}

.mute-btn:not(.muted) img {
  opacity: 1;
  transform: scale(1.05);
}

.hero-selector-wrap {
  position: absolute;
  bottom: 40px;
  left: 50%;
  z-index: 4;
  width: max-content;
  max-width: min(780px, calc(100vw - 48px));
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 1.1vw, 18px);
  margin-top: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 4px;
  scrollbar-width: none;
  transform: translateX(-50%);
}

.hero-selector-wrap::-webkit-scrollbar {
  display: none;
}

.hero-selector-wrap button {
  width: 160px;
  height: 72px;
  flex: 0 0 160px;
  position: relative;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 8px 18px;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.hero-selector-wrap button::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 2px;
  left: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--cp-orange);
  box-shadow: 0 0 18px var(--cp-orange-muted);
  opacity: 0;
  transform: scaleX(0.45);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.hero-selector-wrap button:hover {
  transform: translateY(-2px);
}

.hero-selector-wrap button.is-active {
  transform: translateY(-2px);
}

.hero-selector-wrap button:hover::after,
.hero-selector-wrap button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero-selector-wrap img,
.hero-selector-wrap .hero-selector-title-image,
.hero-selector-wrap .hero-selector-calligraphy {
  display: block;
  max-width: 85%;
  max-height: 70%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.58));
  opacity: 0.82;
  transition:
    filter 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.hero-selector-wrap button:hover img,
.hero-selector-wrap button.is-active img,
.hero-selector-wrap button:hover .hero-selector-title-image,
.hero-selector-wrap button.is-active .hero-selector-title-image,
.hero-selector-wrap button:hover .hero-selector-calligraphy,
.hero-selector-wrap button.is-active .hero-selector-calligraphy {
  filter:
    drop-shadow(0 4px 14px rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 12px rgba(255, 106, 0, 0.22));
  opacity: 1;
  transform: scale(1.04);
}

.hero-selector-wrap .title-logo-fallback,
.hero-selector-wrap .title-text-fallback {
  display: block;
  margin-top: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--cp-white);
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
}

.hero-selector-wrap .title-logo.logo-failed + .title-logo-fallback,
.hero-selector-wrap .title-logo.logo-failed + .title-text-fallback {
  display: block;
}


/* Compact page hero (inner pages) */
.page-hero {
  padding: calc(var(--cp-header-h) + var(--cp-space-5)) var(--cp-space-3)
    var(--cp-space-4);
  background: radial-gradient(
    ellipse 120% 80% at 80% 0%,
    transparent 55%
  ),
    var(--cp-black);
}

.page-hero__title2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--cp-white);
  align-items: center;
  align-self: center;
  align-content: center;
  justify-content: center;
  justify-self: center;
  justify-items: center;
}

.page-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--cp-white);
}

.page-hero__lead {
  margin: var(--cp-space-1) 0 0;
  color: var(--cp-text-muted);
  max-width: 52ch;
}

/* ------------------------------------------------------------------ */
/* Content rows */
/* ------------------------------------------------------------------ */

main.content {
  padding-bottom: 0;
}

/* Add spacing only for the account settings page */
body[data-account-route="account-settings"] main.content {
  padding-top: calc(var(--cp-header-h) + 48px);
  padding-bottom: 120px;
}

@media (max-width: 960px) {
  body[data-account-route="account-settings"] main.content {
    padding-top: calc(var(--cp-header-h) + 64px);
    padding-bottom: 160px;
  }
}

.content-row {
  margin-bottom: var(--cp-space-4);
  padding-inline: clamp(16px, 4vw, 48px);
  max-width: 100%;
  overflow: visible;
}

.content-row:last-child {
  margin-bottom: 0;
}

.content-row__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--cp-space-2);
  margin-bottom: var(--cp-space-2);
}

.content-row__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cp-white);
  letter-spacing: 0.02em;
}

.content-row__controls {
  display: flex;
  gap: 8px;
}

.row-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(26, 26, 34, 0.85);
  display: grid;
  place-items: center;
  padding: 0;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.row-nav-btn:hover:not(:disabled) {
  background: rgba(255, 106, 0, 0.2);
  border-color: rgba(255, 106, 0, 0.45);
  transform: scale(1.05);
}

.row-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.row-nav-btn img {
  width: 18px;
  height: auto;
}

.content-row__track {
  display: flex;
  gap: var(--cp-space-2);
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  margin-top: -24px;
  padding-top: 24px;
  padding-bottom: var(--cp-space-2);
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Fix 2: keep the row scroll interaction but remove the visible horizontal bars under videos. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.content-row__track::-webkit-scrollbar {
  display: none;
}

/* ------------------------------------------------------------------ */
/* Media cards */
/* ------------------------------------------------------------------ */

.media-card {
  flex: 0 0 clamp(200px, 42vw, 280px);
  scroll-snap-align: start;
  position: relative;
  z-index: 1;
  border-radius: var(--cp-radius-md);
  overflow: hidden;
  background: var(--cp-grey-900);
  box-shadow: var(--cp-shadow-sm);
  transition:
    transform var(--cp-transition),
    box-shadow var(--cp-transition);
}

.media-card__media {
position: relative;
  aspect-ratio: 16 / 9;
overflow: hidden;
  background: var(--cp-grey-850);
}

.media-card__media video,
.media-card__media img {
width: 100%;
height: 100%;
object-fit: cover;
}

.card-placeholder-page .media-card,
.card-placeholder-page .video-card,
.card-placeholder-page .content-card,
.card-placeholder-page .movie-card,
.card-placeholder-page .poster-card {
  background: linear-gradient(135deg, #2f2f33, #1f1f23);
  border-radius: 14px;
  overflow: hidden;
}

.card-placeholder-page .media-card__media {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(135deg, #2f2f33 0%, #26262b 46%, #1f1f23 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -36px 70px rgba(0, 0, 0, 0.24);
}

.card-placeholder-page .media-card__media img,
.card-placeholder-page .video-card__thumbnail,
.card-placeholder-page .content-card img,
.card-placeholder-page .movie-card img,
.card-placeholder-page .poster-card img {
  display: none !important;
}

.card-placeholder-page .poster-card {
  aspect-ratio: 2 / 3;
}

.home-video-card {
  background: var(--cp-grey-900);
}

.home-video-card .media-card__media img {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card:hover {
  z-index: 20;
  box-shadow: var(--cp-shadow-md), 0 0 32px rgba(255, 106, 0, 0.15);
}


.media-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--cp-space-2);
  background: linear-gradient(
    to top,
    rgba(5, 5, 8, 0.95) 0%,
    rgba(5, 5, 8, 0.2) 55%,
    transparent 100%
  );
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.media-card:hover .media-card__overlay {
  opacity: 1;
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.yadyelneela{
  border-radius: 10px;
}

.logout-btn,
.account-btn,
.search-btn {
  margin: 0 !important;
  position: static !important;
  transform: none !important;
}

.media-card__top-actions {
  position: absolute;
  top: var(--cp-space-1);
  inset-inline: var(--cp-space-1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
  padding-top: 5px;
}

.media-card__play {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  background: var(--cp-white);
  color: var(--cp-black);
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  pointer-events: auto;
  z-index: 6;
}

.media-card:hover .media-card__play {
  transform: translate(-50%, -50%) scale(1);
}

.media-card__play:hover {
  background: var(--cp-orange);
  color: var(--cp-white);
}

.media-card__fab {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: var(--cp-white);
  font-size: 1rem;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.media-card__fab--play {
  background: var(--cp-white);
  color: var(--cp-black);
}

.media-card__fab:hover {
  background: var(--cp-orange);
  color: var(--cp-white);
}

.icon-remove {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.icon-remove:hover {
  background: #ff3b3b;
  transform: scale(1.1);
}

.media-card__fab--play:hover {
  background: var(--cp-orange);
  color: var(--cp-white);
}

.card-plus-btn {
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.card-plus-btn.is-added-feedback {
  transform: scale(1.08);
}

.media-card__rating {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--cp-radius-pill);
  background: rgba(0, 0, 0, 0.55);
  color: var(--cp-orange-soft);
  border: 1px solid rgba(255, 106, 0, 0.35);
}

.media-card__bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.media-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cp-white);
}

.media-card__meta {
  font-size: 0.8rem;
  color: var(--cp-text-muted);
}

/* Poster-style cards (2:3) */
.media-card--poster {
  flex: 0 0 clamp(140px, 28vw, 200px);
}



/* ------------------------------------------------------------------ */
/* Poster strip (trending) */
/* ------------------------------------------------------------------ */

.poster-strip {
  margin-bottom: var(--cp-space-4);
  padding-inline: clamp(16px, 4vw, 48px);
  max-width: 100%;
  overflow: visible;
}

.poster-strip__head {
  margin-bottom: var(--cp-space-2);
}

.poster-strip__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.poster-strip__frame {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--cp-space-1);
  overflow: visible;
}

.poster-strip__track {
  display: flex;
  gap: var(--cp-space-2);
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-top: -24px;
  padding: 24px 0 var(--cp-space-1);
  flex: 1;
  -webkit-overflow-scrolling: touch;
  /* Fix 2: hide the secondary horizontal scrollbar here too so no stray line appears below media rows. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.poster-strip__track::-webkit-scrollbar {
  display: none;
}

.poster-strip__track > .poster-card {
  scroll-snap-align: start;
}

.trending-posters-row .poster-strip__head {
  text-align: right;
}

.trending-posters-row .poster-strip__frame {
  align-items: center;
}

.trending-posters-row .poster-strip__track {
  gap: 22px;
  align-items: stretch;
}

.poster-card {
  flex: 0 0 160px;
  border-radius: var(--cp-radius-md);
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: transform var(--cp-transition), box-shadow var(--cp-transition);
  cursor: pointer;
}

.trending-posters-row .poster-card {
  flex: 0 0 190px;
  width: 190px;
  min-width: 190px;
  height: 300px;
  border-radius: 14px;
  background: #222;
}

.trending-vertical-row .content-row__track {
  gap: 22px;
  align-items: stretch;
}

.trending-vertical-card {
  isolation: isolate;
}

.trending-ribbon {
  position: absolute;
  top: 0;
  left: 12px;
  z-index: 2;
  min-width: 42px;
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 8px 10px 14px;
  color: #fff;
  background: linear-gradient(180deg, #ff6a00, #d63e00);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}

.trending-vertical-card__title {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  padding: 36px 12px 12px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.poster-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.trending-posters-row .poster-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  display: block !important;
}

.poster-card:hover {
  transform: scale(1.05);
  box-shadow: var(--cp-shadow-md);
  z-index: 20;
}

/* ------------------------------------------------------------------ */
/* Footer */
/* ------------------------------------------------------------------ */

.site-footer {
  margin: 0;
  padding: var(--cp-space-4) clamp(16px, 4vw, 48px);
  background: linear-gradient(
    to top,
    #e8e8ec 0%,
    #f2f2f5 40%,
    #fafafa 100%
  );
  color: var(--cp-grey-950);
  flex-shrink: 0;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--cp-space-3);
  max-width: 1200px;
  margin: 0 auto var(--cp-space-3);
}

.site-footer__logo {
  cursor: pointer;
  width: auto;
  transition: opacity 0.2s ease;
}

.site-footer__logo:hover {
  opacity: 0.85;
}

.site-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cp-space-2);
}

.site-footer__button-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.btn-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--cp-radius-pill);
  font-weight: 600;
  border: none;
  margin: 0;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-footer--muted {
  background: #d4d4dc;
  color: #222;
}

.btn-footer--accent {
  background: linear-gradient(90deg, var(--cp-orange), #ff8c42);
  color: var(--cp-white);
  box-shadow: 0 4px 16px var(--cp-orange-muted);
}

.btn-footer:hover {
  transform: translateY(-2px);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: #444;
}

.site-footer__bottom > img {
  display: none;
}

.site-footer__bottom > p {
  order: 3;
  margin: 16px 0 0;
}

.site-footer__legal-links {
  order: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 4px 0;
}

.site-footer__legal-links a {
  color: #555;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.site-footer__legal-links a:hover,
.site-footer__legal-links a:focus-visible {
  color: var(--cp-orange);
}

.site-footer__socials {
  order: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--cp-space-2);
  margin: 0 0 18px;
}

.zyada-zocial{
  padding-bottom: 15px;
}

.site-footer__socials a img {
  object-fit: contain;
  border-radius: var(--cp-radius-sm);
  transition: transform 0.2s ease;
}

.site-footer__socials a:hover img {
  transform: scale(1.08);
}

/* ------------------------------------------------------------------ */
/* Watchlist & account */
/* ------------------------------------------------------------------ */

.watchlist-body {
  background: var(--cp-black);
}

.watchlist-container {
  padding: calc(var(--cp-header-h) + var(--cp-space-3)) var(--cp-space-3)
    var(--cp-space-6);
  max-width: 1200px;
  margin: 0 auto;
}

.watchlist-page-layout {
  padding: calc(var(--cp-header-h) + var(--cp-space-3)) 0 0;
  max-width: none;
  width: 100%;
}

.watchlist-hero {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 48px 32px 24px;
  text-align: center;
}

.watchlist-section-heading {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 32px 24px;
}

.watchlist-grid-section {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 var(--cp-space-3) var(--cp-space-6);
}

.watchlist-hero .watchlist-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}



.watchlist-hero .watchlist-header p {
  margin: 0;
  color: var(--cp-text-muted);
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: var(--cp-space-3) 0 var(--cp-space-2);
  color: var(--cp-white);
}

.watchlist-section-heading .section-title {
  margin: 0;
  text-align: center;
}

.playlist-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: start;
}

.playlist-card {
  background: var(--cp-grey-900);
  border-radius: var(--cp-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: clamp(200px, 42vw, 280px);
  max-width: 100%;
  flex: 0 0 auto;
}

.playlist-card:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(255, 106, 0, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.playlist-card > a {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.playlist-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  flex: 0 0 auto;
}

.playlist-card span {
  display: block;
  padding: var(--cp-space-2);
  font-weight: 600;
  color: var(--cp-white-soft);
  line-height: 1.7;
  flex: 1 1 auto;
}

.playlist-card.create {
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    145deg,
    var(--cp-grey-900),
    var(--cp-grey-850)
  );
  color: var(--cp-text-muted);
  font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Search results page */
/* ------------------------------------------------------------------ */

.search-page {
  flex: 1;
  width: 100%;
  padding: calc(var(--cp-header-h) + 54px) clamp(18px, 4vw, 52px) 72px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 106, 0, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(18, 18, 24, 0.98) 0%, var(--cp-black) 42%, #060608 100%);
}

.search-page__hero,
.search-page__results {
  width: min(100%, 1280px);
  margin-inline: auto;
}

.search-page__hero {
  margin-bottom: 30px;
}

.search-page__eyebrow {
  margin-bottom: 10px;
  color: var(--cp-orange-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}

.search-page__title {
  margin: 0 0 10px;
  color: var(--cp-white);
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 1.1;
  font-weight: 800;
}

.search-page__subtitle {
  color: var(--cp-white-soft);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.9;
}

.search-page__subtitle span {
  color: var(--cp-orange-soft);
  font-weight: 700;
}

.search-page__count {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: var(--cp-radius-pill);
  border: 1px solid rgba(255, 106, 0, 0.32);
  background: rgba(255, 106, 0, 0.1);
  color: var(--cp-white);
  font-size: 0.95rem;
  font-weight: 700;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.search-result-card {
  width: 100%;
  min-width: 0;
  flex: initial;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(28, 28, 34, 0.96), rgba(12, 12, 16, 0.98));
  cursor: pointer;
}

.search-result-card:hover,
.search-result-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255, 106, 0, 0.42);
  box-shadow: var(--cp-shadow-md), 0 0 30px rgba(255, 106, 0, 0.14);
  outline: none;
}

.search-result-card__poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cp-grey-850);
}

.search-result-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.search-result-card:hover .search-result-card__poster img,
.search-result-card:focus-visible .search-result-card__poster img {
  transform: scale(1.06);
}

.search-result-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
  opacity: 0.85;
}

.search-result-card__actions {
  position: absolute;
  inset: 12px 12px auto 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}

.search-result-card__action,
.search-result-card__play {
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.search-result-card__action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.64);
  color: var(--cp-white);
  font-size: 1.25rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-result-card__action:hover,
.search-result-card__action.is-added-feedback {
  background: var(--cp-orange);
  transform: scale(1.08);
}

.search-result-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  background: var(--cp-white);
  color: var(--cp-black);
  font-size: 1.1rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  z-index: 3;
}

.search-result-card:hover .search-result-card__play,
.search-result-card:focus-visible .search-result-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.search-result-card__play:hover {
  background: var(--cp-orange);
  color: var(--cp-white);
}

.search-result-card__body {
  min-height: 152px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-result-card__kicker {
  color: var(--cp-orange-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.search-result-card__title {
  margin: 0;
  color: var(--cp-white);
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 800;
}

.search-result-card__meta {
  margin-top: auto;
  color: var(--cp-text-muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.search-empty-state {
  grid-column: 1 / -1;
  min-height: 330px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 42px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--cp-radius-lg);
  background: linear-gradient(180deg, rgba(24, 24, 30, 0.94), rgba(10, 10, 14, 0.98));
  text-align: center;
}

.search-empty-state__icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 106, 0, 0.32);
  background: rgba(255, 106, 0, 0.1);
}

.search-empty-state__icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(1.2);
}

.search-empty-state h2 {
  margin: 8px 0 0;
  color: var(--cp-white);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.search-empty-state p {
  color: var(--cp-text-muted);
  font-size: 0.98rem;
}

/* Premium dynamic details page */
.details-page-shell {
  background: #050508;
}

.details-page {
  min-height: 100vh;
  color: var(--cp-white-soft);
  background:
    linear-gradient(180deg, #050508 0%, #08080b 48%, #050508 100%);
}

.details-trailer-hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  isolation: isolate;
  background-color: #000;
  background-position: center top;
  background-size: cover;
}

.details-trailer-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #000;
}

.details-trailer-video:not([src]):not([data-hls-attached]) {
  display: none;
}

.details-trailer-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.34) 42%, rgba(0, 0, 0, 0.9) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.08) 32%, #050508 100%);
  pointer-events: none;
}

.details-hero-layout {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  direction: rtl;
  grid-template-columns: minmax(132px, 210px) minmax(360px, 610px) minmax(18vw, 1fr);
  align-items: end;
  gap: clamp(18px, 3vw, 34px);
  padding: calc(var(--cp-header-h) + 52px) clamp(22px, 5vw, 76px) clamp(36px, 7vh, 72px);
}

.details-trailer-back-button,
.details-trailer-mute-button {
  position: absolute;
  z-index: 4;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.details-trailer-back-button:hover,
.details-trailer-mute-button:hover {
  background: rgba(255, 106, 0, 0.25);
  transform: scale(1.04);
}

.details-trailer-back-button {
  top: calc(var(--cp-header-h) + 18px);
  inset-inline-start: clamp(18px, 4vw, 48px);
  font-size: 2.1rem;
  line-height: 1;
}

.details-trailer-mute-button {
  top: calc(var(--cp-header-h) + 18px);
  inset-inline-end: clamp(18px, 4vw, 48px);
}

.details-trailer-mute-button img {
  width: 22px;
  height: 22px;
  opacity: 1;
}

.details-trailer-mute-button.muted img {
  opacity: 0.72;
}

.details-poster-wrap {
  width: min(210px, 100%);
  justify-self: start;
  align-self: end;
  border-radius: 8px;
  overflow: hidden;
  background: #17171b;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

.details-poster-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.details-info {
  width: min(610px, 100%);
  justify-self: stretch;
  align-self: end;
  direction: rtl;
  text-align: right;
  padding-block: 10px;
}

.details-kicker {
  margin: 0 0 12px;
  color: #ff9b45;
  font-size: 0.98rem;
  font-weight: 900;
}

.details-title-logo {
  display: block;
  width: min(330px, 72vw);
  max-height: 126px;
  margin: 0 0 16px;
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.48));
}

.details-title-logo[hidden] {
  display: none;
}

.details-info h1 {
  max-width: 640px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(34px, 4.7vw, 62px);
  font-weight: 900;
  line-height: 1.14;
  text-align: right;
  word-break: break-word;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.72);
}

.details-description {
  width: min(600px, 100%);
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.85;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.75);
}

.details-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
}

.details-chips[hidden],
.details-description[hidden],
.details-kicker[hidden],
.details-info h1[hidden] {
  display: none;
}

.details-chips span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.9rem;
  font-weight: 800;
}

.details-chips span:first-child {
  color: #111;
  background: #fff;
  border-color: #fff;
}

.details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.details-play-btn,
.details-list-btn,
.details-share-btn,
.details-download-btn {
  min-width: 132px;
  min-height: 50px;
  justify-content: center;
  border-radius: 999px;
}

.details-play-btn {
  min-width: 168px;
}

.details-section {
  padding: clamp(30px, 5vw, 58px) clamp(20px, 5vw, 76px) 0;
}

.details-section[hidden] {
  display: none;
}

.details-section h2 {
  margin: 0 0 18px;
  color: #fff;
  text-align: right;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 900;
}

.details-info-grid,
.details-crew-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.details-info-row {
  display: grid;
  grid-template-columns: minmax(92px, 150px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.details-info-label {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.92rem;
  font-weight: 800;
}

.details-info-value {
  color: #fff;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.details-episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.details-episode-card {
  min-height: 96px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.details-episode-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.details-episode-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  line-height: 1.7;
}

.similar-section {
  padding-bottom: 76px;
  overflow: visible;
}

.similar-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  margin-top: 0;
  padding: 4px 0 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.similar-row::-webkit-scrollbar {
  display: none;
}

.detail-related-card {
  flex: 0 0 206px;
  min-width: 206px;
  scroll-snap-align: start;
  cursor: pointer;
}

.detail-related-card .media-card__media {
  aspect-ratio: 2 / 3;
  min-height: 0;
  border-radius: 8px;
  background-color: #151519;
  background-position: center;
  background-size: cover;
}

.detail-related-card .media-card__title {
  font-size: 0.98rem;
}

@media (max-width: 1100px) {
  .details-hero-layout {
    grid-template-columns: minmax(116px, 170px) minmax(0, 1fr);
  }

  .details-info-grid,
  .details-crew-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .details-trailer-hero {
    min-height: auto;
    padding-top: var(--cp-header-h);
  }

  .details-trailer-video {
    position: relative;
    height: 52vh;
    min-height: 300px;
  }

  .details-trailer-overlay {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.04) 38%, #050508 78%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.48));
  }

  .details-hero-layout {
    position: relative;
    inset: auto;
    grid-template-columns: minmax(92px, 128px) minmax(0, 1fr);
    align-items: end;
    padding: 22px 18px 34px;
    background: #050508;
  }

  .details-poster-wrap {
    width: min(128px, 100%);
  }

  .details-info h1 {
    font-size: clamp(28px, 10vw, 42px);
  }

  .details-description {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .details-actions {
    gap: 10px;
  }

  .details-play-btn,
  .details-list-btn,
  .details-share-btn,
  .details-download-btn {
    flex: 1 1 142px;
    min-width: 0;
  }

  .details-section {
    padding-inline: 18px;
  }

  .details-info-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .detail-related-card {
    flex-basis: 154px;
    min-width: 154px;
  }
}

@media (max-width: 520px) {
  .details-hero-layout {
    grid-template-columns: 1fr;
  }

  .details-poster-wrap {
    width: min(136px, 42vw);
  }

  .details-title-logo {
    width: min(260px, 82vw);
  }
}

@media (max-width: 720px) {
  .search-page {
    padding: calc(var(--cp-header-h) + 34px) 16px 54px;
  }

  .search-results-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .search-result-card__body {
    min-height: 132px;
  }
}

.playlist-empty {
  width: min(100%, 520px);
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 24px;
  border-radius: var(--cp-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(26, 26, 34, 0.82), rgba(12, 12, 18, 0.94));
  color: var(--cp-text-muted);
  text-align: center;
}

.playlist-empty p {
  margin: 0;
  line-height: 1.9;
}

.playlist-empty__button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--cp-orange);
  color: #090909;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.playlist-empty__button:hover,
.playlist-empty__button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.watchlist-grid-section .playlist-empty {
  margin-inline: auto;
}

/* mylist.html hover flicker fix */
.mylist-page #myListGrid [data-mylist-card] {
  position: relative;
  z-index: 0;
  overflow: hidden;
  backface-visibility: hidden;
  transform: none !important;
  will-change: filter, box-shadow;
  isolation: isolate;
  contain: layout paint;
  transition:
    filter 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease !important;
}

.mylist-page #myListGrid [data-mylist-card]:hover {
  transform: none !important;
  translate: 0 0 !important;
  scale: 1 !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  margin: inherit !important;
  padding: inherit !important;
}

.mylist-page #myListGrid [data-mylist-card].is-card-hovered {
  filter: brightness(1.04);
  box-shadow: var(--cp-shadow-md), 0 0 24px rgba(255, 106, 0, 0.12);
}

.mylist-page #myListGrid [data-mylist-card] .media-card__media,
.mylist-page #myListGrid [data-mylist-card] .media-card__media img {
  position: relative;
  backface-visibility: hidden;
  transform: none !important;
}

.mylist-page #myListGrid [data-mylist-card] img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none !important;
  transition: none !important;
}

.mylist-page #myListGrid [data-mylist-card]:hover img,
.mylist-page #myListGrid [data-mylist-card].is-card-hovered img {
  transform: none !important;
  scale: 1 !important;
}

.mylist-page #myListGrid [data-mylist-card] .media-card__overlay {
  opacity: 0;
  pointer-events: none;
}

.mylist-page #myListGrid [data-mylist-card]:hover .media-card__overlay {
  opacity: 0;
}

.mylist-page #myListGrid [data-mylist-card].is-card-hovered .media-card__overlay {
  opacity: 1;
}

.mylist-page #myListGrid [data-mylist-card] .media-card__play,
.mylist-page #myListGrid [data-mylist-card] .media-card__top-actions,
.mylist-page #myListGrid [data-mylist-card] .remove-list-btn,
.mylist-page #myListGrid [data-mylist-card] .media-card__overlay button,
.mylist-page #myListGrid [data-mylist-card] .media-card__overlay a {
  pointer-events: auto;
}

.mylist-page #myListGrid [data-mylist-card] .media-card__play {
  transform: translate(-50%, -50%);
  transition:
    opacity 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.mylist-page #myListGrid [data-mylist-card]:hover .media-card__play,
.mylist-page #myListGrid [data-mylist-card].is-card-hovered .media-card__play,
.mylist-page #myListGrid [data-mylist-card] .media-card__play:hover {
  transform: translate(-50%, -50%);
}

.mylist-page #myListGrid [data-mylist-card] .media-card__play svg {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.mylist-page #myListGrid [data-mylist-card] .remove-list-btn:hover {
  transform: none;
}

@media (max-width: 720px) {
  .playlist-grid {
    gap: 16px;
  }

  .playlist-card {
    width: min(100%, 280px);
  }

  .watchlist-page-layout {
    padding-top: calc(var(--cp-header-h) + var(--cp-space-2));
  }

  .watchlist-hero {
    padding: 36px 20px 20px;
  }

  .watchlist-section-heading {
    padding: 0 20px 20px;
  }

  .watchlist-grid-section {
    padding: 0 var(--cp-space-3) var(--cp-space-6);
  }
}

.continue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--cp-space-2);
  margin-bottom: var(--cp-space-4);
}

.continue-card {
  position: relative;
  border-radius: var(--cp-radius-lg);
  overflow: hidden;
  background: var(--cp-grey-900);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.continue-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.continue-card__thumb {
  aspect-ratio: 16 / 9;
  background: var(--cp-grey-850);
}

.continue-card__thumb img,
.continue-card__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.continue-card__bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.continue-card__progress {
  height: 100%;
  width: var(--progress, 40%);
  background: linear-gradient(90deg, var(--cp-orange), #ff9a56);
  box-shadow: 0 0 12px var(--cp-orange-glow);
}

.continue-card__body {
  padding: var(--cp-space-2);
}

.continue-card__body h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.continue-card__body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cp-text-muted);
}

.downloads-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cp-space-2);
}

.download-card {
  width: 140px;
  text-align: center;
}

.download-card img {
  width: 100%;
  border-radius: var(--cp-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.download-card p {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--cp-text-muted);
}

.account-container {
  min-height: calc(100vh - var(--cp-header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--cp-space-4) var(--cp-space-2);
  background: radial-gradient(
    circle at top,
    rgba(0, 0, 0, 0.08),
    transparent 45%
  ),
    var(--cp-black);
}

.account-box {
  width: min(400px, 100%);
  padding: var(--cp-space-4);
  border-radius: var(--cp-radius-lg);
  background: var(--cp-grey-950);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--cp-shadow-md);
}

.account-box h1 {
  margin: 0 0 var(--cp-space-3);
  text-align: center;
}

.account-btn {
  width: 100%;
  padding: 14px;
  margin-bottom: 10px;
  border: none;
  border-radius: var(--cp-radius-md);
  background: var(--cp-grey-900);
  color: var(--cp-white);
  font-weight: 600;
  text-align: right;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.account-btn:hover {
  background: var(--cp-grey-850);
  transform: translateX(-4px);
}

.account-btn.logout,
.logout {
  background: linear-gradient(90deg, var(--cp-orange), #ff8c42);
  color: var(--cp-white);
}

.redeem-box {
  display: flex;
  gap: 8px;
  margin-top: var(--cp-space-2);
}

.redeem-box input {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--cp-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--cp-grey-900);
  color: var(--cp-white);
}

.redeem-btn {
  padding: 10px 16px;
  border: none;
  border-radius: var(--cp-radius-sm);
  background: linear-gradient(90deg, var(--cp-orange), #ff5a00);
  color: var(--cp-white);
  font-weight: 600;
  cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* Skeleton loading */
/* ------------------------------------------------------------------ */

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--cp-grey-850);
  border-radius: var(--cp-radius-md);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  animation: skeletonShine 1.2s ease-in-out infinite;
}

@keyframes skeletonShine {
  to {
    transform: translateX(100%);
  }
}

.skeleton--hero {
  min-height: 60vh;
  border-radius: 0;
}

/* ------------------------------------------------------------------ */
/* Legacy utility aliases (inner pages) */
/* ------------------------------------------------------------------ */

.page-header {
  padding: calc(var(--cp-header-h) + var(--cp-space-2)) var(--cp-space-3) 20px;
}

.page-header h1 {
  margin: 0;
  font-size: 2rem;
}

.page-header p {
  color: var(--cp-text-muted);
}

.playlist-section {
  padding: 0 var(--cp-space-3) var(--cp-space-3);
}

#top-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--cp-orange);
  transition: width 0.5s ease;
  z-index: 2000;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Packages Section */
.packages {
  padding: 80px 20px;
  text-align: center;
}

.packages__title {
  font-size: 32px;
  margin-bottom: 40px;
}

.packages__notice {
  width: min(100%, 720px);
  margin: 0 auto 28px;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid rgba(253, 121, 39, 0.32);
  background: linear-gradient(180deg, rgba(253, 121, 39, 0.18), rgba(17, 17, 17, 0.96));
  color: #fff;
  line-height: 1.8;
  text-align: right;
}

/* Container */
.packages__container {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

/* Card */
.package-card {
  background: #111;
  border-radius: 16px;
  padding: 30px;
  width: 280px;
  color: #fff;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

/* Hover effect */
.package-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: #fd7927;
  box-shadow: 0 0px 30px #fd7927;
}

/* Highlight middle plan */
.package-card.popular {
  border: 2px solid #fd7927;
  transform: scale(1.05);
}

/* Text */
.package-card__title {
  font-size: 22px;
  margin-bottom: 10px;
}

.package-card__price {
  font-size: 24px;
  margin-bottom: 20px;
  color: #fd7927;
}

/* Features */
.package-card__features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.package-card__features li {
  margin: 8px 0;
}

/* Button */
.package-card__btn,
.subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fd7927;
  border: none;
  padding: 10px 20px;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s;
}

.package-card__btn:hover,
.subscribe-btn:hover {
  background: #ff1f1f;
}

.package-card__btn[disabled],
.subscribe-btn[disabled],
.checkout-submit[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.subscription-toast {
  position: fixed;
  inset-block-start: calc(var(--cp-header-h) + 16px);
  inset-inline: 20px auto;
  z-index: 2500;
  width: min(420px, calc(100% - 40px));
  padding: 14px 18px;
  border-radius: 8px;
  background: #151515;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.subscription-toast--success {
  border-color: rgba(48, 209, 88, 0.65);
}

.subscription-toast--error {
  border-color: rgba(255, 75, 75, 0.72);
}

.subscription-toast--info {
  border-color: rgba(253, 121, 39, 0.72);
}

.subscription-toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
}

.checkout-page {
  padding: calc(var(--cp-header-h) + 48px) 20px 80px;
}

.checkout-hero,
.checkout-empty,
.checkout-grid {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.checkout-hero {
  margin-bottom: 28px;
}

.checkout-kicker {
  margin: 0 0 8px;
  color: #fd7927;
  font-weight: 700;
}

.checkout-hero h1,
.checkout-summary h2,
.checkout-section h2,
.checkout-empty h2 {
  margin: 0;
}

.checkout-hero p,
.checkout-renewal,
.checkout-discount,
.checkout-section p,
.checkout-empty p {
  color: rgba(255, 255, 255, 0.74);
}

.payment-benefits {
  margin-top: 20px;
}

.payment-benefits h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 22px;
  align-items: start;
}

.checkout-summary,
.checkout-form,
.checkout-empty {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.checkout-price {
  color: #fd7927;
  font-size: 1.55rem;
  font-weight: 800;
  margin: 12px 0;
}

.checkout-features {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.checkout-features li {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.checkout-form {
  display: grid;
  gap: 18px;
}

.checkout-section {
  display: grid;
  gap: 14px;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.payment-method {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.payment-panel {
  align-content: start;
}

.dodo-inline-checkout {
  width: 100%;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #fff;
}

.dodo-inline-checkout:empty {
  min-height: 220px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent),
    rgba(255, 255, 255, 0.035);
  background-size: 200% 100%;
  animation: dodo-checkout-loading 1.4s linear infinite;
}

.dodo-inline-checkout.is-unavailable {
  min-height: 120px;
  border-color: rgba(255, 75, 75, 0.2);
  background: rgba(255, 75, 75, 0.035);
  animation: none;
}

.dodo-security-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
  line-height: 1.8;
}

@keyframes dodo-checkout-loading {
  to {
    background-position: -200% 0;
  }
}

.payment-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-tab,
.payment-method-btn {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.payment-tab.is-active,
.payment-method-btn.is-active {
  border-color: rgba(253, 121, 39, 0.75);
  background: rgba(253, 121, 39, 0.18);
  color: #fff;
}

.payment-status {
  min-height: 46px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.78);
}

.payment-status[data-state="processing"],
.payment-status[data-state="otp_sent"] {
  border-color: rgba(253, 121, 39, 0.48);
  background: rgba(253, 121, 39, 0.12);
  color: #fff;
}

.payment-status[data-state="success"] {
  border-color: rgba(48, 209, 88, 0.5);
  background: rgba(48, 209, 88, 0.14);
  color: #d9ffe4;
}

.payment-status[data-state="error"] {
  border-color: rgba(255, 75, 75, 0.58);
  background: rgba(255, 75, 75, 0.14);
  color: #ffd8d8;
}

.payment-method-form {
  display: none;
}

.payment-method-form.is-active {
  display: block;
}

.payment-method-panel {
  margin-top: 4px;
}

.otp-step {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-field,
.checkout-check {
  display: grid;
  gap: 8px;
}

.checkout-check {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.checkout-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-field input,
.checkout-field select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 13px 14px;
  outline: none;
}

.checkout-field select {
  appearance: none;
}

.checkout-field select option {
  background: #111;
  color: #fff;
}

.checkout-field input:focus,
.checkout-field select:focus {
  border-color: rgba(253, 121, 39, 0.9);
  box-shadow: 0 0 0 3px rgba(253, 121, 39, 0.18);
}

.checkout-submit,
.checkout-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  color: #fff;
  background: #fd7927;
  font-weight: 800;
}

.checkout-submit[data-state="loading"] {
  background: #b95d24;
}

.checkout-submit[data-state="success"] {
  background: #1f9d55;
}

.checkout-submit[data-state="error"] {
  background: #d94a3a;
}

.checkout-submit:disabled,
.payment-submit:disabled {
  cursor: wait;
  opacity: 0.68;
  filter: saturate(0.8);
}

.checkout-link {
  margin-top: 12px;
}

@media (max-width: 840px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .payment-methods,
  .payment-tabs,
  .checkout-field-row {
    grid-template-columns: 1fr;
  }

  .checkout-summary,
  .checkout-form,
  .checkout-empty {
    padding: 18px;
  }

  .dodo-inline-checkout {
    min-height: 620px;
  }
}

/* Account Page */
.account {
  padding: 80px 20px;
  text-align: center;
}

.account__title {
  font-size: 32px;
  margin-bottom: 40px;
  color: #ffffff !important;
  opacity: 1 !important;
}

.account-hub {
  opacity: 1 !important;
}

.account-hub__intro {
  max-width: 720px;
  margin: 0 auto 32px;
  color: #ffffff;
  text-align: center;
  opacity: 1 !important;
}

/* Container */
.account__container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.account__container--single {
  max-width: 760px;
  margin: 0 auto;
}

/* Cards */
.account-card {
  background: #111;
  padding: 25px;
  border-radius: 16px;
  width: min(300px, 100%);
  color: #fff;
  transition: 0.3s;
  border: 1px solid transparent;
}

.account-card--wide {
  width: min(100%, 680px);
  text-align: right;
}

/* Hover */
.account-card:hover {
  transform: translateY(-8px);
  border-color: #fd7927;
  box-shadow: 0 0px 25px #ff5a00;
}

/* Highlight */
.account-card.highlight {
  border: 2px solid #373737;
}

/* Danger */
.account-card.danger {
  border: 1px solid #fd7927;
}

/* Titles */
.account-card__title {
  margin-bottom: 15px;
}

.subscription-reminder-banner {
  max-width: 1100px;
  margin: 24px auto 32px;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255, 132, 31, 0.14);
  border: 1px solid rgba(255, 132, 31, 0.45);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 18px 45px rgba(255, 132, 31, 0.12);
}

.account-avatar-panel {
  width: min(980px, 100%);
  margin: 0 auto 32px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 22, 26, 0.92), rgba(10, 10, 12, 0.96));
  color: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.account-avatar-panel__summary {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: right;
}

.account-avatar-panel__current {
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  border-radius: 50%;
  border: 3px solid rgba(255, 106, 0, 0.55);
  object-fit: cover;
  background: #111;
}

.account-avatar-panel h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.account-avatar-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.account-avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.account-avatar-choice {
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.account-avatar-choice:hover,
.account-avatar-choice:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 106, 0, 0.55);
  box-shadow: 0 14px 34px rgba(255, 106, 0, 0.14);
  outline: none;
}

.account-avatar-choice.is-selected {
  border-color: var(--cp-orange);
  background: rgba(255, 106, 0, 0.16);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.16);
}

.account-avatar-choice img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.account-avatar-panel__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.account-avatar-panel__save {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6a00, #ff9a3d);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.account-avatar-panel__save:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(255, 106, 0, 0.24);
}

.account-avatar-panel__save:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.account-avatar-panel__status {
  min-height: 28px;
  font-weight: 700;
}

.account-avatar-panel__status[data-type="success"] {
  color: #8ff0b2;
}

.account-avatar-panel__status[data-type="error"] {
  color: #ff9f8a;
}

@media (max-width: 640px) {
  .account-avatar-panel {
    padding: 18px;
    border-radius: 14px;
  }

  .account-avatar-panel__summary {
    align-items: flex-start;
  }

  .account-avatar-panel__current {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .account-avatar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.account-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.account-hub__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  text-align: right;
  text-decoration: none;
  color: inherit;
}

button.account-hub__card {
  width: 100%;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
}

.account-hub__card--logout {
  background: linear-gradient(180deg, rgba(255, 106, 0, 0.18), rgba(17, 17, 17, 0.98));
  border-color: rgba(255, 106, 0, 0.45);
}

.account-hub__card--danger {
  border-color: rgba(255, 122, 89, 0.85);
}

.account-settings__list {
  display: grid;
  gap: 16px;
  margin: 22px 0;
}

.account-settings__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.account-settings__meta {
  display: grid;
  gap: 6px;
  text-align: right;
}

.account-settings__meta strong {
  font-size: 1rem;
}

.account-settings__meta span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  line-height: 1.7;
}

.account-settings__checkbox {
  width: 22px;
  height: 22px;
  accent-color: #ff8c42;
  flex: 0 0 auto;
}

.manage-account-page {
  padding-top: calc(var(--cp-header-h) + 36px);
  text-align: right;
}

.manage-account-page__hero {
  width: min(1180px, 100%);
  margin: 0 auto 36px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 106, 0, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.98), rgba(10, 10, 10, 0.96));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.manage-account-page__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.12);
  border: 1px solid rgba(255, 106, 0, 0.22);
  color: #ffb37f;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.manage-account-page__title {
  margin: 18px 0 16px;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.1;
}

.manage-account-page__intro {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.9;
  font-size: 1rem;
}

.manage-account-page__grid {
  align-items: stretch;
}

.manage-account-card {
  position: relative;
  width: 100%;
  min-height: 100%;
  text-align: right;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(11, 11, 11, 0.96));
}

.manage-account-card--wide {
  grid-column: span 2;
}

.manage-account-card--danger {
  border-color: rgba(255, 122, 89, 0.65);
  background:
    radial-gradient(circle at top right, rgba(255, 122, 89, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(11, 11, 11, 0.96));
}

.manage-account-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #ffb37f;
  font-weight: 700;
  font-size: 0.85rem;
}

.manage-account-card__copy {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.manage-account-card__body {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.manage-account-links {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.manage-account-links__item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.manage-account-links__item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 106, 0, 0.3);
  background: rgba(255, 106, 0, 0.05);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.manage-account-links__item strong {
  font-size: 1rem;
}

.manage-account-links__item span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.manage-account-logout-panel {
  width: min(1180px, 100%);
  margin: 28px auto 0;
  text-align: right;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(22, 22, 22, 0.98), rgba(12, 12, 12, 0.97));
}

.manage-account-logout-panel__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.manage-account-logout-panel__button {
  flex: 0 0 auto;
  min-width: 180px;
}

@media (max-width: 900px) {
  .manage-account-card--wide {
    grid-column: span 1;
  }

  .manage-account-page__hero {
    padding: 24px;
  }

  .manage-account-logout-panel__content {
    flex-direction: column;
    align-items: stretch;
  }

  .manage-account-logout-panel__button {
    width: 100%;
  }
}

.manage-account-page {
  position: relative;
  padding-top: calc(var(--cp-header-h) + 54px);
  text-align: right;
}

.manage-account-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 106, 0, 0.2), transparent 30%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.05), transparent 22%);
  pointer-events: none;
}

.manage-account-page__hero,
.manage-account-page__grid,
.manage-account-workspace,
.manage-account-logout-panel {
  position: relative;
  z-index: 1;
}

.manage-account-page__hero {
  width: min(1120px, 100%);
  margin: 0 auto 34px;
  padding: 38px clamp(22px, 4vw, 42px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.98), rgba(10, 10, 12, 0.92)),
    radial-gradient(circle at top right, rgba(255, 106, 0, 0.18), transparent 38%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.manage-account-page__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 600;
}

.manage-account-page__title {
  margin: 18px 0 14px;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.08;
}

.manage-account-page__intro {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  line-height: 1.95;
}

.manage-account-overview {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.manage-account-overview__card {
  min-height: 170px;
  padding: 22px 20px 18px;
}

.manage-account-overview__card--interactive {
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.manage-account-overview__card--interactive:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 106, 0, 0.28);
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(circle at top right, rgba(255, 106, 0, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(24, 24, 26, 0.98), rgba(16, 16, 18, 0.98));
}

.manage-account-workspace {
  width: min(1120px, 100%);
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.manage-account-panel {
  min-height: 100%;
  padding: 26px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 106, 0, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(19, 19, 21, 0.98), rgba(11, 11, 13, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
}

.manage-account-panel--wide {
  grid-column: span 2;
}

.manage-account-panel__header {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.manage-account-panel__header .manage-account-card__badge {
  margin-bottom: 14px;
}

.manage-account-card {
  position: relative;
  width: 100%;
  text-align: right;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(17, 17, 19, 0.98), rgba(10, 10, 12, 0.98));
}

.manage-account-card--danger {
  border-color: rgba(255, 122, 89, 0.45);
  background:
    radial-gradient(circle at top right, rgba(255, 122, 89, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(17, 17, 19, 0.98), rgba(10, 10, 12, 0.98));
}

.manage-account-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 106, 0, 0.12);
  border: 1px solid rgba(255, 106, 0, 0.16);
  color: #ffb27a;
  font-size: 0.82rem;
  font-weight: 800;
}

.manage-account-card__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.85;
  font-size: 0.95rem;
}

.manage-account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.manage-account-form-grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manage-account-field {
  display: grid;
  gap: 8px;
}

.manage-account-field span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 600;
}

.manage-account-page .account-input {
  margin: 0;
  min-height: 50px;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cp-white);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.manage-account-page .account-input:focus {
  border-color: rgba(255, 106, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.manage-account-action,
.manage-account-page .account-button {
  min-height: 48px;
  margin-top: auto;
  margin-bottom: 0;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
}

.manage-account-action {
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.9), #ff944d);
  box-shadow: 0 10px 22px rgba(255, 106, 0, 0.18);
}

.manage-account-action:hover,
.manage-account-page .account-button:hover {
  transform: translateY(-2px);
}

.manage-account-subscription-slot {
  display: grid;
  gap: 12px;
}

.manage-account-subscription-slot .account-card__title {
  margin: 0;
  font-size: 1.05rem;
}

.account-hub__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.account-hub__footer p {
  margin: 0;
  color: var(--cp-text-muted);
}

  .account-hub__footer,
  .account-detail__actions,
  .account-detail__meta-row {
    align-items: flex-start;
    flex-direction: column;
  }

.account-hub__card {
  min-height: 180px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(10, 10, 10, 0.92);
  color: var(--cp-white);
  text-decoration: none;
  box-shadow: var(--cp-shadow-md);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.account-hub__card:hover,
.account-hub__card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(253, 121, 39, 0.6);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  outline: none;
}

.account-hub__card--danger:hover,
.account-hub__card--danger:focus-visible {
  border-color: rgba(255, 95, 86, 0.55);
}

.account-hub__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.account-hub__card h2 {
  margin: 0;
  font-size: 1.1rem;
}

.account-hub__card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.account-hub__card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(253, 121, 39, 0.12);
  color: #ffb27d;
  font-size: 1rem;
  font-weight: 700;
}

.account-hub__card--danger .account-hub__card-badge {
  background: rgba(255, 95, 86, 0.12);
  color: #ff9c95;
}

.account-hub__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.account-hub__footer p {
  margin: 0;
  color: var(--cp-text-muted);
}

.account-hub__logout-link {
  padding: 12px 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--cp-orange), #ff8c42);
  color: var(--cp-white);
  text-decoration: none;
  font-weight: 700;
}

.account-hub__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.account-hub__card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(253, 121, 39, 0.12);
  color: #ffb27d;
  font-size: 1rem;
  font-weight: 700;
}

.account-hub__card--danger .account-hub__card-badge {
  background: rgba(255, 95, 86, 0.12);
  color: #ff9c95;
}


.manage-account-subscription-slot .account-info {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.manage-account-subscription-slot strong {
  color: var(--cp-white);
}

.manage-account-subscription-slot .account-btn {
  margin-top: 4px;
}

.manage-account-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.manage-account-links__item {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.manage-account-links__item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 0, 0.24);
  background: rgba(255, 106, 0, 0.05);
}

.manage-account-links__item strong {
  font-size: 1rem;
}

.manage-account-links__item span {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.8;
  font-size: 0.91rem;
}

.manage-account-danger-note {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 83, 83, 0.08);
  border: 1px solid rgba(255, 122, 89, 0.14);
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.85;
}

.manage-account-danger-action {
  background: linear-gradient(90deg, #ff6b4a, #ff8b52);
}

.manage-account-logout-panel {
  width: min(1120px, 100%);
  margin: 26px auto 0;
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(18, 18, 20, 0.98), rgba(11, 11, 13, 0.98));
}

.manage-account-logout-panel__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.manage-account-logout-panel__button {
  flex: 0 0 auto;
  min-width: 190px;
}

@media (max-width: 1100px) {
  .manage-account-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .manage-account-form-grid--triple {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .manage-account-overview,
  .manage-account-workspace,
  .manage-account-links {
    grid-template-columns: 1fr;
  }

  .manage-account-panel--wide {
    grid-column: span 1;
  }

  .manage-account-form-grid {
    grid-template-columns: 1fr;
  }

  .manage-account-logout-panel__content {
    flex-direction: column;
    align-items: stretch;
  }

  .manage-account-logout-panel__button {
    width: 100%;
  }
}

.manage-account-clone {
  padding: calc(var(--cp-header-h) + 56px) 20px 24px;
  text-align: center;
}

.manage-account-clone__intro {
  width: min(790px, 100%);
  margin: 0 auto 22px;
  text-align: right;
}

.manage-account-clone__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
}

.manage-account-clone__title {
  margin: 0 0 14px;
  color: #f8f8f8;
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.manage-account-clone__subtitle {
  width: min(470px, 100%);
  margin: 0 0 0 auto;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.8;
}

.manage-account-clone__grid {
  width: min(790px, 100%);
  margin: 0 auto;
  display: grid;
  direction: ltr;
  grid-template-columns: repeat(5, minmax(0, 150px));
  grid-template-rows: repeat(2, 140px);
  gap: 12px;
  justify-content: center;
}

.manage-account-clone__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 140px;
  padding: 18px 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #121212;
  color: #fff;
  text-align: center;
  direction: rtl;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

button.manage-account-clone__card {
  font: inherit;
}

.manage-account-clone__card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.11);
  background: #151515;
}

.manage-account-clone__card--profile {
  border-color: rgba(255, 121, 39, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 121, 39, 0.24),
    0 0 18px rgba(255, 121, 39, 0.42),
    0 0 34px rgba(255, 121, 39, 0.16);
}

.manage-account-clone__card--danger {
  border-color: rgba(255, 121, 39, 0.65);
}

.manage-account-clone__card--privacy {
  grid-column: 5;
  grid-row: 2;
}

.manage-account-clone__card--settings {
  grid-column: 4;
  grid-row: 2;
}

.manage-account-clone__card--danger {
  grid-column: 3;
  grid-row: 2;
}

.manage-account-clone__badge {
  position: absolute;
  top: 18px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(92, 50, 22, 0.72);
  color: #ffb57d;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.manage-account-clone__card-title {
  margin: 0;
  color: #f8f8f8;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
}

.manage-account-clone__card-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.65;
}

.manage-account-clone__logout-strip {
  width: min(790px, 100%);
  min-height: 60px;
  margin: 18px auto 0;
  padding: 10px 16px 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #121216;
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logout-section {
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 32px;
}

.logout-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 32px;
}

.manage-account-clone__logout-strip.logout-container {
  margin-top: 18px;
}

.manage-account-clone__logout-button {
  flex: 0 0 auto;
  min-width: 92px;
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #ff7a1f;
  color: #fff;
  font-size: 0.83rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(255, 121, 39, 0.22);
}

.manage-account-clone__logout-button:hover {
  filter: brightness(1.05);
}

.manage-account-clone__logout-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.8;
  text-align: right;
  direction: rtl;
}

body.manage-account-modal-open {
  overflow: hidden;
}

.manage-account-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 1400;
  pointer-events: none;
}

.manage-account-modal-layer.is-active {
  pointer-events: auto;
}

.manage-account-modal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.manage-account-modal__panel {
  position: relative;
  width: min(520px, calc(100% - 32px));
  padding: 28px 22px 22px;
  border-radius: 12px;
  text-align: right;
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.45);
}

.manage-account-modal__panel--danger {
  border-color: rgba(255, 121, 39, 0.35);
}

.manage-account-modal__close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
}

.manage-account-modal__title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 700;
}

.manage-account-modal__copy {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.8;
}

.manage-account-modal__form {
  display: grid;
  gap: 12px;
}

.manage-account-modal__field {
  display: grid;
  gap: 8px;
}

.manage-account-modal__field span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 600;
}

.manage-account-modal .account-input {
  margin: 0;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.manage-account-modal .account-input:focus {
  border-color: rgba(255, 121, 39, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 121, 39, 0.14);
}

.manage-account-modal__action,
.manage-account-modal__danger-action {
  margin-top: 16px;
  margin-bottom: 0;
  text-align: center;
  border-radius: 8px;
}

.manage-account-modal__warning {
  padding: 14px 15px;
  border-radius: 10px;
  background: rgba(255, 121, 39, 0.08);
  border: 1px solid rgba(255, 121, 39, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.8;
}

.manage-account-modal [data-account-subscription] .account-btn {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .manage-account-clone {
    padding-top: calc(var(--cp-header-h) + 44px);
  }

  .manage-account-clone__intro,
  .manage-account-clone__grid,
  .manage-account-clone__logout-strip {
    width: min(100%, 790px);
  }

  .manage-account-clone__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .manage-account-clone__card,
  .manage-account-clone__card--privacy,
  .manage-account-clone__card--settings,
  .manage-account-clone__card--danger {
    width: 100%;
    min-height: 132px;
    grid-column: auto;
    grid-row: auto;
  }

  .manage-account-clone__subtitle {
    width: 100%;
  }

  .manage-account-clone__logout-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .manage-account-clone__logout-button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .manage-account-clone__grid {
    grid-template-columns: 1fr;
  }
}

/* Inputs */
.account-input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 8px;
  border: none;
  outline: none;
}

/* Info text */
.account-info {
  margin: 10px 0;
}

/* Buttons */
.account-button {
  background: linear-gradient(90deg, var(--cp-orange), #ff8c42);
  border: none;
  padding: 10px;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
}

.account-button:hover {
  background: #fd7927;
}

/* Danger button */
.danger-button {
  background: #fd7927;
}

.danger-button:hover {
  background: #fd7927;
}

.devices {
  padding: 96px 20px 80px;
}

.devices__shell {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.devices__header {
  margin-bottom: 28px;
  text-align: right;
}

.devices__eyebrow {
  margin: 0 0 10px;
  color: rgba(253, 121, 39, 0.9);
  font-size: 0.95rem;
  font-weight: 700;
}

.devices__title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.devices__intro {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.9;
}

.devices__notice {
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: 18px;
  line-height: 1.8;
  text-align: right;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.devices__notice[data-type="info"] {
  border-color: rgba(253, 121, 39, 0.3);
  background: rgba(253, 121, 39, 0.12);
}

.devices__notice[data-type="error"] {
  border-color: rgba(255, 97, 97, 0.35);
  background: rgba(255, 97, 97, 0.12);
}

.devices__summary,
.devices__container {
  display: grid;
  gap: 20px;
  overflow: visible;
}

.devices__summary {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 24px;
}

.devices__container,
.device-container {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  overflow: visible;
}

.device-card,
.device-summary-card,
.add-device-card,
.device-item {
  min-width: 0;
  background: linear-gradient(180deg, rgba(22, 22, 24, 0.96), rgba(12, 12, 16, 0.98));
  color: white;
  padding: 22px;
  border-radius: 20px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease !important;
  transform: none !important;
  will-change: auto !important;
  backface-visibility: hidden;
  animation: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  text-align: right;
}

.device-card:hover,
.device-summary-card:hover,
.add-device-card:hover,
.device-item:hover {
  transform: none !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.device-card--highlight {
  border-color: rgba(253, 121, 39, 0.4);
  background: linear-gradient(180deg, rgba(253, 121, 39, 0.18), rgba(15, 15, 19, 0.98));
}

.device-card--slot {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.18);
}

.device-card--guest {
  max-width: 420px;
}

.device-summary__label {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.device-summary__value {
  display: block;
  margin-bottom: 10px;
  font-size: 1.8rem;
  line-height: 1.2;
}

.device-summary__copy,
.device-name,
.device-info {
  margin: 0;
}

.device-summary__copy,
.device-info {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.device-name {
  font-weight: 700;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.device-info + .device-info {
  margin-top: 8px;
}

.device-remove,
.device-action {
  margin-top: 16px;
  background: #fd7927;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  width: 100%;
  transition: 0.3s;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.device-action:hover {
  background: #ff1f1f;
}

.add-device,
.add-device-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  pointer-events: auto !important;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  text-align: center;
}

.add-device-card * {
  pointer-events: auto;
}

#addDeviceCard {
  cursor: pointer;
  pointer-events: auto !important;
}

#addDeviceCard * {
  pointer-events: auto;
}

#addDeviceCard::before,
#addDeviceCard::after {
  pointer-events: none !important;
}

.add-device__icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 12px;
}

@media (max-width: 720px) {
  .devices {
    padding-inline: 16px;
  }

  .devices__summary,
  .devices__container {
    grid-template-columns: minmax(0, 1fr);
  }

  .packages__notice {
    margin-bottom: 20px;
  }
}

/* Policy Page */
.policy {
  padding: 80px 20px;
  text-align: center;
}

.policy__title {
  font-size: 32px;
  margin-bottom: 40px;
}

/* Container */
.policy__container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

/* Cards */
.policy-card {
  background: #111;
  padding: 25px;
  border-radius: 16px;
  width: min(300px, 100%);
  color: #fff;
  transition: 0.3s;
  border: 1px solid transparent;
}

/* Hover */
.policy-card:hover {
  transform: translateY(-8px);
  border-color: #fd7927;
  box-shadow: 0 0px 25px #fd7927;
}

/* Highlight */
.policy-card.highlight {
  border: 2px solid #373737;
}

/* Danger */
.policy-card.danger {
  border: 1px solid #fd7927;
}

/* Titles */
.policy-card__title {
  margin-bottom: 15px;
}

/* Text */
.policy-text {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
}

.policy {
  direction: rtl;
  min-height: 70vh;
  padding: clamp(72px, 8vw, 112px) clamp(18px, 4vw, 48px);
  color: #ffffff;
  text-align: right;
  background:
    radial-gradient(circle at top right, rgba(255, 106, 0, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.98), rgba(5, 5, 8, 1));
}

.policy__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 920px;
  margin: 0 auto clamp(28px, 5vw, 52px);
  text-align: center;
  direction: rtl;
}

.policy__title {
  margin: 0;
  color: #ffffff;
  font-family: "Cairo", "Inter", sans-serif;
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.15;
}

.policy__eyebrow {
  width: fit-content;
  margin: 0 0 14px auto;
  color: var(--cp-orange);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  padding: 6px 12px;
  border: 1px solid rgba(255, 106, 0, 0.38);
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.1);
}

.policy__intro {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Cairo", "Inter", sans-serif;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.95;
  text-align: center;
}

.policy-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  direction: rtl;
  margin: 0 auto clamp(28px, 5vw, 52px);
}

.policy-hero h1 {
  text-align: center;
  margin-bottom: 12px;
}

.policy-hero p {
  text-align: center;
  max-width: 700px;
  line-height: 1.8;
}

.policy__container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  max-width: 1160px;
  margin: 0 auto;
}

.policy-card {
  position: relative;
  width: auto;
  min-height: 230px;
  padding: clamp(22px, 3vw, 30px);
  color: #ffffff;
  background: linear-gradient(180deg, rgba(24, 24, 28, 0.96), rgba(12, 12, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.policy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 0, 0.52);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 106, 0, 0.18);
}

.policy-card.highlight {
  border-color: rgba(255, 255, 255, 0.1);
}

.policy-card.danger {
  border-color: rgba(255, 106, 0, 0.45);
}

.policy-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 32px;
  margin-bottom: 18px;
  color: #ff8f4d;
  font-family: "Inter", "Cairo", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.12);
}

.policy-card__title {
  margin: 0 0 14px;
  color: #ffffff;
  font-family: "Cairo", "Inter", sans-serif;
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  font-weight: 800;
  line-height: 1.45;
}

.policy-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-family: "Cairo", "Inter", sans-serif;
  font-size: 0.98rem;
  line-height: 1.9;
}

.policy--english {
  direction: ltr;
  text-align: left;
}

.policy--english .policy__hero,
.policy--english .policy-hero {
  direction: ltr;
}

.policy--english .policy-card__title,
.policy--english .policy-text {
  font-family: "Inter", "Cairo", sans-serif;
}

.policy-contact-link {
  color: #ff8f4d;
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .policy__container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .policy {
    padding-inline: 16px;
  }

  .policy__container {
    grid-template-columns: 1fr;
  }

  .policy-card {
    min-height: auto;
    border-radius: 14px;
  }
}

/* Cookie disclosure */
.cp-cookie-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10050;
  width: min(560px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  overflow: auto;
  box-sizing: border-box;
  padding: 18px;
  color: #f7f7f7;
  direction: rtl;
  text-align: right;
  background: rgba(12, 12, 14, 0.98);
  border: 1px solid rgba(255, 121, 39, 0.5);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.48);
}

.cp-cookie-notice__title {
  margin: 0 0 8px;
  color: #ffffff;
  font-family: "Cairo", "Inter", sans-serif;
  font-size: 1.12rem;
}

.cp-cookie-notice--player {
  top: 16px;
  bottom: auto;
}

.cp-cookie-notice__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Inter", "Cairo", sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
}

.cp-cookie-notice__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cp-cookie-notice__accept,
.cp-cookie-notice__reject,
.cp-cookie-notice__manage,
.cp-cookie-notice__save,
.cp-cookie-notice__policy {
  min-height: 40px;
  padding: 9px 16px;
  font-family: "Inter", "Cairo", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
}

.cp-cookie-notice__accept {
  color: #090909;
  background: var(--cp-orange);
  border: 1px solid var(--cp-orange);
}

.cp-cookie-notice__reject,
.cp-cookie-notice__manage,
.cp-cookie-notice__save,
.cp-cookie-notice__policy {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.cp-cookie-notice__preferences {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cp-cookie-notice__preferences[hidden] {
  display: none;
}

.cp-cookie-notice__choice {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.86);
  font-family: "Cairo", "Inter", sans-serif;
  font-size: 0.9rem;
}

.cp-cookie-notice__choice input {
  accent-color: var(--cp-orange);
}

.cp-cookie-notice__save {
  width: fit-content;
}

@media (max-width: 620px) {
  .cp-cookie-notice {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    padding: 15px;
  }

  .cp-cookie-notice--player {
    top: 10px;
    bottom: auto;
  }
}

/* Payment Page */
.payment {
  padding: 80px 20px;
  text-align: center;
}

.payment__title {
  font-size: 32px;
  margin-bottom: 40px;
}

/* Container */
.payment__container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

/* Cards */
.payment-card {
  background: #111;
  padding: 25px;
  border-radius: 16px;
  width: min(300px, 100%);
  color: #fff;
  transition: 0.3s;
  border: 1px solid transparent;
}

/* Hover */
.payment-card:hover {
  transform: translateY(-8px);
  border-color: #fd7927;
  box-shadow: 0 0px 25px #fd7927;
}

/* Highlight */
.payment-card.highlight {
  border: 2px solid #222;
}

/* Danger */
.payment-card.danger {
  border: 1px solid #ff4444;
}

/* Titles */
.payment-card__title {
  margin-bottom: 15px;
}

/* Info */
.payment-info {
  margin: 5px 0;
  font-size: 14px;
  color: #ccc;
}

/* Status */
.payment-status {
  margin-top: 10px;
  font-weight: bold;
}

/* Status Colors */
.payment-status.success {
  color: #00ff88;
}

.payment-status.failed {
  color: #ff4444;
}

.payment-status.pending {
  color: #ffaa00;
}

.payment-panel .payment-status {
  margin: 0;
  font-weight: 700;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Removes inline image gaps. */
}

.hero-cinematic__video {
  transition: opacity 0.3s ease;
}

/* Dynamic PocketBase home content */
.hero-cinematic {
  width: 100%;
}

.hero {
  transition: none;
}

.hero-cinematic__bg {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  transition: none;
  background-color: #050505;
  background-image: var(--hero-bg, none);
}

.hero-trailer-video:not([src]):not([data-hls-attached]) {
  display: none;
}

.hero-cinematic__gradient,
.hero-cinematic__vignette {
  z-index: 1;
}

.hero-cinematic__gradient {
  background:
    linear-gradient(
      to top,
      var(--cp-black) 0%,
      rgba(5, 5, 8, 0.72) 13%,
      rgba(5, 5, 8, 0.22) 52%,
      rgba(5, 5, 8, 0.62) 100%
    ),
    linear-gradient(
      270deg,
      rgba(5, 5, 8, 0.82) 0%,
      rgba(5, 5, 8, 0.48) 36%,
      rgba(5, 5, 8, 0.08) 72%,
      rgba(5, 5, 8, 0.34) 100%
    );
}

.hero-cinematic__inner {
  min-height: var(--hero-home-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-inline-start: clamp(20px, 7vw, 96px);
  margin-inline-end: auto;
  position: relative;
  z-index: 2;
}

.hero-selector-wrap {
  bottom: 40px;
  left: 50%;
  width: max-content;
  max-width: min(780px, calc(100vw - 48px));
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 1.1vw, 18px);
  transform: translateX(-50%);
}

.hero-selector-wrap button {
  width: 160px;
  min-width: 0;
  max-width: none;
  height: 72px;
  min-height: 0;
  flex: 0 0 160px;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero-selector-wrap .hero-selector-thumb {
  width: 100%;
  height: 42px;
  object-fit: cover;
  border-radius: calc(var(--cp-radius-md) - 4px);
}

.hero-selector-wrap .hero-selector-title {
  display: block;
  margin-top: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--cp-white-soft);
  font-size: 0.72rem;
  line-height: 1.2;
}

.hero-selector-wrap .hero-selector-title-image,
.hero-selector-wrap .hero-selector-calligraphy {
  display: block;
  width: auto;
  max-width: 85%;
  max-height: 70%;
  object-fit: contain;
  object-position: center;
}

.hero-mini-cards {
  position: relative;
  bottom: auto;
  right: auto;
  display: flex;
  flex-direction: row;
  gap: 12px;
  z-index: 5;
  direction: rtl;
  align-self: flex-end;
  width: max-content;
  max-width: min(620px, calc(100vw - 160px));
  margin-top: 14px;
  overflow: visible;
  animation: none;
}

.mini-card {
  width: 120px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
  background: rgba(18, 18, 24, 0.78);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
  transition: none
}

.mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08) 68%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.36));
}

.mini-overlay {
  position: absolute;
  bottom: 7px;
  right: 9px;
  left: 9px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: right;
  z-index: 2;
}

.mini-card.is-active {
  border-color: #FF6A00;
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.25);
}

.mini-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.content-row__empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  flex: 0 0 100%;
  color: var(--cp-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--cp-radius-md);
}

.media-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Details page */
.details-page-shell {
  background: #050508;
}

.details-page {
  min-height: 100vh;
  color: var(--cp-white-soft);
  background: #050508;
}

.details-trailer-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  background: #000;
  overflow: hidden;
  isolation: isolate;
}

.details-trailer-video {
  width: 100%;
  height: 100%;
  min-height: 70vh;
  object-fit: cover;
  display: block;
  background: #000;
}

.details-trailer-video:not([src]):not([data-hls-attached]) {
  display: none;
}

.details-trailer-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.15), #050505),
    linear-gradient(to right, rgba(0, 0, 0, 0.35), transparent);
  pointer-events: none;
}

.details-trailer-back-button,
.details-trailer-mute-button {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.details-trailer-back-button:hover,
.details-trailer-mute-button:hover {
  background: rgba(255, 106, 0, 0.25);
  transform: scale(1.04);
}

.details-trailer-back-button {
  top: calc(var(--cp-header-h) + 18px);
  inset-inline-start: clamp(18px, 4vw, 48px);
  font-size: 2.1rem;
  line-height: 1;
}

.details-trailer-mute-button {
  top: calc(var(--cp-header-h) + 18px);
  inset-inline-end: clamp(18px, 4vw, 48px);
}

.details-trailer-mute-button img {
  width: 22px;
  height: 22px;
  opacity: 1;
}

.details-trailer-mute-button.muted img {
  opacity: 0.72;
}

.details-content-section {
  position: relative;
  z-index: 2;
  background: #050505;
  padding: 48px 6vw 76px;
}

.details-page .details-hero {
  position: relative;
  min-height: auto;
  padding: 0;
  display: grid;
  direction: ltr;
  grid-template-columns: minmax(310px, 440px) minmax(340px, 1fr) minmax(260px, 390px);
  gap: clamp(34px, 5vw, 84px);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.details-bg,
.details-bg-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.details-bg {
  z-index: -3;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(18px);
  transform: scale(1.08);
  opacity: 0.24;
}

.details-bg-shade {
  z-index: -2;
  background:
    radial-gradient(circle at 70% 42%, rgba(255, 106, 0, 0.12), transparent 30%),
    linear-gradient(90deg, rgba(5, 5, 8, 0.98) 0%, rgba(5, 5, 8, 0.74) 45%, rgba(5, 5, 8, 0.96) 100%),
    linear-gradient(to bottom, rgba(5, 5, 8, 0.6), rgba(5, 5, 8, 0.38) 44%, #050508 96%);
}

.details-meta-card,
.details-info,
.details-poster-wrap {
  position: relative;
  z-index: 1;
}

.details-meta-card {
  direction: rtl;
  align-self: stretch;
  min-height: 420px;
  padding: 28px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(17, 17, 20, 0.78);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.details-meta-card h2 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 800;
  text-align: right;
}

.details-meta-list {
  display: grid;
  gap: 0;
}

.detail-meta-row {
  display: grid;
  direction: rtl;
  grid-template-columns: minmax(86px, 140px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.detail-meta-row:last-child {
  border-bottom: 0;
}

.detail-meta-label {
  grid-column: 1;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Inter", "Cairo", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  text-align: right;
  justify-self: stretch;
}

.detail-meta-value {
  grid-column: 2;
  width: 100%;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.7;
  text-align: right;
  justify-self: stretch;
  overflow-wrap: anywhere;
}

.detail-meta-row--description .detail-meta-value {
  direction: rtl;
  text-align: right;
}

.details-info {
  direction: rtl;
  text-align: right;
  justify-self: center;
  width: min(560px, 100%);
}

.details-kicker {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.08rem;
  font-weight: 700;
}

.details-info h1 {
  max-width: 500px;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  word-break: break-word;
}

.details-description {
  width: min(520px, 100%);
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.85;
}

.details-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.details-chips span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border-radius: 999px;
  color: #ff8d3a;
  background: rgba(255, 106, 0, 0.08);
  border: 1px solid rgba(255, 106, 0, 0.42);
  font-weight: 800;
}

.details-chips span:first-child {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.details-play-btn,
.details-list-btn {
  min-width: 150px;
  min-height: 58px;
  justify-content: center;
}

.details-list-btn {
  border-radius: 999px;
}

.details-poster-wrap {
  direction: rtl;
  justify-self: start;
  width: min(390px, 100%);
  border-radius: 18px;
  overflow: hidden;
  background: #17171b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.56),
    0 0 52px rgba(255, 106, 0, 0.12);
}

.details-poster-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.similar-section {
  padding: 0 clamp(22px, 5vw, 84px) 76px;
  overflow: visible;
}

.similar-section h2 {
  margin: 0 0 20px;
  color: #fff;
  text-align: right;
  font-size: 1.75rem;
  font-weight: 900;
}

.similar-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  margin-top: -20px;
  padding-top: 20px;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.similar-row::-webkit-scrollbar {
  display: none;
}

.similar-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
  position: relative;
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #151519;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.similar-card:hover {
  transform: translateY(-5px);
  z-index: 20;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.similar-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.similar-card h3 {
  margin: 0;
  padding: 10px 12px 12px;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: right;
}

@media (max-width: 1100px) {
  .details-page .details-hero {
    grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  }

  .details-meta-card {
    grid-column: 1 / -1;
    min-height: auto;
    order: 3;
  }
}

@media (max-width: 760px) {
  .details-trailer-hero,
  .details-trailer-video {
    min-height: 56vh;
  }

  .details-content-section {
    padding: 36px 18px 58px;
  }

  .details-page .details-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .details-poster-wrap,
  .details-info {
    justify-self: center;
  }

  .details-info,
  .details-description {
    text-align: center;
  }

  .details-chips,
  .details-actions {
    justify-content: center;
  }

  .details-meta-card {
    order: initial;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .hero-cinematic__inner {
    margin-inline: 0;
    padding-inline: clamp(18px, 6vw, 28px);
  }

  .hero-selector-wrap {
    bottom: 24px;
    max-width: calc(100vw - 24px);
    justify-content: flex-start;
    gap: 10px;
  }

  .hero-selector-wrap button {
    width: 124px;
    height: 58px;
    flex-basis: 124px;
    padding: 7px 12px;
    border-radius: 9px;
  }

  .hero-mini-cards {
    right: auto;
    bottom: auto;
    max-width: 100%;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .hero-mini-cards::-webkit-scrollbar {
    display: none;
  }

  .mini-card {
    width: 118px;
    height: 68px;
    border-radius: 10px;
    flex: 0 0 auto;
  }

.mini-overlay {
    font-size: 11px;
    right: 6px;
    left: 6px;
    bottom: 6px;
  }
}

.devices-page .device-remove,
.devices-page button.device-remove,
.devices-page .remove-device-btn,
.devices-page .delete-device-btn,
.devices-page .device-remove-btn,
.devices-page button[data-action="remove-device"],
.devices-page button[data-action="delete-device"] {
  background: #ff6a00 !important;
  background-color: #ff6a00 !important;
  background-image: none !important;
  color: #ffffff !important;
  border: none !important;
  transform: none !important;
  animation: none !important;
  transition: background-color 0.15s ease, box-shadow 0.15s ease !important;
  box-shadow: none !important;
}

.devices-page .device-remove:hover,
.devices-page button.device-remove:hover,
.devices-page .remove-device-btn:hover,
.devices-page .delete-device-btn:hover,
.devices-page .device-remove-btn:hover,
.devices-page button[data-action="remove-device"]:hover,
.devices-page button[data-action="delete-device"]:hover,
.devices-page .device-remove:active,
.devices-page button.device-remove:active,
.devices-page .remove-device-btn:active,
.devices-page .delete-device-btn:active,
.devices-page .device-remove-btn:active,
.devices-page button[data-action="remove-device"]:active,
.devices-page button[data-action="delete-device"]:active {
  background: #ff6a00 !important;
  background-color: #ff6a00 !important;
  background-image: none !important;
  transform: none !important;
  animation: none !important;
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.35) !important;
}

.devices-page .device-remove::before,
.devices-page .device-remove::after,
.devices-page button.device-remove::before,
.devices-page button.device-remove::after,
.devices-page .remove-device-btn::before,
.devices-page .remove-device-btn::after,
.devices-page .delete-device-btn::before,
.devices-page .delete-device-btn::after,
.devices-page .device-remove-btn::before,
.devices-page .device-remove-btn::after {
  display: none !important;
  content: none !important;
}

/* Global new content batch popup */
body.modal-open {
  overflow: hidden;
}

html.cineplus-modal-open,
body.cineplus-modal-open {
  overflow: hidden !important;
  height: 100% !important;
}

#cineplus-announcement-root {
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
}

.new-content-popup {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 28px);
  background: rgba(0, 0, 0, 0.68);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
  isolation: isolate;
}

.new-content-popup.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.new-content-popup[hidden] {
  display: none;
}

.new-content-popup__backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.68);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.new-content-popup__panel {
  position: relative;
  z-index: 1000000;
  width: min(960px, 92vw);
  max-height: 88dvh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.15fr);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 106, 0, 0.2), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(12, 12, 14, 0.98);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  color: #fff;
  transform: translateY(14px) scale(0.98);
  transition: transform 180ms ease;
}

.new-content-popup.is-visible .new-content-popup__panel {
  transform: translateY(0) scale(1);
}

.new-content-popup__close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.new-content-popup__close:hover {
  background: rgba(255, 106, 0, 0.85);
}

.new-content-popup__media {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.28), transparent),
    rgba(255, 255, 255, 0.04);
}

.new-content-popup__media.has-poster {
  background: rgba(255, 255, 255, 0.04);
}

.new-content-popup__media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}

.new-content-popup__body {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 44px);
  overflow: auto;
}

.new-content-popup__kicker {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.14);
  color: #ffb27c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.new-content-popup__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.new-content-popup__description {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1.8;
}

.new-content-popup__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.new-content-popup__item {
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.new-content-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.new-content-popup__cta,
.new-content-popup__dismiss {
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.new-content-popup__cta {
  border: 0;
  background: linear-gradient(135deg, #ff6a00, #ff9b45);
  color: #141414;
}

.new-content-popup__dismiss {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

@media (max-width: 760px) {
  .new-content-popup {
    align-items: center;
    justify-content: center;
    padding: 12px;
  }

  .new-content-popup__panel {
    width: min(430px, 92vw);
    max-height: 88dvh;
    grid-template-columns: 1fr;
    overflow-y: auto;
    border-radius: 20px;
  }

  .new-content-popup__media,
  .new-content-popup__media img {
    min-height: 210px;
    max-height: 300px;
  }

  .new-content-popup__body {
    padding: 22px;
  }

  .new-content-popup__actions {
    display: grid;
  }

  .new-content-popup__cta,
  .new-content-popup__dismiss {
    width: 100%;
  }
}

/* New content announcements */
.announcement-page {
  min-height: 100vh;
  direction: rtl;
  text-align: right;
  background:
    radial-gradient(circle at top, rgba(255, 122, 26, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(5, 5, 8, 0.98), rgba(14, 14, 18, 1));
}

.announcement-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 132px 0 72px;
}

.announcement-shell {
  display: grid;
  gap: 24px;
}

.announcement-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 8, 12, 0.88);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.announcement-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
}

.announcement-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 28px;
  padding: 34px;
}

.announcement-copy {
  display: grid;
  gap: 16px;
  align-content: center;
  justify-items: start;
  text-align: right;
}

.announcement-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 140px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.16);
  color: #ffd3b4;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.announcement-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.08;
}

.announcement-description {
  margin: 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.9;
  text-align: right;
}

.announcement-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.announcement-meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.announcement-hero-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 16px;
  min-height: 100%;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.announcement-hero-card[hidden] {
  display: none;
}

.announcement-hero-poster {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.announcement-hero-copy {
  display: grid;
  gap: 10px;
  align-content: center;
}

.announcement-hero-label {
  color: #ffb782;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.announcement-hero-heading {
  margin: 0;
  color: #fff;
  font-size: 1.34rem;
}

.announcement-hero-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.8;
}

.announcement-carousel {
  padding: 0 34px 34px;
}

.announcement-grid-section {
  display: grid;
  gap: 18px;
  padding: 0 34px 34px;
}

.announcement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.announcement-content-card {
  min-height: 280px;
  cursor: pointer;
}

.announcement-content-card .media-card__media {
  min-height: 280px;
  border-radius: 20px;
}

.announcement-content-card .media-card__media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
  object-fit: cover;
}

.announcement-content-card:focus-visible {
  outline: 2px solid rgba(255, 122, 26, 0.9);
  outline-offset: 4px;
}

.announcement-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.announcement-carousel-title {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
}

.announcement-carousel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.announcement-count {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.announcement-nav {
  min-width: 122px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.announcement-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.announcement-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.announcement-slide {
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.announcement-slide-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
}

.announcement-slide-copy {
  display: grid;
  gap: 14px;
}

.announcement-slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.announcement-slide-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

.announcement-slide-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.12;
}

.announcement-slide-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.9;
}

.announcement-slide-actions,
.announcement-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.announcement-btn {
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.announcement-btn:hover {
  transform: translateY(-1px);
}

.announcement-btn--primary {
  background: linear-gradient(135deg, #ff7a1a, #ff9d4d);
  color: #141414;
}

.announcement-btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.announcement-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
}

.announcement-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 34px 34px;
}

.announcement-footer-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.94rem;
  line-height: 1.8;
}

.announcement-empty {
  padding: 34px;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 980px) {
  .announcement-intro,
  .announcement-slide {
    grid-template-columns: 1fr;
  }

  .announcement-hero-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .announcement-main {
    width: min(100% - 18px, 1180px);
    padding-top: 108px;
  }

  .announcement-intro,
  .announcement-carousel,
  .announcement-grid-section,
  .announcement-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .announcement-intro {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .announcement-carousel {
    padding-bottom: 24px;
  }

  .announcement-grid-section {
    padding-bottom: 24px;
  }

  .announcement-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .announcement-content-card,
  .announcement-content-card .media-card__media,
  .announcement-content-card .media-card__media img {
    min-height: 230px;
  }

  .announcement-carousel-head,
  .announcement-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .announcement-carousel-controls {
    justify-content: space-between;
  }

  .announcement-slide {
    padding: 18px;
  }
}

/* ------------------------------------------------------------------ */
/* Featured Trailer Hero (movies / series / programs / theater pages)  */
/* ------------------------------------------------------------------ */

.featured-hero {
  position: relative;
  height: 82vh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  margin: 0;
  background: #050505 var(--hero-bg, none) center / cover no-repeat;
  opacity: 1 !important;
  visibility: visible !important;
}

.featured-hero__bg {
  position: absolute;
  inset: 0;
  background: #050505 var(--hero-bg, none) center / cover no-repeat;
}

.featured-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
  animation: none;
  transition: opacity 0.4s ease;
}

.featured-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.featured-hero--playing .featured-hero__video {
  opacity: 1;
}

.featured-hero--playing .featured-hero__poster {
  opacity: 0;
}

.featured-hero__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--cp-black) 0%, rgba(5, 5, 8, 0) 35%),
    linear-gradient(to right, rgba(5, 5, 8, 0.78) 0%, rgba(5, 5, 8, 0.08) 65%);
  pointer-events: none;
}

.featured-hero__vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.featured-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: var(--cp-space-5) clamp(16px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 82vh;
  min-height: 620px;
  animation: heroContentIn 0.8s var(--cp-ease-out) 0.1s both;
}

.movies-featured-hero .featured-hero__inner {
  justify-content: center;
}


.featured-hero__title {
  margin: 0 0 var(--cp-space-1);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cp-white);
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.6);
}

.featured-hero__desc {
  margin: 0 0 var(--cp-space-3);
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  color: rgba(244, 244, 246, 0.85);
  max-width: 44ch;
  line-height: 1.75;
}

.featured-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cp-space-2);
}

@media (max-width: 768px) {
  .hero-details-card .title-branding__logo,
  .featured-hero .title-branding__logo {
    width: min(300px, 76vw);
    max-height: 108px;
    margin-bottom: 12px;
  }

  .featured-hero {
    height: 70vh;
    min-height: 520px;
  }

  .featured-hero__inner {
    height: 70vh;
    min-height: 520px;
    padding: var(--cp-space-4) var(--cp-space-3);
  }

  .featured-hero__desc {
    max-width: 100%;
  }
}

/* ------------------------------------------------------------------ */
/* Empty state — shown when a page has no PocketBase rows/content      */
/* ------------------------------------------------------------------ */

.cine-empty-state {
  width: 100%;
  min-height: clamp(360px, 52vh, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(72px, 10vw, 130px) 24px;
  direction: rtl;
  text-align: center;
}

.cine-empty-state__inner {
  max-width: 780px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.cine-empty-state__inner p {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.6;
}

.cine-empty-state__inner p + p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(16px, 2vw, 25px);
  font-weight: 600;
}

.cine-empty-state__inner strong {
  color: #ff7a1a;
  letter-spacing: 0.5px;
}

.brand-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  color: #ff7a1a;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* When the empty state appears inside the home-page rows container
   (directly beneath the full-screen hero), shrink it so it never
   creates an artificial gap between the hero and the empty-state content. */
#rows-container .cine-empty-state {
  min-height: clamp(120px, 18vh, 260px);
  padding: clamp(28px, 4vw, 56px) 24px;
}

/* ------------------------------------------------------------------ */
/* Navbar-clearance spacing for dynamic rows containers                */
/* Applied by rows.js when no featured-hero section is visible.        */
/* Removed automatically once a featured-hero becomes visible.         */
/* ------------------------------------------------------------------ */

.no-hero-spacing {
  padding-top: calc(var(--cp-header-h) + var(--cp-space-5));
}

@media (max-width: 768px) {
  .no-hero-spacing {
    padding-top: calc(var(--cp-header-h) + var(--cp-space-3));
  }
}
/* Hero trailer/backdrop fade behavior */
.hero-cinematic__bg {
  overflow: hidden;
  background-color: #000;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: var(--hero-bg, none);
  opacity: 1;
  visibility: visible;
  transition: opacity 700ms ease, visibility 700ms ease;
  transform: none;
  animation: none;
  pointer-events: none;
}

.hero-backdrop.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.hero-trailer-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 350ms ease;
}

.hero-trailer-video.is-ready,
.hero--video-ready .hero-trailer-video {
  opacity: 1;
}

.hero-cinematic__gradient,
.hero-cinematic__vignette {
  z-index: 2;
}

.hero-cinematic__inner {
  z-index: 3;
}

/* ================================================================== */
/* Responsive polish — cross-device fixes                              */
/* ================================================================== */

/* ── Header: compact auth buttons on small phones ────────────────── *
 *  Long Arabic text is replaced with short labels via ::before so   *
 *  the buttons remain visible, clickable, and don't overflow.       */
@media (max-width: 560px) {
  /* Shrink logo to free up space */
  .site-header__logo {
    width: 110px;
    padding-right: 8px;
  }

  .site-header__actions {
    gap: 4px;
  }

  .icon-btn {
    margin: 2px;
  }

  /* Subscribe button → compact "دخول" */
  .site-header__actions .btn-primary {
    font-size: 0;
    padding: 8px 12px;
    min-width: auto;
    white-space: nowrap;
  }

  .site-header__actions .btn-primary::before {
    content: "دخول";
    font-size: 0.8rem;
    font-weight: 700;
  }

  /* Logout button → compact "خروج" */
  .site-header__actions .header-logout-btn {
    font-size: 0;
    padding: 8px 10px;
    min-height: 36px;
    white-space: nowrap;
  }

  .site-header__actions .header-logout-btn::before {
    content: "خروج";
    font-size: 0.8rem;
    font-weight: 700;
  }
}

/* ── Cinematic hero: lower min-height on portrait phones ──────────── */
@media (max-width: 640px) {
  .hero-cinematic {
    --hero-home-height: clamp(440px, 78vh, 620px);
  }

  .hero-cinematic__inner {
    min-height: var(--hero-home-height);
  }
}

@supports (height: 100svh) {
  @media (max-width: 640px) {
    .hero-cinematic {
      --hero-home-height: clamp(440px, 78svh, 620px);
    }
  }
}

/* ── Featured hero: reduce min-height for small mobile ───────────── */
@media (max-width: 640px) {
  .featured-hero {
    height: 70vh;
    min-height: 480px;
  }

  .featured-hero__inner {
    height: 70vh;
    min-height: 480px;
  }
}

/* ── Landscape phone: heroes must not exceed viewport height ──────── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-details-card .title-branding__logo,
  .featured-hero .title-branding__logo {
    width: min(260px, 48vw);
    max-height: 92px;
    margin-bottom: 10px;
  }

  .hero-cinematic {
    --hero-home-height: min(100vh, 560px);
  }

  .hero-cinematic,
  .hero-cinematic__inner {
    min-height: var(--hero-home-height);
  }

  .featured-hero,
  .featured-hero__inner {
    height: 100dvh;
    min-height: 100dvh;
  }
}

@supports (height: 100dvh) {
  @media (max-height: 500px) and (orientation: landscape) {
    .hero-cinematic {
      --hero-home-height: min(100dvh, 560px);
    }
  }
}

/* ── Packages: popular card scale + top spacing on mobile ─────────── */
@media (max-width: 640px) {
  .packages {
    padding-top: calc(var(--cp-header-h) + 28px);
  }

  .package-card {
    width: min(360px, 100%);
  }

  .package-card.popular {
    transform: none;
  }
}

/* ── Payment / Account: fix top padding to account for fixed header ─ */
@media (max-width: 640px) {
  .payment {
    padding: calc(var(--cp-header-h) + 28px) 16px 48px;
  }

  .account {
    padding: calc(var(--cp-header-h) + 28px) 16px 48px;
  }
}

/* ── Details page: stack action buttons on very small screens ──────── */
@media (max-width: 480px) {
  .details-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .details-play-btn,
  .details-list-btn {
    width: 100%;
    min-width: 0;
  }
}

/* ── Watchlist / mylist: tighter inline padding on tiny screens ────── */
@media (max-width: 480px) {
  .watchlist-hero {
    padding: 28px 16px 16px;
  }

  .watchlist-section-heading,
  .watchlist-grid-section {
    padding-inline: 16px;
  }
}

/* Index hero media guard: movies-like framing without squeeze or duplicate tabs. */
body:not(.category-page) #heroSection.hero-cinematic {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  --hero-home-height: clamp(620px, 72vh, 760px);
  --hero-copy-top: clamp(132px, 18vh, 172px);
  --hero-copy-bottom: clamp(174px, 22vh, 220px);
  --hero-selector-bottom: clamp(58px, 8vh, 82px);
  --hero-selector-width: min(660px, 58vw);
  --hero-selector-gap: clamp(16px, 2.2vw, 32px);
  --hero-selector-item-height: 62px;
  height: var(--hero-home-height);
  min-height: 620px;
  max-height: 760px;
  margin-inline-start: calc(50% - 50vw);
  margin-inline-end: calc(50% - 50vw);
  overflow: hidden;
  background: #050505 var(--hero-bg, none) center / cover no-repeat;
}

body:not(.category-page) #heroSection .hero-cinematic__bg,
body:not(.category-page) #heroSection .hero-backdrop,
body:not(.category-page) #heroSection .hero-trailer-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body:not(.category-page) #heroSection .hero-cinematic__bg,
body:not(.category-page) #heroSection .hero-backdrop {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

body:not(.category-page) #heroSection .hero-backdrop,
body:not(.category-page) #heroSection .hero-cinematic__poster {
  object-fit: cover;
  object-position: center;
}

body:not(.category-page) #heroSection .hero-trailer-video {
  display: block;
  object-fit: cover;
  object-position: center center;
}

body:not(.category-page) #heroSection .hero-trailer-video:not([src]):not([data-hls-attached]) {
  display: none;
}

body:not(.category-page) #heroSection .hero-cinematic__gradient {
  background:
    linear-gradient(to top, var(--cp-black) 0%, rgba(5, 5, 8, 0) 35%),
    linear-gradient(to right, rgba(5, 5, 8, 0.78) 0%, rgba(5, 5, 8, 0.08) 65%);
}

body:not(.category-page) #heroSection .hero-cinematic__vignette {
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.5);
}

body:not(.category-page) #heroSection .hero-cinematic__inner {
  position: relative;
  z-index: 3;
  height: var(--hero-home-height);
  min-height: 620px;
  max-height: 760px;
  box-sizing: border-box;
  justify-content: flex-start;
  padding-top: var(--hero-copy-top);
  padding-bottom: var(--hero-copy-bottom);
}

body:not(.category-page) #heroSection .hero-details-card {
  max-width: min(560px, calc(100vw - 48px));
}

body:not(.category-page) #heroSection .hero-cinematic__desc {
  display: -webkit-box;
  margin-bottom: clamp(14px, 2vh, 20px);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

body:not(.category-page) #heroSection .hero-cinematic__actions {
  flex-wrap: nowrap;
  align-items: center;
  margin-bottom: 0;
}

body:not(.category-page) #heroSection .hero-selector-wrap {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: var(--hero-selector-bottom);
  z-index: 4;
  width: auto;
  max-width: calc(100vw - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 55px;
  padding: 0;
  margin: 0;
  overflow: visible;
  transform: translateX(-50%);
  pointer-events: auto;
  scrollbar-width: none;
}

body:not(.category-page) #heroSection .hero-selector-wrap::-webkit-scrollbar {
  display: none;
}

body:not(.category-page) #heroSection .hero-selector-wrap button {
  position: relative;
  width: auto;
  height: var(--hero-selector-item-height);
  min-width: auto;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 6px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: 0.56;
  overflow: visible;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    filter 0.25s ease;
}

body:not(.category-page) #heroSection .hero-selector-wrap button:hover,
body:not(.category-page) #heroSection .hero-selector-wrap button.is-active {
  opacity: 1;
  transform: translateY(-2px);
}

body:not(.category-page) #heroSection .hero-selector-wrap button::after {
  content: "";
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 0;
  width: 70px;
  height: 4px;
  border-radius: 999px;
  background: var(--cp-orange, #ff7a1a);
  box-shadow: 0 0 18px rgba(255, 106, 0, 0.38);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.55);
  transform-origin: center;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

body:not(.category-page) #heroSection .hero-selector-wrap button:hover::after,
body:not(.category-page) #heroSection .hero-selector-wrap button.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

body:not(.category-page) #heroSection .hero-selector-wrap .hero-bottom-logo.hero-selector-title-image,
body:not(.category-page) #heroSection .hero-selector-wrap .hero-selector-logo.hero-selector-title-image {
  display: block;
  height: auto;
  max-height: 36px;
  max-width: 125px;
  max-height: none;
  width: auto;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  opacity: 0.65;
  transform: scale(1);
  transform-origin: center center;
  filter:
    grayscale(1)
    brightness(1.45)
    drop-shadow(0 3px 18px rgba(0, 0, 0, 0.86));
  transition:
    opacity 0.25s ease,
    filter 0.25s ease,
    transform 0.22s ease;
  will-change: transform;
}

body:not(.category-page) #heroSection .hero-selector-wrap button:hover .hero-bottom-logo.hero-selector-title-image,
body:not(.category-page) #heroSection .hero-selector-wrap button:hover .hero-selector-logo.hero-selector-title-image {
  opacity: 1;
  transform: scale(1.05);
  filter:
    brightness(1.12)
    drop-shadow(0 3px 18px rgba(0, 0, 0, 0.92))
    drop-shadow(0 0 14px rgba(255, 106, 0, 0.16));
}

body:not(.category-page) #heroSection .hero-selector-wrap button.is-active .hero-bottom-logo.hero-selector-title-image,
body:not(.category-page) #heroSection .hero-selector-wrap button.is-active .hero-selector-logo.hero-selector-title-image {
  opacity: 1;
}

body:not(.category-page) #heroSection .hero-selector-wrap .hero-selector-logo.logo-failed {
  display: none !important;
}

body:not(.category-page) #heroSection .hero-selector-wrap .fallback-title {
  display: none;
}

body:not(.category-page) #heroSection .hero-selector-wrap .fallback-title.is-visible {
  display: block;
}

body:not(.category-page) #heroSection .hero-selector-wrap img,
body:not(.category-page) #heroSection .hero-selector-wrap .hero-selector-title-image,
body:not(.category-page) #heroSection .hero-selector-wrap .hero-selector-calligraphy {
  display: block;
  width: auto;
  max-width: min(126px, 100%);
  max-height: 46px;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter:
    grayscale(1)
    brightness(1.45)
    drop-shadow(0 3px 18px rgba(0, 0, 0, 0.86));
  transition:
    filter 0.25s ease,
    transform 0.25s ease;
}

body:not(.category-page) #heroSection .hero-selector-wrap button:hover img,
body:not(.category-page) #heroSection .hero-selector-wrap button.is-active img,
body:not(.category-page) #heroSection .hero-selector-wrap button:hover .hero-selector-title-image,
body:not(.category-page) #heroSection .hero-selector-wrap button.is-active .hero-selector-title-image,
body:not(.category-page) #heroSection .hero-selector-wrap button:hover .hero-selector-calligraphy,
body:not(.category-page) #heroSection .hero-selector-wrap button.is-active .hero-selector-calligraphy {
  max-width: min(138px, 100%);
  max-height: 50px;
  filter:
    brightness(1.12)
    drop-shadow(0 3px 18px rgba(0, 0, 0, 0.92))
    drop-shadow(0 0 14px rgba(255, 106, 0, 0.16));
}

body:not(.category-page) #heroSection .hero-selector-wrap button[data-hero-key="disconnected"] img,
body:not(.category-page) #heroSection .hero-selector-wrap button[data-hero-key="disconnected"] .hero-selector-title-image,
body:not(.category-page) #heroSection .hero-selector-wrap button[data-hero-key="disconnected"] .hero-selector-calligraphy,
body:not(.category-page) #heroSection .hero-selector-wrap button[data-hero-key="disconnected"] .hero-selector-title,
body:not(.category-page) #heroSection .hero-selector-wrap button[data-hero-key="disconnected"] .title-logo-fallback {
  transform: translateY(-6px);
  transform-origin: center bottom;
}

body:not(.category-page) #heroSection .hero-selector-wrap button[data-hero-key="disconnected"]:hover img,
body:not(.category-page) #heroSection .hero-selector-wrap button[data-hero-key="disconnected"].is-active img,
body:not(.category-page) #heroSection .hero-selector-wrap button[data-hero-key="disconnected"]:hover .hero-selector-title-image,
body:not(.category-page) #heroSection .hero-selector-wrap button[data-hero-key="disconnected"].is-active .hero-selector-title-image,
body:not(.category-page) #heroSection .hero-selector-wrap button[data-hero-key="disconnected"]:hover .hero-selector-calligraphy,
body:not(.category-page) #heroSection .hero-selector-wrap button[data-hero-key="disconnected"].is-active .hero-selector-calligraphy,
body:not(.category-page) #heroSection .hero-selector-wrap button[data-hero-key="disconnected"]:hover .hero-selector-title,
body:not(.category-page) #heroSection .hero-selector-wrap button[data-hero-key="disconnected"].is-active .hero-selector-title,
body:not(.category-page) #heroSection .hero-selector-wrap button[data-hero-key="disconnected"]:hover .title-logo-fallback,
body:not(.category-page) #heroSection .hero-selector-wrap button[data-hero-key="disconnected"].is-active .title-logo-fallback {
  transform: translateY(-6px) scale(1.04);
}

body:not(.category-page) #heroSection .hero-selector-title,
body:not(.category-page) #heroSection .hero-selector-wrap .title-logo-fallback {
  display: block;
  max-width: 100%;
  color: #fff;
  font-size: clamp(20px, 1.55vw, 30px);
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.85);
  transform-origin: center bottom;
}

body:not(.category-page) #heroSection .hero-mini-cards {
  display: none !important;
}

@media (max-width: 900px) {
  body:not(.category-page) #heroSection.hero-cinematic {
    --hero-copy-top: clamp(112px, 16vh, 142px);
    --hero-copy-bottom: clamp(160px, 22vh, 196px);
    --hero-selector-bottom: clamp(46px, 7vh, 64px);
    --hero-selector-item-height: 58px;
  }

  body:not(.category-page) #heroSection .hero-selector-wrap {
    width: 92vw;
    max-width: 92vw;
    justify-content: center;
    gap: 30px;
    overflow-x: auto;
    padding-inline: 18px;
  }

  body:not(.category-page) #heroSection .hero-cinematic__desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  body:not(.category-page) #heroSection .hero-selector-wrap button {
    height: var(--hero-selector-item-height);
  }

  body:not(.category-page) #heroSection .hero-selector-wrap button::after {
    width: 80px;
  }

  body:not(.category-page) #heroSection .hero-selector-wrap img,
  body:not(.category-page) #heroSection .hero-selector-wrap .hero-selector-title-image,
  body:not(.category-page) #heroSection .hero-selector-wrap .hero-selector-calligraphy {
    max-width: 112px;
    max-height: 40px;
  }

  body:not(.category-page) #heroSection .hero-selector-wrap .hero-selector-title-logo {
    max-width: 112px;
    max-height: 32px;
  }

  body:not(.category-page) #heroSection .hero-selector-wrap .hero-bottom-logo.hero-selector-title-image,
  body:not(.category-page) #heroSection .hero-selector-wrap .hero-selector-logo.hero-selector-title-image {
    max-width: 105px;
    max-height: 32px;
  }

body:not(.category-page) #heroSection .hero-selector-title,
body:not(.category-page) #heroSection .hero-selector-wrap .title-logo-fallback {
    font-size: 20px;
  }
}

/* Final details-page overrides: kept at the end so legacy details styles cannot cover the new layout. */
.details-page-shell .site-header {
  background: linear-gradient(
    to bottom,
    transparent 100%
  );
  border-bottom-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition:
    background var(--cp-transition),
    border-color var(--cp-transition),
    box-shadow var(--cp-transition),
    backdrop-filter var(--cp-transition);
}

.details-page-shell .site-header.is-solid {
  background: rgba(5, 5, 8, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: var(--cp-shadow-sm);
}

.details-page {
  background: #050508;
}

.details-trailer-hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  isolation: isolate;
  background-color: #000;
  background-position: center top;
  background-size: cover;
}

.details-trailer-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
}

.details-trailer-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.34) 42%, rgba(0, 0, 0, 0.9) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.08) 32%, #050508 100%);
}

.details-hero-layout {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  direction: rtl;
  grid-template-columns: minmax(132px, 210px) minmax(360px, 610px) minmax(18vw, 1fr);
  align-items: end;
  gap: clamp(18px, 3vw, 34px);
  padding: calc(var(--cp-header-h) + 52px) clamp(22px, 5vw, 76px) clamp(36px, 7vh, 72px);
}

.details-poster-wrap {
  width: min(210px, 100%);
  justify-self: start;
  align-self: end;
  border-radius: 8px;
}

.details-info {
  width: min(610px, 100%);
  justify-self: stretch;
  align-self: end;
  direction: rtl;
  text-align: right;
}

.details-info h1 {
  max-width: 640px;
  font-size: clamp(34px, 4.7vw, 62px);
  font-weight: 900;
  text-align: right;
}

.details-title-logo {
  display: block;
  width: min(330px, 72vw);
  max-height: 126px;
  margin: 0 0 16px;
  object-fit: contain;
  object-position: right center;
}

.details-title-logo[hidden],
.details-section[hidden],
.details-chips[hidden],
.details-description[hidden],
.details-kicker[hidden] {
  display: none;
}

.details-section {
  padding: clamp(30px, 5vw, 58px) clamp(20px, 5vw, 76px) 0;
}

.details-info-grid,
.details-crew-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.details-info-row,
.details-episode-card {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.details-info-row {
  display: grid;
  grid-template-columns: minmax(92px, 150px) minmax(0, 1fr);
  gap: 16px;
  min-height: 58px;
  padding: 14px 16px;
}

.details-episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.detail-related-card {
  flex: 0 0 206px;
  min-width: 206px;
  scroll-snap-align: start;
  cursor: pointer;
}

.detail-related-card .media-card__media {
  aspect-ratio: 2 / 3;
  min-height: 0;
  border-radius: 8px;
  background-color: #151519;
  background-position: center;
  background-size: cover;
}

@media (max-width: 1100px) {
  .details-hero-layout {
    grid-template-columns: minmax(116px, 170px) minmax(0, 1fr);
  }

  .details-info-grid,
  .details-crew-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .details-trailer-hero {
    min-height: auto;
    padding-top: var(--cp-header-h);
  }

  .details-trailer-video {
    position: relative;
    height: 52vh;
    min-height: 300px;
  }

  .details-hero-layout {
    position: relative;
    inset: auto;
    grid-template-columns: minmax(92px, 128px) minmax(0, 1fr);
    align-items: end;
    padding: 22px 18px 34px;
    background: #050508;
  }

  .details-poster-wrap {
    width: min(128px, 100%);
  }

  .details-info h1 {
    font-size: clamp(28px, 10vw, 42px);
  }

  .details-info-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .detail-related-card {
    flex-basis: 154px;
    min-width: 154px;
  }
}

@media (max-width: 520px) {
  .details-hero-layout {
    grid-template-columns: 1fr;
  }

  .details-poster-wrap {
    width: min(136px, 42vw);
  }
}

/* Compact Shahid-style details refinement */
.details-trailer-hero {
  width: 100%;
  min-height: clamp(620px, 86vh, 920px);
  background-position: center top;
}

.details-trailer-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.details-trailer-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.32) 42%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.46) 0%, rgba(0, 0, 0, 0.06) 38%, #050508 100%);
}

.details-hero-layout {
  grid-template-columns: minmax(0, 640px) minmax(20vw, 1fr);
  align-items: end;
  justify-content: end;
  gap: 0;
  padding: calc(var(--cp-header-h) + 42px) clamp(24px, 5vw, 82px) clamp(46px, 8vh, 74px);
}

.details-info {
  width: min(640px, 100%);
  max-width: 640px;
  justify-self: start;
  padding-block: 0;
}

.details-kicker {
  margin: 0 0 7px;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.details-title-logo {
  width: min(230px, 46vw);
  max-height: 82px;
  margin: 0 0 10px;
}

.details-info h1 {
  max-width: 600px;
  margin: 0 0 9px;
  font-size: clamp(30px, 3.7vw, 54px);
  line-height: 1.08;
  font-weight: 900;
}

.details-chips {
  gap: 7px;
  margin: 0 0 13px;
  max-width: 620px;
}

.details-chips span {
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(16, 16, 20, 0.54);
  border-color: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.details-chips span:first-child {
  color: #fff;
  background: rgba(255, 106, 0, 0.2);
  border-color: rgba(255, 106, 0, 0.42);
}

.details-description {
  width: min(560px, 100%);
  margin: 0 0 18px;
  font-size: 0.98rem;
  line-height: 1.62;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.details-actions {
  gap: 9px;
}

.details-play-btn,
.details-list-btn,
.details-share-btn,
.details-download-btn {
  min-width: 0;
  min-height: 46px;
  height: 46px;
  padding: 0 22px;
  font-size: 0.96rem;
  font-weight: 800;
}

.details-play-btn {
  min-width: 140px;
}

.details-list-btn,
.details-share-btn,
.details-download-btn {
  padding-inline: 18px;
}

.details-section {
  padding-top: clamp(26px, 4vw, 44px);
}

.details-section h2 {
  margin-bottom: 14px;
  font-size: clamp(1.18rem, 1.75vw, 1.5rem);
}

.details-more-layout {
  display: grid;
  grid-template-columns: minmax(110px, 156px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
}

.details-poster-wrap--info {
  width: min(156px, 100%);
  justify-self: start;
  align-self: start;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.details-info-grid,
.details-crew-grid {
  gap: 8px;
}

.details-info-row {
  min-height: 50px;
  padding: 11px 14px;
  grid-template-columns: minmax(86px, 132px) minmax(0, 1fr);
}

.details-info-label {
  font-size: 0.84rem;
}

.details-info-value {
  font-size: 0.9rem;
  line-height: 1.55;
}

.details-episode-card {
  min-height: 82px;
  padding: 13px;
}

.detail-related-card {
  flex-basis: 172px;
  min-width: 172px;
}

@media (max-width: 900px) {
  .details-trailer-hero {
    min-height: clamp(560px, 80vh, 760px);
  }

  .details-hero-layout {
    grid-template-columns: minmax(0, 590px);
  }
}

@media (max-width: 760px) {
  .details-trailer-hero {
    min-height: auto;
    padding-top: var(--cp-header-h);
  }

  .details-trailer-video {
    height: 48vh;
    min-height: 260px;
    object-position: center top;
  }

  .details-hero-layout {
    grid-template-columns: 1fr;
    padding: 20px 18px 30px;
  }

  .details-info {
    max-width: 100%;
  }

  .details-title-logo {
    width: min(190px, 58vw);
    max-height: 68px;
  }

  .details-info h1 {
    font-size: clamp(25px, 8vw, 36px);
  }

  .details-description {
    font-size: 0.92rem;
    line-height: 1.58;
  }

  .details-play-btn,
  .details-list-btn,
  .details-share-btn,
  .details-download-btn {
    height: 42px;
    min-height: 42px;
    padding-inline: 16px;
    font-size: 0.9rem;
    flex: 0 1 auto;
  }

  .details-more-layout {
    grid-template-columns: minmax(94px, 124px) minmax(0, 1fr);
    gap: 16px;
  }

  .details-poster-wrap--info {
    width: min(124px, 100%);
  }
}

@media (max-width: 520px) {
  .details-chips span {
    font-size: 0.78rem;
    padding-inline: 9px;
  }

  .details-actions {
    align-items: stretch;
  }

  .details-play-btn {
    flex-basis: 100%;
  }

  .details-list-btn,
  .details-share-btn,
  .details-download-btn {
    flex: 1 1 calc(50% - 8px);
  }

  .details-more-layout {
    grid-template-columns: 1fr;
  }

  .details-poster-wrap--info {
    width: min(118px, 36vw);
  }
}

/* Crop embedded cinematic black bars for trailer previews only */
.cinematic-crop-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.12);
  transform-origin: center center;
  will-change: transform;
}

.details-trailer-hero,
.hero-cinematic__bg,
.featured-hero__bg {
  overflow: hidden;
}

.details-trailer-hero {
  position: relative;
}

.details-trailer-video {
  z-index: 1;
}

.details-trailer-overlay {
  z-index: 2;
  pointer-events: none;
}

.details-hero-layout {
  z-index: 3;
  pointer-events: none;
}

.details-hero-layout .details-info,
.details-hero-layout .details-actions,
.details-hero-layout button,
.details-hero-layout a {
  pointer-events: auto;
}

#detailsMuteButton,
#detailsBackButton,
.details-trailer-mute-button,
.details-trailer-back-button {
  position: absolute;
  z-index: 50;
  pointer-events: auto;
  cursor: pointer;
}

#detailsBackButton,
.details-trailer-back-button {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 0;
  text-align: center;
  overflow: hidden;
}

#detailsMuteButton svg {
  width: 22px;
  height: 22px;
  display: block;
}

#detailsBackButton svg,
.details-trailer-back-button svg {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  overflow: visible;
  transform: translateX(0);
  transform-origin: center center;
}

/* Final hero bottom selector rule: single source of truth for spacing, size, and hover. */
#heroSection .hero-selector-wrap {
  gap: clamp(44px, 4.6vw, 86px) !important;
}

#heroSection .hero-selector-wrap button,
#heroSection .hero-selector-wrap .hero-selector-button {
  width: auto !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  padding-inline: 0 !important;
  overflow: visible !important;
  transform: none !important;
}

#heroSection .hero-selector-wrap button:hover,
#heroSection .hero-selector-wrap button.is-active,
#heroSection .hero-selector-wrap .hero-selector-button:hover,
#heroSection .hero-selector-wrap .hero-selector-button.is-active {
  transform: none !important;
}

#heroSection .hero-selector-wrap .hero-bottom-logo.hero-selector-title-image {
  display: block !important;
  max-height: 46px !important;
  max-width: 156px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  transform: scale(1) !important;
  transform-origin: center center !important;
  transition: transform 0.22s ease, opacity 0.22s ease !important;
  will-change: transform;
}

#heroSection .hero-selector-wrap button:hover .hero-bottom-logo.hero-selector-title-image,
#heroSection .hero-selector-wrap .hero-selector-button:hover .hero-bottom-logo.hero-selector-title-image {
  max-height: 46px !important;
  max-width: 156px !important;
  width: auto !important;
  height: auto !important;
  transform: scale(1.05) !important;
}

#heroSection .hero-selector-wrap button.is-active .hero-bottom-logo.hero-selector-title-image,
#heroSection .hero-selector-wrap .hero-selector-button.is-active .hero-bottom-logo.hero-selector-title-image {
  opacity: 1 !important;
  max-height: 46px !important;
  max-width: 156px !important;
  width: auto !important;
  height: auto !important;
  transform: scale(1) !important;
}

#heroSection .hero-selector-wrap .hero-bottom-logo.hero-selector-title-image.hero-logo-offline-fix {
  position: relative;
  top: -10px;
}

.hero-title-logo,
.hero-selector-title-image,
.hero-bottom-logo {
  opacity: 1;
  transition: opacity 0.15s ease;
}

.hero-title-logo,
.title-branding__logo.hero-title-logo {
  max-height: 180px !important;
  max-width: min(520px, 78vw) !important;
  object-fit: contain !important;
}
