/* ============================================
   PLAYER.CSS - Denis Casian Movie App
   ============================================ */

/* ── Player Page Layout ── */
/* ═══════════════════════════════════════
   PLAYER PAGE - BACKGROUND FIX
   ═══════════════════════════════════════ */

.player-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* Background elements trebuie să fie ÎNAINTE de player-page în HTML */
.bg-ambient,
.mesh-gradient,
.floating-orbs {
  z-index: 0;
}



/* Adaugă și asta pentru watch-layout */
.watch-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 100vw; /* Adaugă */
  overflow-x: hidden; /* Adaugă */
}

.player-back-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 500;
  background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, transparent 100%);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: opacity 0.3s;
}

.player-back-bar.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.player-back-btn .back-arrow {
  font-size: 1.1rem;
}

.player-back-btn .back-text {
  display: inline;
}

@media (max-width: 480px) {
  .player-back-btn {
    padding: 8px 14px;
  }
  
  .player-back-btn .back-text {
    display: inline; /* Acum se vede textul */
  }
}

.player-back-btn:hover {
  background: rgba(139,92,246,0.5);
  border-color: var(--primary-light);
}

.player-title-bar {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* ── Player Container ── */
.player-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  background: #000;
}

.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  background: #000;
  overflow: hidden;
  margin: 0 auto;
}

.player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Pe ecrane mari, limitează și mai mult */
@media (min-width: 1400px) {
  .player-wrapper {
    max-height: 65vh;
  }
}



/* ═══ FIX TOUCH DELAY PE TABLETĂ ═══ */
.player-wrapper,
.player-wrapper * {
  touch-action: manipulation !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

/* Forțează iframe să primească touch imediat */
.player-wrapper iframe {
  touch-action: manipulation !important;
  pointer-events: auto !important;
}

/* Elimină delay-ul de 300ms pe touch */
html {
  touch-action: manipulation;
}

body {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}






/* ── Player Loading ── */
.player-loading {
  position: absolute;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  transition: opacity 0.5s;
}

.player-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-loading-text {
  font-size: 0.9rem;
  color: var(--text-3);
}

/* ── TV Show Layout ── */
.watch-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.watch-layout.has-sidebar {
  grid-template-columns: 1fr;
}

/* ── Episode Sidebar ── */
/* ── Episode Sidebar ── */
.episode-sidebar {
  display: none !important;
}

@media (max-width: 1024px) {
  .watch-layout.has-sidebar {
    grid-template-columns: 1fr; /* Mobil: doar player */
  }

  .episode-sidebar {
    display: none !important; /* Pe mobil ascunde sidebar */
  }

  .episode-dropdown-mobile {
    display: block !important;
  }
}

.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════
   WATCH LAYOUT - FĂRĂ SIDEBAR
   ═══════════════════════════════════════ */

.watch-layout {
  display: block !important;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.watch-layout.has-sidebar {
  display: block !important;
}

/* Ascunde sidebar-ul complet pe desktop */
.episode-sidebar {
  display: none !important;
}

/* Player full width */
.player-container {
  width: 100%;
  max-width: 100%;
}

.player-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
}

/* Mobile dropdown rămâne vizibil pentru TV */
.episode-dropdown-mobile {
  display: none;
}

.watch-layout.has-sidebar .episode-dropdown-mobile {
  display: block;
  margin: 16px 0;
}

/* ══════════════════════════════════════════
   SEASON TABS CU SĂGEȚI (DESKTOP)
   ══════════════════════════════════════════ */

.season-tabs-wrapper {
  position: relative;
  padding: 0 48px;
  isolation: isolate;
}

.season-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
}

.season-tabs-sidebar {
  display: none !important;
}

.mobile-season-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 12px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mobile-season-selector::-webkit-scrollbar {
  display: none;
}

/* Săgeți navigare - FIX z-index și visibility */
.season-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10; /* Mai mare decât season-tabs */
  transition: all 0.2s ease;
  opacity: 0.7; /* În loc de 0 - MEREU vizibile */
  pointer-events: all; /* În loc de none */
  font-family: var(--font);
  user-select: none;
  -webkit-user-select: none;
}

/* Hover pe wrapper SAU pe săgeată */
.season-tabs-wrapper:hover .season-nav-arrow,
.season-nav-arrow:hover {
  opacity: 1;
}

/* Hover direct pe săgeată */
.season-nav-arrow:hover {
  background: rgba(139,92,246,0.5);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

/* Active state */
.season-nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

/* Disabled state */
.season-nav-arrow.disabled {
  opacity: 0.2 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

.season-arrow-left {
  left: 0;
}

.season-arrow-right {
  right: 0;
}

/* Pe mobil ascunde săgețile */
@media (max-width: 768px) {
  .season-tabs-wrapper {
    padding: 0;
  }
  
  .season-nav-arrow {
    display: none !important;
  }
}

.season-tab {
  flex: 0 0 auto;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: var(--font);
}

.season-tab:hover,
.season-tab.active {
  background: rgba(139,92,246,0.3);
  border-color: var(--primary);
  color: #fff;
}

/* Episode List */
.episodes-list {
  overflow-y: auto;
  flex: 1;
  padding: 8px;
  overscroll-behavior: auto;
}

.episodes-list::-webkit-scrollbar { width: 4px; }
.episodes-list::-webkit-scrollbar-track { background: transparent; }
.episodes-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.episode-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  margin-bottom: 4px;
}

.episode-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
}

.episode-item.active {
  background: rgba(139,92,246,0.2);
  border-color: rgba(139,92,246,0.4);
}

.episode-thumb {
  flex: 0 0 80px;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
}

.episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-3);
  background: var(--bg-2);
}

.episode-thumb-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
}

.episode-thumb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.episode-info { flex: 1; min-width: 0; }

.episode-num {
  font-size: 0.7rem;
  color: var(--text-3);
  margin-bottom: 2px;
}

.episode-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.episode-duration {
  font-size: 0.7rem;
  color: var(--text-3);
  margin-top: 2px;
}

.episode-watched {
  font-size: 0.65rem;
  color: var(--success);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ── Mobile Episode Dropdown ── */
.episode-dropdown-mobile {
  display: block;
  padding: 16px;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  max-width: 100%;
}

.episode-dropdown-btn {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s;
}

.episode-dropdown-btn:hover {
  border-color: var(--primary);
  background: rgba(255,255,255,0.08);
}

.episode-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  margin-top: 8px;
}

.episode-dropdown-content.open {
  max-height: 500px;
  border-color: var(--border);
  overflow-y: auto;
  overscroll-behavior: auto;
}

/* ── Next Episode Banner ── */
.next-episode-banner {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 100;
  max-width: 360px;
  transform: translateY(120%);
  transition: transform 0.4s var(--ease);
}

.next-episode-banner.show {
  transform: translateY(0);
}

.next-ep-thumb {
  width: 80px;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-3);
}

.next-ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.next-ep-info { flex: 1; min-width: 0; }

.next-ep-label {
  font-size: 0.7rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.next-ep-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.next-ep-countdown {
  font-size: 0.8rem;
  color: var(--primary-light);
  margin-top: 4px;
}

.next-ep-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Player Info Section (below iframe) ── */
.player-info {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 24px;
  background: var(--bg-1);
}

.player-info * {
  max-width: 100%;
  box-sizing: border-box;
}

.player-info-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.player-info-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 8px;
}

.player-info-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-2);
}

.player-info-meta .meta-sep {
  color: var(--text-3);
  font-size: 0.7rem;
}

.player-info-meta .rating-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  font-weight: 600;
}

.player-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.player-overview {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 800px;
  margin-bottom: 24px;
}

.player-overview.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--primary-light);
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0;
  margin-top: -8px;
  display: block;
  font-family: var(--font);
  transition: color 0.2s;
}

