/**
 * InterFilm — Design refresh v2
 * Couche visuelle uniquement (chargée après style.css)
 */

:root {
  --bg: #000;
  --s1: #000;
  --s2: #0a0a0a;
  --s3: #111;
  --s4: #1a1a1a;
  --red: #d4142a;
  --red2: #ff2d4a;
  --gold: #c9a227;
  --gold2: #e8c547;
  --text: #f4f3f7;
  --text2: #9b99ad;
  --muted: #5c5a6e;
  --border: rgba(255, 255, 255, 0.055);
  --border2: rgba(255, 255, 255, 0.1);
  --nav-h: 64px;
  --ff-head: 'Syne', system-ui, sans-serif;
  --ff-body: 'DM Sans', system-ui, sans-serif;
  --r: 10px;
  --r2: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --glass-surface: rgba(8, 8, 12, 0.82);
  --glass-blur: 28px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 24px 64px rgba(0, 0, 0, 0.55);
  --home-row-gap: clamp(16px, 1.6vw, 22px);
  --home-section-pad: clamp(2rem, 4vw, 3.25rem);
  --gradient-bg-depth: #000;
}

body {
  background: #000;
  background-color: #000;
  font-family: var(--ff-body);
  letter-spacing: -0.01em;
}

::selection {
  background: rgba(212, 20, 42, 0.35);
}

/* ─── Icon utilities ─── */
.if-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}
.if-icon svg {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.if-icon--fill svg { fill: currentColor; stroke: none; }

/* ─── Navigation ─── */
nav {
  height: var(--nav-h);
  padding: 0 clamp(1rem, 2.5vw, 2rem);
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: none;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  filter: none;
}
.logo-accent {
  color: #f77f00;
}

.nav-link {
  font-family: 'Bebas Neue', 'Oswald', var(--ff-head);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  color: #fff;
  border-radius: 8px;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nav-link.active {
  color: #fff;
  background: rgba(247, 127, 0, 0.12);
  border: 1px solid rgba(247, 127, 0, 0.35);
  box-shadow: 0 2px 12px rgba(247, 127, 0, 0.12);
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35) !important;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.45) !important;
}

.search-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  gap: 8px;
}
.search-pill:hover {
  color: var(--text);
  border-color: var(--border2);
  transform: none;
  box-shadow: none;
}

.notif-bell {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.user-pill {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  gap: 10px;
}

.premium-dropdown {
  background: var(--s2);
  border: 1px solid var(--border2);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.pd-item {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 11px 18px;
}

/* ─── Hero ─── */
.hero-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
  box-shadow: none;
  margin-bottom: 0;
}

.hero {
  min-height: 78vh;
  max-height: 920px;
  background: #000;
}
.hero-bg {
  filter: brightness(0.72) saturate(1.05) contrast(1.05);
}
.hero-grad1 {
  height: 70%;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(3, 3, 4, 0.92) 35%, transparent 100%);
}
.hero-grad2 {
  width: 65%;
  background: linear-gradient(90deg, rgba(3, 3, 4, 0.95) 0%, rgba(3, 3, 4, 0.4) 55%, transparent 100%);
}

.hero-content {
  bottom: clamp(88px, 10vh, 128px);
  left: clamp(1.5rem, 5vw, 4rem);
  max-width: min(640px, 52vw);
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem) !important;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.0625rem;
  max-width: 540px;
  margin-bottom: 1.5rem;
}

.hero-btns .btn {
  padding: 13px 26px;
  font-size: 0.9375rem;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border2);
  color: var(--text2);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  padding: 5px 12px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.8);
}

.hero-rating {
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.25);
  color: var(--gold2);
  font-size: 0.75rem;
  border-radius: 4px;
}

.hero-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 480px;
}

.hero-dot {
  width: 32px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.2);
}
.hero-dot.active {
  width: 48px;
  background: #fff;
  box-shadow: none;
}

