/* ========================================
   dubDramas - Components CSS
   Componentes específicos e estados
======================================== */

/* ========================================
   SUBSCRIPTION MODAL
======================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--dark-bg-secondary);
  margin: 5% auto;
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
  text-align: center;
}

@keyframes modalSlideIn {
  from { 
    opacity: 0; 
    transform: translateY(-50px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.modal-content h2 {
  color: var(--text-primary);
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 600;
}

.modal-content p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.6;
}

.close {
  color: var(--text-secondary);
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close:hover,
.close:focus {
  color: var(--text-primary);
}

.subscription-benefits {
  margin: 25px 0;
  text-align: left;
}

.benefit {
  display: flex;
  align-items: center;
  padding: 8px 0;
  color: var(--text-primary);
  font-weight: 500;
}

.benefit::before {
  content: '✓';
  color: var(--accent-color);
  font-weight: bold;
  margin-right: 12px;
  font-size: 1.1rem;
}

.subscribe-btn {
  background: linear-gradient(135deg, var(--accent-color), #e11d48);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 20px;
}

.subscribe-btn:hover {
  background: linear-gradient(135deg, #e11d48, var(--accent-color));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.subscribe-btn:active {
  transform: translateY(0);
}

/* ========================================
   SUBSCRIPTION SECTION (Profile Page)
======================================== */
.subscription-section {
  margin: 25px 0;
}

.subscription-card {
  background: linear-gradient(135deg, var(--dark-bg-secondary), var(--dark-bg-tertiary));
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.subscription-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), #e11d48, #f59e0b);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.subscription-icon {
  font-size: 2.5rem;
  min-width: 60px;
  text-align: center;
}

.subscription-info {
  flex: 1;
}

.subscription-info h3 {
  color: var(--text-primary);
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.subscription-info p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.subscription-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.subscription-btn:hover {
  background: #e11d48;
  transform: translateY(-2px);
}

/* ========================================
   CAST SECTION (Details Page)
======================================== */
.cast-horizontal-list {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 16px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) transparent;
}

.cast-horizontal-list::-webkit-scrollbar {
  height: 6px;
}

.cast-horizontal-list::-webkit-scrollbar-track {
  background: var(--dark-bg-tertiary);
  border-radius: 3px;
}

.cast-horizontal-list::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 3px;
}

.cast-card {
  flex: 0 0 120px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.cast-card:hover {
  transform: translateY(-4px);
}

.cast-card img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--border-radius);
  background: var(--dark-bg-tertiary);
}

.cast-info {
  margin-top: 12px;
}

