/* Detalle — movie.html */

/* Hero / backdrop: más alto y encuadre tipo mockup (se ve la escena inferior) */
.movie-backdrop {
  min-height: 240px;
  height: 38vh;
  max-height: 520px;
  background-size: cover;
  background-position: center 65%;
  background-repeat: no-repeat;
  position: relative;
}

@media (min-width: 768px) {
  .movie-backdrop {
    min-height: 320px;
    height: 42vh;
    background-position: center 60%;
  }
}

@media (min-width: 1024px) {
  .movie-backdrop {
    min-height: 400px;
    height: 48vh;
    background-position: center 55%;
  }
}

.movie-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 17, 23, 0.15) 0%,
    rgba(13, 17, 23, 0.55) 45%,
    var(--cs-bg) 100%
  );
}

/* Bloque principal: póster superpuesto al hero */
.movie-detail-wrap {
  position: relative;
  z-index: 2;
  margin-top: clamp(-5.5rem, -12vw, -3rem);
  padding-bottom: 2rem;
}

.detail-poster figure {
  margin: 0 auto;
  max-width: 240px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.detail-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tag-genre {
  border-color: var(--cs-accent) !important;
  color: #f8b4c4 !important;
  background: rgba(233, 69, 96, 0.18) !important;
}

.purchase-panel {
  background: var(--cs-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  max-width: 320px;
}

.purchase-panel .price-big {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--cs-gold);
  line-height: 1.2;
}

/* ——— También te puede interesar (mismo patrón que mockup: póster → ★ nota → título → precio) ——— */
.related-section {
  padding: 2.25rem 0 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.related-section > .container > .title {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 0.85rem;
}

@media (min-width: 600px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 1rem;
  }
}

@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem 1rem;
  }
}

.related-card {
  background: var(--cs-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.related-card .related-poster {
  margin: 0;
  aspect-ratio: 2 / 3;
  background: #252d3a;
  overflow: hidden;
}

.related-card .related-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-card .related-body {
  padding: 0.65rem 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  background: rgba(22, 27, 34, 0.95);
}

.related-card .related-rating {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cs-gold);
  line-height: 1.3;
}

.related-card .related-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cs-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2; /* Standard property for compatibility */
  overflow: hidden;
}

.related-card .related-price {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #7dd3fc;
}

.footer-tmdb-brand {
  color: var(--cs-accent);
  font-weight: 700;
}
