* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none; /* Firefox */
}

*::-webkit-scrollbar {
  display: none; /* Chrome, Safari, iOS */
}

:root {
  --bg: #0a0a0f;
  --bg-card: #1a1a24;
  --bg-hover: #252535;
  --text: #ffffff;
  --text-dim: #a0a0b8;
  --text-muted: #606078;
  --accent: #00BFA6;
  --accent-hover: #00A892;
  --radius: 8px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  --topbar-h: 72px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#app {
  min-height: 100vh;
}

/* Loading & Error */
.loading,
.error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-size: 1.2rem;
  color: var(--text-dim);
}

.error {
  color: var(--accent);
}

/* Hero plot (partagé carrousel + details) */
.hero-plot {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  margin: 16px 0;
  max-width: 550px;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Bouton Reprendre avec barre de progression */
.btn-resume {
  position: relative;
  overflow: hidden;
  padding-bottom: 16px;
}

.resume-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0 2px 2px 0;
  pointer-events: none;
  transition: width 0.3s ease;
}

/* Chips */
.chips,
.hero-genres {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.chip {
  background: rgba(0, 191, 166, 0.7);
  color: var(--text);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.rating {
  color: #fbbf24;
  font-weight: 600;
}

.badge-tmdb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  padding: 0 7px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.badge-tmdb-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.badge-tmdb-score {
  color: #fff;
}

/* Sections */
.section {
  padding: 40px clamp(20px, 4vw, 60px);
}

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

.section h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Row */
.row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-hover) transparent;
}

.row::-webkit-scrollbar {
  height: 6px;
}

.row::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: 3px;
}

/* Card */
.card {
  position: relative;
  flex-shrink: 0;
  width: 180px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}

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

.card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

.card-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-muted);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 12px 12px;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.95), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}

.card-year {
  font-size: 0.75rem;
  color: var(--text-dim);
}

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

.card-progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s;
}

/* Continue Watching Cards */
.row-cw {
  gap: 16px;
}

.cw-card {
  position: relative;
  flex: 0 0 260px;
  width: 260px;
  height: 146px;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  color: var(--text);
  background: var(--bg-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cw-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  padding: 0;
}

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

@media (hover: none) {
  .cw-remove-btn,
  .cw-info-btn {
    opacity: 1;
  }
}

.cw-remove-btn:hover {
  background: rgba(200, 50, 50, 0.85);
  color: white;
}

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

.cw-card:hover .cw-play-icon {
  opacity: 1;
}

.cw-card:hover .cw-info-btn {
  opacity: 1;
}

/* Zone cliquable lecture */
.cw-play-area {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.cw-card:hover .cw-play-area {
  border-color: rgba(255, 255, 255, 0.2);
}

.cw-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cw-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
}

/* Icône play au centre au hover */
.cw-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  background: rgba(0, 0, 0, 0.25);
}

.cw-play-icon svg {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

.cw-overlay {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.cw-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.cw-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
}

.cw-progress-fill {
  height: 100%;
  background: #00BFA6;
  transition: width 0.3s;
}

/* Bouton info "Plus d'infos" */
.cw-info-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 2;
}

.cw-info-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Details Page */
.details-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(20px, 4vw, 60px) 40px;
}

.details-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  z-index: 0;
}

.details-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
}

.back-btn {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 100px);
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 101;
}

.back-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.details-poster {
  width: 280px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.details-info {
  flex: 1;
  padding-top: 20px;
}

.details-logo {
  max-width: min(380px, 65vw);
  max-height: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 12px;
  display: block;

  /* Base readability + turquoise edge glow */
  filter:
    drop-shadow(0 2px 12px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 4px rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.35));
}

.details-info h1 {
  font-weight: 800;
  line-height: 1.05;

  /* Responsive size */
  font-size: clamp(28px, 5vw, 56px);

  /* Limite à 2 lignes */
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.details-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.details-actions {
  margin-top: 24px;
}

/* Seasons & Episodes */
.seasons {
  padding: 40px clamp(20px, 4vw, 60px);
}

.season {
  margin-bottom: 40px;
}

.season h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.episodes {
  display: grid;
  gap: 16px;
}

.episode {
  display: grid;
  grid-template-columns: 40px 160px 1fr;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--bg-card);
  cursor: pointer;
  transition: background 0.2s;
}

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

