/* =====================================================
   MyFlixer Homepage Styles
   Dark cinematic hero section with search
   ===================================================== */

/* Hero section - central focus */
.myflixer-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  position: relative;
}

/* Logo on homepage */
.main-logo {
  margin-bottom: 30px;
}

.main-logo img {
  max-width: 92px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
}

/* Domain notice between logo and search */
.domain-notice {
  max-width: 800px;
  margin: 0 auto 25px;
  padding: 16px 24px;
  background: rgba(79, 111, 255, 0.01);
  border: 1.5px solid rgba(79, 111, 255, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.domain-notice p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  text-align: center;
}

.domain-notice .domain-link {
  display: inline-block;
  position: relative;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: var(--mf-grad);
  padding: 4px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(77, 157, 255, 0.4);
  margin: 0 2px;
}

.domain-notice .domain-link:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(77, 157, 255, 0.6);
  background: var(--mf-grad-h);
}

.domain-notice .domain-link::before {
  content: '🌐';
  margin-right: 6px;
  font-size: 1.1em;
}

@media (max-width: 768px) {
  .domain-notice {
    padding: 14px 18px;
    margin-bottom: 20px;
  }
  
  .domain-notice p {
    font-size: 0.9rem;
  }
  
  .domain-notice .domain-link {
    display: block;
    margin-top: 8px;
    padding: 8px 16px;
  }
}

/* MyFlixer heading */
.myflixer-heading {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--mf-white);
  margin-bottom: 30px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

/* Search wrapper on main page */
.search-main {
  max-width: 100%;
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .search-main {
    max-width: 1140px;
    padding: 0 calc((100% - 83.33333%) / 2);
  }
}

@media (min-width: 1200px) {
  .search-main {
    max-width: 1140px;
  }
}

.search-main .search-form-custom {
  position: relative;
  width: 100%;
  display: block !important;
  padding: 0 !important;
}

.search-main .search-form-custom__label {
  position: relative;
  display: block !important;
  width: 100% !important;
  flex: none !important;
}

.search-main .search-form-custom .search-field {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: #1a1a2e !important;
  font-size: 18px !important;
  padding: 18px 70px 18px 24px !important;
  border-radius: 12px !important;
  width: 100% !important;
}

.search-main .search-form-custom .search-field::placeholder {
  color: rgba(26, 26, 46, 0.5);
}

.search-main .search-form-custom .search-field:focus {
  border-color: var(--mf-bright-blue) !important;
  box-shadow: 0 0 0 4px rgba(77, 157, 255, 0.2) !important;
}

.search-main .search-form-custom__submit {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  min-width: 56px !important;
  min-height: 44px !important;
  width: 56px !important;
  height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--mf-grad) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(77, 157, 255, 0.3) !important;
  transition: all 0.2s ease !important;
}

.search-main .search-form-custom__submit:hover {
  background: var(--mf-grad-h) !important;
  box-shadow: 0 4px 12px rgba(77, 157, 255, 0.4) !important;
}

.search-main .search-form-custom__submit-text {
  display: none !important;
}

.search-main .search-form-custom__submit-icon {
  display: inline-flex !important;
  font-size: 20px !important;
}

/* Buttons on homepage */
.btn-primary {
  background: var(--mf-grad) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 18px;
  box-shadow: 0 6px 25px rgba(77, 157, 255, 0.4);
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--mf-grad-h) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(77, 157, 255, 0.5) !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 18px;
  transition: all 0.3s ease;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-2px);
}

/* View Full Site button */
.btn-view-site {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 28px rgba(15, 25, 45, 0.4);
  transition: all 0.3s ease;
  margin: 0;
}

.btn-view-site:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(15, 25, 45, 0.5);
  color: #fff;
  text-decoration: none;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn-view-site--outline {
  background: transparent;
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 28px rgba(15, 25, 45, 0.4);
  color: #fff;
}

.btn-view-site--outline:hover,
.btn-view-site--outline:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(15, 25, 45, 0.5);
}

/* Content sections with white background */
.content-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Text adjustments for dark theme */
.content-section h2 {
  color: var(--mf-dark-blue);
}

.content-section p {
  color: #4a5568;
  line-height: 1.8;
}

