@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --nova-black:#141414;
  --nova-panel:#1f1f1f;
  --nova-red:#e50914;
  --nova-red-bright:#ff4d57;
  --nova-white:#f1f1f1;
  --nova-grey:#b3b3b3;
}

html,body,#root { background:var(--nova-black) !important; }
body { color:var(--nova-white) !important; font-family:Inter,Arial,sans-serif !important; }

/* ─── Header & Navigation Bar ─── */
.nav {
  height: 68px !important;
  background: rgba(18, 18, 18, 0.95) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
  inset: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 clamp(16px, 3.5vw, 48px) !important;
  gap: clamp(14px, 2.2vw, 36px) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
  z-index: 100 !important;
}

.brand.nav__brand {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  padding: 0 !important;
}

.brand__logo {
  width: auto !important;
  height: 38px !important;
  max-height: 42px !important;
  object-fit: contain !important;
  display: block !important;
}

.nav__links {
  display: flex !important;
  align-items: center !important;
  gap: clamp(6px, 1.2vw, 16px) !important;
  flex: 1 1 auto !important;
}

.nav__links a {
  font-family: 'Inter', Arial, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  text-decoration: none !important;
  padding: 7px 16px !important;
  border-radius: 9999px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
}

.nav__links a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.09) !important;
}

.nav__links a.active {
  color: #ffffff !important;
  background: var(--nova-red) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 14px rgba(229, 9, 20, 0.4) !important;
}

.nav__actions {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
}

/* ─── Authentic Cinema Catalog Counter (Subtle & High-End) ─── */
.nav__flex-badge { display: none !important; }

.nav__catalog-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 14px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 9999px !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
  color: rgba(255, 255, 255, 0.88) !important;
  white-space: nowrap !important;
  user-select: none !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}
.nav__catalog-pill:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.catalog-pill__count {
  font-weight: 700 !important;
  font-size: 0.84rem !important;
  color: #ffffff !important;
  letter-spacing: -0.01em !important;
}
.catalog-pill__label {
  font-weight: 500 !important;
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.52) !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

@media(max-width: 900px) {
  .nav__catalog-pill { display: none !important; }
}

/* Suppression définitive du profil et de la cloche en haut à droite */
.profile-menu,
.notif-bell {
  display: none !important;
}

/* ─── Typography & Titles ─── */
h1,h2,.row__title,.hero__eyebrow,.launch__brand,.launch__title {
  font-family:'Bebas Neue','Arial Narrow',Impact,sans-serif !important;
  letter-spacing:.035em;
}
.row__title { text-transform:uppercase; font-size:clamp(1.8rem,2.8vw,2.7rem) !important; }
.row__title::before,.section-title::before { background:var(--nova-red) !important; }

/* ─── Buttons & Player ─── */
.btn--play,.play-ring { background:#fff !important; color:#141414 !important; }
.btn--play:hover,.play-ring:hover { background:#dedede !important; }
.profile-menu__login { background:#fff !important; color:#141414 !important; }

.progress__played,.hero__progress-active,.player__switch-line { background:var(--nova-red) !important; }
.progress__knob { background:var(--nova-red-bright) !important; }
.ctrl--on,.source-picker__trigger:hover { color:var(--nova-red-bright) !important; }
.poster-card__rating,.nf-inline-preview__match { color:var(--nova-red-bright) !important; }

.poster-card__image,.catalog-card__image { border-radius:5px !important; }
.poster-card.nf-expanded,.nf-inline-preview { background:var(--nova-panel) !important; }
.nf-inline-preview__media::after { background:linear-gradient(transparent,var(--nova-panel)) !important; }
.nf-inline-preview__button--play { background:#fff !important; color:#141414 !important; }

.footer { background:#101010 !important; border-top:1px solid rgba(255,255,255,.08); }
.footer::before { content:"NOVAFLIX · CE SOIR, ÇA BRILLE."; display:block; margin-bottom:24px; color:var(--nova-red); font-family:'Bebas Neue','Arial Narrow',Impact,sans-serif; font-size:1.65rem; letter-spacing:.06em; }

::selection { color:#fff; background:var(--nova-red); }
:focus-visible { outline-color:var(--nova-red-bright) !important; }

@media(max-width:768px){
  .brand__logo { height:30px !important; }
  .nav { padding: 0 16px !important; }
}

.source-picker,
.backup-note {
  display: none !important;
}

/* ─── Offline Download Button (Cinema Quality Direct Pass) ─── */
.btn--download {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  height: 58px !important;
  padding: 0 28px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 9999px !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}
.btn--download:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  transform: scale(1.04) !important;
  color: #ffffff !important;
}
@media (max-width: 720px) {
  .btn--download {
    height: 50px !important;
    padding: 0 16px !important;
    font-size: 0.92rem !important;
    gap: 6px !important;
  }
}

.episode-card__download {
  position: absolute !important;
  bottom: 10px !important;
  right: 10px !important;
  z-index: 5 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(18, 18, 18, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  backdrop-filter: blur(8px) !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}
.episode-card__download:hover {
  background: var(--nova-red) !important;
  border-color: var(--nova-red) !important;
  transform: scale(1.12) !important;
  color: #ffffff !important;
}

/* ─── Premium Nova Toast Notification ─── */
.nova-toast {
  position: fixed !important;
  bottom: 36px !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(80px) !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 24px !important;
  background: rgba(18, 18, 22, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 9999px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
  color: #ffffff !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-size: 0.94rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.nova-toast--visible {
  transform: translateX(-50%) translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.nova-toast--error {
  border-color: rgba(229, 9, 20, 0.5) !important;
  background: rgba(26, 8, 10, 0.96) !important;
}
.nova-toast__icon {
  font-size: 1.15rem !important;
  display: flex !important;
  align-items: center !important;
}

/* ─── Novaflix Title Request Form (/demander) ─── */
.nova-request-container {
  max-width: 680px;
  margin: 40px auto;
  padding: 32px clamp(20px, 4vw, 40px);
  background: rgba(24, 24, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.nova-request-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #ffffff;
  text-align: center;
}
.nova-request-subtitle {
  font-size: 0.95rem;
  color: #b3b3b3;
  margin-bottom: 28px;
  text-align: center;
  line-height: 1.5;
}
.nova-form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nova-form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e5e5e5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nova-form-input, .nova-form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: #0d0d10;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nova-form-input:focus, .nova-form-textarea:focus {
  border-color: #e50914;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.25);
}
.nova-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.nova-type-btn {
  padding: 12px;
  background: #0d0d10;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #b3b3b3;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}
.nova-type-btn.active {
  background: rgba(229, 9, 20, 0.15);
  border-color: #e50914;
  color: #ffffff;
}
.nova-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #e50914 0%, #b81d24 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nova-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.5);
}
.nova-request-success {
  text-align: center;
  padding: 30px 10px;
}
.nova-request-success h3 {
  font-size: 1.5rem;
  color: #46d369;
  margin-bottom: 12px;
}
.nova-request-success p {
  color: #cccccc;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ─── Platform Page Filters & Sort Dropdown ─── */
.platform-page__bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  margin: 32px 0 36px !important;
}

.platform-page__bar .catalog-dropdown {
  position: relative !important;
}