.read-more-btn:hover { color: #fff; }

/* Player User Rating */
.player-user-rating {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 50px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 28px;
  transition: all 0.3s ease;
  width: auto !important;
}

.player-user-rating:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.08);
}

.player-page .player-user-rating {
  display: inline-flex !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.rating-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
}

.rating-submitted {
  font-size: 0.8rem;
  color: #2ecc71;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.2);
  border-radius: 20px;
  padding: 4px 12px;
  margin-left: 4px;
  white-space: nowrap;
}

/* Separator vizual între label și stele */
.player-user-rating .rating-label::after {
  display: none;
}

@media (max-width: 480px) {
  .player-user-rating {
    flex-direction: column;
    border-radius: 20px;
    padding: 16px 20px;
    gap: 12px;
    width: auto !important;
  }

  .rating-label {
    font-size: 0.72rem;
  }
}

/* ── Cast Button (Chromecast) ── */
.chromecast-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(22,160,133,0.15);
  border: 1px solid rgba(22,160,133,0.3);
  border-radius: var(--radius-md);
  color: #2ecc71;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font);
}

.chromecast-btn:hover {
  background: rgba(22,160,133,0.3);
  border-color: rgba(22,160,133,0.6);
}

.chromecast-btn.casting {
  background: rgba(22,160,133,0.4);
  border-color: #2ecc71;
  animation: pulse 2s infinite;
}

.chromecast-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Resume Banner ── */
.resume-banner {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
  white-space: nowrap;
}

.resume-banner.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.resume-banner .btn {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.resume-text {
  font-size: 0.88rem;
  color: var(--text-2);
}

.resume-time {
  color: var(--primary-light);
  font-weight: 600;
}

/* ── Mobile Responsive ── */
@media (max-width: 1024px) {
  .watch-layout.has-sidebar {
    grid-template-columns: 1fr;
  }

  .episode-sidebar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .player-info {
    padding: 16px;
  }

  .player-info-title {
    font-size: 1.2rem;
  }

  .player-info-top {
    flex-direction: column;
    gap: 14px;
  }

  .player-actions {
    width: 100%;
  }

  .player-actions .btn {
    flex: 1;
    min-width: 0;
  }

  .next-episode-banner {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .resume-banner {
    width: calc(100% - 32px);
    justify-content: center;
  }

  .player-user-rating {
    flex-direction: column;
    align-items: flex-start;
  }

  .player-back-bar {
    padding: 0 12px;
  }
}


/* ══════════════════════════════════════════
   FIX RESPONSIV COMPLET
   ══════════════════════════════════════════ */

/* Forțează toate containerele să respecte lățimea */
.player-page,
.watch-layout,
.player-container,
.player-info,
.player-info-top,
.player-actions,
.player-user-rating,
.player-overview,
.hero-genres,
.movies-grid,
.cast-row,
.section-title {
  max-width: 100%;
  box-sizing: border-box;
}

/* Player info - padding responsive */
.player-info {
  padding: 24px;
  width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .player-info {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .player-info {
    padding: 12px;
  }
}

/* Titlu responsiv */
.player-info-title {
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Meta info - wrap pe mobil */
.player-info-meta {
  flex-wrap: wrap;
  gap: 6px 10px;
}

/* Butoane acțiuni - responsive */
.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.player-actions .btn {
  flex: 1 1 auto;
  min-width: 100px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  .player-actions {
    flex-direction: column;
  }
  
  .player-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Overview - text responsiv */
.player-overview {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Genres - wrap */
.hero-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

/* Rating section */
.player-user-rating {
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

@media (max-width: 480px) {
  .player-user-rating {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Cast row - scroll horizontal pe mobil */
#playerCastContainer {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.cast-row {
  display: flex;
  gap: 14px;
  padding-bottom: 8px;
  width: max-content;
  min-width: 100%;
}

/* Recommendations grid */
#recommendationsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  width: 100%;
}

@media (max-width: 480px) {
  #recommendationsGrid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }
}

/* Section titles */
.section-title {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  flex-wrap: wrap;
  gap: 8px;
}

/* Back bar responsiv */
.player-back-bar {
  padding: 0 12px;
  gap: 10px;
}

.player-title-bar {
  flex: 1;
  min-width: 0;
  font-size: clamp(0.8rem, 3vw, 1rem);
}

#sourceSelector {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .player-back-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .player-back-btn span {
    display: none;
  }
}

/* Next episode banner - responsiv */
.next-episode-banner {
  max-width: calc(100% - 20px);
  right: 10px;
  left: auto;
}

@media (max-width: 480px) {
  .next-episode-banner {
    left: 10px;
    right: 10px;
    max-width: none;
    flex-wrap: wrap;
    padding: 12px;
    gap: 10px;
  }
  
  .next-ep-thumb {
    width: 60px;
  }
  
  .next-ep-actions {
    flex-direction: row;
    width: 100%;
  }
  
  .next-ep-actions .btn {
    flex: 1;
  }
}

/* Resume banner responsiv */
.resume-banner {
  max-width: calc(100% - 32px);
  white-space: normal;
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 480px) {
  .resume-banner {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}

/* Episode dropdown mobil */
.episode-dropdown-content {
  max-width: 100%;
}

.episode-dropdown-content .episode-item {
  max-width: 100%;
}

/* ── FIX PRINCIPAL ── */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

.player-page {
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
  min-height: 100vh;
}

.watch-layout {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.watch-layout.has-sidebar {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.watch-layout > div:first-child {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  width: 100%;
}

.player-container {
  position: relative;
  width: 100%;
  max-width: 100vw;
  background: #000;
  overflow: visible;
}

.player-info {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 24px;
}

.player-info-top {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.player-info-title {
  word-break: break-word;
  overflow-wrap: break-word;
}

#recommendationsGrid {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

#playerCastContainer {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.cast-row {
  width: max-content;
}

.hero-genres {
  flex-wrap: wrap;
  max-width: 100%;
}

.player-actions {
  max-width: 100%;
  flex-wrap: wrap;
}

/* ── FIX MOBIL SIDEBAR ── */
@media (max-width: 1024px) {
  .episode-sidebar {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  .watch-layout.has-sidebar {
    grid-template-columns: 1fr !important;
  }

  .episode-dropdown-mobile {
    display: block !important;
  }
}

/* ── Mobile Season & Episode Selector ── */
.mobile-season-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: transparent;
}

.mobile-season-selector::-webkit-scrollbar {
  display: none;
}

.mobile-season-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  white-space: nowrap;
}

.mobile-season-btn:hover,
.mobile-season-btn.active {
  background: rgba(139,92,246,0.3);
  border-color: var(--primary);
  color: #fff;
}

/* Episode items cu thumbnail */
.episode-dropdown-content .episode-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  margin: 4px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.episode-dropdown-content .episode-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border);
}

.episode-dropdown-content .episode-item.active {
  background: rgba(139,92,246,0.2);
  border-color: rgba(139,92,246,0.4);
}

.episode-dropdown-content .episode-thumb {
  flex-shrink: 0;
  width: 100px;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-3);
}

.episode-dropdown-content .episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-dropdown-content .episode-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-3);
  background: var(--bg-2);
}

.episode-dropdown-content .episode-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.episode-dropdown-content .episode-num {
  font-size: 0.7rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 2px;
}

.episode-dropdown-content .episode-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-dropdown-content .episode-meta {
  font-size: 0.72rem;
  color: var(--text-3);
  display: flex;
  gap: 8px;
  align-items: center;
}

.episode-dropdown-content .episode-progress {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.episode-dropdown-content .episode-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

/* Mouse custom disabled peste player */
.player-wrapper {
  cursor: default !important;
}

.player-wrapper * {
  cursor: default !important;
}

/* Arată cursor-ul default în zona player */
@media (min-width: 769px) {
  .player-wrapper,
  .player-wrapper * {
    cursor: default !important;
  }
}

/* ══════════════════════════════════════════
   MOBILE SEASON SELECTOR CU SĂGEȚI
   ══════════════════════════════════════════ */

.mobile-season-wrapper {
  padding: 0;
}

.mobile-season-arrow {
  display: none !important;
}

.mobile-season-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  margin-bottom: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
}

.mobile-season-selector::-webkit-scrollbar {
  display: none;
}

/* Mobile arrows - FIX z-index */
.mobile-season-arrow {
  position: absolute;
  top: 8px;
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  border: 2px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10; /* Mai mare decât selector */
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  user-select: none;
  -webkit-user-select: none;
}

.mobile-season-arrow:hover,
.mobile-season-arrow:active {
  background: rgba(139,92,246,0.5);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.mobile-season-arrow.disabled {
  opacity: 0.2;
  pointer-events: none;
  cursor: not-allowed;
}

.mobile-season-arrow-left {
  left: 0;
}

.mobile-season-arrow-right {
  right: 0;
}

/* ══════════════════════════════════════════
   SEASON TABS ÎN DROPDOWN
   ══════════════════════════════════════════ */

.episode-dropdown-content .mobile-season-selector {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  margin: 0;
  padding: 6px 12px;
  gap: 6px;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
}

.episode-dropdown-content .mobile-season-selector::-webkit-scrollbar {
  height: 3px;
}

.episode-dropdown-content .mobile-season-selector::-webkit-scrollbar-track {
  background: transparent;
}

.episode-dropdown-content .mobile-season-selector::-webkit-scrollbar-thumb {
  background: rgba(139,92,246,0.3);
  border-radius: 3px;
}

.episode-dropdown-content .mobile-season-selector::-webkit-scrollbar-thumb:hover {
  background: rgba(139,92,246,0.5);
}

/* Pe mobil ascunde scrollbar */
@media (max-width: 768px) {
  .episode-dropdown-content .mobile-season-selector::-webkit-scrollbar {
    display: none;
  }
  
  .episode-dropdown-content .mobile-season-selector {
    scrollbar-width: none;
  }
}

.episode-dropdown-content .mobile-season-btn {
  flex: 0 0 auto;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: var(--font);
}

.episode-dropdown-content .mobile-season-btn:hover {
  background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.3);
  color: var(--text);
}

.episode-dropdown-content .mobile-season-btn.active {
  background: rgba(139,92,246,0.3);
  border-color: var(--primary);
  color: #fff;
}

/* Lista episoade sub season tabs */
#episodesListDropdown {
  padding: 6px;
}

#episodesListDropdown .episode-item:first-child {
  margin-top: 2px;
}