.episode-num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
}

.episode img,
.episode-thumb-placeholder {
  width: 160px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 6px;
}

.episode-thumb-placeholder {
  background: var(--bg-hover);
}

.episode-watched {
  opacity: 0.5;
}

.episode-watched .episode-num {
  color: var(--accent);
}

.episode-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.episode-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.episode-plot {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cast */
.cast {
  padding: 40px clamp(20px, 4vw, 60px);
}

.cast h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.cast-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.cast-card {
  flex-shrink: 0;
  width: 120px;
  text-align: center;
}

.cast-card img,
.cast-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
  background: var(--bg-card);
}

.cast-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

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

/* Player */
.player {
  position: fixed;
  inset: 0;
  background: black;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Quand .player est l'élément fullscreen, il occupe tout l'écran */
.player:fullscreen,
.player:-webkit-full-screen,
.player:-moz-full-screen {
  width: 100%;
  height: 100%;
  background: black;
}

.player-close {
  position: absolute;
  top: max(20px, env(safe-area-inset-top, 20px));
  right: max(20px, env(safe-area-inset-right, 20px));
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.2s, transform 0.2s;
}

.player-close.player-close-visible {
  opacity: 1;
}

.player-close:hover {
  background: rgba(0, 0, 0, 0.95);
  transform: scale(1.1);
}

.player-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: max(18px, env(safe-area-inset-top, 18px)) 80px 24px 24px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, transparent 100%);
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-title-overlay.player-title-visible {
  opacity: 1;
}

.player video {
  width: 100%;
  height: 100%;
  outline: none;
}

/* Responsive hero-plot sur mobile */
@media (max-width: 768px) {
  .hero-plot {
    -webkit-line-clamp: 3;
  }
}

/* ============================================================
   HERO CARROUSELS — utilise exactement les classes .details-hero
   Seules surcharges : hauteur, marges slot, et transition fade
   ============================================================ */

/* Slot hero sans padding */
#home-hero-slot {
  padding: 0 !important;
}

/* Sur les pages library, sortir le hero du padding parent pour couvrir bord à bord */
.library #home-hero-slot {
  margin-top: -100px !important;
  margin-left: calc(-1 * clamp(16px, 3vw, 40px)) !important;
  margin-right: calc(-1 * clamp(16px, 3vw, 40px)) !important;
}

@media (max-width: 480px) {
  .library #home-hero-slot {
    margin-left: -12px !important;
    margin-right: -12px !important;
  }
}

/* Wrapper carrousel : même comportement que .details pour le mobile portrait */
.hero-carousel-wrapper {
  overflow: visible;
}

/* Hauteur carrousel desktop = 85vh, transition fade */
.hero-carousel {
  min-height: 85vh;
  transition: opacity 0.3s ease-in-out;
}

/* Plot limité à 3 lignes dans le carrousel */
.hero-carousel .hero-plot {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {

  .hero-plot {
    line-clamp: 3;
  }

  .details-content {
    flex-direction: column;
  }

  .details-poster {
    width: 200px;
  }

  .details-info h1 {
    font-size: 1.8rem;
  }

  .episode {
    grid-template-columns: 30px 1fr;
  }

  .episode img {
    display: none;
  }

  .card {
    width: 140px;
  }

  .section {
    padding: 30px 16px;
  }
}

/* Navbar */

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px clamp(20px, 4vw, 60px);
  max-width: 1920px;
  margin: 0 auto;
}


.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  position: relative;
  top : 10px;
}

.icon{
  position: relative;
  top: -13px;
  display: inline-block;

  background-image: linear-gradient(
    to bottom,
    #0a0a0f 0%,
    #00BFA6 50%,
    #00BFA6 100% /* ton vert vif */
  );

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
  color: transparent;
  
}

