* {
  box-sizing: border-box;
}
.cinema-bg {
  position: fixed;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?q=80&w=2070&auto=format&fit=crop") center/cover no-repeat;
  filter: blur(10px) brightness(1.05);
  opacity: 0.10;
  z-index: -1;
}
/**/
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #f8f5f2;
  color: #2d2d2d;
  position: relative;
}
/* CONTAINER */

/* HERO */
.hero {
  text-align: center;
  padding: 70px 20px 40px;
}

.hero h1 {
  position: relative;
  overflow: hidden;
}

.hero h1::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% { left: -150%; }
  100% { left: 150%; }
}


.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #b497d6, #e76f51);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.hero p {
  color: #7a7a7a;
  font-size: 1rem;
}

/* MOOD SECTION */
.mood-section {
  text-align: center;
  margin-bottom: 35px;
}

.mood-section h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
  font-weight: 600;
}

.mood-options {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.mood-btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  color: #2d2d2d;
  cursor: pointer;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.mood-btn {
  transition: all 0.3s ease;
}

.mood-btn:hover {
  transform: translateY(-4px) scale(1.03);
}

.mood-btn.active {
  transform: translateY(-2px);
}


@keyframes floatMood {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.mood-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

.mood-btn.active {
  background: linear-gradient(135deg, #e76f51, #b497d6);
  color: white;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(231,111,81,0.4);
}

/* FILTER CARD */
.filters {
  max-width: 760px;
  margin: 0 auto 25px;
  padding: 28px;
  border-radius: 22px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}


.filters select,
.filters button {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid #e6e6e6;
  font-size: 0.95rem;
}

.filters select {
  background: #fafafa;
  color: #2d2d2d;
  transition: 0.2s ease;
}

.filters select:focus {
  outline: none;
  border-color: #b497d6;
}

.filters button {
  background: linear-gradient(135deg, #e76f51, #b497d6);
  color: white;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: 0.3s ease;
}

.filters button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(231,111,81,0.4);
}

/* HELPER TEXT */
.helper-text {
  text-align: center;
  margin-bottom: 50px;
  color: #7a7a7a;
  font-size: 0.95rem;
}

/* MOVIE GRID */
.movies {
  padding: 0 40px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 28px;
}

/* MOVIE CARD */
.movie {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.movie:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.movie img {
  width: 100%;
  display: block;
}

.movie-info {
  padding: 14px;
  text-align: center;
}

.movie-info h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.movie-info span {
  background: linear-gradient(90deg, #e76f51, #b497d6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* EXPLORE BUTTON */
.explore-btn {
  display: block;
  margin: 40px auto;
  padding: 14px 30px;
  border-radius: 18px;
  border: none;
  background: linear-gradient(135deg, #b497d6, #e76f51);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.explore-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(180,151,214,0.4);
}

.hidden {
  display: none;
}

/* MODAL */
.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 28px;
  border-radius: 24px;
  width: 90%;
  max-width: 480px;
  color: #2d2d2d;
  position: relative;
  animation: popIn 0.3s ease forwards;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.close {
  position: absolute;
  top: 14px;
  right: 18px;
  cursor: pointer;
  font-size: 1.3rem;
}

/* ANIMATIONS */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from { transform: scale(0.92); }
  to { transform: scale(1); }
}

.recommendation-reason {
  text-align: center;
  margin-bottom: 30px;
  font-size: 0.95rem;
  color: #555;
  font-style: italic;
  opacity: 0;
  animation: fadeReason 0.6s ease forwards;
}

@keyframes fadeReason {
  to { opacity: 1; }
}