.bg-ambient,
.mesh-gradient,
.floating-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.watch-layout {
  position: relative;
  z-index: 2;
}

.player-info {
  position: relative;
  z-index: 2;
  background: transparent;
}

.episode-dropdown-mobile {
  position: relative;
  z-index: 2;
  background: transparent;
  border-top: none;
}

.player-back-bar {
  z-index: 500;
}


.player-wrapper {
  position: relative;
  width: 90%;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  background: #000;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.15), 0 20px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .player-wrapper {
    width: 94%;
    border-radius: 8px;
  }

  .player-container {
    padding-bottom: 24px !important;
    background: transparent !important;
  }
}


.player-info-title {
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  word-wrap: break-word;
  overflow-wrap: break-word;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.player-info {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}


.player-actions .btn {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.player-actions .btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.player-user-rating {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.player-overview {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  max-width: 800px;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}


.episode-dropdown-btn {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.3s ease;
}

.episode-dropdown-btn:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.episode-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  border: 1px solid transparent;
  border-radius: 14px;
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0;
}

.episode-dropdown-content.open {
  max-height: 600px;
  border-color: rgba(255, 255, 255, 0.06);
  overflow-y: auto;
  padding: 0;
}


.episode-dropdown-content .episode-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  margin: 4px 6px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.episode-dropdown-content .episode-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.episode-dropdown-content .episode-item.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: inset 3px 0 0 var(--primary);
}


.player-info .section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

.player-info .section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), transparent);
}


.player-info .tag-genre {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.25s ease;
  text-decoration: none;
}

.player-info .tag-genre:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.5);
  color: #fff;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
  transform: translateY(-1px);
}

@media (min-width: 769px) {
  .player-container {
    padding: 20px 24px 0;
  }
  
  .player-info {
    padding: 40px 24px;
  }
}

/* Player wrapper - mai jos pe mobil */
.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  background: #000;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.15), 0 20px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .player-wrapper {
    border-radius: 0;
  }

  .player-container {
    padding: 0;
  }
}

/* Fix bara neagră la scroll pe mobil (Safari/Chrome) */
html {
  height: -webkit-fill-available;
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

.player-page {
  min-height: 100vh;
  min-height: -webkit-fill-available;
}


/* Footer pe pagina player */
.player-page + .site-footer {
  position: relative;
  z-index: 2;
}

.site-footer {
  position: relative;
  z-index: 2;
}

/* Header pe pagina player */
.site-header {
  position: fixed;
  z-index: 600;
}

@media (max-width: 768px) {
  .player-back-bar {
    display: none;
  }
}

/* Player wrapper - spațiu pentru header */
.player-container {
  padding-top: var(--header-h);
}

@media (max-width: 768px) {
  .player-container {
    padding-top: var(--header-h);
    padding-left: 0;
    padding-right: 0;
  }
}

/* Footer aliniat stânga */
.site-footer {
  position: relative;
  z-index: 2;
}

.site-footer .footer-bottom {
  text-align: left;
  justify-content: flex-start;
}

.site-footer .footer-bottom p {
  text-align: left;
}

/* ══════════════════════════════════════════
   WATCH PAGE - TOTUL CENTRAT
   ══════════════════════════════════════════ */

.player-page .player-info {
  text-align: center;
}

.player-page .player-info-top {
  flex-direction: column;
  align-items: center;
}

.player-page .player-info-title {
  text-align: center;
}

.player-page .player-info-meta {
  justify-content: center;
}

.player-page #playerEpTitle {
  text-align: center;
}

.player-page .player-actions {
  justify-content: center;
}

.player-page .player-user-rating {
  justify-content: center;
  flex-direction: row;
  align-items: center;
}

.player-page .player-overview {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.player-page .read-more-btn {
  margin-left: auto;
  margin-right: auto;
}

.player-page .hero-genres {
  justify-content: center;
}

.player-page .episode-dropdown-mobile {
  text-align: center;
}

.player-page .episode-dropdown-btn {
  justify-content: center;
}

/* Cast row centrat */
.player-page #playerCastContainer {
  display: flex;
  justify-content: center;
}

.player-page .cast-row {
  justify-content: center;
  width: auto;
  min-width: 0;
}

/* Recommendations centrat */
.player-page #recommendationsGrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.player-page #recommendationsGrid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 10px !important;
}

.player-page #recommendationsGrid .card {
  flex: 0 0 auto;
  width: 110px;
}

@media (max-width: 480px) {
  .player-page #recommendationsGrid .card {
    width: 90px;
  }
}

/* Section title - linie pe ambele părți */
.player-page .section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  width: 100%;
}

.player-page .section-title span[data-i18n] {
  flex-shrink: 0;
  white-space: nowrap;
}

.player-page .section-title::before {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5));
}

.player-page .section-title .title-line {
  display: block;
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.5), transparent);
}

/* Season selector centrat */
.player-page .mobile-season-selector {
  justify-content: center;
  padding: 10px 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  position: sticky;
  top: 0;
  margin: 0;
}

/* ══════════════════════════════════════════
   EPISOADE GRID
   ══════════════════════════════════════════ */

