:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
  --border-radius: 15px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: black;
  background-attachment: fixed;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  color: #333;
}

.container {
  max-width: 1200px;
}

.header-section {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.main-title {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, #f8f9fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
  animation: titlePulse 2s ease-in-out infinite alternate;
}

@keyframes titlePulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.02);
  }
}

.subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  font-weight: 300;
}

/* .search-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
} */

.search-input {
  border: none;
  border-radius: 50px 0 0 50px;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  background: rgba(248, 249, 250, 0.8);
  transition: var(--transition);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

.search-btn {
  background: var(--primary-gradient);
  border: none;
  border-radius: 0 50px 50px 0;
  padding: 1rem 2rem;
  font-weight: 600;
  color: white;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.search-btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.search-btn:hover:before {
  left: 100%;
}

.movie-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
  position: relative;
}

.movie-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--card-shadow-hover);
}

.movie-card .card-img-top {
  height: 400px;
  object-fit: cover;
  transition: var(--transition);
}

.movie-card:hover .card-img-top {
  transform: scale(1.1);
}

.card-body {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.card-title {
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.card-subtitle {
  color: #7f8c8d;
  font-weight: 500;
  margin-bottom: 1rem;
}

.detail-btn {
  background: var(--secondary-gradient);
  border: none;
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.detail-btn:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
}

.modal-content {
  border: none;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--card-shadow-hover);
}

.modal-header {
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  border: none;
  padding: 1rem 2rem;
}

.movie-detail-img {
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  width: 100%;
  height: auto;
}

.list-group-item {
  border: none;
  background: rgba(248, 249, 250, 0.5);
  margin-bottom: 0.5rem;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  transition: var(--transition);
}

.list-group-item:hover {
  background: rgba(248, 249, 250, 0.8);
  transform: translateX(5px);
}

.list-group-item:first-child {
  background: var(--dark-gradient);
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
}

.loading {
  text-align: center;
  padding: 3rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(102, 126, 234, 0.3);
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error-message {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin: 1rem 0;
  font-weight: 500;
  box-shadow: var(--card-shadow);
}

@media (max-width: 768px) {
  .main-title {
    font-size: 2.5rem;
  }

  .search-input,
  .search-btn {
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
  }

  /* .search-input {
    width: 100%;
  }

  .search-btn {
    width: 100%;
  } */
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: rgba(255, 255, 255, 0.9);
}

.no-results i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}
