* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  background: linear-gradient(115deg, #091027 0%, #0b1431 40%, #0d2d5d 100%);
  color: white;
}

.pageHead {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

.titleName {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #e53c55;
  font-weight: 800;
  margin-bottom: 5px;
}

.subText {
  font-size: 14px;
  color: rgb(168, 168, 168);
}

.inputSearch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.searchInput {
  width: 100%;
  max-width: 500px;
  height: 60px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 18px;

  padding: 0 20px;
  outline: none;

  backdrop-filter: blur(6px);
}
.searchInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.searchInput:focus {
  background: rgba(255, 255, 255, 0.12);
  border: #e53c55 solid 2px;
}

.btn {
  height: 60px;
  width: 140px;

  border-radius: 999px;

  background: #e53c55;
  color: white;

  font-size: 18px;
  font-weight: 600;

  border: none;
  cursor: pointer;

  box-shadow: 0 0 20px #e53c55;
  transition: 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px #e53c55;
}

#searchError {
  margin-top: 15px;
  color: red;
  display: none;
  text-align: center;
}

#resultTitle {
  margin-top: 20px;
  font-size: 26px;
  font-weight: bolder;
  justify-self: center;
  text-align: center;
  display: none;
}
#loading {
  display: none;
}

.loading-animation {
  width: 50px;
  height: 50px;
  border: 4px solid #eeeeee3c;
  border-top: 4px solid #e53c55;
  border-radius: 100%;
  animation: spin 0.9s linear infinite;
  justify-self: center;
  margin: 15px;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
#loading .text-data {
  justify-self: center;
}

#resultData {
  margin-top: 40px;

  flex-wrap: wrap;
  flex-direction: row;

  display: flex;
  align-items: center;
  justify-content: center;

  /* display: flex;
  flex-direction: column;
  align-items: flex-start; */

  gap: 25px;
  width: 100%;
  margin-bottom: 25px;
}

.card {
  width: 220px;
  background: #1c2340;
  border-radius: 16px;
  overflow: hidden;

  border: 2px solid rgba(255, 255, 255, 0.08);

  transition: 0.25s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-9px);
  border: 2px solid #e53c55;
}

.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.card h3 {
  font-size: 16px;
  font-weight: 700;
  padding: 10px 12px 0px 12px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subdetail {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 10px 12px 12px 12px;
}
.year {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.rating {
  font-size: 14px;
  font-weight: 700;
  color: #ffd43b;
}

.top-bar {
  margin: 20px 40px;
  display: flex;
  justify-content: flex-start;
}

.backBtn {
  color: #e53c55;
  border: 1px solid #e53c55;
  padding: 10px 18px;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.2s;
  cursor: pointer;
}
.backBtn:hover {
  background: rgba(239, 52, 77, 0.2);
}

.backBanner {
  width: 95%;
  height: 400px;
  overflow: hidden;
  border-radius: 50px;
  margin: 0 auto;
}

.backBanner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.details-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;

  width: 95%;
  margin: 30px auto 0px auto;
}

.left {
  width: 25%;
}

.right {
  width: 75%;
}

.poster {
  width: 100%;
  height: 500px;
  border-radius: 20px;
  display: block;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.movieTitle {
  font-size: 30px;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
}

.tagline {
  font-size: 20px;
  font-style: italic;
  color: #9ca3af;
  margin-bottom: 15px;
}

.info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 15px;
}
.infosize {
  padding: 8px 16px;
  border-radius: 50px;
}

.info .rating {
  background: #facc15;
  color: #111827;
  font-weight: 700;
}

.duration {
  background: rgba(255, 255, 255, 0.162);
  border: 1px solid rgba(133, 131, 131, 0.689);
  color: white;
}

.genre {
  background: rgba(245, 67, 106, 0.265);
  border: 1px solid rgba(255, 77, 115, 0.35);
  color: #e53c55;
}

.section h2 {
  color: #e53c55;
  font-size: 22px;
  font-weight: 700;
}

.section hr {
  border: none;
  height: 1px;
  background-color: #e53c55;
  margin-bottom: 20px;
}
.section p {
  margin-bottom: 30px;
  margin-right: 5px;
  color: rgb(181, 181, 181);
}
.cast {
  margin-top: 30px;
  margin-bottom: 30px;
}
.cast span {
  margin-right: 10px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.089);
  color: white;
}

.youtubeVideo {
  width: 100%;
  height: 400px;
  margin-top: 30px;
}

.youtubeVideo iframe {
  border-radius: 15px;
  width: 100%;
  height: 100%;
  border: none;
}