.player-page #episodesListDropdown {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 12px !important;
  width: 100% !important;
}

.player-page #episodesListDropdown > .episode-item {
  flex: 0 0 180px !important;
  max-width: 180px !important;
}

@media (max-width: 480px) {
  .player-page #episodesListDropdown > .episode-item {
    flex: 0 0 calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
  }
}

.player-page .episode-dropdown-content .episode-item {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 12px;
  margin: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
}

.player-page .episode-dropdown-content .episode-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.player-page .episode-dropdown-content .episode-item.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
}

.player-page .episode-dropdown-content .episode-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  flex-shrink: 0;
}

.player-page .episode-dropdown-content .episode-info {
  align-items: center;
  text-align: center;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.player-page .episode-dropdown-content .episode-title {
  font-size: 0.82rem;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.player-page .episode-dropdown-content .episode-meta {
  justify-content: center;
  font-size: 0.7rem;
  margin-top: auto;
  padding-top: 6px;
}

.player-page .episode-dropdown-content .episode-watched {
  justify-content: center;
  margin-top: auto;
}

.player-page .episode-dropdown-content .episode-progress {
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
}

.player-page .episode-dropdown-content.open {
  max-height: 600px;
}

/* Footer pe watch page centrat */
.player-page ~ .site-footer .footer-bottom {
  align-items: center;
  text-align: center;
}

.player-page ~ .site-footer .footer-grid {
  text-align: center;
}

.player-page ~ .site-footer .footer-col-links {
  align-items: center;
}

.player-page ~ .site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.player-page ~ .site-footer .footer-brand p {
  text-align: center;
  max-width: 100%;
}

.player-page ~ .site-footer .footer-brand .header-logo {
  justify-content: center !important;
}

/* ══════════════════════════════════════════
   RESPONSIVE EPISOADE
   ══════════════════════════════════════════ */

@media (min-width: 1200px) {
  .player-page #episodesListDropdown {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  .player-page #episodesListDropdown {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .player-page #episodesListDropdown {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .player-page .episode-dropdown-content .episode-title {
    font-size: 0.75rem;
  }

  .player-page #recommendationsGrid .card {
    width: 120px;
  }
}
.episode-dropdown-content .mobile-season-selector {
  top: -1px !important;
  justify-content: flex-start !important;
  scroll-snap-type: x mandatory;
}

.episode-dropdown-content .mobile-season-btn {
  scroll-snap-align: start;
}

.episode-dropdown-content .mobile-season-btn.active {
  scroll-margin-left: 12px;
}

/* FORCE - section title centrat */
.player-page .player-info .section-title {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  gap: 20px !important;
}

.player-page .player-info .section-title::before {
  content: '' !important;
  flex: 1 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5)) !important;
}

.player-page .player-info .section-title::after {
  content: '' !important;
  flex: 1 !important;
  height: 1px !important;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.5), transparent) !important;
}

.player-page .player-info .section-title .title-line {
  display: none !important;
}

.player-page #recommendationsGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
  justify-content: center !important;
  gap: 12px !important;
}

.player-page #recommendationsGrid .card {
  width: 100% !important;
}

@media (max-width: 480px) {
  .player-page #recommendationsGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}
.player-container {
  padding-top: calc(var(--header-h) + 40px) !important;
  background: transparent !important;
}

@media (max-width: 768px) {
  .player-container {
    padding-top: calc(var(--header-h) + 20px) !important;
    background: transparent !important;
  }
}

/* Cast fix - scroll orizontal centrat */
.player-page #playerCastContainer {
  display: block !important;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.player-page #playerCastContainer::-webkit-scrollbar {
  display: none;
}

.player-page .cast-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100% !important;
  min-width: 0 !important;
  gap: 14px;
}

@media (max-width: 768px) {
  .player-page .cast-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content !important;
  }
}

/* Fix scroll orizontal pe mobil */
.player-page {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
}

.watch-layout {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

.player-info {
  overflow-x: hidden !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.episode-dropdown-mobile {
  padding-left: 16px !important;
  padding-right: 16px !important;
  padding-top: 0 !important;
  margin-top: -12px;
}

@media (min-width: 769px) {
  .player-info {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .episode-dropdown-mobile {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* FORCE recomandări centrate */
.player-page #recommendationsGrid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
}

.player-page #recommendationsGrid > .card {
  flex: 0 0 130px !important;
  max-width: 130px !important;
}

@media (max-width: 768px) {
  .player-page #recommendationsGrid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .player-page #recommendationsGrid > * {
    flex: unset !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .player-page #recommendationsGrid .card,
  .player-page #recommendationsGrid .movie-card {
    flex: unset !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .player-page #recommendationsGrid .card-poster,
  .player-page #recommendationsGrid .movie-card .card-poster {
    width: 100% !important;
  }

  .player-page #recommendationsGrid .card-poster img {
    width: 100% !important;
    height: auto !important;
  }
}


/* ✅ FIX FINAL - Episode dropdown doar la TV */
.player-page .episode-dropdown-mobile {
  display: none !important;
}

.player-page .watch-layout.has-sidebar .episode-dropdown-mobile {
  display: block !important;
}


/* Optimizări Cast */
@media screen and (min-width: 1920px) {
  .player-wrapper iframe {
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
  }
}


/* ══════════════════════════════════════════
   STATS & FACTS
   ══════════════════════════════════════════ */

.player-info-section {
  margin-bottom: 32px;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}

.stat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: all 0.3s ease;
  flex: 0 0 140px;
  min-width: 140px;
  max-width: 180px;
}

@media (max-width: 768px) {
  .stat-item {
    flex: 0 0 calc(50% - 6px);
    max-width: calc(50% - 6px);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    gap: 8px;
  }
  
  .stat-item {
    flex: 0 0 calc(50% - 4px);
    max-width: calc(50% - 4px);
    padding: 12px;
  }
}

.stat-item:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

/* ══════════════════════════════════════════
   AUDIENCE STATS
   ══════════════════════════════════════════ */

.audience-stats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 40px; /* ← Mărește din 32px */
  padding: 40px 60px; /* ← Mărește padding */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  max-width: 800px; /* ← Mărește din 600px */
  text-align: left;
}

.stat-circle {
  position: relative;
  width: 120px; /* ← Mărește din 100px */
  height: 120px;
  flex-shrink: 0;
}

.circular-chart {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2.8;
}

.circle {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.8;
  stroke-linecap: round;
  animation: progress 1s ease-out;
}

@keyframes progress {
  from { stroke-dasharray: 0, 100; }
}

.stat-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem; /* ← Mărește din 1.5rem */
  font-weight: 800;
  color: #fff;
}

.stat-text span {
  font-size: 1rem; /* ← Mărește din 0.9rem */
  color: var(--text-3);
}

.stat-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem; /* ← Mărește din 0.9rem */
  color: var(--text-2);
}

/* ══════════════════════════════════════════
   WATCH PROVIDERS
   ══════════════════════════════════════════ */

.watch-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  justify-content: center; /* ← ADAUGĂ */
}

.provider-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.provider-item:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.provider-item img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.provider-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.provider-type {
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
}

.no-providers {
  padding: 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 0.9rem;
}

/* ══════════════════════════════════════════
   EXTERNAL LINKS
   ══════════════════════════════════════════ */

.external-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap; /* ← ADAUGĂ */
}

.ext-link:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.ext-link img {
  width: 20px;
  height: 20px;
}

/* ══════════════════════════════════════════
   SHARE BUTTONS
   ══════════════════════════════════════════ */

.share-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font);
  white-space: nowrap; /* ← ADAUGĂ */
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn.facebook:hover {
  background: rgba(66, 103, 178, 0.3);
  border-color: rgba(66, 103, 178, 0.5);
}