/* ─── Buttons ─── */
.btn {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 11px 22px;
  gap: 8px;
}
.btn-primary {
  background: var(--red);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 8px 24px rgba(212, 20, 42, 0.35);
}
.btn-primary::before { display: none; }
.btn-primary:hover {
  background: var(--red2);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 12px 32px rgba(212, 20, 42, 0.4);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border2);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.icon-btn {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:not(:has(svg))::after {
  content: '×';
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  color: #fff;
}

/* ─── Studio bar ─── */
.studio-bar {
  padding: 1.75rem clamp(1.25rem, 4vw, 3rem);
  gap: 16px;
  border-bottom: 1px solid var(--border);
}
.studio-card {
  min-width: clamp(200px, 16vw, 280px);
  min-height: clamp(118px, 10vw, 156px);
  padding: clamp(20px, 2vw, 32px) clamp(28px, 3vw, 52px);
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02) !important;
  box-shadow: none !important;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), background 0.25s;
}
.studio-card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: var(--shadow-soft) !important;
}
.studio-card.active {
  border-color: rgba(212, 20, 42, 0.45);
  background: rgba(212, 20, 42, 0.06) !important;
  box-shadow: 0 0 0 1px rgba(212, 20, 42, 0.15) !important;
}
.studio-card[data-s="paramount"] {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.studio-logo {
  width: clamp(120px, 10vw, 148px);
  height: clamp(68px, 6vw, 84px);
  opacity: 1;
}

/* ─── Sections & carousel ─── */
.section {
  padding: 0.75rem clamp(1.25rem, 4vw, 3rem) var(--home-section-pad);
}
.section-header {
  margin-bottom: 1.35rem;
  align-items: flex-end;
}
.section-title {
  font-family: 'Bebas Neue', 'Oswald', var(--ff-head);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  gap: 8px;
  display: flex;
  align-items: center;
  line-height: 1;
}
.section-title::before {
  display: none !important;
}
.section-title--split {
  gap: 7px;
}
.section-title-w {
  color: #fff;
}
.section-title-o {
  color: #f77f00;
  text-shadow: 0 0 22px rgba(247, 127, 0, 0.22);
}
.see-all {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-color: var(--border);
  border-radius: 6px;
  padding: 8px 16px;
}
.see-all:hover {
  color: var(--text);
  border-color: var(--border2);
}

.scroll-row {
  padding: 28px 0 36px;
}
.row-inner {
  gap: var(--home-row-gap);
}
.carousel-wrap:has(#trendRow) .scroll-row {
  padding-top: 32px;
  padding-bottom: 44px;
}

/* Carrousels accueil — flèches à côté, plus de coupure à gauche */
#homeView .carousel-wrap {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
}
#homeView .c-arrow {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  flex-shrink: 0;
  z-index: 12;
}
#homeView .c-arrow:hover {
  transform: scale(1.06);
}
#homeView .scroll-row {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
#homeView .scroll-row::before,
#homeView .scroll-row::after {
  display: none;
}
#homeView .row-inner {
  padding: 12px 6px 16px;
}

.c-arrow {
  width: 44px;
  height: 44px;
  font-size: 0;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: rgba(8, 8, 12, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}
.c-arrow::after {
  content: '';
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-top: none;
  border-right: none;
  display: block;
}
.c-arrow-l::after { transform: rotate(45deg); margin-left: 3px; }
.c-arrow-r::after { transform: rotate(-135deg); margin-right: 3px; }
.c-arrow:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-50%) scale(1.05);
}

/* ─── Cards — style d’origine (style.css) + fixes légers ─── */
.del-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 12;
  font-size: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.card:hover .del-btn {
  display: flex;
}
.del-btn:hover {
  background: #f77f00;
  border-color: #f77f00;
}
.del-btn::before,
.del-btn::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}
.del-btn::before { transform: rotate(45deg); }
.del-btn::after { transform: rotate(-45deg); }

.cast-card-pro {
  cursor: pointer;
}

/* ─── Chips & filters ─── */
.chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text2);
}
.chip.active,
.chip:hover {
  border-color: var(--border2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ─── Profile gate ─── */
#profileGate {
  background: radial-gradient(ellipse at center, rgba(247, 127, 0, 0.08) 0%, transparent 60%), var(--bg);
}
.pg-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}
.pg-card {
  transition: transform 0.25s var(--ease-out);
}
.pg-card:hover {
  transform: scale(1.04);
}
.pg-avatar-box {
  border-radius: 50% !important;
  border: 3px solid transparent;
  transition: border-color 0.2s;
  overflow: hidden;
}
.pg-card:hover .pg-avatar-box {
  border-color: rgba(255, 255, 255, 0.2);
}
#pgVipProfiles .pg-avatar-box {
  overflow: visible;
}
#pgVipProfiles .pg-avatar-box > img:first-of-type {
  border-radius: 50%;
}
.pg-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 12px;
  color: var(--text2);
}

