/* ============================================================
   CinVerse - movie.css
   Styles for the Movie Details page (backdrop header, cast,
   trailer, sliders) and the Favorites / Watchlist saved-card
   list styles.
   ============================================================ */

/* ---------------- BACKDROP HEADER ---------------- */
.movie-backdrop {
  width: 100%;
  min-height: 90vh;
  background-size: cover;
  background-position: top center;
  display: flex;
  align-items: flex-end;
  padding: 60px 40px;
}

.movie-header-content {
  display: flex;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
  align-items: flex-end;
  width: 100%;
}

.movie-poster-large {
  width: 260px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.movie-header-info {
  flex: 1;
}

.movie-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  letter-spacing: 1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.movie-tagline {
  color: var(--color-text-muted);
  font-style: italic;
  margin: 8px 0 16px;
}

.movie-meta-row {
  display: flex;
  gap: 14px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.meta-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.movie-overview {
  max-width: 750px;
  margin: 16px 0 24px;
  color: #E2E8F0;
}

.movie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.movie-actions .btn i {
  color: #fff;
}

/* ---------------- GENERIC MOVIE SECTION ---------------- */
.movie-section {
  max-width: 1300px;
  margin: 50px auto;
  padding: 0 40px;
}

/* ---------------- TRAILER ---------------- */
.trailer-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.trailer-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------------- CAST ---------------- */
.cast-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.cast-card {
  flex: 0 0 auto;
  width: 140px;
  text-align: center;
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: transform var(--transition-fast);
}

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

.cast-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
  background: var(--color-card-light);
}

.cast-name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* ---------------- DETAILS LOADING / ERROR ---------------- */
.details-skeleton {
  min-height: 60vh;
  justify-content: center;
}

/* ---------------- FAVORITES / WATCHLIST LIST PAGES ---------------- */
.list-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px 60px;
}

.list-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.list-header .page-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.list-header .page-heading i {
  color: var(--color-accent);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 24px;
}

.saved-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-medium);
}

.saved-card:hover {
  transform: translateY(-6px);
}

.saved-card-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.saved-card-info {
  padding: 12px 14px 6px;
}

.saved-card-info h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remove-btn {
  width: 100%;
  padding: 10px;
  background: rgba(139, 92, 246, 0.12);
  color: #c084fc;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.remove-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ---------------- PLAY MOVIE ACTION BUTTON ---------------- */
.btn-play-movie {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-play-movie:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.7);
}

/* ---------------- CINEMA THEATER MODE STREAMING PLAYER ---------------- */
.cinema-theater-section {
  max-width: 1300px;
  margin: 40px auto 60px;
  padding: 0 30px;
  position: relative;
  scroll-margin-top: 100px;
  transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
}

.cinema-theater-section.theater-mode-wide {
  max-width: 100%;
  padding: 0 16px;
}

.cinema-theater-container {
  position: relative;
  background: rgba(11, 14, 23, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px 28px 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(139, 92, 246, 0.22);
  overflow: hidden;
}

/* Ambient Backlight Glow */
.ambient-glow {
  position: absolute;
  top: -10%;
  left: 5%;
  right: 5%;
  height: 80%;
  background-size: cover;
  background-position: center;
  filter: blur(70px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

/* Theater Top Bar */
.theater-top-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.theater-title-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.live-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.live-pill i {
  font-size: 0.5rem;
  animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.theater-movie-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.theater-server-tag {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.theater-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.theater-action-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.theater-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.theater-action-btn.active {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.3);
}

.theater-action-btn.pro-tools-btn.active {
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.35);
}

.theater-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.theater-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  transform: rotate(90deg);
}

/* Server Switcher Deck */
.theater-servers-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.bar-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.bar-label i {
  color: var(--color-accent);
}

.server-pill-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.server-pill {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.server-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.server-pill.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
  border-color: #8b5cf6;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5);
}

.server-pill .server-badge {
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.server-pill.campus-pill.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  border-color: #8b5cf6;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.btn-quick-next {
  background: rgba(255, 255, 255, 0.06);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-quick-next:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.5);
}

/* In-Player Audio & Features Bar (NetMirror / FLIQ Style) */
.theater-inplayer-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  flex-wrap: wrap;
}

.inplayer-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #cbd5e1;
  flex: 1;
}