.share-btn.twitter:hover {
  background: rgba(29, 161, 242, 0.3);
  border-color: rgba(29, 161, 242, 0.5);
}

.share-btn.whatsapp:hover {
  background: rgba(37, 211, 102, 0.3);
  border-color: rgba(37, 211, 102, 0.5);
}

.share-btn.copy:hover {
  background: rgba(139, 92, 246, 0.3);
  border-color: rgba(139, 92, 246, 0.5);
}

/* ══════════════════════════════════════════
   USER REVIEWS
   ══════════════════════════════════════════ */

.reviews-container {
  margin-top: 16px;
}

.review-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.review-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.2);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-author {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.review-rating {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

.review-date {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-3);
  flex-shrink: 0;
}

.review-content {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 12px;
  word-wrap: break-word; /* ← ADAUGĂ */
  overflow-wrap: break-word; /* ← ADAUGĂ */
  max-width: 100%; /* ← ADAUGĂ */
}

.review-content.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-expand {
  background: none;
  border: none;
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: var(--font);
  transition: color 0.2s;
}

.review-expand:hover {
  color: #fff;
}

.no-reviews {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-3);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-stats {
    flex-direction: column;
    text-align: center;
  }

  .stat-details {
    align-items: center;
  }

.external-links,
  .share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0;
    width: 100%;
    overflow-x: visible;
  }

 .ext-link,
  .share-btn {
    flex: 0 0 auto;
    width: auto !important;
    font-size: 0.8rem;
    padding: 8px 14px;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
  }

  .review-header {
    flex-wrap: wrap;
  }

  .review-date {
    margin-left: 0;
    width: 100%;
    margin-top: 4px;
  }
}


/* ══════════════════════════════════════════
   INFO TABS
   ══════════════════════════════════════════ */

.info-tabs-wrapper {
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  text-align: center; /* ← ADAUGĂ */
}

.info-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.info-tabs {
  display: inline-flex; /* ← SCHIMBĂ din flex */
  gap: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 2px;
  min-width: min-content;
  justify-content: center; /* ← ADAUGĂ */
}

.info-tab {
  flex: 0 0 auto;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-3);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font);
  white-space: nowrap;
  position: relative;
  margin-bottom: -2px;
}

.info-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.info-tab.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary);
}

.info-tab-content {
  padding: 24px 0;
}

