body { background: #f8f9fa; }
.card img { width: 120px; height: 180px; }
#movies-list .card { min-height: 100px; }

.genre-tags {
  margin: 0.5rem 0;
}

.genre-tag {
  display: inline-block;
  background-color: #e9ecef;
  color: #495057;
  padding: 0.25rem 0.5rem;
  margin: 0.125rem 0.25rem 0.125rem 0;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #dee2e6;
}

.genre-tag:hover {
  background-color: #dee2e6;
  color: #495057;
}

/* Date picker styling */
.candidate-dates-grid {
  margin-bottom: 1rem;
}

.candidate-date-card {
  transition: all 0.2s ease;
  border: 1px solid #dee2e6 !important;
}

.candidate-date-card:hover {
  border-color: #0d6efd !important;
  box-shadow: 0 2px 4px rgba(13, 110, 253, 0.1);
}

.selected-custom-dates .badge,
.selected-dates .badge {
  font-size: 0.875rem;
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.selected-custom-dates .btn-close,
.selected-dates .btn-close {
  font-size: 0.7rem;
  margin-left: 0.25rem;
}

.custom-dates-section {
  border-top: 1px solid #dee2e6;
  padding-top: 1rem;
  margin-top: 1rem;
}

/* Date voting results styling */
.date-results-container .badge {
  transition: all 0.3s ease;
}

.date-results-container .badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.winner-badge {
  animation: pulse-glow 2s ease-in-out infinite alternate;
  box-shadow: 0 0 10px rgba(25, 135, 84, 0.3);
}

@keyframes pulse-glow {
  from {
    box-shadow: 0 0 5px rgba(25, 135, 84, 0.3);
  }
  to {
    box-shadow: 0 0 15px rgba(25, 135, 84, 0.5), 0 0 20px rgba(25, 135, 84, 0.3);
  }
}

/* Movies page specific styling */
.movies-page .card {
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.movies-page .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.movies-page .card-img-top {
  transition: transform 0.3s ease;
}

.movies-page .card:hover .card-img-top {
  transform: scale(1.02);
}

.movie-controls {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.movie-controls .input-group-text {
  background: #f8f9fa;
  border-color: #dee2e6;
}

.empty-state {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Genre badges styling for movies page */
.movies-page .badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
}

/* Movie card enhancements */
.movie-card-poster {
  overflow: hidden;
  border-radius: 0.375rem 0.375rem 0 0;
}

.movie-card-body {
  background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
}

/* Blurred plot text functionality */
.blurred-plot {
  filter: blur(4px);
  cursor: pointer;
  transition: filter 0.3s ease;
  user-select: none;
  background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
  padding: 2px 4px;
  border-radius: 3px;
  position: relative;
}

.blurred-plot:hover {
  filter: blur(2px);
  background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 50%, #e9ecef 100%);
}

.blurred-plot::before {
  content: '👁️ Click to reveal';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: #6c757d;
  background: white;
  padding: 1px 4px;
  border-radius: 2px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.blurred-plot:hover::before {
  opacity: 1;
}

.plot-text.revealed {
  filter: none !important;
  cursor: default;
  background: none;
  user-select: text;
}

.plot-text.revealed:hover {
  filter: none !important;
  background: none;
}

.plot-text.revealed::before {
  display: none;
}

/* Movie title link styling */
.movie-title-link {
  color: #0066cc !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.movie-title-link:hover {
  color: #0052a3 !important;
  text-decoration: none !important;
  border-bottom: 1px solid #0066cc;
}

.imdb-link-icon {
  font-size: 0.8rem;
  opacity: 0.7;
  transition: all 0.2s ease;
  cursor: pointer;
}

.imdb-link-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Make the entire title area show it's clickable */
.card-title:has(.movie-title-link) {
  cursor: pointer;
}

.card-title:has(.movie-title-link):hover .imdb-link-icon {
  opacity: 1;
  animation: pulse-link 1.5s ease-in-out infinite;
}

@keyframes pulse-link {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
