.watchlist-page {
  padding: 40px 60px;
  background:
    radial-gradient(
      1200px 500px at top center,
      rgba(36, 65, 122, 0.502),
      rgba(0, 0, 0, 0.95)
    ),
    linear-gradient(
      to bottom,
      #0e0e11 0%,
      #0b0b0d 40%,
      #000 100%
    );

  animation: bgFade 1.2s ease-out;
}


.watchlist-page h1 {
  font-size: 32px;
  margin-bottom: 6px;
}

.watchlist-sub {
  color: #aaa;
  margin-bottom: 30px;
}

.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 22px;
}

.watchlist-empty {
  margin-top: 60px;
  color: #777;
  text-align: center;
  display: none;
}


.watchlist-card {
  cursor: pointer;
  position: relative;
}

.watchlist-card img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.25s ease;
}

.watchlist-card:hover img {
  transform: scale(1.05);
}

.remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 14px;
}

.watchlist-poster {
  position: relative;
  width: 100%;
  height: 240px;              
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  font-size: 0;
}


.watchlist-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.watchlist-title {
  margin-top: 10px;
  font-size: 14px;
  color: #e5e5e5;
  text-align: center;
  line-height: 1.35;
  min-height: 38px;        
  max-width: 100%;
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watchlist-fallback {
  display: none;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    #1a1a1a,
    #0f0f0f
  );
  border-radius: 12px;
}

/* MOBILE RESPONSIVE STYLES */
@media (max-width: 768px) {
  .watchlist-page {
    padding: 24px 16px;
    font-size: 10px;
  }

  .watchlist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .watchlist-page h1 {
    font-size: 23px;
    margin-bottom: 6px;
}
  .watchlist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
  }

  .watchlist-poster {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
  }

  .watchlist-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transform: none;
  }

  .watchlist-card:hover img {
    transform: none;
  }

  .watchlist-title {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.35;
    padding: 0 6px;
    min-height: 34px;
    color: #e5e5e5;
    text-align: center;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .watchlist-page {
    padding: 70px 54px;
  }

  .watchlist-grid {
    gap: 12px;
  }

  .watchlist-poster {
    border-radius: 12px;
  }

  .watchlist-card img {
    border-radius: 12px;
  }

  .watchlist-title {
    font-size: 12.5px;
    min-height: 22px;
  }
}