.tab-pane {
  display: none;
  width: 100%; /* ← ADAUGĂ */
  overflow-x: hidden; /* ← ADAUGĂ */
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { 
    opacity: 0;
    transform: translateY(10px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile tabs scroll indicator */
@media (max-width: 768px) {
  .info-tabs-wrapper {
    text-align: left; /* ← Pe mobil aliniat stânga */
  }
  
  .info-tabs {
    display: flex; /* ← Pe mobil flex normal */
    justify-content: flex-start;
  }
  
  .info-tabs-wrapper::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, var(--bg-1) 30%);
    padding: 8px 12px 8px 20px;
    color: var(--primary-light);
    font-size: 1rem;
    pointer-events: none;
    opacity: 0.7;
  }
  
  .info-tabs {
    padding-right: 40px;
  }
  
  .info-tab {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* ══════════════════════════════════════════
   AUDIENCE STATS - FIX CENTRAT
   ══════════════════════════════════════════ */

.audience-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 32px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   REVIEWS - FIX CENTRAT AVATAR
   ══════════════════════════════════════════ */

.review-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  grid-row: 1 / 3;
}

.review-author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.review-author {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-rating {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-3);
  white-space: nowrap;
  grid-column: 3;
  grid-row: 1;
  text-align: right;
}

@media (max-width: 768px) {
  .review-header {
    grid-template-columns: auto 1fr;
    gap: 10px;
  }
  
  .review-avatar {
    grid-row: 1 / 4;
  }
  
  .review-date {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    margin-top: -4px;
  }
  
  .audience-stats {
    flex-direction: column;
    gap: 20px;
  }
}

/* ══════════════════════════════════════════
   TAB CONTENT - CENTRARE GLOBALĂ
   ══════════════════════════════════════════ */

.info-tab-content {
  padding: 24px 0;
  text-align: center;
  width: 100%; /* ← ADAUGĂ */
  overflow-x: hidden; /* ← ADAUGĂ */
  box-sizing: border-box; /* ← ADAUGĂ */
}

/* ══════════════════════════════════════════
   AUDIENCE STATS
   ══════════════════════════════════════════ */
.audience-stats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 32px 80px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  max-width: 100%;
  min-width: min(700px, 100%);
  text-align: left;
}

.stat-circle {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.stat-text {
  font-size: 1.6rem;
}

.stat-text span {
  font-size: 0.9rem;
}

.stat-details {
  font-size: 1rem;
  gap: 10px;
}

@media (max-width: 768px) {
  .audience-stats {
    min-width: unset;
    max-width: 100%;
    padding: 24px 20px;
    gap: 24px;
    flex-direction: row;
  }

  .stat-circle {
    width: 80px;
    height: 80px;
  }

  .stat-text {
    font-size: 1.3rem;
  }

  .stat-text span {
    font-size: 0.8rem;
  }

  .stat-details {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .audience-stats {
    flex-direction: column;
    gap: 16px;
    padding: 20px 16px;
  }

  .stat-details {
    align-items: center;
    text-align: center;
  }
}

/* ══════════════════════════════════════════
   WATCH PROVIDERS - CENTRAT
   ══════════════════════════════════════════ */

.watch-providers {
  display: inline-flex; /* ← SCHIMBĂ */
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  text-align: left; /* ← ADAUGĂ */
}

/* ══════════════════════════════════════════
   EXTERNAL LINKS - CENTRAT
   ══════════════════════════════════════════ */

.external-links {
  display: inline-flex; /* ← SCHIMBĂ */
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ══════════════════════════════════════════
   SHARE BUTTONS - CENTRAT
   ══════════════════════════════════════════ */

.share-buttons {
  display: inline-flex; /* ← SCHIMBĂ */
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ══════════════════════════════════════════
   REVIEWS - AVATAR CENTRAT VERTICAL
   ══════════════════════════════════════════ */

.reviews-container {
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
  width: 100%; /* ← ADAUGĂ */
  box-sizing: border-box; /* ← ADAUGĂ */
  overflow-x: hidden; /* ← ADAUGĂ */
}

.review-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  width: 100%; /* ← ADAUGĂ */
  box-sizing: border-box; /* ← ADAUGĂ */
}
.review-header {
  display: flex; /* ← SCHIMBĂ înapoi din grid */
  align-items: center; /* ← ADAUGĂ */
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-author-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-author {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.review-rating {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

@media (max-width: 768px) {
  /* Audience Stats - mai compact pe mobil */
  .audience-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
    max-width: 100%;
  }

  .stat-circle {
    width: 100px;
    height: 100px;
  }

  .stat-text {
    font-size: 1.5rem;
  }

  .stat-text span {
    font-size: 0.9rem;
  }

  .stat-details {
    align-items: center;
    text-align: center;
    font-size: 0.9rem;
  }

  /* External Links - scroll orizontal pe mobil */
  .external-links {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 0 4px 8px 4px;
    width: 100%;
    gap: 8px;
  }

  .external-links::-webkit-scrollbar {
    display: none;
  }

  .ext-link {
    flex: 0 0 auto;
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  /* Share Buttons - scroll orizontal pe mobil */
  .share-buttons {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 0 4px 8px 4px;
    width: 100%;
    gap: 8px;
  }

  .share-buttons::-webkit-scrollbar {
    display: none;
  }

  .share-btn {
    flex: 0 0 auto;
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  /* Review - fix overflow */
  .review-header {
    flex-wrap: wrap;
  }

  .review-date {
    width: 100%;
    margin-left: 60px;
    margin-top: -6px;
  }

  .review-content {
    font-size: 0.85rem;
  }

  /* Info tab content - padding mai mic */
  .info-tab-content {
    padding: 16px 0;
  }

  .tab-pane {
    padding: 0 4px; /* ← ADAUGĂ */
  }
}

@media (max-width: 480px) {
  .ext-link,
  .share-btn {
    font-size: 0.8rem;
    padding: 7px 12px;
  }

  .review-card {
    padding: 14px;
  }
}


@media (max-width: 768px) {
  .external-links,
  .share-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .ext-link,
  .share-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    font-size: 0.8rem;
    padding: 8px 14px;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
    transform: none !important;
  }

  .ext-link:hover,
  .share-btn:hover {
    transform: none !important;
  }
}

.tab-pane {
  overflow: visible !important;
  padding: 4px !important;
}

.info-tab-content {
  overflow: visible !important;
}

@media (min-width: 769px) {
  .player-info {
    max-width: 900px;
    margin: 0 auto;
  }

  .player-user-rating {
    display: inline-flex;
    width: auto;
    margin-left: auto;
    margin-right: auto;
  }
}

.player-page .player-user-rating {
  justify-content: center;
  flex-direction: row;
  align-items: center;
  width: auto !important;
  display: inline-flex !important;
}


.player-info-title {
  font-size: clamp(1.5rem, 5vw, 2.4rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em;
  line-height: 1.1 !important;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.75) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  margin-bottom: 12px !important;
}

.player-actions {
  gap: 10px !important;
  justify-content: center !important;
}

.player-actions .btn {
  padding: 10px 20px !important;
  font-size: 0.85rem !important;
  border-radius: 50px !important;
  backdrop-filter: blur(12px) !important;
  font-weight: 600;
}

/* Buton trailer - accent diferit */
.player-actions #trailerBtn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

.player-actions #trailerBtn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Buton favorite - accent roșu */
.player-actions #favBtn {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
}

.player-actions #favBtn:hover,
.player-actions #favBtn.active {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15);
  transform: translateY(-2px);
}

/* Buton watchlist - accent cyan */
.player-actions #watchlistBtn {
  background: rgba(6, 182, 212, 0.08) !important;
  border: 1px solid rgba(6, 182, 212, 0.2) !important;
  color: #22d3ee !important;
}

.player-actions #watchlistBtn:hover,
.player-actions #watchlistBtn.active {
  background: rgba(6, 182, 212, 0.2) !important;
  border-color: rgba(6, 182, 212, 0.4) !important;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
  transform: translateY(-2px);
}

/* Cast button - accent verde */
.player-actions .chromecast-btn {
  border-radius: 50px !important;
}

@media (max-width: 600px) {
  .player-actions {
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }

  .player-actions .btn {
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
  }
}


/* ── 4. OVERVIEW - MAI CURAT ── */
.player-overview {
  font-size: 0.92rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
  line-height: 1.8 !important;
  max-width: 700px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 0 !important;
  text-align: center;
}

.read-more-btn {
  color: rgba(139, 92, 246, 0.7) !important;
  font-size: 0.82rem !important;
  font-weight: 600;
  margin-top: 4px !important;
  transition: color 0.2s;
}

.read-more-btn:hover {
  color: var(--primary-light) !important;
}


.stats-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 12px !important;
}

.stat-item {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  text-align: center;
  flex: 0 0 auto !important;
  min-width: 120px !important;
  max-width: 160px !important;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(139, 92, 246, 0.06) !important;
  border-color: rgba(139, 92, 246, 0.15) !important;
  transform: translateY(-2px) !important;
}

.stat-icon {
  font-size: 1.2rem !important;
  margin-bottom: 6px !important;
  display: block;
}

.stat-label {
  font-size: 0.65rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: rgba(255, 255, 255, 0.3) !important;
  margin-bottom: 4px !important;
}

.stat-value {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

@media (max-width: 480px) {
  .stat-item {
    min-width: calc(50% - 4px) !important;
    max-width: calc(50% - 4px) !important;
    flex: 0 0 calc(50% - 4px) !important;
  }
}


.player-wrapper {
  box-shadow:
    0 0 80px rgba(139, 92, 246, 0.08),
    0 0 160px rgba(139, 92, 246, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.5) !important;
  border-radius: 16px !important;
}

@media (max-width: 768px) {
  .player-wrapper {
    border-radius: 0 !important;
    box-shadow:
      0 10px 40px rgba(0, 0, 0, 0.5),
      0 0 60px rgba(139, 92, 246, 0.05) !important;
  }
}


/* ══════════════════════════════════════════
   PLAYER HEADER INFO - DEASUPRA IFRAME
   ══════════════════════════════════════════ */

.player-header-info {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 24px;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.player-header-info .player-info-title {
  font-size: clamp(1.6rem, 5vw, 2.8rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em;
  line-height: 1.1 !important;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  margin-bottom: 4px;
  text-align: center;
}

.player-header-info .player-info-meta {
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  gap: 8px 14px;
}

.player-header-info .player-info-meta .rating-badge {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
}

.player-header-info .player-info-meta .meta-sep {
  color: rgba(255, 255, 255, 0.15);
}

.player-header-info #playerEpTitle {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.3) !important;
  font-weight: 400;
}

.player-header-info .player-actions {
  margin-top: 12px;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.player-header-info .player-actions .btn {
  padding: 9px 20px;
  font-size: 0.83rem;
  border-radius: 50px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Buton trailer */
.player-header-info #trailerBtn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.player-header-info #trailerBtn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Buton favorite */
.player-header-info #favBtn {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.player-header-info #favBtn:hover,
.player-header-info #favBtn.active {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

/* Buton watchlist */
.player-header-info #watchlistBtn {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: #22d3ee;
}

.player-header-info #watchlistBtn:hover,
.player-header-info #watchlistBtn.active {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

/* Cast button */
.player-header-info .chromecast-btn {
  border-radius: 50px;
}

/* Player container - fără padding top (titlul e deasupra) */
.player-container {
  padding-top: 0 !important;
}

/* Player info sub iframe - fără titlu/acțiuni (sunt sus) */
.player-info .player-info-top {
  display: none !important;
}

@media (max-width: 768px) {
  .player-header-info {
    padding: 0 16px;
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: 16px;
    gap: 6px;
  }

  .player-header-info .player-info-title {
    font-size: 1.3rem !important;
  }

  .player-header-info .player-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .player-header-info .player-actions .btn {
    padding: 8px 14px;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .player-header-info .player-info-title {
    font-size: 1.15rem !important;
    line-height: 1.2 !important;
  }

  .player-header-info .player-info-meta {
    font-size: 0.75rem;
  }

  .player-header-info .player-actions .btn {
    padding: 7px 12px;
    font-size: 0.75rem;
  }
}


/* ══════════════════════════════════════════
   FIX - META MAI MARE + TITLU MOBIL + BUTOANE 2 RÂNDURI
   ══════════════════════════════════════════ */

/* ── Meta text mai mare ── */
.player-header-info .player-info-meta {
  font-size: 1rem !important;
  gap: 8px 16px !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

.player-header-info .player-info-meta .rating-badge {
  font-size: 1.05rem !important;
  font-weight: 700;
}

.player-header-info .player-info-meta .meta-sep {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.2) !important;
}

.player-header-info #playerEpTitle {
  font-size: 0.95rem !important;
  color: rgba(255, 255, 255, 0.35) !important;
  margin-top: 6px !important;
}

/* ── Titlu mai mare pe mobil ── */
@media (max-width: 768px) {
  .player-header-info .player-info-title {
    font-size: 1.6rem !important;
    line-height: 1.15 !important;
  }

  .player-header-info .player-info-meta {
    font-size: 0.9rem !important;
    gap: 6px 12px !important;
  }

  .player-header-info .player-info-meta .rating-badge {
    font-size: 0.95rem !important;
  }

  .player-header-info #playerEpTitle {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  .player-header-info .player-info-title {
    font-size: 1.4rem !important;
    line-height: 1.2 !important;
  }

  .player-header-info .player-info-meta {
    font-size: 0.82rem !important;
    gap: 4px 10px !important;
  }

  .player-header-info #playerEpTitle {
    font-size: 0.8rem !important;
  }
}

/* ── Butoane max 2 rânduri pe mobil ── */
@media (max-width: 768px) {
  .player-header-info .player-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 360px !important;
  }

  .player-header-info .player-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 8px !important;
    font-size: 0.78rem !important;
    gap: 5px !important;
    min-width: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Dacă sunt 3 butoane, ultimul ia toată lățimea */
  .player-header-info .player-actions .btn:last-child:nth-child(3) {
    grid-column: 1 / -1;
  }

  /* Cast button hidden pe mobil de obicei, dar dacă apare */
  .player-header-info .player-actions .chromecast-btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .player-header-info .player-actions {
    max-width: 300px !important;
  }

  .player-header-info .player-actions .btn {
    padding: 8px 6px !important;
    font-size: 0.72rem !important;
    gap: 3px !important;
  }
}

/* ── Butoane max 2 rânduri pe mobil ── */
@media (max-width: 768px) {
  .player-header-info .player-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 360px !important;
  }

  .player-header-info .player-actions .btn {
    flex: 0 0 calc(50% - 4px) !important;
    max-width: calc(50% - 4px) !important;
    justify-content: center !important;
    padding: 10px 8px !important;
    font-size: 0.78rem !important;
    gap: 5px !important;
    min-width: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Al treilea buton - centrat */
  .player-header-info .player-actions .btn:nth-child(3):last-child {
    flex: 0 0 auto !important;
    max-width: none !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* Ascunde Cast pe mobil */
  .player-header-info .player-actions .chromecast-btn {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .player-header-info .player-actions {
    max-width: 300px !important;
  }

  .player-header-info .player-actions .btn {
    padding: 8px 6px !important;
    font-size: 0.72rem !important;
    gap: 3px !important;
  }

  .player-header-info .player-actions .btn:nth-child(3):last-child {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}


.cast-role {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
  font-size: 0.75rem;
  line-height: 1.3;
}

/* ══════════════════════════════════════════
   INFO TABS SECTION - LINII DECORATIVE
   ══════════════════════════════════════════ */

.player-page .player-info .info-tabs-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.player-page .player-info .info-tabs-wrapper::before,
.player-page .player-info .info-tabs-wrapper::after {
  display: none;
}

.player-page .player-info .player-info-section > .section-title {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  gap: 20px !important;
  margin-bottom: 16px !important;
}

.player-page .player-info .player-info-section > .section-title::before {
  content: '' !important;
  flex: 1 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5)) !important;
}

.player-page .player-info .player-info-section > .section-title::after {
  content: '' !important;
  flex: 1 !important;
  height: 1px !important;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.5), transparent) !important;
}

.player-info .player-info-section:last-of-type > .section-title:first-child {
  margin-top: 32px !important;
  padding-top: 8px !important;
}

/* ══════════════════════════════════════════
   RECOMANDĂRI - FIX CENTRARE FINAL
   ══════════════════════════════════════════ */

.player-page #recommendationsGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.player-page #recommendationsGrid > * {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: unset !important;
  margin: 0 !important;
}

