/* Hot Movie Pass cinema pass.
   Structure from Max home (billboard, then poster rail), Prime Video row titles,
   Netflix nav density, Apple TV pill actions, Disney+ footer and sign-in fields.
   System fonts only. No new imagery. */

:root {
  --hmp-pass-bg: #070709 !important;
  --hmp-pass-elev: #141418 !important;
  --hmp-pass-line: rgba(255, 255, 255, 0.1) !important;
  --hmp-pass-text: #f4f1ea !important;
  --hmp-pass-muted: #c4c0b8 !important;
  --hmp-pass-amber: #ffb25a !important;
  --hmp-pass-ink: #14120e !important;
  --hmp-pass-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif !important;
}

html,
body {
  background: var(--hmp-pass-bg) !important;
  color: var(--hmp-pass-text) !important;
  overflow-x: clip !important;
  max-width: 100% !important;
}

body,
#root,
#root header,
#root main,
.hmp-brand-footer,
.hmp-recs,
.hmp-sub-cta,
.auth-card,
.field-input,
.field-label,
.hmp-nav-search__input,
.hmp-kids-cta-bar {
  font-family: var(--hmp-pass-sans) !important;
}

:focus-visible {
  outline: 2px solid var(--hmp-pass-amber) !important;
  outline-offset: 2px !important;
}

/* Header: solid blurred bar, search pill, light sign-in pill. */
#root header.sticky {
  background: rgba(7, 7, 9, 0.94) !important;
  border-bottom: 1px solid var(--hmp-pass-line) !important;
  backdrop-filter: blur(18px) !important;
  box-shadow: none !important;
}

#root header .shell-container {
  min-width: 0 !important;
  max-width: 1440px !important;
  gap: 1rem !important;
}

#root header nav[aria-label="Primary"] a {
  color: var(--hmp-pass-muted) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
}

#root header nav[aria-label="Primary"] a[aria-current="page"],
#root header nav[aria-label="Mobile"] a[aria-current="page"] {
  color: var(--hmp-pass-text) !important;
}

#root header nav[aria-label="Mobile"] {
  max-width: 100% !important;
  gap: 1.1rem !important;
  padding-inline: 1rem !important;
  border-top-color: transparent !important;
  scrollbar-width: none !important;
}

#root header a.btn.btn-primary {
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--hmp-pass-text) !important;
  color: var(--hmp-pass-ink) !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  min-height: 2.35rem !important;
  padding-inline: 0.95rem !important;
  box-shadow: none !important;
}

#root header a.btn.btn-primary:hover {
  background: #fff !important;
  color: #000 !important;
}

.hmp-nav-search {
  min-width: 0 !important;
}

.hmp-nav-search__input {
  border-radius: 999px !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--hmp-pass-text) !important;
  min-width: 0 !important;
}

.hmp-nav-search.is-focused .hmp-nav-search__input,
.hmp-nav-search.is-open .hmp-nav-search__input {
  border-color: var(--hmp-pass-amber) !important;
  background: #101014 !important;
}

.hmp-nav-search__drop {
  border-radius: 12px !important;
  background: #141418 !important;
}

/* Hero: editorial title, pill actions, fade into the rails. */
#root .hero-billboard {
  background: #070709 !important;
}

#root .hero-billboard h1 {
  font-family: var(--hmp-pass-sans) !important;
  font-weight: 700 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.02 !important;
  font-size: clamp(2.35rem, 5.2vw, 4.5rem) !important;
  text-wrap: balance !important;
}

#root .hero-billboard .hero-fade-in > p:first-child {
  letter-spacing: 0.14em !important;
  color: var(--hmp-pass-amber) !important;
  font-weight: 700 !important;
}

#root .hero-billboard .hero-fade-in > p {
  color: #e7e3db !important;
}

#root .hero-billboard .hero-cta-primary,
#root .hero-billboard .hero-cta-secondary {
  border-radius: 999px !important;
  min-height: 2.85rem !important;
  width: auto !important;
  min-width: 8.5rem !important;
  padding-inline: 1.25rem !important;
}

#root .hero-billboard .hero-cta-primary {
  background: #fff !important;
  color: #111 !important;
}

#root .hero-billboard .hero-cta-secondary {
  background: rgba(8, 8, 10, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  color: #fff !important;
}

#root .hero-billboard .relative.mx-auto {
  justify-content: flex-end !important;
  padding-bottom: 4.5rem !important;
}

/* Rails sit just under the billboard, like Max / Prime. */
#root main h2.font-display,
#root .hmp-recs__title,
#root .hmp-sub-cta__headline,
#root .hmp-sub-cta__kicker {
  font-family: var(--hmp-pass-sans) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  line-height: 1.2 !important;
}

#root main h2.font-display {
  font-size: 1.2rem !important;
  color: var(--hmp-pass-text) !important;
  margin-bottom: 0.7rem !important;
}

#root main a[class*="group/card"] [class*="aspect-"],
#root .hmp-recs__poster {
  border-radius: 10px !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35) !important;
}

#root .hmp-recs__poster,
#root .hmp-recs {
  animation: none !important;
}

