/**
 * DASH⚡ UI Components
 * Specialized components for WebTV interface
 */

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(157, 78, 221, 0.2);
  display: flex;
  align-items: center;
  padding: 0 var(--spacing-lg);
  z-index: var(--z-navbar);
}

.navbar-logo {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-cosmic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
}

.navbar-search {
  flex: 1;
  max-width: 500px;
  margin: 0 var(--spacing-lg);
}

.search-input {
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-normal);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: var(--glow-purple);
}

.navbar-actions {
  display: flex;
  gap: var(--spacing-sm);
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(157, 78, 221, 0.2);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 var(--spacing-sm);
  z-index: var(--z-navbar);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: var(--radius-md);
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  color: inherit;
}

.nav-item-icon {
  font-size: 1.5rem;
  transition: transform var(--transition-fast);
}

.nav-item-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-item:hover .nav-item-icon,
.nav-item.active .nav-item-icon {
  transform: scale(1.1);
}

.nav-item:hover .nav-item-label,
.nav-item.active .nav-item-label {
  color: var(--primary-purple-light);
}

.nav-item.active {
  background: rgba(157, 78, 221, 0.1);
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.page-container {
  margin-top: 70px;
  margin-bottom: 90px;
  padding: var(--spacing-lg);
  min-height: calc(100vh - 160px);
}

.section {
  margin-bottom: var(--spacing-xl);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-link {
  color: var(--primary-purple-light);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.section-link:hover {
  color: var(--secondary-blue);
}

/* ============================================
   CONTENT GRID
   ============================================ */

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--spacing-md);
  max-width: 2400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-lg);
  }
}

/* ============================================
   CONTENT CARDS
   ============================================ */

.content-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.content-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-card-hover);
  z-index: var(--z-base);
}

.content-card-poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.content-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-sm);
  background: var(--gradient-dark);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.content-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.content-card-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.content-card-badge {
  position: absolute;
  top: var(--spacing-xs);
  right: var(--spacing-xs);
  z-index: 10;
}

/* Content Card - Neon Style (for items without posters) */
.content-card.neon-card {
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-cyan));
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.content-card.neon-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: neonSweep 4s infinite;
}

.content-card.neon-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.content-card.neon-card .neon-card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 15px;
  width: 100%;
}

.content-card.neon-card .neon-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-card.neon-card .neon-year {
  margin-top: 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.content-card.neon-card:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 0 3px rgba(157, 78, 221, 0.5),
    0 0 30px rgba(157, 78, 221, 0.4);
}

/* Hidden Gems Section Divider */
.neon-section-divider {
  grid-column: 1 / -1;
  width: 100%;
  padding: 40px 0 20px;
  text-align: center;
  position: relative;
}

.neon-section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(157, 78, 221, 0.5),
    rgba(0, 212, 255, 0.5),
    transparent
  );
}

.neon-section-title {
  display: inline-block;
  background: var(--bg-dark);
  padding: 0 20px;
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.neon-section-subtitle {
  display: block;
  margin-top: 5px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@keyframes neonSweep {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* ============================================
   HERO BANNER
   ============================================ */

.hero-banner {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--spacing-xl);
}

.hero-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.7) 50%,
    transparent 100%
  );
}

.hero-banner-content {
  position: relative;
  z-index: 10;
  padding: var(--spacing-xl);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 600px;
}

.hero-banner-title {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.hero-banner-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-banner-actions {
  display: flex;
  gap: var(--spacing-sm);
}

/* ============================================
   CATEGORY FILTER
   ============================================ */

.category-filter {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-filter::-webkit-scrollbar {
  display: none;
}

.category-chip {
  padding: 0.5rem 1.25rem;
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-chip:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.category-chip.active {
  background: var(--gradient-primary);
  color: var(--text-primary);
  border-color: var(--primary-purple-light);
}

/* ============================================
   MODAL
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(5px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  animation: fadeIn 0.3s ease;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: slideUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  z-index: 100;
  width: 40px;
  height: 40px;
  background: rgba(10, 10, 10, 0.8);
  border: none;
  border-radius: var(--radius-full);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--primary-purple);
  transform: scale(1.1);
}

.modal-header {
  position: relative;
  height: 400px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.modal-header-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.modal-header-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-lg);
  background: linear-gradient(transparent, rgba(10, 10, 10, 0.95));
}

.modal-body {
  padding: var(--spacing-lg);
  max-height: 400px;
  overflow-y: auto;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.modal-meta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.modal-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.modal-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

/* ============================================
   VIDEO PLAYER
   ============================================ */

.video-player-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  z-index: var(--z-modal);
}

.video-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: white;
  z-index: 10;
}

.video-player-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-player {
  width: 100%;
  height: 100%;
}

.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-md);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.video-player-container:hover .player-controls {
  transform: translateY(0);
}

/* ============================================
   CHANNEL OVERLAY - YouTube-style hover display
   ============================================ */

.channel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  z-index: 15;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.video-player-container:hover .channel-overlay {
  opacity: 1;
}

/* Channel logo in overlay */
.channel-overlay-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  padding: 4px;
}

/* Channel info container */
.channel-overlay-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Channel name - YouTube style */
.channel-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  letter-spacing: 0.3px;
}

/* Programme/category info */
.channel-programme {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.channel-programme::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ============================================
   NAV BUTTONS - YouTube-style prev/next controls
   ============================================ */

.player-nav-buttons {
  position: absolute;
  bottom: 80px;
  right: 20px;
  z-index: 25;
  display: flex;
  gap: 12px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-player-container:hover .player-nav-buttons {
  opacity: 1;
  transform: translateX(0);
}

.player-prev-btn,
.player-next-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.player-prev-btn svg,
.player-next-btn svg {
  width: 26px;
  height: 26px;
  transition: transform 0.2s ease;
}

.player-prev-btn:hover,
.player-next-btn:hover {
  background: var(--primary-purple);
  transform: scale(1.12);
  box-shadow: 0 0 24px rgba(157, 78, 221, 0.5);
}

.player-prev-btn:hover svg {
  transform: translateX(-2px);
}

.player-next-btn:hover svg {
  transform: translateX(2px);
}

.player-prev-btn:active,
.player-next-btn:active {
  transform: scale(0.95);
}

/* Mobile: stack vertically */
@media (max-width: 600px) {
  .player-nav-buttons {
    flex-direction: column;
    bottom: 100px;
    right: 12px;
  }

  .player-prev-btn,
  .player-next-btn {
    width: 44px;
    height: 44px;
  }

  .player-prev-btn svg,
  .player-next-btn svg {
    width: 22px;
    height: 22px;
  }
}

/* ============================================
   QUALITY SELECTOR - Video quality dropdown
   ============================================ */

.quality-selector {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-cyan));
  border-radius: 12px;
  opacity: 0;
  transition: all 0.3s ease;
  text-align: center;
  overflow: hidden;
}