.logo:hover {
  color: #00D4BA;
}

.navbar-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

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

.search-btn,
.logout-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.search-btn:hover,
.logout-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.logout-btn:hover {
  background: rgba(0, 191, 166, 0.2);
  color: var(--accent);
}

/* Profile Dropdown */
.profile-wrapper {
  position: relative;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.profile-avatar:hover {
  background: rgba(255, 255, 255, 0.15);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(26, 26, 36, 0.98);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.12s ease-out;
  z-index: 150;
}

.profile-dropdown.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.profile-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.profile-dropdown-item:first-child {
  border-radius: 14px 14px 0 0;
}

.profile-dropdown-item:last-child {
  border-radius: 0 0 14px 14px;
}

.profile-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.profile-dropdown-item svg {
  flex-shrink: 0;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-card);
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  animation: modalSlide 0.12s ease-out;
}

@keyframes modalSlide {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.modal form {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s;
}

.form-group input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
}

.form-error {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 16px;
  min-height: 20px;
}

.form-success {
  color: #4ade80;
  font-size: 0.9rem;
  margin-bottom: 16px;
  min-height: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.modal-actions .btn {
  flex: 1;
}

/* Search Modal */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 80px 20px 20px;
  overflow-y: auto;
}

.search-modal.active {
  opacity: 1;
  pointer-events: all;
}

.search-box {
  max-width: 800px;
  margin: 0 auto 30px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 16px 50px 16px 20px;
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.1rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: var(--accent);
}

#search-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}

#search-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

#search-results {
  max-width: 800px;
  margin: 0 auto;
}

.search-result {
  display: flex;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.search-result:hover {
  background: var(--bg-hover);
}

.search-result img,
.search-result-placeholder {
  width: 60px;
  height: 90px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-placeholder {
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
}

.search-result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-result-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.search-result-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.search-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
  font-size: 1.1rem;
}

/* Library Grid */
.library {
  padding: 100px clamp(16px, 3vw, 40px) 40px;
  min-height: 100vh;
}

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

.library-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.library-count {
  font-size: 0.95rem;
  color: var(--text-dim);
}

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

.library-grid .card {
  width: 100%;
  aspect-ratio: 2 / 3;
}

.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.movies-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.movies-title-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.movies-title-block h2 {
  font-size: 1.6rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .movies-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .library-controls {
    width: 100%;
  }

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

.library-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.library-search {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  padding: 8px 14px;
  font-size: 1rem;
  width: 220px;
  outline: none;
}

.library-search:focus {
  border-color: rgba(255, 255, 255, 0.35);
}

.library-sort {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  padding: 8px 10px;
  font-size: 1rem;
  outline: none;
  cursor: pointer;
}

/* Adjust hero carousel for navbar */
.home .hero-carousel {
  margin-top: 0;
  padding-top: 0;
}

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

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

@media (max-width: 480px) {
  .library-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) and (orientation: portrait) {
  .library {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* iOS: éviter le zoom au focus */
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Logo SVG */
.logo-container {
  text-decoration: none;
  display: block;
}

.logo-svg {
  height: 40px;
  width: auto;
}

.logo-text {
  font-family: 'Arial Black', sans-serif;
  font-size: 32px;
  font-weight: 900;
  fill: url(#logoGrad);
  letter-spacing: 2px;
}

.search-loading {
  text-align: center;
  padding: 20px;
  color: var(--text-dim);
}



/* Hide poster below 1100px */
@media (max-width: 1099px) {
  .details-poster {
    display: none;
  }

  .details-content {
    padding-top: 60px;
  }
}

/* Avec poster visible (>1100px) : bas de details-info aligné avec le bas de la jaquette */
@media (min-width: 1100px) {
  .details-hero,
  .hero-carousel {
    padding-bottom: 90px;
  }
  .details-content {
    align-items: flex-end;
  }
  .details-info {
    padding-top: 0;
  }
}

/* Stronger gradient overlay for better text readability */


/* Plot styling - improved readability */
.plot {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #ffffff;
  margin: 20px 0;
  max-width: 700px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

/* Plot expand/collapse */
.plot-container {
  margin: 20px 0;
}

.plot-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.plot-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.plot-expand-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Text readability improvements */
.details-info h1,
.details-meta {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.85);
}

.details-info h1 {
  color: var(--text);
}

.details-meta {
  color: #d0d0e0;
}

/* Mobile specific */
@media (max-width: 768px) {
  .plot {
    font-size: 1rem;
  }

  .plot-collapsed {
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }
}

.page-movies .movies-topbar {
  margin-top: 32px;
}

/* Smaller card titles */
.card-title {
  font-size: 0.8rem !important;
  line-height: 1.2 !important;
}

/* Navbar sans glossy - fond noir opaque */

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fix search modal z-index */
.search-modal {
  z-index: 1000 !important;
}

.search-box {
  z-index: 1001;
}

#search-results {
  z-index: 1002;
  position: relative;
}

/* Améliorer scrollbar carousel */
.row {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.row::-webkit-scrollbar {
  height: 8px;
}

.row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.row::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Navbar transparente avec dégradé */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0.7) 50%, transparent 100%);
  backdrop-filter: none;
  border-bottom: none;
  padding-bottom: 30px;
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: border-box;
}

/* Navbar details mode — même style que home */
.navbar-details {
  background: linear-gradient(to bottom, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0.7) 50%, transparent 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-bottom: 30px;
}

@media (max-width: 767px) {
  .navbar-links-hidden {
    display: none;
  }
}

.navbar-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.navbar-back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Masquer l'ancien bouton back standalone */
.back-button {
  display: none !important;
}


/* Episodes - New List UI with Season Filters */
.seasons-container {
  padding: 40px clamp(20px, 4vw, 60px);
}

.season-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.season-filter-btn {
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.season-filter-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.90);
}

.season-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.season-episodes {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.season-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

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

.episode-item {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.episode-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.episode-item-thumb {
  position: relative;
  flex: 0 0 180px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.episode-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.episode-item-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.25);
}

.episode-item-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(8px);
}

.episode-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  text-align: left;
}

