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

/* SORT CONTAINER */
.sort_container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 20px 60px 2px 0;
}

.sort_container label {
  margin-right: 10px;
  font-size: 1.1rem;
}

.sort_container select {
  padding: 6px 6px;
  border-radius: 6px;
  border: 1px solid #00bfff;
  background: rgba(0, 0, 0, 0);
  color: white;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* MOVIE GRID */
.movie_grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  padding: 40px;
  justify-items: center;
}

/* CARD WRAPPER TO MATCH HOMEPAGE */
.movie-card {
  width: 180px;
  text-align: center;
  background: none;
}

/* Inner card (image + overlay) */
.movie-card-inner {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #00bfff;
  transition: transform 0.35s ease;
}

/* POSTER IMAGE */
.movie-card-inner img {
  width: 100%;
  display: block;
  border-radius: 10px;
  transition: all 0.35s ease;
}

/* On hover, image lifts like homepage */
.movie-card-inner:hover img {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(0, 191, 255, 0.5);
}

/* MOVIE TITLE */
.movie-card p {
  font-family: "Limelight", sans-serif;
  font-size: 1.15rem;
  margin-top: 10px;
  color: white;
}

/* STARS BELOW TITLE */
.stars {
  color: gold;
  font-size: 1.2rem;
  margin-top: 4px;
}

/* ------------------------------- */
/*     MATCHED HOMEPAGE OVERLAY    */
/* ------------------------------- */

.movie-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: opacity 0.25s ease;
  border-radius: 10px;
}

.movie-card-inner:hover .movie-overlay {
  opacity: 1;
}

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

.overlay-btn:hover {
  background: #00bfff;
}

/* DELETE BUTTON SPECIAL COLOR */
.overlay-btn.delete_btn {
  background: #ff3b3b;
}

.overlay-btn.delete_btn:hover {
  background: #cc2e2e;
}