/* ─── Modals ─── */
.modal-bg,
.legal-modal,
.pe-modal {
  background: rgba(2, 2, 4, 0.88);
  backdrop-filter: blur(20px);
}
#modalBg .modal-floating-back {
  z-index: 260;
}
/* wheel-modal.css gère le modal aléatoire */
.legal-box,
.pe-container,
#settingsModal .settings-box {
  background: var(--s1);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  box-shadow: var(--shadow-lift);
}

/* ─── Settings ─── */
.settings-box {
  border-radius: var(--r2);
}
.settings-tab {
  font-size: 0.8125rem;
  font-weight: 600;
}
.settings-tab.active {
  color: #fff;
  border-bottom-color: var(--red);
}

/* ─── Staff panel ─── */
.staff-panel {
  background: var(--s1);
}
.staff-sidebar {
  background: rgba(0, 0, 0, 0.35);
  border-right: 1px solid var(--border);
}
.staff-nav-item {
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 8px;
  margin: 2px 8px;
}
.staff-nav-item.active {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}
.staff-nav-icon {
  font-size: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}
.staff-nav-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.staff-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.staff-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.sp-btn {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8125rem;
}
.sp-btn.primary {
  background: var(--red);
  border: none;
}

/* ─── Premium banner ─── */
.premium-banner {
  margin: 0 clamp(1rem, 3vw, 2.5rem) 2rem;
  border-radius: var(--r2);
  border: 1px solid var(--border2);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.08) 0%, rgba(212, 20, 42, 0.06) 100%), var(--s1);
  overflow: hidden;
}
.premium-banner-title {
  font-weight: 800;
  letter-spacing: -0.03em;
}
.premium-banner-cta {
  background: var(--gold);
  color: #0a0a0a;
  font-weight: 700;
  border: none;
  border-radius: 8px;
}
.premium-banner-cta:hover {
  background: var(--gold2);
}

/* ─── Toast ─── */
#toast {
  background: var(--s2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 14px 20px;
  box-shadow: var(--shadow-lift);
  max-width: min(360px, calc(100vw - 2rem));
}
#toast.show {
  animation: toastIn 0.35s var(--ease-out);
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border) !important;
  background: var(--s1) !important;
}
.footer-brand .logo-text {
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* ─── Notifications inbox ─── */
.notif-inbox {
  background: var(--s2);
  border: 1px solid var(--border2);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
}
.notif-inbox-title {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ─── Dashboard ─── */
.dash-empty-title {
  font-weight: 800;
  letter-spacing: -0.03em;
}
.movies-grid {
  gap: 16px;
  padding: 0 clamp(1rem, 3vw, 2.5rem) 3rem;
}

/* ─── Stacking & layout fixes ─── */
nav {
  z-index: 200;
}
#toast {
  z-index: 99999;
}
.notif-inbox {
  z-index: 250;
}
.premium-dropdown {
  z-index: 260;
}
.staff-panel {
  z-index: 500;
}

/* Pages secondaires — dégagement navbar fixe */
#catalogueView,
#gridView,
#studioView,
#dashboardView,
#faqView,
#reviewsView,
#releasesView,
#tvView,
.chart10 {
  padding-top: calc(var(--nav-h) + 1.25rem) !important;
  min-height: calc(100vh - var(--nav-h));
  position: relative;
  z-index: 2;
}

#catalogueView #catalogueChips,
#catalogueView .filter-chips {
  margin-top: 0 !important;
  padding: 0.75rem clamp(1rem, 3vw, 2.5rem) 1rem !important;
}

#catalogueView .grid-header,
#gridView .grid-header,
#studioView .grid-header {
  padding: 0 clamp(1rem, 3vw, 2.5rem) 0.5rem;
}