.episode-item-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.3;
  text-align: left;
}

.episode-item-plot {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .episode-item {
    gap: 12px;
  }

  .episode-item-thumb {
    flex-basis: 140px;
    height: 80px;
  }

  .episode-item-title {
    font-size: 15px;
  }

  .episode-item-plot {
    font-size: 13px;
    line-clamp: 2;
  }
}

@media (max-width: 480px) {
  .seasons-container {
    padding: 24px 16px;
  }

  .season-filters {
    gap: 8px;
  }

  .season-filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .episode-item {
    flex-direction: column;
    gap: 12px;
  }

  .episode-item-thumb {
    flex-basis: auto;
    width: 100%;
    height: 140px;
  }

  .episode-item-plot {
    line-clamp: 3;
  }
}

/* Theme audio control */
.theme-control {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 191, 166, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.theme-control:hover {
  background: rgba(0, 191, 166, 1);
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 24px rgba(0, 191, 166, 0.6);
}

.theme-control:active {
  transform: scale(1.05);
}

/* Animated pulse when playing */
.theme-control.playing {
  animation: pulse 2s ease-in-out infinite;
  border-color: rgba(255, 255, 255, 0.6);
}

/* Subtle shake when muted/blocked to draw attention */
.theme-control:not(.playing) {
  animation: shake 3s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 4px 16px rgba(0, 191, 166, 0.6), 0 0 0 0 rgba(229, 9, 20, 0.4);
  }

  50% {
    box-shadow: 0 6px 24px rgba(0, 191, 166, 0.8), 0 0 0 8px rgba(229, 9, 20, 0);
  }
}

@keyframes shake {

  0%,
  90%,
  100% {
    transform: translateX(0);
  }

  92%,
  96% {
    transform: translateX(-2px);
  }

  94%,
  98% {
    transform: translateX(2px);
  }
}