.inplayer-tip i {
  color: #38bdf8;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.inplayer-tip strong {
  color: #fff;
}

.server-switch-notice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 6px 12px;
  border-radius: 8px;
  animation: fadeIn 0.3s ease;
}

.server-switch-notice i {
  color: #38bdf8;
  font-size: 0.9rem;
}

.regional-audio-note {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 6px 12px;
  border-radius: 8px;
  line-height: 1.4;
  animation: fadeIn 0.3s ease;
}

.regional-audio-note i {
  color: #f59e0b;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.inplayer-languages {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-lang-tag {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}


/* Video Player Screen Box */
.theater-screen-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.6);
}

.theater-screen-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------------- UNRELEASED / UPCOMING WARNING BANNER ---------------- */
.unreleased-warning {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
  color: #fef3c7;
  font-size: 0.88rem;
  line-height: 1.5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.unreleased-warning .warning-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 260px;
}

.unreleased-warning .warning-main i {
  font-size: 1.3rem;
  color: #fbbf24;
  flex-shrink: 0;
}

.btn-play-trailer-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-play-trailer-inline:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.5);
}

/* Bollywood & Hindi Server Pill Highlight */
.server-pill.bollywood-pill {
  border-color: rgba(245, 158, 11, 0.4);
}

.server-pill.bollywood-pill.active {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45);
}

/* ---------------- SMART GESTURE & ANTI-ACCIDENTAL PAUSE OVERLAY ---------------- */
.player-smart-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.25s ease;
}

.player-smart-overlay.hud-visible {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

/* Double-Tap Ripple Indicators (YouTube / Netflix style) */
.seek-ripple-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 15;
  animation: seekRipplePop 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.seek-ripple-indicator.ripple-left {
  left: 0;
  background: radial-gradient(circle at 30% 50%, rgba(168, 85, 247, 0.4) 0%, rgba(147, 51, 234, 0.15) 50%, transparent 80%);
  border-top-right-radius: 50% 100%;
  border-bottom-right-radius: 50% 100%;
}

.seek-ripple-indicator.ripple-right {
  right: 0;
  background: radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.4) 0%, rgba(147, 51, 234, 0.15) 50%, transparent 80%);
  border-top-left-radius: 50% 100%;
  border-bottom-left-radius: 50% 100%;
}

.ripple-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(168, 85, 247, 0.8);
}

.ripple-icon-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.7rem;
  color: #c084fc;
}

.ripple-seconds {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}

.ripple-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #e9d5ff;
}

@keyframes seekRipplePop {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
  80% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

/* Floating Heads-Up Display (HUD) */
.player-floating-hud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 12;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-sizing: border-box;
}