/* Recently added h1 - white color */
.recently-added-h1 {
  color: var(--mf-white) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.recently-added-h1::after {
  background: var(--mf-grad) !important;
}

/* SEO text section on dark background */
.seo-text {
  color: var(--mf-text-light) !important;
}

.seo-text h2,
.seo-text h3 {
  color: var(--mf-white) !important;
}

.seo-text p {
  color: #ffffff;
}

.seo-text a {
  color: var(--mf-bright-blue);
}

.seo-text a:hover {
  color: var(--mf-light-blue);
}

.seo-text .what-is-heading {
  color: var(--mf-white) !important;
  border-bottom-color: rgba(77, 157, 255, 0.3) !important;
}

.seo-text .what-is-heading::before {
  color: var(--mf-bright-blue) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .myflixer-hero {
    min-height: 50vh;
    padding: 40px 15px;
  }
  
  .myflixer-heading {
    font-size: 2rem;
  }
  
  .main-logo img {
    max-width: 115px;
  }
}

/* MyFlixer homepage information blocks */
.myflixer-info-section {
  position: relative;
  margin-top: 34px;
  text-align: left !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.myflixer-info-section,
.myflixer-info-section * {
  box-sizing: border-box;
}

.myflixer-info-panel {
  position: relative;
  overflow: visible;
  padding: 0 0 26px;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.myflixer-info-panel::before,
.myflixer-info-panel::after {
  display: none !important;
  content: none !important;
}

.myflixer-info-panel--primary {
  margin-bottom: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(180, 216, 255, 0.16) !important;
}

.myflixer-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
}

.myflixer-info-grid .myflixer-info-panel {
  padding-top: 0;
}

.myflixer-info-kicker {
  display: block;
  margin: 0 0 8px;
  color: rgba(157, 204, 255, 0.78);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.myflixer-info-title {
  margin: 0 0 14px !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  border: 0 !important;
  text-shadow: none !important;
}

.myflixer-info-title::before,
.myflixer-info-title::after {
  display: none !important;
  content: none !important;
}

.myflixer-info-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 30px;
}

.myflixer-info-section p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

.myflixer-info-section p:last-child {
  margin-bottom: 0;
}

.myflixer-info-list {
  display: block;
  margin: 14px 0 0;
  padding-left: 1.25rem;
  list-style: decimal;
  counter-reset: none;
}

.myflixer-info-list li {
  position: static;
  min-height: 0;
  margin: 0 0 10px;
  padding-left: 0.2rem;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  list-style: decimal;
  counter-increment: none;
}

.myflixer-info-list li::before {
  display: none !important;
  content: none !important;
}

.myflixer-info-note {
  margin-top: 14px !important;
  padding: 0;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65 !important;
}

html[data-theme="light"] .myflixer-info-section,
html[data-theme="light"] .myflixer-info-section p,
html[data-theme="light"] .myflixer-info-list li,
html[data-theme="light"] .myflixer-info-note {
  color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="light"] .myflixer-info-kicker {
  color: rgba(192, 224, 255, 0.82);
}

html[data-theme="dark"] .myflixer-info-section,
html[data-theme="dark"] .myflixer-info-section p,
html[data-theme="dark"] .myflixer-info-list li,
html[data-theme="dark"] .myflixer-info-note {
  color: rgba(232, 240, 255, 0.86) !important;
}

html[data-theme="dark"] .myflixer-info-kicker {
  color: rgba(143, 197, 255, 0.82);
}

html[data-theme="dark"] .myflixer-info-panel--primary {
  border-bottom-color: rgba(126, 183, 245, 0.18) !important;
}

@media (max-width: 991.98px) {
  .myflixer-info-copy,
  .myflixer-info-grid {
    grid-template-columns: 1fr;
  }

  .myflixer-info-grid {
    gap: 26px;
  }
}

@media (max-width: 575.98px) {
  .myflixer-info-section {
    margin-top: 26px;
  }

  .myflixer-info-panel,
  .myflixer-info-panel--primary {
    padding-bottom: 24px;
  }

  .myflixer-info-title {
    font-size: 1.15rem;
  }

  .myflixer-info-kicker {
    font-size: 0.82rem;
  }

  .myflixer-info-section p,
  .myflixer-info-list li,
  .myflixer-info-note {
    font-size: 1rem;
  }
}

/* Floating catalog statistics under the homepage search */
.home-catalog-stats {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 20px auto 0;
  max-width: 720px;
  width: min(100%, 720px);
  color: #ffffff;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.22));
}

.home-catalog-stat {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 4px 22px 2px;
  text-align: center;
}

.home-catalog-stat + .home-catalog-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.34), transparent);
}