/* Fix navbar visible sur details */
.details {
  position: relative;
  z-index: 1;
}

.navbar {
  z-index: 100 !important;
}

.search-result-plot {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* transition fade déjà définie sur .hero-carousel */

/* Bottom Tab Bar - Mobile Only */
.bottom-tab-bar {
  display: none;
}

@media (max-width: 768px) {
  .bottom-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #0b0f1a;
    z-index: 100;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  }

  .bottom-tab-bar .tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    text-decoration: none;
    color: var(--text-dim);
    transition: color 0.2s;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
  }

  .bottom-tab-bar .tab-item svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
  }

  .bottom-tab-bar .tab-item span {
    font-size: 0.7rem;
    font-weight: 500;
  }

  .bottom-tab-bar .tab-item.active {
    color: #00BFA6;
  }

  .bottom-tab-bar .tab-item:active {
    transform: scale(0.95);
  }

  /* Add padding to main content to prevent overlap with bottom bar */
  .home,
  .library {
    padding-bottom: 90px;
  }

  .details .seasons {
    padding-bottom: 90px;
  }

  .theme-control {
    bottom: 90px;
  }
}

/* Edit Modal */
.edit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 20px 20px;
  overflow-y: auto;
}

.edit-modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

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

.edit-modal-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.edit-modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.edit-modal-close:hover {
  color: var(--text);
}

.edit-modal-body {
  padding: 24px;
}

.edit-form-group {
  margin-bottom: 20px;
}

.edit-input-readonly {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  cursor: default;
  border-style: dashed;
}

.edit-path-full {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-dim);
  opacity: 0.6;
  word-break: break-all;
}

.edit-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dim);
}

.edit-form-group input,
.edit-form-group textarea {
  width: 100%;
  padding: 12px;
  background: var(--bg-hover);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.edit-form-group input:focus,
.edit-form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.edit-form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.edit-form-group small {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.edit-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.edit-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-cancel {
  padding: 10px 20px;
  background: var(--bg-hover);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-cancel:hover {
  background: var(--bg);
}

.btn-save {
  padding: 10px 24px;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-save:hover {
  background: var(--accent-hover);
}

.btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-edit {
  padding: 10px 20px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-edit:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* TMDB Autosuggest */
.tmdb-search-wrapper {
  position: relative;
}

.tmdb-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  margin-top: 4px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.tmdb-result-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.tmdb-result-item:hover {
  background: var(--bg-hover);
}

.tmdb-result-item:last-child {
  border-bottom: none;
}

.tmdb-result-poster {
  width: 50px;
  height: 75px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--bg-card);
}

.tmdb-result-poster-placeholder {
  width: 50px;
  height: 75px;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.5rem;
}

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

.tmdb-result-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.tmdb-result-year {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.tmdb-result-overview {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tmdb-loading {
  padding: 12px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.tmdb-error {
  padding: 12px;
  color: var(--accent);
  font-size: 0.9rem;
}

.tmdb-empty {
  padding: 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .edit-modal {
    max-height: 100vh;
    border-radius: 0;
  }

  .edit-form-row {
    grid-template-columns: 1fr;
  }

  .tmdb-results {
    max-height: 300px;
  }
}

/* ==========================================
   Trailer Modal
   ========================================== */

.trailer-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.trailer-modal.active {
  opacity: 1;
  visibility: visible;
}

.trailer-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}

.trailer-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  z-index: 2;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.trailer-modal.active .trailer-modal-content {
  transform: scale(1);
}

.trailer-modal-close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top, 16px));
  right: max(16px, env(safe-area-inset-right, 16px));
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10001;
}

.trailer-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.trailer-modal-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.trailer-modal-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Trailer Button */
.trailer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trailer-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.trailer-btn svg {
  fill: currentColor;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .trailer-modal-content {
    width: 95%;
  }

  .trailer-modal-video {
    border-radius: 4px;
  }

  .trailer-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .trailer-modal-content {
    width: 100%;
    padding: 0 10px;
  }

  .trailer-modal-video {
    border-radius: 0;
  }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .trailer-modal-content {
    width: 95%;
    max-width: none;
  }
}

/* Back button on details page */
.back-button {
  position: fixed;
  top: 80px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 150;
}

.back-button:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.back-button svg {
  width: 24px;
  height: 24px;
}

/* ── Details actions ── 1 seule ligne, même hauteur que les boutons accueil */
.details-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
}

/* "Plus" (expand synopsis) — même style que les icon-buttons */
.details-actions .plot-expand-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 14px;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--icon-btn-radius, 10px);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.details-actions .plot-expand-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Lecture : occupe l'espace restant, limité en largeur sur desktop */
.details-actions .btn-primary {
  flex: 1 1 0;
  min-width: 120px;
  max-width: 320px;
  justify-content: center;
  padding: 12px 20px;
}

/* Icon-buttons : Bande-annonce & Éditer */
.details-actions .trailer-btn,
.details-actions .btn-edit {
  flex: 0 0 var(--icon-btn-size, 44px);
  width: var(--icon-btn-size, 44px);
  height: auto;
  min-width: 0;
  padding: 12px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--icon-btn-radius, 10px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}

.details-actions .trailer-btn:hover,
.details-actions .btn-edit:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}

