* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #03070d;
  color: #ffffff;
  font-family: 'Cinzel', 'Trajan Pro', 'Georgia', serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  perspective: 1200px;
}

/*  POSTER CONTAINER- */
.poster {
  width: 100%;
  max-width: 500px;
  height: 750px;
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(10, 30, 60, 0.5);

  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 40px 30px;
  overflow: hidden;

  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg) scale(1);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
  animation: floatPoster 6s ease-in-out infinite alternate;
}

/* 
  ANIMATED BACKGROUND IMAGE (PSEUDO-ELEMENT)*/
.poster::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* Image + Gradients */
  background:
    linear-gradient(to bottom, rgba(5, 10, 20, 0.8) 0%, rgba(5, 10, 20, 0.2) 30%),
    linear-gradient(to top, rgba(5, 10, 20, 1) 0%, rgba(12, 28, 54, 0.7) 40%, rgba(0, 0, 0, 0) 100%),
    url('https://images.unsplash.com/photo-1518837695005-2083093ee35b?auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;

  z-index: 1;
  pointer-events: none;

  /* Ken Burns / Ocean Motion Animation */
  animation: moveBackground 20s linear infinite alternate;
  transition: transform 0.8s ease;
}

/* Hover: Zoom into the moving image slightly */
.poster:hover::before {
  transform: scale(1.25);
}

.poster:hover {
  animation-play-state: paused;
  transform: rotateX(6deg) rotateY(-4deg) scale(1.03) translateZ(20px);
  box-shadow: -20px 30px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(212, 175, 55, 0.2);
}

/* Decorative Inner Border */
.poster::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  pointer-events: none;
  z-index: 3;
  transform: translateZ(30px);
  transition: transform 0.5s ease, border-color 0.5s ease;
}

.poster:hover::after {
  transform: translateZ(45px);
  border-color: rgba(212, 175, 55, 0.6);
}

/*  CONTENT ELEMENTS (Z-INDEX FOR OVERLAY) */
.cast-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: #e0e6ed;
  text-transform: uppercase;
  z-index: 2;
  transform: translateZ(25px);
}

.actor-name {
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease, color 0.3s ease;
}

.actor-name:hover {
  color: #d4af37;
  transform: scale(1.1) translateY(-2px);
}

.hero-space {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.tagline {
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #a0b2c6;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  transform: translateZ(20px);
  animation: pulseGlow 3s ease-in-out infinite alternate;
}

.title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
  transform: translateZ(40px);
}




.movie-title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 12px;
  text-transform: uppercase;
  margin-left: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #d4af37 60%, #8a6d1c 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;

  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.9));
  line-height: 1;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
  cursor: pointer;
}

.movie-title:hover {
  transform: scale(1.05) translateZ(10px);
}

.director-credit {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c0d0e0;
  margin-bottom: 20px;
  transform: translateZ(15px);
}

.billing-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  font-size: 0.45rem;
  letter-spacing: 1px;
  color: #7a8b9e;
  text-transform: uppercase;
  line-height: 1.4;
  max-width: 90%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  transform: translateZ(10px);
}

.billing-item {
  white-space: nowrap;
}

/* KEYFRAME ANIMATIONS */

/* Continuous Background Movement (Slow Pan + Zoom) */
@keyframes moveBackground {
  0% {
    transform: scale(1.1) translate(0%, 0%);
  }

  50% {
    transform: scale(1.2) translate(-3%, -2%);
  }

  100% {
    transform: scale(1.1) translate(3%, 1%);
  }
}

@keyframes floatPoster {
  0% {
    transform: translateY(0px) rotateX(0deg) rotateY(0deg);
  }

  50% {
    transform: translateY(-10px) rotateX(2deg) rotateY(-1deg);
  }

  100% {
    transform: translateY(0px) rotateX(-1deg) rotateY(2deg);
  }
}

@keyframes pulseGlow {
  0% {
    opacity: 0.7;
    text-shadow: 0 0 5px rgba(160, 178, 198, 0.2);
  }

  100% {
    opacity: 1;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
  }
}