.player-floating-hud.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Top Mini Bar */
.hud-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.hud-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hud-live-tag {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hud-live-tag i {
  font-size: 0.65rem;
  color: #10b981;
}

.hud-server-info {
  color: #cbd5e1;
  font-size: 0.74rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-unlock-embed {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-unlock-embed:hover {
  background: rgba(168, 85, 247, 0.35);
  border-color: #a855f7;
  color: #fff;
}

/* Center HUD Controls (Play/Pause, -10s, +10s) */
.hud-center-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin: auto;
}

.hud-btn {
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  user-select: none;
}

.hud-seek-btn {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.15rem;
  flex-direction: column;
  gap: 2px;
  backdrop-filter: blur(10px);
}

.hud-seek-btn:hover {
  transform: scale(1.1);
  background: rgba(168, 85, 247, 0.4);
  border-color: rgba(168, 85, 247, 0.6);
}

.hud-seek-btn .btn-caption {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #e2e8f0;
}

.hud-play-pause-btn {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.6), 0 4px 15px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.hud-play-pause-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.85), 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* Bottom HUD Bar */
.hud-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.hud-gesture-hint {
  font-size: 0.72rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hud-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-action-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.hud-action-pill:hover {
  background: rgba(168, 85, 247, 0.3);
  color: #fff;
  border-color: rgba(168, 85, 247, 0.5);
}

/* Persistent Subtle Floating Watermark Guide */
.player-gesture-guide-watermark {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.3s ease;
  z-index: 11;
}

.player-gesture-guide-watermark .guide-zone {
  font-size: 0.66rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Floating Button to Re-enable Smart Gestures when Direct Player Mode is active */
.btn-re-enable-gestures {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 25;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.95) 0%, rgba(124, 58, 237, 0.95) 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 0 0 15px rgba(168, 85, 247, 0.5);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease;
}

.btn-re-enable-gestures:hover {
  transform: scale(1.05);
}

/* Mobile Responsiveness for Player Gesture Overlay */
@media (max-width: 640px) {
  .hud-center-controls {
    gap: 20px;
  }
  .hud-play-pause-btn {
    width: 58px;
    height: 58px;
    font-size: 1.35rem;
  }
  .hud-seek-btn {
    width: 44px;
    height: 44px;
    font-size: 0.98rem;
  }
  .player-floating-hud {
    padding: 10px 12px;
  }
  .hud-gesture-hint {
    display: none;
  }
  .hud-bottom-bar {
    justify-content: center;
  }
  .btn-unlock-embed span {
    font-size: 0.7rem;
  }
  .player-gesture-guide-watermark {
    bottom: 5px;
    padding: 0 10px;
  }
  .player-gesture-guide-watermark .guide-zone {
    font-size: 0.58rem;
  }
}

/* Theater Footer */
.theater-footer-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: #64748b;
}

.keyboard-hints {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hint-key {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.72rem;
}

.hint-sep {
  opacity: 0.4;
}

.theater-footer-right .buffer-tip {
  color: #34d399;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Collapsible Pro Tools Drawer */
.pro-tools-drawer {
  position: relative;
  z-index: 3;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: slideDown 0.3s ease;
}

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

.pro-tools-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pro-tools-header h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-close-tools {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px 8px;
}

.btn-close-tools:hover {
  color: #fff;
}

.college-toggle-btn.active {
  background: rgba(168, 85, 247, 0.25) !important;
  color: #c084fc !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
}

/* ---------------- MX PLAYER ON-SCREEN DISPLAY (OSD) ---------------- */
.mx-player-osd {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 30;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.mx-player-osd.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mx-player-osd.super-boost {
  border-color: rgba(249, 115, 22, 0.7);
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.35), 0 10px 30px rgba(0, 0, 0, 0.7);
}

.osd-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #38bdf8;
  flex-shrink: 0;
}

.mx-player-osd.super-boost .osd-icon {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  animation: osdPulse 1.2s infinite alternate;
}

@keyframes osdPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.osd-details {
  flex: 1;
}

.osd-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.mx-player-osd.super-boost .osd-title {
  color: #fb923c;
}

.osd-pct {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
}

.osd-bar-track {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.osd-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8 0%, #0284c7 100%);
  transition: width 0.15s ease;
}

.mx-player-osd.super-boost .osd-bar-fill {
  background: linear-gradient(90deg, #38bdf8 0%, #f59e0b 50%, #ef4444 100%);
}

.osd-100-mark {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
}

/* ---------------- MX PLAYER AUDIO BOOSTER PANEL ---------------- */
.audio-booster-panel {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.booster-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.booster-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
}

.booster-title i {
  color: #38bdf8;
  font-size: 1.15rem;
}

.booster-badge {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
}

.booster-badge.boost-active {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.btn-audio-test {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 7px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-audio-test:hover {
  background: #0284c7;
  color: #fff;
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.booster-controls-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.slider-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 260px;
}

.slider-min, .slider-max {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
}

.slider-max {
  color: #f87171;
}

.booster-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: #334155;
  outline: none;
  transition: background 0.2s ease;
  cursor: pointer;
}

.booster-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #38bdf8;
  border: 3px solid #0f172a;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.booster-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.booster-slider.overdrive {
  background: linear-gradient(90deg, #38bdf8 0%, #a855f7 50%, #c084fc 100%);
}

.booster-slider.overdrive::-webkit-slider-thumb {
  background: #a855f7;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.9);
}

.preset-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-btn {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  background: #334155;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.preset-btn.active {
  background: #0284c7;
  color: #fff;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.preset-btn.preset-max.active {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  border-color: #c084fc;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

.booster-enhancers-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.enhancer-btn {
  background: rgba(30, 41, 59, 0.7);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.enhancer-btn:hover {
  background: #334155;
  color: #fff;
}

.enhancer-btn.active {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.booster-note {
  font-size: 0.76rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* ---------------- HINDI DUB GUIDANCE BANNER ---------------- */
.hindi-dub-guide-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(225, 29, 72, 0.1) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 14px;
  animation: fadeIn 0.3s ease;
}

.hindi-dub-guide-banner .guide-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hindi-dub-guide-banner .guide-body {
  font-size: 0.84rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.hindi-dub-guide-banner .guide-body p {
  margin: 0 0 6px 0;
}

.hindi-dub-guide-banner .guide-body p:last-child {
  margin-bottom: 0;
}

.hindi-dub-guide-banner .guide-body strong {
  color: #fff;
}

.hindi-dub-actions {
  margin-top: 10px;
}

.btn-hindi-ext {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-hindi-ext:hover {
  background: #fbbf24;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
}

/* ---------------- CINEBOOST TIP NOTE ---------------- */
.booster-tip-note {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.booster-tip-note i {
  color: #38bdf8;
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.booster-tip-note strong {
  color: #f8fafc;
}

/* ---------------- PLAYER PLAYBACK TOOLS & AD-SHIELD ---------------- */
.player-playback-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 16px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.btn-fallback-server {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-fallback-server:hover {
  background: #8b5cf6;
  color: #fff;
  border-color: #a855f7;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.45);
  transform: translateY(-1px);
}

.shield-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.3px;
}

.shield-status-indicator.shield-on {
  color: #34d399;
}

.shield-status-indicator.shield-on i {
  color: #10b981;
}
/* ================= DOWNLOAD BUTTON IN MOVIE ACTIONS ================= */
.btn-download-movie {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.35);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-download-movie:hover {
  background: #8b5cf6;
  color: #fff;
  border-color: #8b5cf6;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
  transform: translateY(-2px);
}

/* ================= FLIQ TV TRAILER CARDS WITH PURPLE PLAY CIRCLES ================= */
.active-trailer-stage {
  margin-bottom: 24px;
}

.trailer-cards-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 4px 20px;
  scrollbar-width: thin;
  scrollbar-color: #8b5cf6 transparent;
}

.trailer-card {
  flex: 0 0 310px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

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

.trailer-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0f1422;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.trailer-card:hover .trailer-thumb-wrap,
.trailer-card.active .trailer-thumb-wrap {
  border-color: #8b5cf6;
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.35);
}

.trailer-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.trailer-card:hover .trailer-thumb {
  transform: scale(1.06);
}

/* Purple Play Circle in Center (FLIQ TV Style) */
.trailer-play-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #8b5cf6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  padding-left: 3px;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.8), 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.trailer-card:hover .trailer-play-circle {
  transform: translate(-50%, -50%) scale(1.14);
  background: #9333ea;
  box-shadow: 0 0 30px rgba(168, 85, 247, 1);
}

.trailer-card-meta {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.trailer-type-pill {
  align-self: flex-start;
  background: rgba(139, 92, 246, 0.16);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.32);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.trailer-card-name {
  color: #f1f5f9;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================= FLIQ TV CIRCULAR CAST ROW ================= */
.cast-circular-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 4px 20px;
  scrollbar-width: thin;
  scrollbar-color: #8b5cf6 transparent;
}

.cast-circular-card {
  flex: 0 0 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cast-avatar-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  background: #141b2b;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

.cast-circular-card:hover .cast-avatar-wrap {
  transform: scale(1.08);
  border-color: #8b5cf6;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

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

.cast-actor-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 8px 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.cast-actor-role {
  font-size: 0.7rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ================= FLIQ TV DETAILS STAT GRID ================= */
.details-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  background: #0d121e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 14px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.3px;
}

/* ================= CINEMA CLOUD DOWNLOAD MODAL (MULTI-AUDIO & LOCAL SAVE) ================= */
.download-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.download-modal-card {
  width: 100%;
  max-width: 660px;
  background: #0d121f;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 45px rgba(139, 92, 246, 0.3);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: scaleUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.download-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.download-header-left i {
  font-size: 1.8rem;
  color: #c084fc;
}

.download-header-left h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-header-left h3 strong {
  color: #c084fc;
}

.download-subtitle {
  font-size: 0.76rem;
  color: #94a3b8;
  display: block;
}

.download-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.download-section-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-section-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-section-label i {
  color: #c084fc;
}

.download-episode-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.download-episode-select:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.35);
}

.download-episode-select option {
  background: #0d121f;
  color: #fff;
}

.download-audio-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.download-audio-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.download-audio-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(192, 132, 252, 0.4);
  color: #fff;
}

.download-audio-pill.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
  color: #fff;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}

.download-audio-pill .audio-flag {
  font-size: 1.1rem;
}

.download-audio-pill .audio-badge {
  background: #8b5cf6;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}

.download-tiers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-tier-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  transition: all 0.22s ease;
}

.download-tier-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(139, 92, 246, 0.45);
  transform: translateY(-2px);
}

.download-tier-card.downloading {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

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

.tier-quality-badge {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 9px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.tier-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tier-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tier-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.tier-badge-pill {
  background: rgba(192, 132, 252, 0.18);
  color: #c084fc;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.tier-codec,
.tier-audio {
  font-size: 0.74rem;
  color: #94a3b8;
}

.tier-audio i {
  color: #c084fc;
}

.tier-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tier-size {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
}

.tier-download-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-tier-magnet {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(185, 28, 28, 0.25) 100%);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-tier-magnet:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border-color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
}

.btn-start-download {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn-start-download:hover {
  background: #9333ea;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.65);
}

.btn-highlight-1dm {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: #34d399 !important;
  font-weight: 700 !important;
}

.btn-highlight-1dm:hover {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35) !important;
}

.btn-start-download:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.tier-progress-track {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
  position: relative;
}

.tier-progress-fill {
  background: linear-gradient(90deg, #8b5cf6, #c084fc);
  height: 100%;
  transition: width 0.3s ease;
}

.tier-progress-text {
  display: block;
  font-size: 0.72rem;
  color: #c084fc;
  font-weight: 700;
  margin-top: 6px;
}

/* Download Success Banner */
.download-success-banner {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #e2e8f0;
  animation: fadeIn 0.25s ease;
}

.download-success-banner i {
  color: #10b981;
  font-size: 1.3rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.download-success-banner strong {
  color: #34d399;
  font-size: 0.88rem;
  display: block;
  margin-bottom: 4px;
}

.download-success-banner p {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.4;
}

.download-success-banner code {
  background: rgba(0, 0, 0, 0.4);
  color: #c084fc;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* Cloud Mirrors Box */
.download-cloud-mirrors-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.mirror-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.mirror-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
  color: #fff;
  transform: translateY(-1px);
}

.mirror-btn i {
  color: #c084fc;
}

/* Episode Card Download Action */
.ep-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn-ep-card-download {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c084fc;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-ep-card-download:hover {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: #fff;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}

.download-modal-footer {
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.download-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.4;
}

.download-tip i {
  color: #c084fc;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ================= TRAILER LIGHTBOX MODAL ================= */
.trailer-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.trailer-lightbox-card {
  width: 100%;
  max-width: 860px;
  background: #0b0f19;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(139, 92, 246, 0.3);
  overflow: hidden;
  animation: scaleUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.trailer-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trailer-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lightbox-pill {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.4);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.trailer-header-info h4 {
  color: #fff;
  font-size: 0.96rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trailer-iframe-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.trailer-iframe-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Series Badge on Cards */
.movie-card-type-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(139, 92, 246, 0.9);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 5px;
  backdrop-filter: blur(4px);
  z-index: 4;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.45);
}

/* ============================================================
   TV SHOW & WEB SERIES EPISODES GRID (FLIQ TV / NETFLIX STYLE)
   ============================================================ */
.poster-stack {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.series-type-pill {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(139, 92, 246, 0.95);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
}

.network-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Season Tabs */
.episodes-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

.season-tabs-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.season-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.season-tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.season-tab-btn.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
  border-color: #8b5cf6;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.season-ep-count {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Episodes Grid */
.episodes-skeleton {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 40px 0;
  color: #94a3b8;
  font-size: 0.95rem;
}

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

.episode-card {
  background: rgba(18, 22, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.episode-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.2);
}

.episode-card.active-playing {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.12);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.35);
}

.episode-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f1422;
  overflow: hidden;
}

.episode-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.episode-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 14, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.episode-card:hover .episode-play-overlay,
.episode-card.active-playing .episode-play-overlay {
  opacity: 1;
}

.ep-play-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.6);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.episode-card:hover .ep-play-circle {
  transform: scale(1.05);
}

.ep-number-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.ep-runtime-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.episode-details {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ep-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ep-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ep-air-date {
  color: #64748b;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.ep-overview {
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