.details-actions .trailer-btn:active,
.details-actions .btn-edit:active {
  background: rgba(255, 255, 255, 0.22);
}

/* Label toujours masqué, icône visible */
.details-actions .trailer-btn .btn__label,
.details-actions .btn-edit .btn__label {
  display: none;
}

.details-actions .trailer-btn svg,
.details-actions .btn-edit svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .cw-card {
    flex: 0 0 220px;
    width: 220px;
    height: 124px;
  }
}

/* ==========================================================
   Library Hero – FIX mismatch source (Movies had extra 100vh rules)
   What this does:
   - One single rule drives hero height/padding for ALL /library/* pages
   - Movies can be tuned separately WITHOUT moving Animations (scoped variable)
   ========================================================== */

:root {
  --bottom-tab-h: 70px;
  /* must match your bottom tab bar */
  --hero-pad-bottom: 96px;
  /* default (Animations) */
  --hero-pad-bottom-movies: 112px;
  /* movies only (raise buttons vs default) */
}

/* (bloc library hero unifié neutralisé — remplacé par la règle portrait unique ci-dessus) */

/* Details pages gradient overlay */
.details-hero {
  overflow: hidden;
}

/* Même gradient que .hero-gradient des carrousels */
.details-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(to top,
      var(--bg) 0%,
      var(--bg) 2%,
      transparent 50%),
    rgba(10, 10, 15, 0.3);
}

.details-content {
  z-index: 3;
}

/* Mobile content block caché par défaut (desktop) */
.details-content-mobile {
  display: none;
}