.cast-info h3 {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.cast-info p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.cast-birth {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.no-cast {
  color: var(--text-secondary);
  text-align: center;
  padding: 40px;
  font-style: italic;
}

/* ========================================
   SEASONS & EPISODES SECTION
======================================== */
.seasons-list {
  space-y: 16px;
}

.season-item {
  background: var(--dark-bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.season-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background: var(--dark-bg-tertiary);
  transition: background var(--transition-fast);
}

.season-header:hover {
  background: var(--dark-bg-secondary);
}

.season-title {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.season-toggle {
  color: var(--text-secondary);
  transition: transform var(--transition-fast);
}

.season-item.expanded .season-toggle {
  transform: rotate(180deg);
}

.episodes-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.season-item.expanded .episodes-list {
  max-height: 1000px;
}

.episode-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.episode-item:hover {
  background: var(--dark-bg-tertiary);
}

.episode-number {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.episode-info {
  flex: 1;
}

.episode-title {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.episode-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.no-episodes {
  color: var(--text-secondary);
  text-align: center;
  padding: 20px;
  font-style: italic;
  margin: 0;
}

/* ========================================
   SKELETON LOADERS
======================================== */
.skeleton {
  background: linear-gradient(90deg, 
    var(--dark-bg-secondary) 25%, 
    var(--dark-bg-tertiary) 50%, 
    var(--dark-bg-secondary) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.skeleton-card {
  width: 140px;
  aspect-ratio: 2/3;
  border-radius: var(--border-radius);
  margin-bottom: 12px;
}

.top10-skeleton {
  display: flex;
  gap: 16px;
  padding: 8px 0;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   GENRE SECTIONS
======================================== */
.genre-section {
  padding: 0 var(--content-padding) 40px;
}

.genre-section .section-header {
  margin-bottom: 20px;
}

.genre-section .section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.genre-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.genre-container {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.genre-container::-webkit-scrollbar {
  display: none;
}

.genre-track {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}

.genre-card {
  flex: none;
  width: 120px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.genre-card:hover {
  transform: translateY(-4px);
}

.genre-card-image {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 8px;
}

.genre-card-title {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   SEARCH RESULTS
======================================== */
.search-results {
  padding: 0 var(--content-padding);
  max-width: 600px;
  margin: 0 auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-fast);
  margin-bottom: 8px;
}

.search-result-item:hover {
  background: rgba(255,255,255,0.05);
}

.search-result-image {
  width: 60px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--border-radius);
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.search-result-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-result-type {
  background: var(--primary-red);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* Empty Search States */
.search-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.search-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.search-empty h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* ========================================
   VIDEO PLAYER PLACEHOLDER
======================================== */
.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--dark-bg-secondary);
  border-radius: var(--border-radius-large);
  overflow: hidden;
  cursor: pointer;
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition-fast);
}

.video-placeholder:hover {
  background: rgba(255,255,255,0.05);
}

.play-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  transition: var(--transition-fast);
}

.video-placeholder:hover .play-icon {
  transform: scale(1.1);
  background: var(--primary-red-hover);
}

.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
}

/* ========================================
   RATING STARS
======================================== */
.rating-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.rating-star {
  width: 16px;
  height: 16px;
  color: #fbbf24;
}

.rating-star.half {
  position: relative;
}

.rating-star.half::before {
  content: "★";
  position: absolute;
  overflow: hidden;
  width: 50%;
  color: #fbbf24;
}

.rating-star.empty {
  color: #374151;
}

.rating-number {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 4px;
}

/* ========================================
   BADGES & TAGS
======================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-new {
  background: #10b981;
  color: white;
}

.badge-hot {
  background: #f59e0b;
  color: white;
}

.badge-premium {
  background: #8b5cf6;
  color: white;
}

.badge-hd {
  background: var(--primary-red);
  color: white;
}

/* ========================================
   TOAST NOTIFICATIONS
======================================== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: var(--dark-bg-secondary);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius);
  padding: 16px 20px;
  max-width: 350px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: all;
  transform: translateX(100%);
  animation: slideInRight 0.3s ease forwards;
}

.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #ef4444; }
.toast.info { border-left: 4px solid #3b82f6; }

.toast-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.toast-message {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

@keyframes slideInRight {
  to { transform: translateX(0); }
}

/* ========================================
   PROGRESS BARS
======================================== */
.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-red);
  border-radius: 2px;
  transition: width var(--transition-smooth);
}

.progress-ring {
  width: 48px;
  height: 48px;
  position: relative;
}

.progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring circle {
  fill: none;
  stroke-width: 3;
  r: 20;
  cx: 24;
  cy: 24;
}

.progress-ring .background {
  stroke: rgba(255,255,255,0.2);
}

.progress-ring .progress {
  stroke: var(--primary-red);
  stroke-linecap: round;
  transition: stroke-dasharray var(--transition-smooth);
}

/* ========================================
   RESPONSIVE COMPONENTS
======================================== */

/* Tablet adjustments */
@media (min-width: 768px) {
  .genre-card {
    width: 140px;
  }
  
  .search-result-image {
    width: 80px;
    height: 120px;
  }
  
  .toast-container {
    right: 32px;
  }
}

/* Desktop adjustments */
@media (min-width: 1024px) {
  .genre-section {
    padding: 0 var(--content-padding) 60px;
  }
  
  .genre-card {
    width: 160px;
  }
  
  .genre-card:hover {
    transform: translateY(-8px);
  }
}

/* ========================================
   SEASONS & EPISODES
======================================== */
.seasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.season-card {
  background: var(--dark-bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 16px;
}

.season-card:hover {
  background: var(--dark-bg-tertiary);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.season-number {
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.season-info h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.season-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Episodes Modal */
.episodes-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.episodes-modal .modal-content {
  background: var(--dark-bg-primary);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
}

.episodes-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: var(--dark-bg-primary);
  z-index: 1;
}

.episodes-modal .modal-header h2 {
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--dark-bg-secondary);
  color: var(--text-primary);
}

.episodes-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.episode-card {
  background: var(--dark-bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--border-radius) !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  width: 100% !important;
}

.episode-card:hover {
  background: var(--dark-bg-tertiary);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.episode-thumbnail {
  width: 160px !important;
  min-width: 160px !important;
  max-width: 160px !important;
  height: 90px !important;
  min-height: 90px !important;
  max-height: 90px !important;
  background: var(--dark-bg-tertiary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

.episode-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.episode-number {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.episode-runtime {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.no-thumbnail {
  font-size: 2.5rem;
}

.episode-placeholder {
  color: var(--text-secondary);
  font-size: 2rem;
  font-weight: 600;
}

.episode-info {
  padding: 12px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.episode-info h3 {
  color: var(--text-primary) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
}

.episode-info p {
  color: var(--text-secondary) !important;
  font-size: 0.875rem !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.4 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.episode-runtime-old {
  background: var(--primary-color);
  color: white;
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ========================================
   ACCESSIBILITY
======================================== */

/* Focus styles */
button:focus-visible,
input:focus-visible,
.nav-item:focus-visible {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

/* High contrast support */
@media (prefers-contrast: high) {
  .skeleton {
    background: repeating-linear-gradient(
      45deg,
      var(--dark-bg-secondary),
      var(--dark-bg-secondary) 10px,
      var(--dark-bg-tertiary) 10px,
      var(--dark-bg-tertiary) 20px
    );
  }
}

/* Motion sensitivity */
@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
    background: var(--dark-bg-tertiary);
  }
  
  .toast {
    animation: none;
    transform: none;
  }
}

/* DESATIVADO - USANDO SÓ A IMAGEM DO HTML */
/* .trailer-button-card {
    display: none !important;
} */

.trailer-button-card:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

.movie-card {
    position: relative !important;
    overflow: visible !important;
}

/* Força o botão trailer a ser independente do card */
.movie-card .trailer-button-card {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}



/* ========================================
   CUSTOM EYE ICON
======================================== */
.custom-eye-icon {
  display: inline-block;
  width: 18px;
  height: 11px;
  position: relative;
  background: #ffffff;
  border-radius: 50px;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid #ddd;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

    .custom-eye-icon::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 7px;
        height: 7px;
        background: #dc2626;
        border-radius: 50%;
        border: 1px solid #b91c1c;
    }.custom-eye-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 2px;
  background: #ecf0f1;
  border-radius: 50%;
  z-index: 1;
}
/* ========================================
   DETAILS PAGE - COMPLETE STYLES
======================================== */

/* Cast Section */
.cast-section {
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.3);
}

.cast-container {
    max-width: 1400px;
    margin: 0 auto;
}

.cast-horizontal-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: #dc2626 #1a1a1a;
}

.cast-horizontal-list::-webkit-scrollbar {
    height: 8px;
}

.cast-horizontal-list::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

.cast-horizontal-list::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 10px;
}

.cast-card {
    min-width: 280px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.cast-photo {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cast-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-photo {
    font-size: 80px;
    color: #666;
}

.cast-info {
    padding: 15px;
}

.cast-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.cast-character {
    font-size: 14px;
    color: #dc2626;
    margin-bottom: 8px;
}

.cast-birth {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.cast-bio {
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Seasons Section */
.seasons-section {
    padding: 40px 20px;
}

.seasons-container {
    max-width: 1400px;
    margin: 0 auto;
}

.season-block {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.season-header {
    padding: 20px;
    background: rgba(220, 38, 38, 0.1);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.season-header:hover {
    background: rgba(220, 38, 38, 0.2);
}

.season-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.season-toggle {
    font-size: 20px;
    color: #dc2626;
    transition: transform 0.3s ease;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.episode-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.episode-card:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.3);
}

.episode-thumbnail {
    width: 100%;
    height: 180px;
    position: relative;
    background: #2a2a2a;
    overflow: hidden;
}

.episode-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #666;
}

.episode-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 12px;
}

.episode-runtime {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.episode-info {
    padding: 15px;
}

.episode-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.episode-description {
    font-size: 14px;
    color: #ccc;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Genre Tags */
.genre-tag {
    display: inline-block;
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin: 4px;
}

/* Similar Content */
.similar-section {
    padding: 40px 20px;
}

.similar-container {
    max-width: 1400px;
    margin: 0 auto;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.content-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

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

.card-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover .card-overlay {
    opacity: 1;
}

.card-play {
    font-size: 40px;
    color: white;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* ========================================
   WATCHLIST / HISTORY PAGE
======================================== */
.watchlist-page {
    padding: 100px 20px 120px;
    min-height: 100vh;
}

.page-header {
    max-width: 1400px;
    margin: 0 auto 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.history-card {
    background: var(--dark-bg-secondary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.history-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.history-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--dark-bg-tertiary);
}

.history-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-card-info {
    padding: 20px;
}

.history-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.last-watched {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.last-watched-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.last-watched-episode {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-red);
}

.last-watched-title {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.last-watched-date {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.history-card-metadata {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--dark-bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-red), #ff6b6b);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-label {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 24px;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.error-state .empty-icon {
    color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .watchlist-page {
        padding: 80px 16px 100px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .watchlist-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .history-card-title {
        font-size: 1.1rem;
    }
}

/* ========================================
   SUBSCRIPTION MODAL
======================================== */
.subscription-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.subscription-modal-content {
    background: linear-gradient(135deg, var(--dark-bg-secondary) 0%, #1a1a1a 100%);
    padding: 50px 40px;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--primary-red);
    max-width: 550px;
    width: 90%;
    position: relative;
    text-align: center;
    animation: subscriptionSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.3);
}

@keyframes subscriptionSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.subscription-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscription-modal-close:hover {
    color: var(--primary-red);
    transform: rotate(90deg);
}

.subscription-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.subscription-modal-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.subscription-modal-content > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.subscription-benefits {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 25px 20px;
    margin-bottom: 30px;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.benefit-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-icon {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.subscription-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.price-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-red);
    line-height: 1;
}

.price-period {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.btn-subscribe-now {
    width: 100%;
    padding: 18px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff4444 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.btn-subscribe-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.6);
    background: linear-gradient(135deg, #ff4444 0%, var(--primary-red) 100%);
}

.btn-subscribe-now:active {
    transform: translateY(0);
}

.btn-subscribe-now:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.subscription-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .subscription-modal-content {
        padding: 40px 25px;
        max-width: 95%;
    }

    .subscription-modal-content h2 {
        font-size: 1.5rem;
    }

    .subscription-modal-content > p {
        font-size: 1rem;
    }

    .price-value {
        font-size: 2.5rem;
    }

    .btn-subscribe-now {
        font-size: 1rem;
        padding: 15px 25px;
    }
}


/* Toast Notifications */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(220, 38, 38, 0.95);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 10000;
    transition: bottom 0.3s ease;
}

.toast.show {
    bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cast-card {
        min-width: 220px;
    }
    
    .cast-photo {
        height: 280px;
    }
    
    .episodes-grid {
        grid-template-columns: 1fr;
    }
    
    .similar-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}