/* Animated glow effect like neon-card */
.quality-selector::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent 30%
  );
  animation: neonRotate 4s linear infinite;
}

/* Glass overlay */
.quality-selector::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(1px);
}

.video-player-container:hover .quality-selector {
  opacity: 1;
}

.quality-selector label {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}

.quality-selector select {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  color: white;
  padding: 0;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  text-align: center;
  text-align-last: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.quality-selector select:hover,
.quality-selector select:focus {
  transform: scale(1.05);
}

.quality-selector select option {
  background: #1a1a2e;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem;
}

/* Quality selector for Account page */
.quality-select-account {
  background: rgba(157, 78, 221, 0.2);
  border: 2px solid rgba(157, 78, 221, 0.4);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  min-width: 120px;
}

.quality-select-account:hover,
.quality-select-account:focus {
  background: rgba(157, 78, 221, 0.3);
  border-color: var(--primary-purple);
}

.quality-select-account option {
  background: #1a1a2e;
  color: white;
  padding: 0.5rem;
}

/* ============================================
   SEASON COUNT BADGE - Multi-season indicator
   ============================================ */

.season-count-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-cyan) 100%);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(157, 78, 221, 0.4);
}

/* ============================================
   SEASON PICKER MODAL
   ============================================ */

.season-picker-modal {
  max-width: 800px;
}

.season-picker-modal .modal-header {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  height: auto;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
}

.season-picker-modal .modal-poster {
  width: 200px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.season-picker-modal .modal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.season-picker-modal .modal-info h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.season-picker-modal .modal-plot {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.season-picker-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-cyan) 100%);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

.season-picker-container {
  margin-top: 1.5rem;
}

.season-picker-heading {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.season-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.season-picker-card {
  background: rgba(157, 78, 221, 0.1);
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.season-picker-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-purple);
  box-shadow: 0 8px 24px rgba(157, 78, 221, 0.3);
}

.season-picker-poster {
  aspect-ratio: 2/3;
  overflow: hidden;
}

.season-picker-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.season-picker-card:hover .season-picker-poster img {
  transform: scale(1.05);
}

.season-picker-info {
  padding: 0.75rem;
  text-align: center;
}

.season-picker-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.season-picker-episodes {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .season-picker-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .season-picker-modal .modal-header {
    flex-direction: column;
    text-align: center;
  }
}

.channel-name {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.channel-name::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #ff4444;
  border-radius: 50%;
  animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   OFFLINE MESSAGE - Custom channel not live
   ============================================ */

.offline-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  padding: 2rem;
}

.offline-icon {
  font-size: 3rem;
  opacity: 0.7;
}

.offline-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
}

.offline-subtext {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================
   LOADING STATE
   ============================================ */

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: var(--spacing-md);
}

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

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.empty-state-description {
  font-size: 1rem;
}

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

@media (max-width: 768px) {
  .navbar-search {
    display: none;
  }

  .hero-banner {
    height: 400px;
  }

  .hero-banner-title {
    font-size: 2rem;
  }

  .hero-banner-description {
    font-size: 0.95rem;
  }

  .modal-header {
    height: 300px;
  }

  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (min-width: 1024px) {
  /* Keep bottom nav visible on desktop for consistent UX */
  /* .bottom-nav {
    display: none;
  } */

  .page-container {
    margin-bottom: var(--spacing-lg);
  }
}

/* ============================================
   SERIES EPISODES
   ============================================ */

.series-episodes {
  margin-top: var(--spacing-lg);
}

.season-section {
  margin-bottom: var(--spacing-xl);
}

.season-section h3 {
  color: var(--primary);
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
}

.episode-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.episode-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.episode-card:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
  transform: translateX(4px);
}

.episode-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
}

.episode-info {
  flex: 1;
}

.episode-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.episode-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.episode-play {
  flex-shrink: 0;
  font-size: 1.5rem;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.episode-card:hover .episode-play {
  opacity: 1;
}

/* Format Badges */
.format-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Stream First Badge (MP4) - Clean green */
.format-badge.stream-first {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Offline Exclusive Badge (MKV) - Premium GOLD */
.format-badge.offline-exclusive {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.15));
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
  text-shadow: 0 0 4px rgba(255, 215, 0, 0.3);
}

/* Offline Exclusive Episode Card - Premium styling */
.episode-card.offline-exclusive-episode {
  border-color: rgba(255, 215, 0, 0.25);
  background: linear-gradient(135deg, var(--bg-card), rgba(255, 215, 0, 0.03));
}

.episode-card.offline-exclusive-episode:hover {
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.episode-card.offline-exclusive-episode .episode-number {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
}

/* Episode Action Buttons */
.episode-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.episode-btn {
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

/* Watch in Player Button - Gold themed */
.episode-btn.watch-player-btn {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.15));
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.episode-btn.watch-player-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.35), rgba(255, 165, 0, 0.25));
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Download Button - Gold accent */
.episode-btn.download-btn {
  background: rgba(255, 215, 0, 0.1);
  color: #ffcc00;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.episode-btn.download-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: scale(1.05);
}

/* Stream First Episode - Simple play button */
.episode-btn.stream-btn {
  background: rgba(147, 51, 234, 0.2);
  color: #a855f7;
  border: 1px solid rgba(147, 51, 234, 0.3);
}

.episode-btn.stream-btn:hover {
  background: rgba(147, 51, 234, 0.35);
  transform: scale(1.05);
}

/* Stream First Download (limited) */
.episode-btn.stream-download-btn {
  background: rgba(100, 100, 100, 0.15);
  color: #888;
  border: 1px solid rgba(100, 100, 100, 0.2);
  font-size: 0.7rem;
}

.episode-btn.stream-download-btn:hover {
  background: rgba(100, 100, 100, 0.25);
}

/* ============================================
   DOWNLOAD LIBRARY PAGE
   ============================================ */

.downloads-page {
  padding: var(--spacing-lg);
  padding-bottom: 100px;
}

.downloads-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
}

.downloads-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.downloads-title h1 {
  font-size: 1.75rem;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.downloads-title .icon {
  font-size: 2rem;
}

.downloads-stats {
  display: flex;
  gap: var(--spacing-lg);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.downloads-stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.downloads-stat.gold {
  color: #ffd700;
}

/* Empty Downloads State */
.downloads-empty {
  text-align: center;
  padding: 60px 20px;
}

.downloads-empty-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.5;
}

.downloads-empty h2 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.downloads-empty p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

/* Downloads Series Card */
.downloads-series {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.downloads-series-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.downloads-series-poster {
  width: 80px;
  height: 120px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.downloads-series-info h3 {
  color: var(--text-primary);
  margin-bottom: 4px;
}

.downloads-series-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.downloads-series-episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 8px;
  margin-top: var(--spacing-md);
}

/* Season Labels */
.downloads-season-label {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-xs);
  padding-left: 4px;
}

.downloads-season-label:first-child {
  margin-top: 0;
}

.downloads-season-episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
  gap: 6px;
  margin-bottom: var(--spacing-sm);
}

