/* ============================================
   PAGES.CSS - Denis Casian Movie App
   ============================================ */

/* ════════════════════════════════════════════
   INDEX PAGE - Hero + Sections
   ════════════════════════════════════════════ */


   html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
}

.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.98) 0%,
    rgba(0,0,0,0.7) 40%,
    rgba(0,0,0,0.3) 70%,
    rgba(0,0,0,0.1) 100%
  );
}

.hero-gradient-side {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.5) 50%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 60px 40px 60px;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(139,92,246,0.3);
  border: 1px solid rgba(139,92,246,0.5);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  animation: fadeInUp 0.6s var(--ease) both;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 14px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: fadeInUp 0.6s var(--ease) 0.1s both;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 16px;
  animation: fadeInUp 0.6s var(--ease) 0.2s both;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}

.hero-overview {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  animation: fadeInUp 0.6s var(--ease) 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s var(--ease) 0.4s both;
}

.hero-genres {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  animation: fadeInUp 0.6s var(--ease) 0.5s both;
}

/* Hero Thumbnails (mini carousel at bottom right) */
.hero-thumbnails {
  position: absolute;
  right: 40px;
  bottom: 60px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-thumb {
  width: 70px;
  aspect-ratio: 2/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.6;
}

.hero-thumb:hover,
.hero-thumb.active {
  border-color: var(--primary-light);
  opacity: 1;
  transform: scale(1.05);
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Home Page Sections */
.home-section {
  padding: 40px 0;
}

.home-section + .home-section {
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ════════════════════════════════════════════
   MOVIES / TV BROWSE PAGE
   ════════════════════════════════════════════ */

.browse-header {
  padding: 40px 0 24px;
}

.browse-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.browse-subtitle {
  color: var(--text-2);
  font-size: 0.95rem;
}

.browse-content {
  padding-bottom: 60px;
}

/* Active Filters Bar */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(139,92,246,0.2);
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--primary-light);
}

.active-filter-remove {
  background: none;
  border: none;
  color: var(--primary-light);
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}

.active-filter-remove:hover { color: var(--error); }

.results-info {
  font-size: 0.88rem;
  color: var(--text-3);
  margin-bottom: 16px;
}

.results-info strong {
  color: var(--primary-light);
}

/* ════════════════════════════════════════════
   SEARCH PAGE
   ════════════════════════════════════════════ */

.search-page {
  padding: 40px 0 60px;
}

.search-header {
  margin-bottom: 32px;
}

.search-page-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

.search-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.search-tab {
  padding: 10px 20px;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font);
}

.search-tab:hover { color: #fff; }

.search-tab.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
}

.search-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: rgba(139,92,246,0.3);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 6px;
}

/* Person Result Card */
.person-result-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.person-result-card:hover {
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.3);
  transform: translateX(4px);
}

.person-result-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-3);
  border: 2px solid var(--border);
}

.person-result-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-result-info {}

.person-result-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.person-result-dept {
  font-size: 0.82rem;
  color: var(--text-3);
}

.person-result-known {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 4px;
}

/* ════════════════════════════════════════════
   PERSON PAGE
   ════════════════════════════════════════════ */

.person-hero {
  padding: 40px 0;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.person-photo {
  width: 240px;
  aspect-ratio: 2/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
}

.person-name {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.1;
}

.person-dept {
  font-size: 1rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 16px;
}

.person-bio-text {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 20px;
}

.person-bio-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.person-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.person-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.person-detail-label {
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.person-detail-value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

/* ════════════════════════════════════════════
   GENRE PAGE
   ════════════════════════════════════════════ */

.genre-header {
  padding: 40px 0 24px;
  text-align: center;
}

.genre-icon-large {
  font-size: 3rem;
  margin-bottom: 12px;
}

.genre-title-large {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.genre-count {
  font-size: 1rem;
  color: var(--text-2);
}

/* ════════════════════════════════════════════
   AUTH PAGE (LOGIN / REGISTER)
   ════════════════════════════════════════════ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 40px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(10,10,20,0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  animation: fadeInScale 0.5s var(--ease) both;
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo .logo-icon {
  width: 56px;
  height: 56px;
  font-size: 1.6rem;
  margin: 0 auto 12px;
}

.auth-logo h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.auth-logo p {
  font-size: 0.88rem;
  color: var(--text-3);
  margin-top: 4px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  border: none;
  font-family: var(--font);
}

.auth-tab.active {
  background: rgba(139,92,246,0.4);
  color: #fff;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 0.82rem;
  margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.btn-google:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.google-icon {
  width: 18px;
  height: 18px;
}

.auth-footer-text {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-3);
  margin-top: 8px;
}

.auth-footer-text a {
  color: var(--primary-light);
  cursor: pointer;
  transition: color 0.2s;
}

.auth-footer-text a:hover { color: #fff; }

.auth-forgot {
  text-align: right;
  font-size: 0.82rem;
  color: var(--primary-light);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: var(--font);
  padding: 0;
}

.auth-forgot:hover { color: #fff; }

.auth-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.85rem;
  color: var(--error);
  display: none;
}

.auth-error.show { display: block; }

/* ════════════════════════════════════════════
   ACCOUNT PAGE
   ════════════════════════════════════════════ */

.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 40px 0 60px;
  align-items: start;
}

/* Sidebar */
.account-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.account-profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  margin-bottom: 12px;
}

.account-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 3px solid var(--primary);
  overflow: hidden;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.account-email {
  font-size: 0.8rem;
  color: var(--text-3);
}

.account-member-since {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 8px;
}

.account-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 8px;
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  font-family: var(--font);
  text-align: left;
}

