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

/* ------------------------------ */
/* GRID LAYOUT */
/* ------------------------------ */
#watchlist-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 30px;
  padding: 40px;
  justify-items: center;
}

/* ------------------------------ */
/* MOVIE CARD */
/* Matches homepage exactly */
/* ------------------------------ */
.movie-card {
  position: relative;
  width: 180px;
  text-align: center;
}

.movie-card-inner {
  position: relative;
}

/* Single border (fix) */
.movie-card img {
  width: 100%;
  display: block;
  border-radius: 10px;
  transition: all ease-in-out 0.3s;
  border: 1px solid #00bfff; /* ONLY border now */
}

/* Hover animation matches homepage */
.movie-card img:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(0, 191, 255, 0.5);
}

/* Movie title */
.movie-card p {
  text-align: center;
  margin-top: 8px;
  font-family: "Limelight", sans-serif;
  font-size: 1.2rem;
  color: #fff;
}

/* ------------------------------ */
/* HOVER OVERLAY (homepage match) */
/* ------------------------------ */
.movie-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;

  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 10px;
}

/* Show overlay on hover */
.movie-card-inner:hover .movie-overlay {
  opacity: 1;
}

/* Buttons inside overlay */
.overlay-btn,
.remove-btn {
  padding: 10px 14px;
  background: black;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: white;
  transition: background 0.25s ease;
}

/* Hover color */
.overlay-btn:hover,
.remove-btn:hover {
  background: #00bfff;
}

/* Delete button color */
.remove-btn {
  background: #ff3b3b;
}

.remove-btn:hover {
  background: #cc2e2e;
}