.player-page #recommendationsGrid .card-info,
.player-page #recommendationsGrid .movie-card .card-info {
  text-align: center !important;
}

.player-page #recommendationsGrid .card-meta {
  justify-content: center !important;
}

.player-page #recommendationsGrid .card-title {
  text-align: center !important;
}

@media (max-width: 768px) {
  .player-page #recommendationsGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .player-page #recommendationsGrid > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: unset !important;
    margin: 0 !important;
  }
}

@media (max-width: 480px) {
  .player-page #recommendationsGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}

/* ══════════════════════════════════════════
   SEASON TABS - CENTRAT DOAR CÂND ÎNCAP
   ══════════════════════════════════════════ */

.episode-dropdown-content .mobile-season-selector {
  justify-content: flex-start !important;
}

@supports (justify-content: safe center) {
  .episode-dropdown-content .mobile-season-selector {
    justify-content: safe center !important;
  }
}

/* ══════════════════════════════════════════
   RECOMANDĂRI - RÂNDURI COMPLETE
   ══════════════════════════════════════════ */

.player-page #recommendationsGrid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 16px !important;
  width: 100% !important;
  padding: 0 !important;
}

.player-page #recommendationsGrid > * {
  flex: 0 0 150px !important;
  max-width: 150px !important;
  min-width: 150px !important;
  margin: 0 !important;
}

.player-page #recommendationsGrid .card-info,
.player-page #recommendationsGrid .movie-card .card-info {
  text-align: center !important;
}

.player-page #recommendationsGrid .card-meta {
  justify-content: center !important;
}

.player-page #recommendationsGrid .card-title {
  text-align: center !important;
}

/* Mobil - 2 coloane egale */
@media (max-width: 768px) {
  .player-page #recommendationsGrid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .player-page #recommendationsGrid > * {
    flex: unset !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}


/* ══════════════════════════════════════════
   SEASON PROGRESS BAR
   ══════════════════════════════════════════ */

.mobile-season-btn {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px !important;
  padding: 8px 16px 10px !important;
  min-width: auto !important;
}

.season-btn-text {
  white-space: nowrap;
}

.season-progress-mini {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  min-width: 40px;
}

.season-progress-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.mobile-season-btn.active .season-progress-mini {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-season-btn.active .season-progress-mini-fill {
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.7));
}

.season-complete-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 0.6rem;
  color: #2ecc71;
  font-weight: 700;
  line-height: 1;
}

/* Season tabs în dropdown */
.episode-dropdown-content .mobile-season-btn {
  padding: 6px 12px 8px !important;
}

.episode-dropdown-content .season-progress-mini {
  height: 2px;
  min-width: 30px;
}

.season-progress-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.season-progress-row .season-progress-mini {
  flex: 1;
  min-width: 30px;
}

.season-progress-pct {
  font-size: 0.6rem;
  color: var(--primary-light);
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}

.mobile-season-btn.active .season-progress-pct {
  color: rgba(255, 255, 255, 0.8);
}


/* ══════════════════════════════════════════
   SUBTITLE WARNING
   ══════════════════════════════════════════ */

.subtitle-warning {
  display: none;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 12px;
  background: rgba(255, 193, 7, 0.06);
  border: 1px solid rgba(255, 193, 7, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
}

.episode-dropdown-mobile + .subtitle-warning.visible {
  margin-top: 8px;
}

.subtitle-warning.visible + .player-info {
  margin-top: 16px;
}

.subtitle-warning.visible {
  display: block;
  margin-bottom: 20px;
}

.subtitle-warning:hover {
  border-color: rgba(255, 193, 7, 0.3);
  background: rgba(255, 193, 7, 0.08);
}

.subtitle-warning summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  color: rgba(255, 193, 7, 0.9);
  font-size: 0.88rem;
  font-weight: 500;
  user-select: none;
  transition: color 0.2s;
}

.subtitle-warning summary::-webkit-details-marker {
  display: none;
}

.subtitle-warning summary::marker {
  display: none;
  content: "";
}

.subtitle-warning .warning-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.subtitle-warning .warning-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  opacity: 0.6;
}

.subtitle-warning[open] .warning-arrow {
  transform: rotate(180deg);
}

.subtitle-warning .warning-content {
  padding: 0 16px 16px;
  text-align: center;
  animation: warningSlideIn 0.3s ease;
}