.catalogue-header-title {
  width: 100%;
  margin-bottom: 0.75rem;
}

.catalogue-glow-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  -webkit-text-fill-color: #fff;
  background: none;
  color: #fff;
  animation: none;
}

.catalogue-sub {
  letter-spacing: 0.12em;
}

/* Grilles catalogue / watchlist — affiches propres sans hauteur forcée */
.movies-grid > .card .card-img,
#catalogueGrid > .card .card-img,
#moviesGrid > .card .card-img,
#dashGrid > .card .card-img,
#studioGrid > .card .card-img {
  height: auto;
  aspect-ratio: 2/3;
}
#catalogueGrid > .card,
#moviesGrid > .card,
#dashGrid > .card,
#studioGrid > .card {
  width: 100%;
  max-width: 100%;
  flex: unset;
}

/* Cartes dans les carrousels — alignées sur style.css (200px) */
.row-inner > .card {
  flex: 0 0 260px;
  width: 260px;
}
.row-inner > .card-trending {
  flex: 0 0 260px !important;
  width: 260px !important;
}

.if-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  border: 1px dashed var(--border2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.dash-wrap {
  padding-top: calc(var(--nav-h) + 1rem) !important;
}

#homeView {
  position: relative;
  z-index: 1;
}

#heroSection {
  z-index: 1;
}

.nav-links {
  gap: clamp(0.35rem, 2vw, 2rem) !important;
}

@media (max-width: 1100px) {
  .nav-links {
    position: static !important;
    transform: none !important;
    flex: 1;
    justify-content: center;
    gap: 0.25rem !important;
  }
}

@media (max-width: 768px) {
  #catalogueView,
  #gridView,
  #studioView,
  #dashboardView,
  #faqView,
  #reviewsView,
  #releasesView,
  #tvView,
  .chart10 {
    padding-top: calc(var(--nav-h) + 4.5rem) !important;
    padding-bottom: 5rem !important;
  }

  .row-inner > .card,
  .row-inner > .card-trending {
    flex: 0 0 148px;
    width: 148px;
  }
  .row-inner > .card-trending {
    flex: 0 0 168px !important;
    width: 168px !important;
  }
}

