.hero {
  position: relative;
  width: 100%;
  min-height: clamp(300px, 52vw, 480px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Background image layer. Because .hero__inner (the text) sits in normal
   flow rather than being absolutely positioned, if the text ever needs
   more room than the min-height above, .hero simply grows taller to fit
   it — and since this layer is inset:0, the photo grows to match
   automatically. Text can never be pushed outside the photo area.

   On mobile the image fills the block edge-to-edge (object-fit: cover),
   which can crop the sides slightly. From tablet width up, the full image
   must stay uncropped, so it switches to object-fit: contain — any
   letterboxing is filled by the dark background and blends with the
   gradient. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--color-bg-dark);
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .hero__img {
    object-fit: contain;
  }
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 0, 47, 0.3) 0%, rgba(38, 0, 47, 0.55) 45%, rgba(20, 0, 26, 0.95) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: 1.5rem clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 760px;
}

.hero__breadcrumb {
  margin-bottom: 0.25rem;
}

.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  background: var(--color-accent-light);
  color: var(--color-btn-text-dark);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
}

.hero__rating-stars {
  color: var(--color-btn-text-dark);
  letter-spacing: 1px;
}

.hero__title {
  margin-bottom: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero__subtitle {
  color: var(--color-white);
  max-width: 620px;
  margin-bottom: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.hero__rating {
  text-shadow: none;
}

.hero__cta {
  align-self: flex-start;
  margin-top: 0.5rem;
}