/* Episode Chips */
.downloads-episode-chip {
  position: relative;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

/* Offline Exclusive - Downloaded (Full gold glory) */
.downloads-episode-chip.offline-exclusive.downloaded {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.2));
  border: 2px solid #ffd700;
  color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.downloads-episode-chip.offline-exclusive.downloaded:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.35), rgba(255, 165, 0, 0.3));
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Offline Exclusive - Not Downloaded (Transparent with gold dashed border) */
.downloads-episode-chip.offline-exclusive.not-downloaded {
  background: rgba(255, 215, 0, 0.05);
  border: 2px dashed rgba(255, 215, 0, 0.4);
  color: rgba(255, 215, 0, 0.5);
  opacity: 0.7;
}

.downloads-episode-chip.offline-exclusive.not-downloaded:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: #ffd700;
  color: #ffd700;
  opacity: 1;
  transform: scale(1.08);
}

/* Stream First - Always available (green, full opacity) */
.downloads-episode-chip.stream-first {
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.downloads-episode-chip.stream-first:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  transform: scale(1.05);
}

/* Stream First - Downloaded (slightly brighter) */
.downloads-episode-chip.stream-first.downloaded {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
}

/* Checkmark for downloaded episodes */
.chip-check {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: #10b981;
  border-radius: 50%;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.downloads-episode-chip.offline-exclusive .chip-check {
  background: #ffd700;
  color: #000;
}

/* Download All Button */
.download-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  margin-top: var(--spacing-md);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
  border: 1px dashed rgba(255, 215, 0, 0.4);
  border-radius: var(--radius-md);
  color: #ffd700;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.download-all-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.2));
  border-style: solid;
}

/* ============================================
   NEON FALLBACK CARDS
   For movies without poster images
   ============================================ */

/* Neon card with gradient background */
.browse-card.neon-card .browse-card-poster-wrap,
.neon-poster {
  background: linear-gradient(135deg, var(--neon-color1), var(--neon-color2));
  position: relative;
  overflow: hidden;
}

/* Animated glow effect */
.browse-card.neon-card .browse-card-poster-wrap::before,
.neon-poster::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent 30%
  );
  animation: neonRotate 4s linear infinite;
}

@keyframes neonRotate {
  100% {
    transform: rotate(360deg);
  }
}

/* Glass effect overlay */
.browse-card.neon-card .browse-card-poster-wrap::after,
.neon-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(1px);
}

/* Neon content container */
.neon-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-sm);
  text-align: center;
  z-index: 2;
  gap: 0.5rem;
}

/* Neon title - BOLD POSTER STYLE */
.neon-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  line-height: 1.15;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  max-width: 90%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* Neon year badge - bottom of card */
.neon-year {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: var(--spacing-xs);
}

/* Neon plot text */
.neon-plot {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
  max-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Neon fallback inline (for onerror) */
.neon-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--neon-color1, #667eea), var(--neon-color2, #764ba2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-sm);
  text-align: center;
  border-radius: inherit;
  position: relative;
}

.neon-fallback .neon-title {
  font-size: 0.95rem;
}

.neon-fallback .neon-year {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
}

/* Hover effects for neon cards */
.browse-card.neon-card:hover .browse-card-poster-wrap::before {
  animation-duration: 2s;
}

.browse-card.neon-card:hover .neon-content {
  transform: scale(1.02);
  transition: transform var(--transition-fast);
}

/* ============================================
   OFFLINE EXCLUSIVE BADGE (on browse cards)
   Subtle gold download icon in top-left
   ============================================ */

.offline-exclusive-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 165, 0, 0.85));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.offline-exclusive-badge svg {
  width: 14px;
  height: 14px;
  stroke: #000;
  stroke-width: 2.5;
}

/* Subtle pulse animation on hover */
.browse-card:hover .offline-exclusive-badge {
  animation: goldPulse 1.5s ease-in-out infinite;
}

@keyframes goldPulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
  }
  50% {
    box-shadow: 0 2px 16px rgba(255, 215, 0, 0.7);
  }
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  animation: slideUp 0.3s ease-out;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-width: calc(100vw - 32px);
  margin: 0 16px;
  word-wrap: break-word;
}

.toast-notification.toast-info {
  border-color: #3b82f6;
}

.toast-notification.toast-success {
  border-color: #10b981;
}

.toast-notification.toast-warning {
  border-color: #f59e0b;
}

.toast-icon {
  font-size: 1.2rem;
}

.toast-message {
  color: var(--text-primary);
  font-size: 0.9rem;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 768px) {
  .toast-notification {
    bottom: 80px;
    font-size: 14px;
  }
}

/* ============================================
   NETFLIX-STYLE COLLECTIONS & CAROUSELS
   ============================================ */

.premium-home {
  padding-bottom: 100px;
}

/* Hero Banner Enhancement */
.hero-banner {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 0 5%;
  padding-bottom: 80px;
  margin-bottom: 20px;
  background-size: cover;
  background-position: center right;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-purple);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.hero-meta {
  display: flex;
  gap: 15px;
  margin: 15px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hero-year, .hero-rating, .hero-category {
  background: rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 4px;
}

.hero-rating {
  color: #ffd700;
}

.btn-play {
  background: white;
  color: black;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-play:hover {
  background: rgba(255,255,255,0.8);
  transform: scale(1.05);
}

.btn-info {
  background: rgba(109, 109, 110, 0.7);
  color: white;
  padding: 12px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-info:hover {
  background: rgba(109, 109, 110, 0.5);
}

/* Collection Rows */
.collection-row {
  margin-bottom: 30px;
  padding: 0 4%;
}

.collection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.collection-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Franchise Tagline - Signature collection branding */
.franchise-tagline {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.3) 0%, rgba(0, 209, 178, 0.3) 100%);
  border: 1px solid rgba(157, 78, 221, 0.4);
  color: rgba(255, 255, 255, 0.9);
  animation: taglinePulse 3s ease-in-out infinite;
}

@keyframes taglinePulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Franchise-specific tagline colors */
[data-franchise="marvel"] .franchise-tagline {
  background: linear-gradient(135deg, rgba(237, 28, 36, 0.4) 0%, rgba(255, 200, 0, 0.3) 100%);
  border-color: rgba(237, 28, 36, 0.6);
  color: #ffd700;
}

[data-franchise="dc"] .franchise-tagline {
  background: linear-gradient(135deg, rgba(0, 99, 178, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%);
  border-color: rgba(0, 99, 178, 0.6);
  color: #4a9fd9;
}

[data-franchise="star_wars"] .franchise-tagline {
  background: linear-gradient(135deg, rgba(255, 232, 31, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
  border-color: rgba(255, 232, 31, 0.6);
  color: #ffe81f;
  text-shadow: 0 0 10px rgba(255, 232, 31, 0.5);
}

[data-franchise="john_wick"] .franchise-tagline {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.6) 100%);
  border-color: rgba(139, 0, 0, 0.7);
  color: #ff4444;
  font-style: italic;
}

[data-franchise="james_bond"] .franchise-tagline {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(212, 175, 55, 0.3) 100%);
  border-color: rgba(212, 175, 55, 0.6);
  color: #d4af37;
}

[data-franchise="fast_furious"] .franchise-tagline {
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.4) 0%, rgba(0, 0, 0, 0.5) 100%);
  border-color: rgba(255, 102, 0, 0.6);
  color: #ff6600;
}