/* ── Mobile portrait : hero 50vh + content en dessous centré ── */
@media (max-width: 767px) and (orientation: portrait) {
  /* Le wrapper .details (et le wrapper carrousel) doivent permettre le débordement visuel du hero */
  .details,
  .hero-carousel-wrapper {
    overflow: visible;
  }

  /* Hero = 50vh dans le flux, overflow visible pour que le fanart dépasse */
  .details-hero {
    min-height: 50vh !important;
    height: 50vh !important;
    padding: 0 !important;
    align-items: stretch !important;
    overflow: visible !important;
  }

  /* Le fanart dépasse de 100px vers le bas hors du hero */
  .details-hero-bg {
    bottom: -100px !important;
  }

  /* Gradient couvre la zone de chevauchement */
  .details-hero::before {
    bottom: -100px !important;
    background:
      linear-gradient(to top,
        var(--bg) 0%,
        var(--bg) 12%,
        transparent 55%),
      rgba(10, 10, 15, 0.2) !important;
    z-index: 1 !important;
  }

  /* Content desktop caché sur mobile portrait */
  .details-content-desktop {
    display: none !important;
  }

  /* Content mobile : remonte de 100px sur le fanart étendu */
  .details-content-mobile {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 20px 20px;
    background: transparent;
    margin-top: -100px;
    position: relative;
    z-index: 2;
  }

  .details-content-mobile .details-info {
    width: 100%;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .details-content-mobile .details-logo {
    max-width: min(300px, 75vw);
    max-height: 100px;
    object-position: center center;
    margin-bottom: 12px;
  }

  .details-content-mobile .details-title {
    font-size: clamp(22px, 6vw, 32px);
    text-align: center;
    margin-bottom: 8px;
  }

  .details-content-mobile .details-meta {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
  }

  .details-content-mobile .hero-genres {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    width: 100%;
    overflow: hidden;
  }

  .details-content-mobile .plot-container {
    margin: 0 0 4px;
    text-align: left;
    width: 100%;
  }

  .details-content-mobile .details-actions {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 12px;
  }

  .details-content-mobile .details-actions .btn-primary {
    max-width: none;
    flex: 1 1 140px;
  }
}

/* Sur mobile portrait, cacher le content mobile sur desktop et vice-versa */
@media (min-width: 768px), (orientation: landscape) {
  .details-content-mobile {
    display: none !important;
  }
  .details-content-desktop {
    display: flex !important;
  }
}

/* ===== Admin Page ===== */
.admin-page {
  max-width: 900px;
  margin: 100px auto 4rem;
  padding: 0 1.5rem;
}

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

.admin-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.admin-error {
  background: rgba(229, 57, 53, .15);
  border: 1px solid rgba(229, 57, 53, .4);
  color: #ef9a9a;
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: .9rem;
}

.admin-table-wrap {
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.admin-table th {
  background: rgba(255,255,255,.06);
  color: #aaa;
  font-weight: 600;
  text-align: left;
  padding: .9rem 1.2rem;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.admin-table td {
  padding: .9rem 1.2rem;
  color: #e0e0e0;
  border-top: 1px solid rgba(255,255,255,.05);
}

.admin-table tr:hover td {
  background: rgba(255,255,255,.03);
}

.admin-badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(255,255,255,.08);
  color: #aaa;
}

.admin-badge-admin {
  background: rgba(229, 57, 53, .2);
  color: #ef9a9a;
}

.admin-actions {
  display: flex;
  gap: .5rem;
}

.btn-sm {
  padding: .35rem .75rem;
  font-size: .8rem;
  border-radius: 6px;
}

.btn-danger {
  background: rgba(229, 57, 53, .15);
  color: #ef9a9a;
  border: 1px solid rgba(229, 57, 53, .3);
}

.btn-danger:hover {
  background: rgba(229, 57, 53, .3);
}

.profile-dropdown-item[href] {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 600px) {
  .admin-page { margin-top: 80px; }
  .admin-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .admin-table th:nth-child(3),
  .admin-table td:nth-child(3) { display: none; }
}

/* Admin Scan Section */
.admin-scan-section {
  margin-top: 3rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 1.5rem;
}

.admin-scan-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-scan-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .25rem;
}

.admin-scan-subtitle {
  font-size: .85rem;
  color: var(--text-dim);
}

.admin-scan-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-scan-prune-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}

.admin-scan-prune-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.admin-scan-status {
  margin-top: 1.25rem;
}

.admin-scan-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}

.admin-scan-status-text {
  font-size: .85rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

.admin-scan-elapsed {
  font-size: .8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.admin-scan-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  overflow: hidden;
}

.admin-scan-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 4px;
  transition: width .6s ease;
}

.admin-scan-logs {
  margin-top: 1rem;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  padding: .75rem 1rem;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}

.admin-scan-logs::-webkit-scrollbar {
  display: block;
  width: 5px;
}

.admin-scan-logs::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.15);
  border-radius: 4px;
}

.admin-scan-log-line {
  font-size: .8rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: #a0a0b8;
  line-height: 1.7;
}

.admin-scan-log-line:last-child {
  color: #fff;
}

.admin-scan-result {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
}

.admin-scan-result-success {
  background: rgba(0, 191, 166, .12);
  border: 1px solid rgba(0, 191, 166, .3);
  color: var(--accent);
}