@keyframes warningSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subtitle-warning .warning-content p {
  margin: 0 auto 14px;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.7;
}

.subtitle-warning .warning-tips {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.subtitle-warning .warning-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: center;
  transition: background 0.2s;
}

.subtitle-warning .warning-tip:hover {
  background: rgba(255, 255, 255, 0.07);
}

.subtitle-warning .warning-tip span:first-child {
  flex-shrink: 0;
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
  .subtitle-warning {
    max-width: calc(100% - 32px);
    margin: 8px auto 0;
    border-radius: 10px;
  }

  .subtitle-warning summary {
    padding: 10px 14px;
    font-size: 0.84rem;
  }

  .subtitle-warning .warning-content {
    padding: 0 14px 14px;
  }

  .subtitle-warning .warning-tip {
    padding: 8px 12px;
    font-size: 0.82rem;
    max-width: 100%;
  }
}

/* ══════════════════════════════════════════
   SEASON TABS DROPDOWN - SĂGEȚI DESKTOP
   ══════════════════════════════════════════ */

.season-scroll-wrapper {
  display: none;
}

@media (min-width: 769px) {
  .season-scroll-wrapper {
    display: block;
    position: relative;
  }

  .season-scroll-wrapper .mobile-season-selector {
    mask-image: linear-gradient(90deg, transparent 0%, #000 36px, #000 calc(100% - 36px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 36px, #000 calc(100% - 36px), transparent 100%);
  }

  .season-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    color: rgba(139, 92, 246, 0.9);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.25s ease;
    font-family: var(--font);
    user-select: none;
    -webkit-user-select: none;
    line-height: 1;
    padding: 0;
  }

  .season-scroll-arrow:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
  }

  .season-scroll-arrow:active {
    transform: translateY(-50%) scale(0.9);
  }

  .season-scroll-arrow.disabled {
    opacity: 0;
    pointer-events: none;
  }

  .season-scroll-left {
    left: 2px;
  }

  .season-scroll-right {
    right: 2px;
  }
}

/* Pe mobil ascunde wrapper styling */
@media (max-width: 768px) {
  .season-scroll-wrapper {
    display: block;
  }

  .season-scroll-arrow {
    display: none !important;
  }

  .season-scroll-wrapper .mobile-season-selector {
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }
}


/* ══════════════════════════════════════════
   SEPARATOR LINE - FILME vs TV
   ══════════════════════════════════════════ */

/* La filme (fără sidebar/dropdown), adaugă separator vizibil */
.player-page .watch-layout:not(.has-sidebar) .player-info {
  border-top: 1px solid rgba(139, 92, 246, 0.15) !important;
  margin-top: 12px !important;
}

/* La TV shows, dropdown-ul oferă deja separare,
   dar adaugă o linie subtilă sub dropdown */
.player-page .watch-layout.has-sidebar .episode-dropdown-mobile {
  border-bottom: 1px solid rgba(139, 92, 246, 0.15) !important;
  padding-bottom: 16px !important;
}

/* La TV, player-info nu mai dublează linia */
.player-page .watch-layout.has-sidebar .player-info {
  border-top: none !important;
  margin-top: 0 !important;
}


/* Mobile Play Overlay */
#mobilePlayOverlay {
  animation: fadeIn 0.3s ease;
}

#mobilePlayOverlay:active {
  transform: scale(0.98);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ═══ FIX RECOMMENDATIONS CARDS HOVER ═══ */
#recommendationsGrid {
  overflow: visible !important;
  padding: 10px !important;
  margin: -10px !important;
}

#recommendationsGrid .movie-card {
  transform: none !important;
  transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
}

#recommendationsGrid .movie-card:hover {
  transform: none !important;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
  border-color: var(--primary-light);
}

#recommendationsGrid .card-poster img {
  transform: none !important;
  transition: none !important;
}

/* Asigură că părintele permite overflow */
.player-info {
  overflow: visible !important;
}

.player-info-section {
  overflow: visible !important;
}

/* ══════════════════════════════════════════
   SOURCE SELECTOR - PREMIUM DESIGN
   ══════════════════════════════════════════ */

.source-selector-wrapper {
  display: flex;
  justify-content: center;
  padding: 0 24px 20px;
  max-width: 100%;
  margin: 0 auto;
}

.source-selector {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 6px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.source-btn {
  position: relative;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 0.02em;
}

.source-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.4) 0%, 
    rgba(124, 58, 237, 0.4) 50%,
    rgba(99, 102, 241, 0.4) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  z-index: -1;
}

.source-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  z-index: -1;
}

.source-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.source-btn:hover::before {
  opacity: 0.3;
}

.source-btn.active {
  color: #fff;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.6) 0%, 
    rgba(124, 58, 237, 0.6) 100%
  );
  box-shadow: 
    0 4px 20px rgba(139, 92, 246, 0.4),
    0 0 40px rgba(139, 92, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(0);
}

.source-btn.active::before {
  opacity: 1;
}

.source-btn.active::after {
  opacity: 1;
}

/* Glow effect pe butonul activ */
.source-btn.active {
  animation: sourceGlow 2s ease-in-out infinite alternate;
}

@keyframes sourceGlow {
  0% {
    box-shadow: 
      0 4px 20px rgba(139, 92, 246, 0.4),
      0 0 40px rgba(139, 92, 246, 0.15);
  }
  100% {
    box-shadow: 
      0 4px 24px rgba(139, 92, 246, 0.5),
      0 0 50px rgba(139, 92, 246, 0.25);
  }
}

/* Animație la switch */
@keyframes sourceSwitch {
  0% { 
    transform: scale(0.95); 
    opacity: 0.8; 
  }
  50% {
    transform: scale(1.02);
  }
  100% { 
    transform: scale(1); 
    opacity: 1; 
  }
}

.source-btn.active {
  animation: sourceSwitch 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
             sourceGlow 2s ease-in-out infinite alternate 0.4s;
}

/* ═══ LABEL DEASUPRA (opțional) ═══ */
.source-selector::before {
  content: '🎬';
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin-right: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ═══ RESPONSIVE ═══ */
/* ═══ RESPONSIVE - BUTOANE PE UN RÂND ═══ */
@media (max-width: 768px) {
  .source-selector-wrapper {
    padding: 0 12px 16px;
    width: 100%;
  }

  .source-selector {
    display: flex;
    flex-direction: row !important;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    width: 100%;
    max-width: 360px;
  }

  .source-selector::before {
    display: none;
  }

  .source-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 8px;
    font-size: 0.72rem;
    border-radius: 8px;
    text-align: center;
    line-height: 1.3;
  }

  /* Pe mobil, br e vizibil (rând nou) */
  .source-btn br {
    display: block;
  }

  .source-btn .label-sub {
    display: block;
    font-size: 0.6rem;
    opacity: 0.6;
    font-weight: 400;
    margin-top: 2px;
  }
}

/* Desktop - totul pe un rând */
@media (min-width: 769px) {
  .source-btn br {
    display: none;
  }

  .source-btn .label-sub {
    display: inline;
    font-size: 0.75rem;
    opacity: 0.6;
    font-weight: 400;
    margin-left: 6px;
  }

  .source-btn .label-sub::before {
    content: "• ";
  }
}

@media (max-width: 360px) {
  .source-selector {
    max-width: 300px;
  }

  .source-btn {
    padding: 8px 6px;
    font-size: 0.68rem;
  }

  .source-btn .label-sub {
    font-size: 0.55rem;
  }
}

/* ═══ HOVER RIPPLE EFFECT ═══ */
.source-btn {
  overflow: hidden;
}

.source-btn:active {
  transform: scale(0.97);
}

.source-btn:active::before {
  opacity: 0.5;
}