[data-franchise="wizarding_world"] .franchise-tagline {
  background: linear-gradient(135deg, rgba(116, 0, 184, 0.4) 0%, rgba(0, 0, 0, 0.5) 100%);
  border-color: rgba(116, 0, 184, 0.6);
  color: #9d4edd;
}

[data-franchise="jurassic"] .franchise-tagline {
  background: linear-gradient(135deg, rgba(34, 139, 34, 0.4) 0%, rgba(139, 69, 19, 0.4) 100%);
  border-color: rgba(34, 139, 34, 0.6);
  color: #90EE90;
}

[data-franchise="animation"] .franchise-tagline {
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.3) 0%, rgba(135, 206, 250, 0.3) 100%);
  border-color: rgba(255, 105, 180, 0.5);
  color: #FFB6C1;
}

.collection-see-all {
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s;
}

.collection-see-all:hover {
  color: var(--primary-purple);
}

/* Carousel */
.collection-carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 100%;
  background: rgba(0,0,0,0.7);
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
}

.collection-carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn-left {
  left: 0;
  border-radius: 0 4px 4px 0;
}

.carousel-btn-right {
  right: 0;
  border-radius: 4px 0 0 4px;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.9);
}

/* Movie Cards (Netflix Style) */
.movie-card {
  flex: 0 0 180px;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, z-index 0s 0.3s;
}

.movie-card:hover {
  transform: scale(1.15);
  z-index: 20;
  transition: transform 0.3s ease, z-index 0s;
  box-shadow:
    0 0 0 3px var(--primary-purple),
    0 0 30px rgba(157, 78, 221, 0.6),
    0 15px 40px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.movie-card-poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  background: var(--bg-card);
}

.movie-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

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

.movie-card-play {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: black;
  transform: scale(0);
  transition: transform 0.2s;
}

.movie-card:hover .movie-card-play {
  transform: scale(1);
}

.movie-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
  transform: translateY(0);
  transition: all 0.3s;
}

.movie-card:hover .movie-card-info {
  background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 70%, transparent 100%);
}

.movie-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.movie-card-rating {
  font-size: 0.75rem;
  color: #ffd700;
  margin-top: 4px;
}

/* Quick Links */
.quick-links {
  display: flex;
  gap: 20px;
  padding: 40px 5%;
  justify-content: center;
}

.quick-link-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 30px 50px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(157, 78, 221, 0.2);
}

.quick-link-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-purple);
  box-shadow: var(--glow-purple);
}

.quick-link-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.quick-link-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.quick-link-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 5px;
}

/* Page Header */
.page-header {
  padding: 20px 0;
  margin-bottom: 20px;
}

.page-header h1 {
  margin: 10px 0;
}

.page-description {
  color: var(--text-secondary);
}

.btn-back {
  background: transparent;
  border: 1px solid var(--text-secondary);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-back:hover {
  border-color: white;
  color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-banner {
    min-height: 50vh;
    padding-bottom: 40px;
  }

  .hero-banner-title {
    font-size: 1.8rem;
  }

  .hero-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .movie-card {
    flex: 0 0 130px;
  }

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

  .collection-title {
    font-size: 1.1rem;
  }

  .quick-links {
    flex-direction: column;
    padding: 20px;
  }

  .quick-link-card {
    padding: 20px;
  }

  .carousel-btn {
    display: none;
  }
}

/* ============================================
   COMING SOON BANNER
   ============================================ */

.coming-soon-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(0, 212, 255, 0.1));
  border-radius: 20px;
  border: 2px dashed rgba(157, 78, 221, 0.3);
  margin-top: 40px;
}

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

.coming-soon-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-cosmic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.coming-soon-banner p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 400px;
}

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

/* ============================================
   CONTINUE WATCHING & MY LIST
   ============================================ */

/* Continue Watching Row */
.continue-watching-row {
  background: linear-gradient(180deg, rgba(157, 78, 221, 0.1) 0%, transparent 100%);
  padding: 1.5rem 0;
  margin: 0 -2rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.continue-watching-row .collection-title {
  color: var(--primary-purple-light);
}

/* My List Row */
.my-list-row {
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.05) 0%, transparent 100%);
  padding: 1.5rem 0;
  margin: 0 -2rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Featured Row Styling */
.featured-row {
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.05) 0%, transparent 100%);
  padding: 1.5rem 0;
  margin: 0 -2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  border-left: 3px solid var(--accent-gold);
}

/* Continue Watching Card */
.continue-card {
  position: relative;
}

.continue-card .progress-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.7);
}

.continue-card .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-purple), var(--secondary-blue));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.continue-card .card-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(157, 78, 221, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.continue-card:hover .card-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.continue-card .card-play-icon svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}

/* Remove from History Button */
.remove-history-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.8);
  border: none;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.continue-card:hover .remove-history-btn {
  opacity: 1;
}

.remove-history-btn:hover {
  background: var(--accent-red);
  color: white;
  transform: scale(1.1);
}

/* My List Badge */
.mylist-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: var(--primary-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(157, 78, 221, 0.4);
}

.mylist-badge svg {
  width: 14px;
  height: 14px;
  fill: white;
}

/* Remove from My List Button */
.remove-mylist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: var(--primary-purple);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-card:hover .remove-mylist-btn {
  opacity: 1;
}

.remove-mylist-btn:hover {
  background: var(--accent-red);
  transform: scale(1.1);
}

/* My List Button in Modal */
.mylist-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 2px solid var(--primary-purple);
  border-radius: var(--radius-md);
  color: var(--primary-purple);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mylist-btn:hover {
  background: var(--primary-purple);
  color: white;
}

.mylist-btn.in-list {
  background: var(--primary-purple);
  color: white;
}

/* Series Card Badge */
.series-badge {
  background: linear-gradient(135deg, var(--secondary-blue), var(--primary-purple));
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  position: absolute;
  top: 8px;
  left: 8px;
}

/* Card Placeholder for items without images */
.card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.card-placeholder span {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-purple);
  text-transform: uppercase;
}

/* Card Meta Info */
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.card-rating {
  color: var(--accent-gold);
  font-weight: 600;
}

