body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f1115;
  color: #fff;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}

#search {
  padding: 10px;
  border-radius: 6px;
  border: none;
  width: 250px;
}

/* GENRES */
#genres {
  padding: 10px 16px;
}

.genre-chip {
  display: inline-block;
  padding: 6px 12px;
  margin: 4px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  opacity: 0.7;
  font-weight: bold;
}

.genre-chip.active {
  opacity: 1;
  transform: scale(1.05);
}

/* MAIN GRID */
#grid {
  padding: 10px 16px 40px;
}

/* DATE SECTION */
.date-section {
  margin-bottom: 30px;
}

.date-title {
  font-size: 18px;
  margin: 20px 0 10px;
  opacity: 0.9;
  border-bottom: 1px solid #222;
  padding-bottom: 6px;
}

/* GRID */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

/* CARD */
.card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}

.card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

/* OVERLAY */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.title {
  font-size: 14px;
  font-weight: bold;
}

.meta {
  font-size: 12px;
  opacity: 0.8;
}

/* BADGES */
.badges {
  margin-top: 5px;
}

.badge {
  display: inline-block;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 12px;
  margin-right: 4px;
  margin-top: 3px;
  font-weight: bold;
}

.watch-star {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
  color: gold;
  text-shadow: 0 0 6px rgba(0,0,0,0.8);
}

.controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

#watchlistToggle {
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  background: #222;
  color: #fff;
  cursor: pointer;
}

#watchlistToggle.active {
  background: gold;
  color: black;
}