.mobile-bottom-bar {
  background: rgba(8, 8, 12, 0.92);
  border: 1px solid var(--border2);
  backdrop-filter: blur(24px);
}
.mobile-tab-btn {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-tab-btn.active {
  color: #f77f00;
}
.mobile-tab-btn svg {
  stroke: currentColor;
  opacity: 0.85;
}

.studio-bg {
  opacity: 0.18;
  filter: saturate(0.85);
}

.releases-title {
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Scrollbar */
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
  .nav-links { gap: 0; }
  .nav-link { padding: 8px 12px; font-size: 0.9375rem; }
  .hero-content { bottom: 80px; left: 1.25rem; }
  .studio-card { min-width: 160px; min-height: 96px; padding: 16px 24px; }
}

/* ─── Settings ─── */
.settings-modal.open { backdrop-filter: blur(24px); }
.settings-box {
  background: var(--s1);
  border: 1px solid var(--border2);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
}
.settings-header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}
.settings-title {
  font-family: var(--ff-head);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.settings-tabs {
  border-bottom: 1px solid var(--border);
  gap: 0;
}
.settings-tab {
  border-radius: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 12px 16px;
}
.settings-tab.active {
  color: #fff;
  background: transparent;
  border-bottom-color: var(--red);
}
.settings-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.settings-card-title {
  font-weight: 700;
  font-size: 0.875rem;
}
.settings-theme-card {
  border-radius: 10px;
  border: 1px solid var(--border);
}
.settings-theme-card.active {
  border-color: var(--border2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.settings-switch-track {
  background: rgba(255, 255, 255, 0.08);
}
.settings-seg-btn {
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.settings-seg-btn.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border2);
}

/* ─── Search & modals ─── */
.search-overlay,
#detailModal .detail-panel,
#wheelModal .wheel-box {
  background: rgba(3, 3, 4, 0.92);
  backdrop-filter: blur(24px);
}
.search-input-wrap {
  border: 1px solid var(--border2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.detail-hero {
  border-radius: 0;
}
.detail-title {
  font-weight: 800;
  letter-spacing: -0.04em;
}
.detail-actions .btn-primary {
  min-width: 140px;
}

/* ─── Player ─── */
.player-wrap {
  background: #000;
}
.player-topbar {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent);
  border: none;
}
.src-btn {
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}
.src-btn.active {
  border-color: rgba(212, 20, 42, 0.5);
  background: rgba(212, 20, 42, 0.12);
  color: #fff;
}

/* ─── Chart 10 ─── */
.chart10 {
  background: var(--bg);
}
.chart10-display {
  font-weight: 800;
  letter-spacing: -0.04em;
}
.chart10-kicker {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.chart10-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.chart10-row:hover {
  border-color: var(--border2);
  background: rgba(255, 255, 255, 0.04);
}

/* ─── Staff panel ─── */
.staff-panel {
  background: var(--bg);
}
.staff-topbar {
  background: rgba(8, 8, 12, 0.95);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 60px;
}
.staff-logo {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.staff-badge {
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  border-radius: 4px;
  padding: 4px 10px;
}
.staff-section-sub {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.staff-panel-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.staff-form-input,
.staff-form-select,
.staff-form-textarea {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
}
.staff-form-input:focus,
.staff-form-select:focus,
.staff-form-textarea:focus {
  border-color: var(--border2);
  outline: none;
}
.staff-table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

/* ─── Profile editor ─── */
.pe-container {
  border-radius: 18px;
}
.pe-header {
  border-bottom: 1px solid var(--border);
}
.pe-save-btn {
  background: var(--red);
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ─── FAQ & legal ─── */
.faq-page .faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.legal-modal .legal-section {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.faq-q {
  font-weight: 700;
  font-size: 0.9375rem;
}

/* ─── Dashboard empty state ─── */
.dash-empty {
  padding: 4rem 2rem;
}
.dash-empty-sub {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ─── Releases card play icon ─── */
.releases-card-play,
.ep-thumb div[style*="font-size"] {
  font-size: 0 !important;
}
.releases-card-play::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
}

/* ─── Discord login ─── */
.discord-login-btn,
.discord-btn {
  background: #4752c4;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s;
}
.discord-login-btn:hover,
.discord-btn:hover {
  background: #5865f2;
}

/* ─── Hide legacy mobile nav with FontAwesome (no CDN loaded) ─── */
.mobile-nav-bar {
  display: none !important;
}

#catalogueGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 22px 16px !important;
  padding: 0 clamp(0.75rem, 3vw, 2.5rem) 2rem !important;
}

#moviesGrid,
#dashGrid,
#studioGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)) !important;
  gap: 14px 10px !important;
  padding: 0 clamp(0.75rem, 3vw, 2.5rem) 1.5rem !important;
}

#catalogueGrid .card--poster,
#moviesGrid .card--poster,
#dashGrid .card--poster,
#studioGrid .card--poster {
  max-width: none !important;
  justify-self: stretch !important;
  width: 100% !important;
}

.saga-grid {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
  gap: 12px 8px !important;
}

@media (max-width: 768px) {
  #catalogueGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 12px !important;
  }
  #moviesGrid,
  #dashGrid,
  #studioGrid,
  .saga-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px 7px !important;
  }
}

@media (max-width: 420px) {
  #catalogueGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 10px !important;
  }
  #moviesGrid,
  #dashGrid,
  #studioGrid,
  .saga-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 8px !important;
  }
}

#gridView .grid-header,
#studioView .grid-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#gridView .grid-header h2,
#studioView .grid-header h2 {
  font-family: var(--ff-head);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
}

#studioView .studio-bg {
  z-index: 0;
}

#studioView .grid-header,
#studioView .filter-chips,
#studioView .movies-grid,
#studioView .load-more-wrap {
  position: relative;
  z-index: 3;
}

/* Fond noir pur — sans grain ni halos */
.page-shell::before,
.staff-panel::before {
  display: none !important;
}

.search-bg,
.modal-bg,
.player-bg,
#profileGate,
#gateLoader,
.site-intro {
  background: #000 !important;
}

.site-footer {
  background: #000 !important;
}
