/* Continue Watching - Complete Styles */

/* 1. Ensure the .inner container can position the remove button */
#continue-watching-container .movie-item .inner {
  position: relative;
}

#continue-watching-container .item-poster {
  position: relative;
  display: block;
}

/* 2. MODIFIED: Style for the remove button (trash icon) */
.cw-remove-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: #dc3545; /* Changed color as requested */
  border-radius: .5rem;
  color: #ffffff; /* Changed icon color to white for better contrast */
  cursor: pointer;
  font-size: 1.1rem;
  height: 1.5rem; /* Adjusted for better visual balance */
  width: 1.5rem;  /* Adjusted for better visual balance */
  line-height: 1.5rem;
  padding: 0;
  border: none;
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#continue-watching-container .movie-item .inner:hover .cw-remove-button {
  opacity: 1;
}

.cw-remove-button:hover {
  background: #c82333; /* Darker red on hover */
  transform: scale(1.1);
}

/* 3. Styling for the episode badge (S1E1) */
.cw-episode-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  border-radius: .5rem;
  font-size: .8rem;
  padding: 0 6px;
  height: 1.23rem;
  line-height: 1.23rem;
  font-weight: 500;
}

/* 4. MODIFIED: Clear All button styling */
.cw-clear-all-btn {
  background: transparent !important;
  border: 1px solid #dc3545 !important;
  color: #dc3545 !important;
  transition: all 0.3s ease !important;
  padding: 0.25rem 0.75rem !important; /* Ensure padding is consistent */
  display: inline-flex;
  align-items: center;
  gap: 5px; /* Space between icon and text */
}

.cw-clear-all-btn:hover {
  background: #dc3545 !important;
  border-color: #dc3545 !important;
  color: #ffffff !important;
}

.cw-clear-all-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* 5. Progress Bar Overlay Styling */
#continue-watching-container .cw-progress-overlay {
  width: 100%;
  height: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  margin: 12px 0 5px 0;
  border-radius: 3px;
  overflow: hidden;
}

#continue-watching-container .cw-progress-bar {
  height: 100%;
  background-color: #dc3545;
  transition: width 0.3s ease;
  border-radius: 3px;
}