.account-nav-item:hover,
.account-nav-item.active {
  background: rgba(139,92,246,0.15);
  color: var(--primary-light);
}

.account-nav-item.danger:hover {
  background: rgba(239,68,68,0.15);
  color: var(--error);
}

.account-nav-icon { font-size: 1.1rem; }

.account-nav-badge {
  margin-left: auto;
  background: rgba(139,92,246,0.3);
  color: var(--primary-light);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Account Content */
.account-content {}

.account-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 16px;
}

.account-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ════════════════════════════════════════════
   WATCHLIST / FAVORITES / HISTORY / RATINGS
   ════════════════════════════════════════════ */

.collection-page {
  padding: 40px 0 60px;
}

.collection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.collection-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.collection-count {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-3);
}

.collection-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* History Item */
.history-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.history-item:hover {
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.3);
}

.history-poster {
  flex: 0 0 60px;
  aspect-ratio: 2/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-3);
}

.history-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-info { flex: 1; min-width: 0; }

.history-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-meta {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 8px;
}

.history-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: flex-start;
}

/* Ratings Item */
.rating-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  transition: all 0.2s;
}

.rating-item:hover {
  background: rgba(139,92,246,0.08);
  border-color: rgba(139,92,246,0.2);
}

.rating-poster {
  flex: 0 0 50px;
  aspect-ratio: 2/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-3);
}

.rating-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rating-info { flex: 1; min-width: 0; }

.rating-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.rating-meta {
  font-size: 0.78rem;
  color: var(--text-3);
}

.rating-stars-display {
  flex-shrink: 0;
  text-align: right;
}

.rating-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
}

.rating-max {
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .account-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .account-sidebar {
    position: static;
  }

  .account-profile-card {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 16px;
  }

  .account-avatar {
    margin: 0;
    flex-shrink: 0;
  }

  .account-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
  }

  .account-nav-item {
    flex: 0 0 auto;
    padding: 10px 14px;
  }

  .person-hero {
    grid-template-columns: 160px 1fr;
    gap: 24px;
  }

  .person-photo {
    width: 160px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 85vh;
    min-height: 500px;
    align-items: flex-end;
  }

  .hero-content {
    padding: 40px 20px 40px;
    max-width: 100%;
  }

  .hero-thumbnails { display: none; }

  .hero-gradient-side { display: none; }

  .hero-overview {
    -webkit-line-clamp: 2;
    font-size: 0.9rem;
  }

  .browse-title { font-size: 1.5rem; }

  .person-hero {
    grid-template-columns: 1fr;
  }

  .person-photo {
    width: 140px;
    margin: 0 auto;
  }

  .person-name { font-size: 1.6rem; }

  .collection-header { flex-direction: column; align-items: flex-start; }

  .history-item { flex-wrap: wrap; }

  .history-actions { width: 100%; justify-content: flex-end; }

  .auth-card { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero-actions .btn { flex: 1; min-width: 0; }

  .account-profile-card {
    flex-direction: column;
    text-align: center;
  }

  .account-avatar { margin: 0 auto; }

  .rating-item { flex-wrap: wrap; }

  .account-section { padding: 20px 16px; }
}


/* ══════════════════════════════════════════
   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%;
}

/* ── Review Avatar Placeholder ── */
.review-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

