

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  /* background-color: #1c1c1c; */
  background: linear-gradient(#000000 50%, #ffb92a 50%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 40px 20px;
  color: #ffffff;
}
/* 
#video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
} */


#MovieContainer {
  width: 850px;
  /* height: 630px; */
  height: auto;
  overflow-y: auto;
  background-color: #2a2a2a;
  /* background: rgba(42, 42, 42, 0.9); */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
#movieinfo {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}
#head {
  font-size: 20px;
  margin-bottom: 10px;
}
.search-container {
  display: flex;
  gap: 10px;
  align-items: center;
}
.search-container input {
  flex: 1;
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid #666;
  background-color: #191919;
  color: #fff;
  font-size: 14px;
}
.search-container input:hover {
  outline: none;
  border-color: #fff;
}
.search-container button {
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  background-color: #f4b400;
  font-weight: bold;
  cursor: pointer;
  color: #000;
  font-size: 15px;
}
.search-container button:hover {
  background-color: #e0a800;
}
#error {
  color: red;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}
#MovieDetails {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}
#poster img {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
}
#details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  align-items: center;
  text-align: center;
  gap: 10px;
}
#Title {
  font-size: 25px;
  font-weight: bold;
  margin-bottom: 10px;
}
#imdbRating {
  display: flex;
  align-items: center;
  font-size: 18px;
  margin-bottom: 10px;
}
#imdbRating::before {
  content: "⭐";
  margin-right: 6px;
  font-size: 18px;
  color: gold;
}
#genre {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  /* margin-bottom: 20px; */
}
#genre div {
  border: 1px solid #ccc;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 14px;
}
#MovieDetails h3
 {
  font-weight: 500;
  font-size: 15px;
  color: #eaeae5;
  margin-bottom: 6px;
}
.movie-other-details h3{
   font-weight: 500;
  font-size: 13px;
  color: #eaeae5;
  margin-bottom: 6px;

}
#plot {
  background-color: #1c1c1c;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1;
  color: #ddd;
}
#plot::before {
  content: "Plot:";
  display: block;
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 10px;
  color: #fff;
}

/** === Media Queries === */

@media screen and (min-width: 1281px) {
  #MovieContainer {
    max-width: 1000px;
  }
  #poster img {
    width: 220px;
  }
  #Title {
    font-size: 28px;
  }
}
@media screen and (max-width: 1280px) {
  body{
    align-items: center;
  }
  #MovieContainer {
    width: 90%;
  }
  #plot {
    font-size: 15px;
  }
  #Title {
    font-size: 24px;
  }
}
@media screen and (max-width: 1025px) {
  body {
    align-items: center;
  }
  #MovieContainer {
    width: 92%;
    height:auto;
    padding: 25px;
  }
  #MovieDetails {
    gap: 25px;
  }
  #poster img {
    max-width: 200px;
    height: auto;
  }
  #Title {
    font-size: 28px;
  }
  #imdbRating, #genre {
    font-size: 20px;
  }
 .movie-other-details h3{
  font-size: 18px;
 }
  #plot {
    font-size: 18px;
    line-height: 1.4;
  }
  #genre div {
    font-size: 15px;
    padding: 6px 12px;
  }
}
@media screen and (max-width: 912px) {
   body{
    align-items: center;
  }
  #MovieContainer {
    width: 95%;
    height: auto;
  }
   #movieinfo{
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
  }
  #poster img {
    max-width: 180px;
    height: auto;
  }
  #Title {
    font-size: 28px;
  }
   .movie-other-details h3{
    line-height: 1.2;
    font-size: 15px;
  }
  #plot{
    font-size: 15px;
    line-height: 1.2;
  }
}
@media screen and (max-width: 768px) {
   body{
    align-items: center;
  }
  #MovieContainer {
    width: 100%;
    height: auto;
    padding: 25px 15px;
  }
  #movieinfo{
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  #MovieDetails {
    gap: 20px;
    margin-top: 20px;
  }
  #poster img {
    width: 80%;
    height: auto;
  }
  #Title {
    font-size: 22px;
  }
  #plot {
    font-size: 13px;
  }
}

@media screen and (max-width: 431px) and (min-width: 344px) {
  #MovieContainer {
    width: 100%;
    height: auto;
    padding: 20px;
  }
  #movieinfo{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .search-container {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
 
  #MovieDetails {
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    align-items: center;
  }
  #poster img {
    width: 100%;
    height: auto;
  }
  #Title {
    font-size: 20px;
  }
  #plot {
    font-size: 13px;
    padding: 12px;
  }
  #genre div {
    font-size: 12px;
    padding: 4px 10px;
  }
}