.card-category {
  background: rgba(157, 78, 221, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Page Headers */
.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state h2 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Globe icon for African content */
.collection-title-icon.globe {
  color: var(--accent-gold);
}

/* ============================================
   TOP 10 ROW - Netflix Style
   ============================================ */

.top-10-row {
  background: linear-gradient(180deg, rgba(255, 0, 110, 0.08) 0%, transparent 100%);
  padding: 1.5rem 0;
  margin: 0 -2rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.top-10-row .collection-title {
  color: var(--accent-red);
}

.top-10-row .collection-title-icon {
  color: var(--accent-gold);
}

.top-10-carousel .carousel-track {
  gap: 30px;
}

.top-10-card {
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

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

.top-10-rank {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 4px var(--primary-purple);
  text-stroke: 4px var(--primary-purple);
  margin-right: -20px;
  position: relative;
  z-index: 1;
  font-family: 'Arial Black', sans-serif;
  text-shadow:
    0 0 20px rgba(157, 78, 221, 0.5),
    4px 4px 0 var(--bg-black);
}

.top-10-poster {
  position: relative;
  width: 120px;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

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

.top-10-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.top-10-info h4 {
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: white;
}

.top-10-rating {
  font-size: 0.7rem;
  color: var(--accent-gold);
  font-weight: 600;
}

/* Top 10 number styling for different positions */
.top-10-card:nth-child(1) .top-10-rank {
  -webkit-text-stroke-color: var(--accent-gold);
  text-shadow:
    0 0 30px rgba(255, 215, 0, 0.6),
    4px 4px 0 var(--bg-black);
}

.top-10-card:nth-child(2) .top-10-rank {
  -webkit-text-stroke-color: #C0C0C0;
}

.top-10-card:nth-child(3) .top-10-rank {
  -webkit-text-stroke-color: #CD7F32;
}

/* Responsive Top 10 */
@media (max-width: 768px) {
  .top-10-rank {
    font-size: 5rem;
    -webkit-text-stroke-width: 3px;
    margin-right: -15px;
  }

  .top-10-poster {
    width: 90px;
    height: 135px;
  }

  .top-10-carousel .carousel-track {
    gap: 15px;
  }
}

/* ============================================
   RECOMMENDATIONS ROW - "Because You Watched"
   ============================================ */

.recommendations-row {
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.08) 0%, transparent 100%);
  padding: 1.5rem 0;
  margin: 0 -2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  border-left: 3px solid var(--secondary-blue);
}

.recommendations-row .collection-title {
  color: var(--secondary-blue);
}

.recommendations-row .collection-title-icon {
  color: var(--secondary-blue);
}

/* ============================================
   SEARCH ENHANCEMENTS
   ============================================ */

.search-page {
  padding: 0 2rem;
}

.search-quick-filters {
  margin: 2rem 0;
}

.search-quick-filters h3 {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.genre-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-btn {
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.genre-btn:hover {
  background: var(--primary-purple);
  border-color: var(--primary-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(157, 78, 221, 0.3);
}

.genre-btn.featured {
  background: linear-gradient(135deg, var(--accent-gold), #FFA500);
  border-color: var(--accent-gold);
  color: #000;
  font-weight: 700;
}

.genre-btn.featured:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .search-quick-filters {
    margin: 1.5rem 0;
  }

  .genre-buttons {
    gap: 8px;
  }

  .genre-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

/* ============================================
   PERFORMANCE - SKELETON LOADING & LAZY LOAD
   ============================================ */

/* Skeleton Loading Animation */
@keyframes skeleton-shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-card) 0%,
    var(--bg-card-hover) 50%,
    var(--bg-card) 100%
  );
  background-size: 200px 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
  border-radius: var(--radius-md);
}

.skeleton-card {
  width: 160px;
  height: 240px;
  flex-shrink: 0;
}

.skeleton-hero {
  width: 100%;
  height: 500px;
}

.skeleton-row {
  display: flex;
  gap: 16px;
  overflow: hidden;
  padding: 20px 0;
}

/* Lazy Load with Blur-up Effect */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-image.loaded {
  opacity: 1;
}

.image-placeholder {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--primary-purple-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder::before {
  content: '🎬';
  font-size: 2rem;
  opacity: 0.5;
}

/* Smooth fade for collection rows */
.collection-row {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.collection-row:nth-child(1) { animation-delay: 0.1s; }
.collection-row:nth-child(2) { animation-delay: 0.2s; }
.collection-row:nth-child(3) { animation-delay: 0.3s; }
.collection-row:nth-child(4) { animation-delay: 0.4s; }
.collection-row:nth-child(5) { animation-delay: 0.5s; }
.collection-row:nth-child(6) { animation-delay: 0.6s; }
.collection-row:nth-child(7) { animation-delay: 0.7s; }
.collection-row:nth-child(8) { animation-delay: 0.8s; }

/* Optimize images */
.movie-card-poster,
.card-image {
  will-change: transform;
  backface-visibility: hidden;
}

/* ============================================
   MOBILE POLISH - PHASE 6
   ============================================ */

/* Touch-friendly targets (44px minimum) */
@media (max-width: 768px) {
  /* Carousel buttons */
  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  /* Movie cards - larger touch target */
  .movie-card,
  .content-card {
    min-width: 130px;
    touch-action: manipulation;
  }

  /* Better spacing for touch */
  .collection-header {
    padding: 0.5rem 0;
  }

  .collection-see-all {
    padding: 10px 15px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Hide carousel buttons on mobile - use swipe */
  .carousel-btn {
    opacity: 0.5;
  }

  /* Swipe hint animation */
  .carousel-track {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .movie-card,
  .content-card,
  .top-10-card {
    scroll-snap-align: start;
  }

  /* Better hero on mobile */
  .hero-cinematic {
    height: 60vh;
    min-height: 400px;
  }

  .hero-title-premium {
    font-size: 1.5rem !important;
  }

  .hero-description-premium {
    display: none;
  }

  .hero-actions-premium {
    flex-direction: column;
    gap: 10px;
  }

  .btn-play-premium,
  .btn-info-premium {
    width: 100%;
    padding: 14px 20px;
  }

  /* Top 10 mobile adjustment */
  .top-10-row {
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Featured row mobile */
  .featured-row,
  .continue-watching-row,
  .my-list-row,
  .recommendations-row {
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Better navigation */
  .navbar {
    padding: 0 1rem;
  }

  .navbar-search {
    max-width: 200px;
  }

  .search-input {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  /* Quick links grid on mobile */
  .quick-links {
    flex-direction: column;
    gap: 12px;
    padding: 0 1rem;
  }

  .quick-link-card {
    flex-direction: row;
    padding: 15px 20px;
    gap: 15px;
  }

  .quick-link-icon-wrap {
    width: 50px;
    height: 50px;
  }

  /* Bottom safe area for iOS */
  .navbar-bottom {
    padding-bottom: env(safe-area-inset-bottom);
  }

  /* Pull to refresh indicator */
  body.refreshing::before {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-purple);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 9999;
  }

  /* Genre buttons scroll on mobile */
  .genre-buttons {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .genre-btn {
    flex-shrink: 0;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .hero-cinematic {
    height: 50vh;
    min-height: 350px;
  }

  .hero-title-premium {
    font-size: 1.3rem !important;
  }

  .movie-card,
  .content-card {
    min-width: 110px;
  }

  .top-10-poster {
    width: 80px;
    height: 120px;
  }

  .top-10-rank {
    font-size: 4rem;
    -webkit-text-stroke-width: 2px;
    margin-right: -10px;
  }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-cinematic {
    height: 100vh;
  }

  .navbar {
    height: 50px;
  }
}

/* Touch feedback */
.movie-card:active,
.content-card:active,
.genre-btn:active,
.quick-link-card:active {
  transform: scale(0.95);
  opacity: 0.8;
}

/* Disable hover effects on touch devices */
@media (hover: none) {
  .movie-card:hover,
  .content-card:hover {
    transform: none;
  }

  .movie-card-overlay {
    opacity: 0.3;
  }
}

/* ============================================
   AFRICAN STORIES - TALL POSTER STYLE
   A unique "story" layout for African content
   ============================================ */

.african-stories-row .carousel-track {
  display: flex;
  gap: 12px;
}

.african-story-card {
  min-width: 120px;
  max-width: 120px;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
}

.african-story-card:hover {
  transform: scale(1.05);
  z-index: 10;
}

.african-story-card .story-image-container {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
}

.african-story-card .story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.african-story-card .story-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent-gold);
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.african-story-card .story-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}

.african-story-card .story-info {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  color: white;
}

.african-story-card .story-title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.african-story-card .story-rating {
  font-size: 0.7rem;
  color: var(--accent-gold);
}

/* Ring border for African stories - pride colors */
.african-story-card::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, #009639, #FCD116, #CE1126, #009639);
  border-radius: 14px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.african-story-card:hover::before {
  opacity: 1;
}

/* ============================================
   KIDS & FAMILY ROW - PLAYFUL BUBBLE STYLE
   Fun, colorful, bouncy - Disney/Pixar vibes
   ============================================ */

.kids-row {
  background: linear-gradient(135deg, rgba(255,107,107,0.05) 0%, rgba(78,205,196,0.05) 50%, rgba(255,230,109,0.05) 100%);
  padding: 24px 0;
  border-radius: 20px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

/* Floating bubbles background */
.kids-row::before {
  content: '🎈 🎨 ⭐ 🎪 🎠 🦄 🌈';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.5rem;
  opacity: 0.3;
  letter-spacing: 15px;
  animation: floatBubbles 8s ease-in-out infinite;
}

@keyframes floatBubbles {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.kids-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem !important;
}

.kids-emoji {
  font-size: 1.8rem;
  animation: bounce 2s ease-in-out infinite;
}

.kids-emoji:nth-child(4) {
  animation-delay: 0.3s;
}

.kids-stars {
  animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.kids-tagline {
  font-size: 0.6em;
  margin-left: 12px;
  color: #FF6B6B;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #FF6B6B, #4ECDC4, #FFE66D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Kids Card - Playful bubble style */
.kids-card {
  min-width: 160px;
  max-width: 160px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.kids-card:hover {
  transform: scale(1.1) rotate(-2deg);
}

.kids-card:nth-child(even):hover {
  transform: scale(1.1) rotate(2deg);
}

.kids-card-bubble {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--kids-accent, #FF6B6B);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.15),
    0 0 0 4px var(--kids-accent),
    0 0 0 8px rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.kids-card:hover .kids-card-bubble {
  box-shadow:
    0 16px 40px rgba(0,0,0,0.2),
    0 0 0 4px var(--kids-accent),
    0 0 20px var(--kids-accent);
}

.kids-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kids-card-sparkle {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  animation: sparkle 2s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kids-card:hover .kids-card-sparkle {
  opacity: 1;
}

.kids-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.kids-card-play {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #FFE66D, #FF6B6B);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.kids-card:hover .kids-card-play {
  transform: scale(1);
}

.kids-card-info {
  padding: 12px 4px;
  text-align: center;
}

.kids-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kids-card-rating {
  font-size: 0.8rem;
  color: #FFE66D;
  margin-top: 4px;
}

/* ============================================
   K-DRAMA ROW - ELEGANT KOREAN AESTHETIC
   Romantic, soft gradients, Hallyu wave style
   ============================================ */

.kdrama-row {
  background: linear-gradient(135deg, rgba(255,182,193,0.08) 0%, rgba(255,218,233,0.08) 50%, rgba(230,190,230,0.08) 100%);
  padding: 24px 0;
  border-radius: 16px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

/* Cherry blossom petals effect */
.kdrama-row::before {
  content: '🌸';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 2rem;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext x='10' y='50' font-size='30' fill='%23FFB6C1' opacity='0.3'%3E%F0%9F%8C%B8%3C/text%3E%3Ctext x='60' y='80' font-size='20' fill='%23FFB6C1' opacity='0.2'%3E%F0%9F%8C%B8%3C/text%3E%3C/svg%3E");
  pointer-events: none;
  animation: petalFall 20s linear infinite;
}

@keyframes petalFall {
  0% { background-position: 0 0; }
  100% { background-position: 100px 200px; }
}

.kdrama-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem !important;
}

.kdrama-hangul {
  font-size: 0.9em;
  color: #FFB6C1;
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0.8;
}

.kdrama-heart {
  animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
}

.kdrama-tagline {
  font-size: 0.5em;
  margin-left: 16px;
  color: #E6B3CC;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* K-Drama Card - Elegant romantic style */
.kdrama-card {
  min-width: 150px;
  max-width: 150px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
}

.kdrama-card:hover {
  transform: translateY(-8px);
}

.kdrama-card-container {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #FFB6C1 0%, #E6B3CC 100%);
  box-shadow: 0 8px 24px rgba(255,182,193,0.2);
  transition: all 0.3s ease;
}

.kdrama-card:hover .kdrama-card-container {
  box-shadow:
    0 16px 40px rgba(255,182,193,0.3),
    0 0 30px rgba(255,182,193,0.2);
}

/* Romantic glow border on hover */
.kdrama-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #FFB6C1, #DDA0DD, #FFB6C1, #E6B3CC);
  border-radius: 14px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: romanticGlow 3s ease-in-out infinite;
}

@keyframes romanticGlow {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(20deg); }
}

.kdrama-card:hover::before {
  opacity: 1;
}

.kdrama-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kdrama-card-petals {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 60%, rgba(255,182,193,0.1) 100%);
  pointer-events: none;
}

.kdrama-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #FFB6C1, #DDA0DD);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(255,182,193,0.4);
}

.kdrama-card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
}

.kdrama-card-info {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
}

.kdrama-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.kdrama-card-rating {
  font-size: 0.75rem;
  color: #FFB6C1;
  margin-top: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.kdrama-card-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  color: #FF69B4;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.kdrama-card:hover .kdrama-card-heart {
  opacity: 1;
  transform: scale(1);
  animation: heartBeat 1s ease-in-out infinite;
}

/* ============================================
   ELITE TIER - CONTENT HEALTH & REPORTING
   ============================================ */

/* Report Button in Player */
.player-report-btn {
  position: absolute;
  top: 20px;
  right: 70px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.player-report-btn:hover {
  opacity: 1;
  background: rgba(220, 53, 69, 0.8);
  border-color: #dc3545;
  transform: scale(1.1);
}

.player-report-btn svg {
  width: 20px;
  height: 20px;
  color: white;
}

/* Report Dialog */
.report-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

.report-dialog {
  background: linear-gradient(145deg, rgba(26, 26, 46, 0.98), rgba(10, 10, 26, 0.98));
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.report-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(157, 78, 221, 0.15);
  border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

.report-dialog-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: white;
}

.report-dialog-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.report-dialog-close:hover {
  color: #dc3545;
}

.report-dialog-content {
  padding: 20px;
}

.report-dialog-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0 0 8px 0;
}

.report-dialog-title {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 20px 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-issue-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.report-issue-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.report-issue-btn:hover {
  background: rgba(157, 78, 221, 0.2);
  border-color: rgba(157, 78, 221, 0.4);
}

.report-issue-btn.selected {
  background: rgba(157, 78, 221, 0.3);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.3);
}

.report-issue-icon {
  font-size: 1.4rem;
}

.report-issue-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.report-description {
  width: 100%;
  min-height: 70px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
  resize: vertical;
  margin-bottom: 16px;
}

.report-description::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.report-description:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.report-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--gradient-cosmic);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.report-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(157, 78, 221, 0.4);
}

.report-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Content Health Indicators */
.content-offline {
  position: relative;
  opacity: 0.5;
  filter: grayscale(50%);
}

.content-offline::after {
  content: 'OFFLINE';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(220, 53, 69, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 10;
}

.content-degraded {
  position: relative;
}

.content-degraded::before {
  content: '⚠️';
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 193, 7, 0.9);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 10;
}

/* Quality Selector in Player */
.quality-selector {
  position: absolute;
  top: 20px;
  right: 120px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}

.quality-selector label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}

.quality-selector select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: white;
  padding: 4px 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.quality-selector select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Fallback Badge */
.fallback-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(34, 197, 94, 0.9);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fallback-badge svg {
  width: 10px;
  height: 10px;
}

/* ============================================
   TIER UPGRADE BANNER
   ============================================ */

.tier-upgrade-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 20px;
}

.tier-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tier-badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-badge.tier-basic {
  background: linear-gradient(135deg, #475569, #64748b);
  color: white;
}

.tier-badge.tier-standard {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: white;
}

.tier-badge.tier-premium {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
}

.tier-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.btn-upgrade {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-upgrade:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

@media (max-width: 768px) {
  .tier-upgrade-banner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .tier-info {
    flex-direction: column;
  }
}

/* ============================================
   NORTH STAR FEATURES - Package Builder & Wallet
   ============================================ */

/* Package Category Cards */
.package-category-card {
  position: relative;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 2px solid rgba(157, 78, 221, 0.2);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  overflow: hidden;
}

.package-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-cosmic);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.package-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(157, 78, 221, 0.3);
  border-color: var(--primary-purple);
}

.package-category-card.selected {
  border-color: var(--primary-purple);
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(52, 211, 153, 0.05));
}

.package-category-card.selected::before {
  opacity: 0.05;
}

.package-category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.package-category-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.package-category-price {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-cosmic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.package-category-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.package-category-checkmark {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: var(--primary-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
  z-index: 2;
}

.package-category-checkmark svg {
  width: 18px;
  height: 18px;
  color: white;
}

.package-category-card.selected .package-category-checkmark {
  opacity: 1;
  transform: scale(1);
}

/* Package Summary */
.package-summary {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(52, 211, 153, 0.1));
  border-radius: var(--radius-lg);
  border: 2px solid rgba(157, 78, 221, 0.3);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--bg-card);
  border: 2px solid rgba(157, 78, 221, 0.3);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button Sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Responsive Package Grid */
@media (max-width: 768px) {
  .package-summary {
    flex-direction: column;
    text-align: center;
  }

  .package-category-card {
    padding: 1rem;
  }

  .package-category-icon {
    font-size: 2.5rem;
  }

  .modal-content {
    padding: 1.5rem;
  }
}

/* ============================================
   FRENCH VOD STYLES
   ============================================ */

.french-vod-page {
  padding: 20px;
}

.french-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-select {
  background: rgba(30, 30, 50, 0.6);
  color: var(--text-primary);
  border: 1px solid rgba(157, 78, 221, 0.3);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-select:hover {
  border-color: rgba(157, 78, 221, 0.6);
  background: rgba(30, 30, 50, 0.8);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.2);
}

.filter-search {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.french-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.french-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(157, 78, 221, 0.3);
}

.live-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state h3 {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.poster-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(0, 212, 255, 0.1));
  border-radius: 8px;
  overflow: hidden;
}

.movie-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.movie-poster[data-src] {
  opacity: 0.5;
}

.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.play-btn {
  background: rgba(157, 78, 221, 0.9);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(157, 78, 221, 0.4);
}

.play-btn:hover {
  background: var(--primary-purple);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(157, 78, 221, 0.6);
}

.play-icon {
  width: 24px;
  height: 24px;
  fill: white;
}

@media (max-width: 768px) {
  .french-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-search {
    max-width: 100%;
  }

  .filter-select {
    width: 100%;
  }
}

/* ============================================
   ERROR HANDLING & UI POLISH COMPONENTS
   ============================================ */

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

/* Toast Notifications */
.toast {
  padding: 14px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 
              0 0 1px rgba(255, 255, 255, 0.1) inset;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 400px;
  min-width: 300px;
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.toast-visible {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.toast-message {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.toast-close:hover {
  opacity: 1;
}

.toast-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Loading Skeleton */
.skeleton {
  animation: pulse 1.5s ease-in-out infinite;
  pointer-events: none;
}

.skeleton-poster {
  background: linear-gradient(90deg, 
    #1a1a1a 0%, 
    #2a2a2a 20%, 
    #2a2a2a 40%, 
    #1a1a1a 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.skeleton-title {
  background: linear-gradient(90deg, 
    #1a1a1a 0%, 
    #2a2a2a 20%, 
    #2a2a2a 40%, 
    #1a1a1a 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  height: 18px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  width: 80%;
}

.skeleton-subtitle {
  background: linear-gradient(90deg, 
    #1a1a1a 0%, 
    #2a2a2a 20%, 
    #2a2a2a 40%, 
    #1a1a1a 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  height: 14px;
  border-radius: 4px;
  width: 60%;
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 24px;
  opacity: 0.8;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

.empty-state p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Stream Error Modal */
.stream-error {
  text-align: center;
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
}

.error-icon {
  font-size: 72px;
  margin-bottom: 24px;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

.stream-error h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.stream-error p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-actions .btn-primary,
.error-actions .btn-outline {
  min-width: 140px;
}

/* Offline Banner */
#offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  font-weight: 600;
  padding: 12px 20px;
  text-align: center;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

#offline-banner span:first-child {
  font-size: 20px;
}

/* Progress Overlay */
#progress-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.progress-content {
  text-align: center;
  padding: 40px;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  min-width: 300px;
  max-width: 400px;
}

.progress-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(157, 78, 221, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.progress-message {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 500;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(157, 78, 221, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

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

.progress-percent {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Confirmation Dialog */
.confirm-dialog {
  padding: 32px;
  text-align: center;
}

.confirm-dialog h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.confirm-dialog p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.dialog-actions button {
  min-width: 120px;
}

/* Modal Overlay (for error and confirm modals) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease-out;
  padding: 20px;
}

.modal-overlay .modal-content {
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(157, 78, 221, 0.2);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  #toast-container {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }

  .toast {
    min-width: unset;
    max-width: unset;
  }

  .empty-state {
    padding: 60px 20px;
  }

  .empty-icon {
    font-size: 48px;
  }

  .stream-error {
    padding: 30px 20px;
  }

  .error-icon {
    font-size: 56px;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn-primary,
  .error-actions .btn-outline {
    width: 100%;
    min-width: unset;
  }

  .dialog-actions {
    flex-direction: column;
  }

  .dialog-actions button {
    width: 100%;
  }

  #offline-banner {
    font-size: 14px;
    padding: 10px 16px;
  }
}

/* ============================================
   FREE CHANNEL STYLING - Green indicator
   ============================================ */

/* Free category tabs - green accent */
.category-tab.free-tab {
  border-color: #10b981;
  color: #10b981;
}

.category-tab.free-tab.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-color: #10b981;
}

.category-tab.free-tab:hover:not(.active) {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
}

/* Free channel card glow */
.live-card.free-channel {
  --glow-color-1: #10b981;
  --glow-color-2: #34d399;
}

/* Free badge - green instead of red */
.live-badge.free-badge {
  background: rgba(16, 185, 129, 0.9);
  border: 1px solid #34d399;
}

/* Free dot - blinking green like Claude Code status */
.free-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: freePulse 2s ease-in-out infinite;
  box-shadow: 0 0 6px #10b981;
}

@keyframes freePulse {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 10px #10b981; }
}

/* Free channel card border accent */
.live-card.free-channel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(16,185,129,0.3), transparent) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* ============================================
   OFFLINE / DEGRADED CHANNEL INDICATORS
   ============================================ */

/* Offline channel - grayed out with reduced opacity */
.live-card.content-offline,
.movie-card.content-offline,
.content-card.content-offline {
  filter: grayscale(0.85);
  opacity: 0.55;
  position: relative;
}

.live-card.content-offline:hover,
.movie-card.content-offline:hover,
.content-card.content-offline:hover {
  filter: grayscale(0.6);
  opacity: 0.7;
}

/* Degraded channel - slightly dimmed with warning */
.live-card.content-degraded,
.movie-card.content-degraded,
.content-card.content-degraded {
  filter: sepia(0.2) brightness(0.9);
  position: relative;
}

/* Offline overlay - dark semi-transparent with badge */
.offline-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  z-index: 15;
  backdrop-filter: blur(2px);
}

/* OFFLINE badge - bold red */
.offline-badge {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
  text-transform: uppercase;
  animation: offlinePulse 2.5s ease-in-out infinite;
}

@keyframes offlinePulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Degraded overlay - subtle warning */
.degraded-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 15;
}

/* UNSTABLE badge - orange warning */
.degraded-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}


/* ============================================
   EXPERIENCES - Neon Blue Dynamic Playlists
   ============================================ */

/* Experiences Section Container */
.experiences-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 153, 204, 0.02));
  border-radius: 16px;
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.experiences-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.experiences-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent-neon-blue);
  font-size: 1.25rem;
  font-weight: 600;
}

.experiences-title svg {
  width: 24px;
  height: 24px;
}

.experiences-subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Experience Cards Horizontal Scroll */
.experiences-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-neon-blue) transparent;
}

.experiences-scroll::-webkit-scrollbar {
  height: 6px;
}

.experiences-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.experiences-scroll::-webkit-scrollbar-thumb {
  background: var(--accent-neon-blue);
  border-radius: 3px;
}

/* Experience Card */
.experience-card {
  flex-shrink: 0;
  width: 180px;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.05));
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-neon-blue), var(--accent-neon-blue-dark));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-neon-blue);
  box-shadow: 0 8px 24px var(--accent-neon-blue-glow);
}

