
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #2b2d42, #8d99ae, #3a0ca3, #7209b7);
  background-size: 300% 300%;
  animation: gradientBG 8s ease infinite;
  color: white;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgba(0,0,0,0.6);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #ff4d6d;
  text-shadow: 0 0 8px #ff4d6d;
}

#searchBox {
  padding: 8px;
  border-radius: 5px;
  border: none;
  width: 250px;
}

button {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  background: #ff006e;
  color: white;
  cursor: pointer;
  font-weight: bold;
}
button:hover {
  background: #d90429;
}

main {
  padding: 20px;
}

.movie-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto; 
}

.movie-card {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
  overflow: hidden; 
}

.movie-card:hover {
  transform: scale(1.05);
}

.movie-card img {
  width: 100%;
  height: auto; 
  display: block; 
}

.movie-card h3 {
    font-size: 16px;
    margin: 10px 0 5px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.9);
}

.modal-content {
  background: #222;
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  width: 85%;
  color: white;
  animation: fadeIn 0.5s;
}

.modal-content img {
    max-width: 200px;
    float: left;
    margin: 0 20px 10px 0;
    border-radius: 5px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
}

.actions {
  margin-top: 20px;
  clear: both;
}

.actions a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  margin-right: 10px;
  box-shadow:0 0 12px rgba(123,44,255,.45);
}

#mWatchTrailer {
  background: #f94144; 
  display: none; 

}