.home-catalog-stat__value {
  display: block;
  font-size: clamp(0.9rem, 2.05vw, 1.45rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.045em;
  color: #ffffff;
  text-shadow: 0 4px 22px rgba(77, 157, 255, 0.34), 0 2px 12px rgba(0, 0, 0, 0.32);
}

.home-catalog-stat__label {
  display: block;
  margin-top: 8px;
  font-size: 0.48rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 240, 255, 0.82);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .home-catalog-stats,
html[data-theme="dark"] .home-catalog-stats {
  filter: drop-shadow(0 18px 38px rgba(77, 157, 255, 0.11));
}

[data-theme="dark"] .home-catalog-stat__value,
html[data-theme="dark"] .home-catalog-stat__value {
  color: #f4f8ff;
  text-shadow: 0 4px 24px rgba(77, 157, 255, 0.42), 0 2px 14px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .home-catalog-stat__label,
html[data-theme="dark"] .home-catalog-stat__label {
  color: rgba(208, 223, 245, 0.78);
}

[data-theme="dark"] .home-catalog-stat + .home-catalog-stat::before,
html[data-theme="dark"] .home-catalog-stat + .home-catalog-stat::before {
  background: linear-gradient(180deg, transparent, rgba(77, 157, 255, 0.34), transparent);
}

@media (max-width: 768px) {
  .home-catalog-stats {
    margin-top: 18px;
    max-width: 100%;
  }

  .home-catalog-stat {
    padding: 2px 10px 0;
  }

  .home-catalog-stat__value {
    font-size: clamp(0.72rem, 4vw, 0.96rem);
    letter-spacing: -0.035em;
  }

  .home-catalog-stat__label {
    margin-top: 6px;
    font-size: 0.39rem;
    letter-spacing: 0.11em;
  }
}

/* =====================================================
   Homepage cinematic poster collage hero
   ===================================================== */
.myflixer-hero {
  min-height: clamp(620px, 76vh, 860px);
  padding: 110px 20px 86px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 16% 18%, rgba(96, 169, 255, 0.26), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(0, 207, 255, 0.16), transparent 34%),
    radial-gradient(circle at 50% 88%, rgba(7, 18, 35, 0.72), transparent 48%),
    linear-gradient(180deg, #173c67 0%, #1e4d7d 42%, #15385f 100%);
}

.myflixer-hero::before,
.myflixer-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.myflixer-hero::before {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(7, 20, 38, 0.16) 0%, rgba(15, 43, 73, 0.38) 34%, rgba(20, 51, 83, 0.78) 100%),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.04) 0%, transparent 46%);
}

.myflixer-hero::after {
  z-index: 3;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 38%, rgba(4, 12, 24, 0.12) 58%, rgba(2, 8, 18, 0.42) 78%, rgba(1, 4, 10, 0.76) 100%),
    linear-gradient(90deg, rgba(2, 8, 18, 0.70) 0%, rgba(2, 8, 18, 0.18) 12%, rgba(2, 8, 18, 0.08) 20%, rgba(2, 8, 18, 0.08) 80%, rgba(2, 8, 18, 0.18) 88%, rgba(2, 8, 18, 0.70) 100%),
    linear-gradient(180deg, rgba(2, 8, 18, 0.52) 0%, rgba(2, 8, 18, 0.12) 14%, rgba(2, 8, 18, 0.10) 78%, rgba(2, 8, 18, 0.62) 100%);
}

html[data-theme="dark"] .myflixer-hero {
  background:
    radial-gradient(circle at 16% 18%, rgba(77, 157, 255, 0.18), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(0, 207, 255, 0.10), transparent 34%),
    radial-gradient(circle at 50% 88%, rgba(3, 9, 20, 0.82), transparent 50%),
    linear-gradient(180deg, #081328 0%, #0f2a4b 46%, #061121 100%);
}

.mfx-home-hero-content {
  position: relative;
  z-index: 7;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mfx-home-collage {
  position: absolute;
  inset: -24px -8vw -28px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
}

.mfx-home-collage__lane {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: stretch;
  gap: 0;
  width: max-content;
  will-change: transform;
}

.mfx-home-collage__lane--a {
  top: 0;
  transform: translate3d(calc(-50% + (var(--mfx-home-parallax-x, 0px) * 0.18)), calc(var(--mfx-home-parallax-y, 0px) * 0.10), 0);
  opacity: 0.68;
}

.mfx-home-collage__lane--b {
  top: 252px;
  transform: translate3d(calc(-50% + (var(--mfx-home-parallax-x, 0px) * -0.12)), calc(var(--mfx-home-parallax-y, 0px) * 0.06), 0);
  opacity: 0.58;
}

.mfx-home-collage__lane--c {
  top: 504px;
  transform: translate3d(calc(-50% + (var(--mfx-home-parallax-x, 0px) * 0.09)), calc(var(--mfx-home-parallax-y, 0px) * 0.04), 0);
  opacity: 0.50;
}

.mfx-home-collage__lane--d {
  top: 756px;
  transform: translate3d(calc(-50% + (var(--mfx-home-parallax-x, 0px) * -0.06)), calc(var(--mfx-home-parallax-y, 0px) * 0.02), 0);
  opacity: 0.38;
}

.mfx-home-collage__poster {
  position: relative;
  flex: 0 0 auto;
  width: 168px;
  aspect-ratio: 2 / 3;
  border-radius: 0;
  overflow: hidden;
  background-image: var(--mfx-home-poster);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08) contrast(1.08) brightness(0.98);
  box-shadow: none;
}

.mfx-home-collage__poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 8, 18, 0.02) 0%, rgba(4, 14, 30, 0.08) 48%, rgba(2, 8, 18, 0.18) 100%);
}

