/* ===================================
   ENHANCED MODAL STYLES - PREMIUM DESIGN
   =================================== */

/* Modal Backdrop Blur */
.modal-backdrop-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  opacity: 0.3;
  z-index: -1;
}

.modal-backdrop-blur::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #111);
}

/* Modal Content Wrapper */
.modal-content-wrapper {
  position: relative;
  z-index: 1;
}

/* Modal Header Section */
.modal-header-section {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  padding: 20px;
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.1),
    rgba(0, 0, 0, 0.3)
  );
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 9, 20, 0.2);
}

/* Poster Side */
.modal-poster-side {
  flex-shrink: 0;
  position: relative;
}

.modal-poster-img {
  width: 250px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.modal-poster-img:hover {
  transform: scale(1.02);
}

/* Quick Actions */
.modal-quick-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}

.quick-action-btn {
  background: rgba(229, 9, 20, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(229, 9, 20, 0.4);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  transition: all 0.3s ease;
}

.quick-action-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(229, 9, 20, 0.5);
}

/* Info Side */
.modal-info-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-title-enhanced {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, #e50914);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  line-height: 1.2;
}

/* Meta Info */
.modal-meta-enhanced {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.9rem;
  color: #ccc;
}

.meta-item i {
  color: var(--primary-color);
}

/* Rating Cards */
.modal-ratings-enhanced {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.rating-card {
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.2),
    rgba(0, 0, 0, 0.5)
  );
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 12px;
  padding: 15px 20px;
  text-align: center;
  min-width: 80px;
  transition: all 0.3s ease;
}

.rating-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

.rating-source {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.rating-score {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

/* Genre Tags */
.modal-genres {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.genre-tag {
  padding: 6px 15px;
  background: rgba(229, 9, 20, 0.2);
  border: 1px solid rgba(229, 9, 20, 0.4);
  border-radius: 20px;
  font-size: 0.85rem;
  color: #fff;
  transition: all 0.3s ease;
}

.genre-tag:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.05);
}

/* Overview */
.modal-overview-enhanced {
  font-size: 1rem;
  line-height: 1.8;
  color: #ddd;
  margin: 10px 0;
}

/* Cast */
.modal-cast-enhanced {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #ccc;
}

.modal-cast-enhanced i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* Action Buttons Enhanced */
.modal-actions-enhanced {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.action-btn-enhanced {
  padding: 15px 30px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.action-btn-enhanced::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.action-btn-enhanced:hover::before {
  width: 300px;
  height: 300px;
}

.play-btn-enhanced {
  background: linear-gradient(135deg, #e50914, #b20710);
  color: #fff;
  box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
}

.play-btn-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(229, 9, 20, 0.6);
}

.trailer-btn-enhanced {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.trailer-btn-enhanced:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Seasons Section Enhanced */
.seasons-section-enhanced {
  margin: 30px 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.seasons-section-enhanced h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #fff;
}

.seasons-section-enhanced h3 i {
  color: var(--primary-color);
}

.seasons-list-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.season-card {
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.1),
    rgba(0, 0, 0, 0.5)
  );
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.season-card:hover,
.season-card.active {
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.3),
    rgba(0, 0, 0, 0.7)
  );
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(229, 9, 20, 0.3);
}

.season-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 40px;
}

.season-info {
  flex: 1;
}

.season-name {
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}

.season-episodes {
  font-size: 0.85rem;
  color: #999;
}

/* Episodes Container */
.episodes-container-enhanced {
  margin-top: 20px;
}

/* Episode Cards Enhanced */
.episodes-list-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.episode-card {
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.1),
    rgba(0, 0, 0, 0.5)
  );
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.episode-card:hover,
.episode-card.active {
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.3),
    rgba(0, 0, 0, 0.7)
  );
  border-color: var(--primary-color);
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(229, 9, 20, 0.3);
}

.episode-number-badge {
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 15px;
  border-radius: 8px;
  min-width: 50px;
  text-align: center;
}

.episode-details {
  flex: 1;
}

.episode-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.episode-runtime {
  font-size: 0.8rem;
  color: #999;
}

/* Video Section Enhanced */
.video-section-enhanced {
  margin: 30px 0;
}

.video-section-enhanced h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #fff;
}

.video-section-enhanced h3 i {
  color: var(--primary-color);
}

.server-selector-enhanced {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.video-container-enhanced {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-container-enhanced iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* Recommendations Section */
.recommendations-section {
  margin: 40px 0 20px;
  padding: 30px 20px;
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.05),
    rgba(0, 0, 0, 0.3)
  );
  border-radius: 15px;
  border: 1px solid rgba(229, 9, 20, 0.2);
}

.recommendations-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: #fff;
}

.recommendations-section h3 i {
  color: var(--primary-color);
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

.recommendation-card {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.recommendation-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 40px rgba(229, 9, 20, 0.4);
}

.recommendation-card img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recommendation-card:hover img {
  transform: scale(1.1);
}

.recommendation-info {
  padding: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.recommendation-info h4 {
  font-size: 0.9rem;
  margin: 0 0 8px 0;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation-rating {
  font-size: 0.85rem;
  color: #ffd700;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-header-section {
    flex-direction: column;
  }

  .modal-poster-img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .modal-title-enhanced {
    font-size: 1.8rem;
  }

  .recommendations-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .seasons-list-enhanced {
    grid-template-columns: 1fr;
  }
}
