body {
  background-image: url("images/popcorns.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: "Open Sans", sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 30%
    ),
    linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: -1;
}

.app-header {
  text-align: center;
  padding: 2rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 0 0 30px 30px;
  margin-bottom: 2rem;
}

.app-title {
  color: white;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #fff, #554901);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.main-question {
  text-align: center;
  color: white;
  font-size: 1.8rem;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.genre-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.genre-btn {
  background: linear-gradient(145deg, #dc3545, #c82333);
  border: none;
  padding: 1.2rem 2rem;
  border-radius: 15px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
  position: relative;
  overflow: hidden;
}

.genre-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;
}

.genre-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(220, 53, 69, 0.4);
  background: linear-gradient(145deg, #e74c3c, #dc3545);
}

.genre-btn:hover::before {
  left: 100%;
}

.genre-btn:active {
  transform: translateY(-2px);
  animation: pulse 0.3s ease;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.genre-btn.romance {
  background: linear-gradient(145deg, #e91e63, #730b35);
  box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
}

.genre-btn.romance:hover {
  background: linear-gradient(145deg, #f06292, #e91e63);
  box-shadow: 0 15px 30px rgba(233, 30, 99, 0.4);
}

.genre-btn.drama {
  background: linear-gradient(145deg, #9c27b0, #561273);
  box-shadow: 0 8px 20px rgba(156, 39, 176, 0.3);
}

.genre-btn.drama:hover {
  background: linear-gradient(145deg, #ba68c8, #9c27b0);
  box-shadow: 0 15px 30px rgba(156, 39, 176, 0.4);
}

.genre-btn.comedy {
  background: linear-gradient(145deg, #ff9800, #9a4d00);
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.3);
}

.genre-btn.comedy:hover {
  background: linear-gradient(145deg, #ffb74d, #ff9800);
  box-shadow: 0 15px 30px rgba(255, 152, 0, 0.4);
}

.genre-btn.action {
  background: linear-gradient(145deg, #f44336, #821c1c);
  box-shadow: 0 8px 20px rgba(244, 67, 54, 0.3);
}

.genre-btn.action:hover {
  background: linear-gradient(145deg, #ef5350, #f44336);
  box-shadow: 0 15px 30px rgba(244, 67, 54, 0.4);
}

.movie-result {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 90%;
  max-width: 500px;
  background: linear-gradient(
    135deg,
    rgba(220, 20, 60, 0.95),
    rgba(139, 0, 0, 0.95)
  );
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.movie-result.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.movie-result h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.movie-title {
  color: #ffd700;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.genre-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.stats-container {
  text-align: center;
  margin-top: 2rem;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.fun-fact {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 1rem;
  margin: 2rem auto;
  max-width: 600px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Media Queries */
@media (max-width: 768px) {
  .app-title {
    font-size: 2rem;
  }

  .main-question {
    font-size: 1.4rem;
  }

  .genre-buttons {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .movie-result {
    width: 95%;
    padding: 2rem 1rem;
  }

  .movie-title {
    font-size: 1.5rem;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
    margin-top: 12rem;
  }
}
