/* ==================== ENHANCED MOVIE CARDS STYLES ==================== */

/* Content Type Badge */
.content-type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--primary, #adff2f), var(--primary-dark, #9bec28));
  color: #000;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.content-type-badge i {
  font-size: 10px;
}

.movie-card:hover .content-type-badge {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(173,255,47,0.4);
}

/* Movie Poster Container */
.movie-poster {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.poster-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.7) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.play-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary, #adff2f), var(--primary-dark, #9bec28));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 24px;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(173,255,47,0.3);
}

.movie-card:hover .play-icon {
  transform: scale(1);
  box-shadow: 0 12px 35px rgba(173,255,47,0.5);
}

/* Enhanced Movie Info */
.movie-info {
  padding: 20px 15px 15px;
}

.movie-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary, #ffffff);
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.movie-meta .rating,
.movie-meta .year {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #cccccc;
}

.movie-meta .rating i {
  color: #ffd700;
  font-size: 11px;
}

.movie-meta .year i {
  color: var(--primary, #adff2f);
  font-size: 11px;
}

.movie-description {
  font-size: 13px;
  color: #aaaaaa;
  line-height: 1.4;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Movie Actions */
.movie-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.watch-btn {
  background: linear-gradient(135deg, var(--primary, #adff2f), var(--primary-dark, #9bec28));
  color: #000;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 22px rgba(173,255,47,0.28);
  flex: 1;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.watch-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark, #9bec28), var(--primary, #adff2f));
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(173,255,47,0.38);
}

.watch-btn i {
  font-size: 12px;
}

.favorite-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(173,255,47,0.3);
  color: var(--primary, #adff2f);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.favorite-btn:hover {
  background: rgba(173,255,47,0.18);
  border-color: var(--primary, #adff2f);
  transform: scale(1.1);
}

.favorite-btn.active {
  background: linear-gradient(135deg, var(--primary, #adff2f), var(--primary-dark, #9bec28));
  color: #000;
  border-color: var(--primary, #adff2f);
}

.favorite-btn.active i {
  animation: heartBeat 0.6s ease-in-out;
}

/* Animations */
@keyframes heartBeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1.1); }
  75% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .content-type-badge {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 10px;
  }
  
  .play-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .movie-info {
    padding: 15px 12px 12px;
  }
  
  .movie-title {
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .movie-description {
    font-size: 12px;
    margin-bottom: 12px;
  }
  
  .watch-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .favorite-btn {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .movie-meta {
    gap: 10px;
  }
  
  .movie-meta .rating,
  .movie-meta .year {
    font-size: 11px;
  }
  
  .watch-btn {
    padding: 7px 10px;
    font-size: 11px;
  }
  
  .favorite-btn {
    width: 32px;
    height: 32px;
  }
}

/* Loading States */
.movie-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.movie-card.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(173,255,47,0.1), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