.experience-card:hover::before {
  opacity: 1;
}

.experience-card.loading {
  pointer-events: none;
  opacity: 0.7;
}

.experience-card.loaded {
  border-color: var(--accent-green);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
}

.experience-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.experience-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.experience-channels {
  color: var(--accent-neon-blue);
  font-size: 0.8rem;
  font-weight: 500;
}

.experience-status {
  color: var(--text-secondary);
  font-size: 0.7rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.experience-status .neon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-neon-blue);
  animation: neonPulse 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--accent-neon-blue);
}

@keyframes neonPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 12px var(--accent-neon-blue); }
}

/* Experience Tab for category tabs */
.category-tab.experience-tab {
  border-color: var(--accent-neon-blue);
  color: var(--accent-neon-blue);
}

.category-tab.experience-tab.active {
  background: linear-gradient(135deg, var(--accent-neon-blue), var(--accent-neon-blue-dark));
  color: white;
  border-color: var(--accent-neon-blue);
  box-shadow: 0 4px 12px var(--accent-neon-blue-glow);
}

.category-tab.experience-tab:hover:not(.active) {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--accent-neon-blue);
}

/* Experience channel card glow */
.live-card.experience-channel {
  --glow-color-1: var(--accent-neon-blue);
  --glow-color-2: var(--accent-neon-blue-dark);
}

.live-card.experience-channel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), transparent) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* Loading spinner for experience */
.experience-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  color: var(--accent-neon-blue);
}

.experience-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-top-color: var(--accent-neon-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Channels preview in experience card */
.experience-preview {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.experience-preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: rgba(0, 212, 255, 0.3);
}

.experience-preview-dot.live {
  background: var(--accent-neon-blue);
  animation: neonPulse 2s ease-in-out infinite;
}