.mfx-home-collage__lane--b .mfx-home-collage__poster {
  filter: saturate(1.05) contrast(1.06) brightness(0.94);
}

.mfx-home-collage__lane--c .mfx-home-collage__poster {
  filter: saturate(1.02) contrast(1.04) brightness(0.88);
}

.mfx-home-collage__lane--d .mfx-home-collage__poster {
  filter: saturate(1.01) contrast(1.02) brightness(0.80);
}
.mfx-home-hero-light {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.62;
}

.mfx-home-hero-light--one {
  width: 460px;
  height: 260px;
  left: 13%;
  top: 19%;
  background: radial-gradient(circle, rgba(94, 174, 255, 0.26), transparent 64%);
}

.mfx-home-hero-light--two {
  width: 520px;
  height: 300px;
  right: 10%;
  top: 13%;
  background: radial-gradient(circle, rgba(0, 207, 255, 0.13), transparent 66%);
}

.mfx-home-hero-grain {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

html[data-theme="dark"] .mfx-home-hero-grain {
  opacity: 0.16;
}


.myflixer-hero-title {
  position: relative;
  z-index: 7;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(2.15rem, 4.8vw, 4.15rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-align: center;
  text-shadow:
    0 4px 22px rgba(0, 0, 0, 0.55),
    0 0 34px rgba(77, 157, 255, 0.22);
}

.myflixer-hero-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, #00CFFF, #4F6FFF);
  box-shadow: 0 0 20px rgba(77, 157, 255, 0.36);
}

.myflixer-hero .main-logo {
  margin-bottom: 28px;
}

.myflixer-hero .main-logo img {
  filter: drop-shadow(0 16px 38px rgba(0, 0, 0, 0.42));
}

.myflixer-hero .search-main {
  max-width: 760px;
  padding: 0;
  filter: drop-shadow(0 26px 46px rgba(0, 0, 0, 0.30));
}

.myflixer-hero .search-main .search-form-custom .search-field {
  height: 66px !important;
  background: rgba(246, 250, 255, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.82) !important;
  border-radius: 9px !important;
  padding: 18px 74px 18px 24px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 18px 54px rgba(4, 12, 28, 0.22) !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.myflixer-hero .search-main .search-form-custom .search-field:focus {
  background: #ffffff !important;
  border-color: rgba(77, 157, 255, 0.9) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 4px rgba(77, 157, 255, 0.18),
    0 22px 64px rgba(4, 12, 28, 0.30) !important;
}

.myflixer-hero .search-main .search-form-custom__submit {
  right: 8px !important;
  width: 52px !important;
  height: 50px !important;
  min-width: 52px !important;
  min-height: 50px !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 24px rgba(77, 157, 255, 0.32) !important;
}

.myflixer-hero .search-main .search-form-custom__submit:hover {
  transform: translateY(-50%) scale(1.02) !important;
  box-shadow: 0 14px 30px rgba(77, 157, 255, 0.42) !important;
}

.myflixer-hero .home-catalog-stats {
  position: relative;
  z-index: 7;
  margin-top: 22px;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

.myflixer-hero-links {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 56px;
  width: 100%;
}

.myflixer-hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 330px;
  min-height: 62px;
  padding: 15px 24px;
  color: #ffffff;
  font-size: 1.08rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.018em;
  text-decoration: none !important;
  background:
    linear-gradient(180deg, rgba(14, 39, 68, 0.78), rgba(4, 14, 30, 0.62));
  border: 1px solid rgba(145, 190, 255, 0.34);
  border-radius: 8px;
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.myflixer-hero-link:hover,
.myflixer-hero-link:focus {
  color: #ffffff;
  transform: translateY(-1px);
  border-color: rgba(77, 157, 255, 0.76);
  background:
    linear-gradient(180deg, rgba(31, 82, 132, 0.88), rgba(8, 26, 52, 0.76));
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.30),
    0 0 0 3px rgba(77, 157, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.myflixer-hero-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.84);
  outline-offset: 3px;
}

.myflixer-hero-link__icon {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  object-fit: contain;
  display: block;
}

.myflixer-hero-link__text {
  white-space: nowrap;
}

html[data-theme="light"] .myflixer-hero-link,
[data-theme="light"] .myflixer-hero-link {
  background:
    linear-gradient(180deg, rgba(12, 38, 70, 0.76), rgba(5, 18, 38, 0.60));
  border-color: rgba(255, 255, 255, 0.42);
}

html[data-theme="dark"] .myflixer-hero-link,
[data-theme="dark"] .myflixer-hero-link {
  background:
    linear-gradient(180deg, rgba(10, 31, 58, 0.84), rgba(3, 10, 24, 0.74));
  border-color: rgba(77, 157, 255, 0.32);
}

/* Stronger first three positions in Featured Movies */
.featured-homepage-item--top {
  position: relative;
  min-height: 72px;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  background:
    linear-gradient(90deg, rgba(79, 111, 255, 0.055), rgba(0, 207, 255, 0.025), transparent 88%);
}

.featured-homepage-item--top:hover {
  background:
    linear-gradient(90deg, rgba(79, 111, 255, 0.105), rgba(0, 207, 255, 0.045), transparent 92%) !important;
}

.featured-homepage-item--top .featured-homepage-num {
  min-width: 32px;
  font-size: 1.06rem;
  font-weight: 900;
  color: rgba(79, 111, 255, 0.82);
}

.featured-homepage-item--rank-1 .featured-homepage-num {
  color: #2563eb;
  text-shadow: 0 0 18px rgba(79, 157, 255, 0.28);
}

.featured-homepage-item--top .featured-homepage-thumb {
  flex-basis: 34px;
  width: 34px;
  height: 48px;
  border-color: rgba(79, 111, 255, 0.34);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.20);
}

.featured-homepage-item--top .featured-homepage-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.featured-homepage-item--top .featured-homepage-year,
.featured-homepage-item--top .featured-homepage-genres {
  font-size: 0.82rem;
}

.featured-homepage-item--top .featured-homepage-rating-value {
  font-size: 0.9rem;
}

html[data-theme="dark"] .featured-homepage-item--top {
  background:
    linear-gradient(90deg, rgba(77, 157, 255, 0.12), rgba(0, 207, 255, 0.045), transparent 90%);
}

html[data-theme="dark"] .featured-homepage-item--top:hover {
  background:
    linear-gradient(90deg, rgba(77, 157, 255, 0.18), rgba(0, 207, 255, 0.07), transparent 92%) !important;
}

html[data-theme="dark"] .featured-homepage-item--top .featured-homepage-num {
  color: rgba(143, 197, 255, 0.9);
}

@media (max-width: 991.98px) {
  .myflixer-hero {
    min-height: 640px;
    padding-top: 95px;
    padding-bottom: 76px;
  }

  .mfx-home-collage {
    inset: -12px -16vw -12px;
  }

  .mfx-home-collage__lane--a {
    top: 0;
  }

  .mfx-home-collage__lane--b {
    top: 210px;
  }

  .mfx-home-collage__lane--c {
    top: 420px;
  }

  .mfx-home-collage__lane--d {
    top: 630px;
  }

  .mfx-home-collage__poster {
    width: 140px;
  }

  .mfx-home-collage__lane .mfx-home-collage__poster:nth-child(n+17) {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .myflixer-hero {
    min-height: 560px;
    padding: 78px 16px 64px;
  }

  .mfx-home-collage {
    inset: 0 -34vw 18%;
    opacity: 0.92;
  }

  .mfx-home-collage__lane--a {
    top: 0;
    opacity: 0.42;
    transform: translate3d(calc(-50% + (var(--mfx-home-parallax-x, 0px) * 0.08)), 0, 0);
  }

  .mfx-home-collage__lane--b {
    top: 168px;
    opacity: 0.34;
    transform: translate3d(calc(-50% + (var(--mfx-home-parallax-x, 0px) * -0.06)), 0, 0);
  }

  .mfx-home-collage__lane--c,
  .mfx-home-collage__lane--d {
    display: none;
  }

  .mfx-home-collage__poster {
    width: 112px;
  }

  .mfx-home-collage__lane .mfx-home-collage__poster:nth-child(n+13) {
    display: none;
  }

  .mfx-home-hero-light--one,
  .mfx-home-hero-light--two {
    width: 260px;
    height: 180px;
    filter: blur(42px);
  }

  .mfx-home-hero-light--one {
    left: 8%;
    top: 16%;
    opacity: 0.48;
  }

  .mfx-home-hero-light--two {
    right: 6%;
    top: 22%;
    opacity: 0.32;
  }

  .myflixer-hero .search-main {
    max-width: 100%;
  }

  .myflixer-hero .search-main .search-form-custom .search-field {
    height: 58px !important;
    font-size: 15px !important;
    padding-left: 18px !important;
    padding-right: 64px !important;
  }

  .myflixer-hero .search-main .search-form-custom__submit {
    width: 46px !important;
    height: 44px !important;
    min-width: 46px !important;
    min-height: 44px !important;
  }

  .myflixer-hero-links {
    flex-direction: column;
    gap: 12px;
    margin-top: 34px;
  }

  .myflixer-hero-link {
    width: min(100%, 340px);
    min-height: 54px;
    padding: 12px 18px;
    font-size: 0.95rem;
    border-radius: 7px;
  }

  .myflixer-hero-link__icon {
    width: 27px;
    height: 27px;
  }

  .mfx-home-hero-grain {
    opacity: 0.07;
  }

  .featured-homepage-item--top {
    min-height: 62px;
  }

  .featured-homepage-item--top .featured-homepage-thumb {
    flex-basis: 26px;
    width: 26px;
    height: 38px;
  }

  .featured-homepage-item--top .featured-homepage-num {
    min-width: 26px;
    font-size: 0.94rem;
  }

  .featured-homepage-item--top .featured-homepage-title {
    font-size: 0.94rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mfx-home-collage__poster {
    transform: rotate(var(--mfx-rotate, 0deg));
    will-change: auto;
  }
}

@media (max-width: 767.98px) {
  .myflixer-hero-title {
    margin-bottom: 16px;
    font-size: clamp(1.9rem, 10vw, 3.15rem);
    letter-spacing: 0.045em;
  }

  .myflixer-hero-title::after {
    width: 54px;
    margin-top: 11px;
  }
}

/* =====================================================
   2026-06-10: Homepage color scheme accents
   Uses global variables from main.css. Rating badges are not touched.
   ===================================================== */
html[data-mf-color] .home-catalog-stats {
  filter: drop-shadow(0 18px 38px var(--mf-accent-glow));
}

html[data-mf-color] .home-catalog-stat__value {
  color: var(--mf-heading-tint) !important;
  text-shadow: 0 4px 24px var(--mf-accent-glow), 0 2px 14px rgba(0, 0, 0, 0.65) !important;
}

html[data-mf-color] .home-catalog-stat__label {
  color: color-mix(in srgb, var(--mf-accent) 58%, rgba(208, 223, 245, 0.78)) !important;
}

html[data-mf-color] .home-catalog-stat + .home-catalog-stat::before {
  background: linear-gradient(180deg, transparent, var(--mf-accent-line), transparent) !important;
}

html[data-mf-color] .featured-homepage-item--top {
  border-color: var(--mf-accent-border) !important;
  background: linear-gradient(135deg, var(--mf-accent-panel), rgba(255,255,255,0.02)) !important;
}

html[data-mf-color] .featured-homepage-item--top:hover {
  background: linear-gradient(135deg, var(--mf-accent-panel-strong), rgba(255,255,255,0.025)) !important;
}

html[data-mf-color] .featured-homepage-item--top .featured-homepage-num,
html[data-mf-color] .featured-homepage-heading,
html[data-mf-color] .featured-homepage-title:hover {
  color: var(--mf-accent) !important;
}

html[data-mf-color] .featured-homepage-heading::after,
html[data-mf-color] .featured-homepage-header::before {
  background: var(--mf-accent) !important;
  box-shadow: 0 0 18px var(--mf-accent-glow) !important;
}

/* =====================================================
   2026-06-10: Light theme contrast pass for homepage featured lists
   Keeps IMDb/TMDB rating badges untouched.
   ===================================================== */
html[data-theme="light"] .featured-homepage-block,
html[data-theme="light"] body .featured-homepage-block {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: color-mix(in srgb, var(--mf-accent-strong, #4d9dff) 34%, rgba(15, 23, 42, 0.18)) !important;
  box-shadow:
    0 16px 44px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.82) inset !important;
}

html[data-theme="light"] .featured-homepage-header,
html[data-theme="light"] body .featured-homepage-header {
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--mf-accent, #6bb3ff) 10%, #ffffff 90%) 0%,
      rgba(255, 255, 255, 0.96) 100%) !important;
  border-bottom-color: color-mix(in srgb, var(--mf-accent-strong, #4d9dff) 22%, rgba(15, 23, 42, 0.14)) !important;
}

html[data-theme="light"] .featured-homepage-heading,
html[data-theme="light"] body .featured-homepage-heading {
  color: color-mix(in srgb, var(--mf-accent-strong, #4d9dff) 44%, #111827 56%) !important;
  text-shadow: none !important;
}

html[data-theme="light"] .featured-homepage-heading::after,
html[data-theme="light"] .featured-homepage-header::before,
html[data-theme="light"] body .featured-homepage-heading::after,
html[data-theme="light"] body .featured-homepage-header::before {
  background: color-mix(in srgb, var(--mf-accent-strong, #4d9dff) 72%, #111827 28%) !important;
  box-shadow: none !important;
}

html[data-theme="light"] .featured-homepage-item,
html[data-theme="light"] body .featured-homepage-item {
  border-bottom-color: rgba(15, 23, 42, 0.075) !important;
}

html[data-theme="light"] .featured-homepage-item:hover,
html[data-theme="light"] body .featured-homepage-item:hover {
  background: color-mix(in srgb, var(--mf-accent, #6bb3ff) 7%, #ffffff 93%) !important;
}

html[data-theme="light"] .featured-homepage-num,
html[data-theme="light"] body .featured-homepage-num {
  color: color-mix(in srgb, var(--mf-accent-strong, #4d9dff) 60%, #1f2937 40%) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .featured-homepage-title,
html[data-theme="light"] body .featured-homepage-title {
  color: #111827 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .featured-homepage-title:hover,
html[data-theme="light"] body .featured-homepage-title:hover {
  color: color-mix(in srgb, var(--mf-accent-strong, #4d9dff) 72%, #111827 28%) !important;
}

html[data-theme="light"] .featured-homepage-year,
html[data-theme="light"] body .featured-homepage-year {
  color: #475569 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .featured-homepage-genres,
html[data-theme="light"] body .featured-homepage-genres {
  color: #334155 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .featured-homepage-thumb,
html[data-theme="light"] body .featured-homepage-thumb {
  border-color: rgba(15, 23, 42, 0.16) !important;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.18) !important;
}

/* =====================================================
   2026-06-10 v7: hard light-mode readability fix for homepage Featured Movies.
   This block is intentionally last in myflixer-home.css and targets the real
   homepage classes from the rendered page. Rating badges stay untouched.
   ===================================================== */
html[data-theme="light"] body.home .featured-homepage-block,
body[data-theme="light"].home .featured-homepage-block,
[data-theme="light"] body.home .featured-homepage-block {
  background: rgba(247, 250, 255, 0.965) !important;
  color: #162033 !important;
  border-color: rgba(22, 37, 63, 0.16) !important;
  box-shadow: 0 18px 48px rgba(20, 40, 72, 0.16) !important;
}

html[data-theme="light"] body.home .featured-homepage-header,
body[data-theme="light"].home .featured-homepage-header,
[data-theme="light"] body.home .featured-homepage-header {
  background: rgba(255, 255, 255, 0.72) !important;
  border-bottom-color: rgba(22, 37, 63, 0.14) !important;
}

html[data-theme="light"] body.home .featured-homepage-heading,
body[data-theme="light"].home .featured-homepage-heading,
[data-theme="light"] body.home .featured-homepage-heading {
  color: color-mix(in srgb, var(--mf-accent-strong, #2f6fb8) 50%, #162033 50%) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="light"] body.home .featured-homepage-heading::after,
html[data-theme="light"] body.home .featured-homepage-header::before,
body[data-theme="light"].home .featured-homepage-heading::after,
body[data-theme="light"].home .featured-homepage-header::before,
[data-theme="light"] body.home .featured-homepage-heading::after,
[data-theme="light"] body.home .featured-homepage-header::before {
  background: color-mix(in srgb, var(--mf-accent-strong, #2f6fb8) 72%, #162033 28%) !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.home .featured-homepage-item,
body[data-theme="light"].home .featured-homepage-item,
[data-theme="light"] body.home .featured-homepage-item {
  background: transparent !important;
  border-bottom-color: rgba(22, 37, 63, 0.10) !important;
}

html[data-theme="light"] body.home .featured-homepage-item:nth-child(even),
body[data-theme="light"].home .featured-homepage-item:nth-child(even),
[data-theme="light"] body.home .featured-homepage-item:nth-child(even) {
  background: rgba(32, 62, 96, 0.035) !important;
}

html[data-theme="light"] body.home .featured-homepage-item:hover,
body[data-theme="light"].home .featured-homepage-item:hover,
[data-theme="light"] body.home .featured-homepage-item:hover {
  background: color-mix(in srgb, var(--mf-accent, #6bb3ff) 9%, rgba(255, 255, 255, 0.94) 91%) !important;
}

html[data-theme="light"] body.home .featured-homepage-num,
body[data-theme="light"].home .featured-homepage-num,
[data-theme="light"] body.home .featured-homepage-num {
  color: color-mix(in srgb, var(--mf-accent-strong, #2f6fb8) 68%, #24344d 32%) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="light"] body.home .featured-homepage-title,
html[data-theme="light"] body.home .featured-homepage-title:visited,
body[data-theme="light"].home .featured-homepage-title,
body[data-theme="light"].home .featured-homepage-title:visited,
[data-theme="light"] body.home .featured-homepage-title,
[data-theme="light"] body.home .featured-homepage-title:visited {
  color: #111827 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="light"] body.home .featured-homepage-title:hover,
body[data-theme="light"].home .featured-homepage-title:hover,
[data-theme="light"] body.home .featured-homepage-title:hover {
  color: color-mix(in srgb, var(--mf-accent-strong, #2f6fb8) 70%, #111827 30%) !important;
}

html[data-theme="light"] body.home .featured-homepage-year,
body[data-theme="light"].home .featured-homepage-year,
[data-theme="light"] body.home .featured-homepage-year {
  color: #526174 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="light"] body.home .featured-homepage-genres,
body[data-theme="light"].home .featured-homepage-genres,
[data-theme="light"] body.home .featured-homepage-genres {
  color: #334155 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="light"] body.home .featured-homepage-thumb,
body[data-theme="light"].home .featured-homepage-thumb,
[data-theme="light"] body.home .featured-homepage-thumb {
  border-color: rgba(22, 37, 63, 0.18) !important;
  box-shadow: 0 1px 7px rgba(20, 40, 72, 0.22) !important;
}

html[data-theme="light"] body.home .featured-homepage-rating,
body[data-theme="light"].home .featured-homepage-rating,
[data-theme="light"] body.home .featured-homepage-rating {
  opacity: 1 !important;
}

/* =====================================================
   2026-06-10 v8: final light-mode Featured Movies readability fix.
   Uses exact rendered homepage selectors and text-fill fallback.
   ===================================================== */
html[data-theme="light"] body.home #page .featured-homepage-block,
html[data-theme="light"] body.home .site .featured-homepage-block {
  background: rgba(248, 251, 255, 0.975) !important;
  border-color: rgba(25, 42, 68, 0.20) !important;
  color: #152033 !important;
}

html[data-theme="light"] body.home #page .featured-homepage-block .featured-homepage-heading {
  color: #24344d !important;
  -webkit-text-fill-color: #24344d !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="light"] body.home #page .featured-homepage-block .featured-homepage-num {
  color: #2f6fb8 !important;
  -webkit-text-fill-color: #2f6fb8 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="light"] body.home #page .featured-homepage-block .featured-homepage-title-wrap,
html[data-theme="light"] body.home #page .featured-homepage-block .featured-homepage-title-wrap *:not(.featured-homepage-rating):not(.featured-homepage-rating *) {
  opacity: 1 !important;
  text-shadow: none !important;
  mix-blend-mode: normal !important;
}

html[data-theme="light"] body.home #page .featured-homepage-block a.featured-homepage-title,
html[data-theme="light"] body.home #page .featured-homepage-block a.featured-homepage-title:link,
html[data-theme="light"] body.home #page .featured-homepage-block a.featured-homepage-title:visited,
html[data-theme="light"] body.home #page .featured-homepage-block .featured-homepage-title {
  color: #101827 !important;
  -webkit-text-fill-color: #101827 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  mix-blend-mode: normal !important;
}

html[data-theme="light"] body.home #page .featured-homepage-block a.featured-homepage-title:hover {
  color: #1f5f9f !important;
  -webkit-text-fill-color: #1f5f9f !important;
}

html[data-theme="light"] body.home #page .featured-homepage-block .featured-homepage-year {
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="light"] body.home #page .featured-homepage-block .featured-homepage-genres {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  mix-blend-mode: normal !important;
}

html[data-theme="light"] body.home #page .featured-homepage-block .featured-homepage-rating,
html[data-theme="light"] body.home #page .featured-homepage-block .featured-homepage-rating * {
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}
