@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  /* overflow:hidden;*/
  display: flex;
  flex-direction: column;
  padding: 40px;
  background: transparent;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('../images/movie.jpeg');
  background-position: center bottom;
  background-size: cover;
  z-index: -2;
  transform-origin: center;
  animation: bg-zoom 30s linear infinite;
  will-change: transform;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to top,
              rgba(0,0,0,0.95) 12%,
              rgba(0,0,0,0.6) 40%,
              rgba(0,0,0,0.2) 70%,
              rgba(0,0,0,0) 100%);
}

@keyframes bg-zoom {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  gap: 40px;
  z-index: 0;
}

.left { max-width: 60%; }

.title { 
  max-width: 500px; 
  margin-bottom: 18px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,1));
}

.title img { 
  width: 100%; 
  height: auto; 
  display: block; 
}

.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tag {
  background: rgba(255,255,255,0.12);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset;
}

.description {
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 100%;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 2px rgba(0,0,0,1);
}

.watch-btn {
  display: inline-block;
  background: #e50914;
  color: white;
  padding: 11px 28px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(229,9,20,0.55);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  animation: pulse 1.6s infinite;
}
.watch-btn:hover {
  background: #ff1a24;
  box-shadow: 0 0 26px rgba(255,26,36,0.92);
  transform: translateY(-2px);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(229,9,20,0.55); }
  50%      { transform: scale(1.06); box-shadow: 0 0 26px rgba(229,9,20,0.9); }
}

.poster {
  flex-shrink: 0;
  width: 250px;
  height: 370px;
  border-radius: 14px;
  background-image: url('../images/poster.jpeg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  transform: perspective(800px) rotateY(-20deg);
  transition: transform .45s cubic-bezier(.2,.9,.2,1), box-shadow .45s ease;
}
.poster:hover {
  transform: perspective(900px) rotateY(0deg) scale(1.05);
  box-shadow: 0 0 40px rgba(255, 230, 141, 0.8);
}

@media (max-width:900px) {
  body { padding: 28px; align-items: flex-end; }
  .content { gap: 20px; }
  .left { max-width: 62%; }
  .poster { width: 200px; height: 300px; }
}
@media (max-width:680px) {
  body { align-items: center; padding: 22px; }
  .content {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }
  .left { max-width: 100%; }
  .title { max-width: 320px; margin-bottom: 14px; }
  .description { font-size: 1rem; }
  .tags { justify-content: center; }
  .poster { width: 220px; height: 330px; transform: none; }
  .poster:hover { transform: scale(1.03); }
}

.cast-section {
  margin-top: 60px;
  width: 100%;
}

.cast-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,1);
}

.cast-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cast-member {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 12px;
  padding: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}

.cast-member:hover {
  transform: translateY(-3px);
}

.cast-photo {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin-right: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.cast-info {
  display: flex;
  flex-direction: column;
}

.cast-name {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

.cast-role {
  color: white;
  font-size: 0.9rem;
  opacity: 0.8;
}

.cast-about {
  color: white;
  font-size: 0.85rem;
  line-height: 1.3;
  margin-top: 4px;
  opacity: 0.7;
}

.reviews {
  margin-top: 60px;
}
.review-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.review {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  padding: 12px;
  border-radius: 8px;
}
.stars {
  font-size: 1.2rem;
  color: gold;
  min-width: 80px;
}
.review-content {
  color: white;
  font-size: 1rem;
  line-height: 1.4;
}

.review-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,1));
}

.movie-trailer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    width: 100%;
}

.trailer-heading {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,1);
    text-align: center;
    width: 100%;
}

.trailer-video {
    width: 100%;
    max-height: 500px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    object-fit: cover;
    transform: perspective(1000px) rotateX(7deg);
    transition: transform 0.45s cubic-bezier(.2,.9,.2,1), box-shadow 0.45s ease;
}

.trailer-video:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.05);
    box-shadow: 0 18px 50px rgb(0, 0, 0);
}