#root .hmp-recs__name,
#root main a[class*="group/card"] p {
  color: #ebe7df !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

#root main .overflow-x-auto.scroll-smooth {
  gap: 0.8rem !important;
  max-width: 100% !important;
}

/* Subscribe band: quiet dark panel, one light primary button. */
.hmp-sub-cta--strip {
  background: #101014 !important;
  border-block: 1px solid var(--hmp-pass-line) !important;
  color: var(--hmp-pass-text) !important;
  animation: none !important;
}

.hmp-sub-cta__headline {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem) !important;
  color: #fff !important;
}

.hmp-sub-cta__btn {
  border-radius: 999px !important;
}

.hmp-sub-cta__btn--primary,
a.hmp-sub-cta__hero-btn {
  background: var(--hmp-pass-text) !important;
  color: var(--hmp-pass-ink) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.hmp-sub-cta__btn--primary:hover,
a.hmp-sub-cta__hero-btn:hover {
  background: #fff !important;
  color: #000 !important;
  filter: none !important;
}

.hmp-sub-cta__btn--ghost,
.hmp-sub-cta__btn--soft {
  border-radius: 999px !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: var(--hmp-pass-text) !important;
  background: transparent !important;
}

/* Kids strip stays readable, without the pale panel. */
.hmp-kids-cta-bar {
  background: #12181a !important;
  color: #f3f7f5 !important;
  border: 1px solid rgba(154, 214, 190, 0.35) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  animation: none !important;
}

.hmp-kids-cta-bar__copy,
.hmp-kids-cta-bar__copy strong,
.hmp-kids-cta-bar__copy span {
  color: #f3f7f5 !important;
  font-family: var(--hmp-pass-sans) !important;
}

.hmp-kids-cta-bar__close {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f3f7f5 !important;
}

.hmp-kids-cta-bar a,
.hmp-kids-cta-bar button:not(.hmp-kids-cta-bar__close) {
  border-radius: 999px !important;
}

/* Footer: centered logo, one quiet legal row. */
.hmp-brand-footer,
#root footer {
  background: #050506 !important;
  border-top: 1px solid var(--hmp-pass-line) !important;
  color: var(--hmp-pass-muted) !important;
  text-align: center !important;
}

.hmp-brand-footer__inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.9rem !important;
  max-width: 960px !important;
}

.hmp-brand-footer__brand {
  justify-content: center !important;
}

.hmp-brand-footer__nav,
#root footer nav {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.65rem 1.15rem !important;
}

.hmp-brand-footer__nav a,
#root footer a {
  color: #d5d2cb !important;
  text-decoration: none !important;
  font-size: 0.84rem !important;
}

.hmp-brand-footer__nav a:hover,
#root footer a:hover {
  color: #fff !important;
}

.hmp-brand-footer__copy {
  color: #b7b3ab !important;
  font-size: 0.8rem !important;
}

/* Sign-in and other field forms: stacked fields, one solid button. */
.auth-card {
  width: min(26.5rem, calc(100% - 2rem)) !important;
  margin-inline: auto !important;
  padding: 2rem 1.4rem 1.6rem !important;
  background: var(--hmp-pass-elev) !important;
  border: 1px solid var(--hmp-pass-line) !important;
  border-radius: 16px !important;
  box-sizing: border-box !important;
}

.auth-card h1 {
  font-family: var(--hmp-pass-sans) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  font-size: clamp(1.8rem, 4vw, 2.25rem) !important;
}

.field-label {
  display: block !important;
  margin-bottom: 0.4rem !important;
  color: #ddd9d1 !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
}

.field-input {
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 3rem !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: #0c0c10 !important;
  color: var(--hmp-pass-text) !important;
  padding: 0.7rem 0.85rem !important;
}

.field-input:focus {
  border-color: transparent !important;
}

.auth-card .btn.btn-primary,
.auth-card button[type="submit"] {
  width: 100% !important;
  min-height: 3rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--hmp-pass-text) !important;
  color: var(--hmp-pass-ink) !important;
  font-weight: 700 !important;
}

.hmp-oauth-btn {
  border-radius: 999px !important;
  background: #0c0c10 !important;
}

@media (max-width: 720px) {
  #root .hero-billboard {
    height: min(70vh, 560px) !important;
    min-height: 420px !important;
  }

  #root header .shell-container {
    gap: 0.45rem !important;
    padding-inline: 0.75rem !important;
  }

  .hmp-nav-search__input {
    width: 6.2rem !important;
  }

  .hmp-kids-cta-bar__inner,
  .hmp-sub-cta__actions {
    align-items: stretch !important;
  }

  .hmp-sub-cta__actions a,
  .hmp-kids-cta-bar__actions a,
  .hmp-kids-cta-bar__actions button {
    flex: 1 1 auto !important;
  }
}

@media (max-width: 390px) {
  .hmp-nav-search__input {
    width: 4.6rem !important;
    padding-inline: 0.55rem !important;
    font-size: 0.78rem !important;
  }

  #root header a.btn.btn-primary {
    padding-inline: 0.7rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body *,
  html body *::before,
  html body *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
