/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Body */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #fdfbfb, #ebedee);
  color: #333;
}

/* Landing Page */
.landing {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa, #e3e9f0);
}

.center-box {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  max-width: 450px;
  width: 90%;
}

.center-box h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.center-box p {
  margin-bottom: 20px;
  color: #555;
}

/* Search */
.search-container {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.search-container input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #3498db;
  border-radius: 30px;
  outline: none;
  font-size: 1rem;
  transition: 0.3s;
}

.search-container input:focus {
  border-color: #2980b9;
  box-shadow: 0 0 12px rgba(52, 152, 219, 0.4);
}

.search-container button {
  padding: 12px 22px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #3498db, #6dd5fa);
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.search-container button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(52, 152, 219, 0.4);
}

/* Header (Results Page) */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

header h2 {
  font-size: 1.4rem;
  color: #2c3e50;
}

.back-btn {
  text-decoration: none;
  color: #3498db;
  font-weight: bold;
  transition: 0.3s;
}

.back-btn:hover {
  color: #2980b9;
}

/* Movies Grid */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 25px;
}

/* Movie Card */
.movie-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  padding: 15px;
  transition: 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.movie-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 10px;
}

.movie-card h3 {
  margin: 12px 0 5px;
  font-size: 1.1rem;
  color: #2c3e50;
}

.movie-card p {
  font-size: 0.9rem;
  color: #777;
}
