/* ==========================================================================
   NeonFilmyCab — hero.css
   Featured hero slider (homepage) — cinematic backdrop + poster card
   ========================================================================== */

.fmc-hero { position: relative; isolation: isolate; overflow: hidden; background: #04050b; }

.fmc-hero__track { position: relative; min-height: 300px; }

.fmc-hero__slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
  display: grid; align-items: center;
}
.fmc-hero__slide.is-active { position: relative; opacity: 1; visibility: visible; }

.fmc-hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.fmc-hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  transform: scale(1.06); transition: transform 7s ease-out;
  filter: saturate(1.05);
}
.fmc-hero__slide.is-active .fmc-hero__bg img { transform: scale(1); }
/* Poster-derived backdrop when no wide image is set */
.fmc-hero__bg--blur img { filter: blur(26px) saturate(1.2) brightness(.75); transform: scale(1.25); }

.fmc-hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 5, 11, .96) 0%, rgba(4, 5, 11, .78) 42%, rgba(4, 5, 11, .28) 75%, rgba(4, 5, 11, .55) 100%),
    linear-gradient(0deg, rgba(4, 5, 11, .98) 2%, rgba(4, 5, 11, .25) 45%, rgba(4, 5, 11, .35) 100%);
}

.fmc-hero__inner {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  padding-block: 34px 40px; align-items: center;
}

.fmc-hero__badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.fmc-hero__dot { color: var(--movie-accent); font-weight: 800; }
.fmc-hero__year { color: var(--movie-accent); font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .06em; }

.fmc-hero__title {
  font-size: clamp(30px, 7.4vw, 62px);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.04;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .65);
}
.fmc-hero__title .yr { color: rgba(238, 241, 255, .55); font-weight: 700; }

.fmc-hero__sub {
  margin-top: 8px; font-family: var(--font-display); font-weight: 800;
  color: var(--fmc-yellow); font-size: clamp(14px, 2.6vw, 19px);
}
.fmc-hero__tagline { margin: 8px 0 0; color: #b9c1de; font-style: italic; font-size: clamp(13.5px, 2.2vw, 16.5px); max-width: 56ch; }

.fmc-hero__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.fmc-hero__actions { margin-top: 18px; display: grid; gap: 12px; max-width: 560px; }
.fmc-hero__qualities { display: flex; gap: 9px; flex-wrap: wrap; }

.fmc-hero__poster { display: none; }

/* IMDb chip (hero + single) */
.fmc-imdb-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(8, 10, 20, .8); border: 1px solid var(--fmc-line-strong);
  border-radius: 12px; padding: 9px 14px; backdrop-filter: blur(8px);
}
.fmc-imdb-chip .star { color: var(--fmc-yellow); }
.fmc-imdb-chip b { font-family: var(--font-display); font-size: 15px; line-height: 1.1; display: block; }
.fmc-imdb-chip span { display: block; font-size: 11.5px; color: var(--fmc-muted); font-weight: 700; }

/* Slider controls */
.fmc-hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 999px; display: none; place-items: center;
  background: rgba(8, 10, 20, .6); border: 1px solid var(--fmc-line-strong);
  color: #dfe4ff; backdrop-filter: blur(6px); transition: all .2s ease;
}
.fmc-hero__arrow:hover { color: var(--fmc-cyan); border-color: rgba(0, 217, 255, .55); background: rgba(0, 217, 255, .12); }
.fmc-hero__arrow--prev { left: 14px; }
.fmc-hero__arrow--next { right: 14px; }

.fmc-hero__dots {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 6;
  display: flex; gap: 8px;
}
.fmc-hero__dots button {
  width: 26px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .28);
  transition: all .25s ease; position: relative; overflow: hidden;
}
.fmc-hero__dots button[aria-current="true"] { background: rgba(255, 255, 255, .3); width: 44px; }
.fmc-hero__dots button[aria-current="true"]::after {
  content: ""; position: absolute; inset: 0; border-radius: 99px;
  background: var(--fmc-cyan); box-shadow: 0 0 12px rgba(0, 217, 255, .8);
  transform-origin: left; animation: fmc-dot-fill var(--slide-ms, 6000ms) linear forwards;
}
.fmc-hero.no-autoplay .fmc-hero__dots button[aria-current="true"]::after { animation: none; }
@keyframes fmc-dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