.admin-scan-result-error {
  background: rgba(229, 57, 53, .12);
  border: 1px solid rgba(229, 57, 53, .3);
  color: #ef9a9a;
}

@media (max-width: 600px) {
  .admin-scan-header { flex-direction: column; }
  .admin-scan-actions { width: 100%; justify-content: space-between; }
}

/* Episodes Section */
.episodes-section {
  margin-top: 3rem;
  padding: 0 1rem;
}

.episodes-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.season-group {
  margin-bottom: 2rem;
}

.season-group h4 {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--bg-hover);
}

.episodes-grid,
.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.episode-card,
.episode-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
  cursor: pointer;
}

.episode-card:hover,
.episode-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.episode-card.checked,
.episode-item.checked {
  opacity: 0.65;
  border-color: var(--accent);
}

.episode-card.checked .episode-number,
.episode-item.checked .episode-number {
  color: var(--accent);
  font-weight: 600;
}

.episode-checkbox {
  flex-shrink: 0;
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
}

.episode-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
  margin: 0;
}

.episode-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.episode-number {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.episode-title {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition: color 0.2s ease;
}

.episode-title:hover {
  color: var(--accent);
}

.episode-plot {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .episodes-grid,
  .episodes-list {
    gap: 0.6rem;
  }
  
  .episode-card,
  .episode-item {
    padding: 0.6rem;
    gap: 0.8rem;
  }
}

/* Episode Watch Button */
.ep-watch-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(0,0,0,0.6);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
  z-index: 2;
}

.ep-watch-btn:hover {
  background: rgba(0,0,0,0.8);
  border-color: var(--accent);
  color: var(--accent);
}

.ep-watch-btn.ep-watched {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.ep-item-watched .episode-item-title {
  opacity: 0.5;
}

.ep-item-watched .episode-item-thumb {
  opacity: 0.4;
}

/* Bouton unwatch individuel sur épisode vu */
.ep-unwatch-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}

.episode-item:hover .ep-unwatch-btn {
  opacity: 1;
}

@media (max-width: 768px) {
  .ep-unwatch-btn {
    opacity: 1;
  }
}

/* Header saison avec bouton reset */
.season-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.season-header .season-title {
  margin-bottom: 0;
}

.season-reset-btn {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
}

.season-reset-btn:hover {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
}

/* Episodes List Loading State */
.episodes-list-loading {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .episodes-list-loading {
    padding: 1rem;
    height: 180px;
  }
}

/* Overlay "Épisode suivant" dans le player */
.next-ep-overlay {
  position: absolute;
  bottom: 100px;
  right: 24px;
  z-index: 10;
  pointer-events: all;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.next-ep-overlay.next-ep-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.next-ep-card {
  background: rgba(10, 10, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 260px;
  max-width: 320px;
  pointer-events: all;
  backdrop-filter: blur(12px);
  animation: next-ep-slide-in 0.3s ease;
}

@keyframes next-ep-slide-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.next-ep-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}

.next-ep-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.3;
}

.next-ep-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.next-ep-btn-play {
  flex: 1;
  padding: 8px 12px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.next-ep-btn-play:hover {
  background: var(--accent-hover);
}

.next-ep-btn-cancel {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.next-ep-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.next-ep-countdown {
  display: flex;
  align-items: center;
  gap: 10px;
}

.next-ep-countdown-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

#next-ep-bar {
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  width: 100%;
}

#next-ep-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .next-ep-overlay {
    bottom: 70px;
    right: 12px;
    left: auto;
  }
  .next-ep-card {
    padding: 10px 14px;
    min-width: 0;
    max-width: 260px;
    border-radius: 10px;
  }
  .next-ep-title {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .next-ep-label {
    font-size: 10px;
    margin-bottom: 3px;
  }
  .next-ep-btn-play,
  .next-ep-btn-cancel {
    padding: 6px 10px;
    font-size: 12px;
  }
  .next-ep-actions {
    margin-bottom: 8px;
  }
}

