/* ══════════════════════════════════════════════
   CineVip — Design System
   ══════════════════════════════════════════════ */

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

:root {
  --red:   #c8102e;
  --red2:  #e10600;
  --gold:  #f59e0b;
  --gold2: #fcd34d;
  --bg:    #09090b;
  --bg2:   #0c0c10;
  --bg3:   #111116;
  --fg:    #f0eff4;
  --sub:   rgba(240,239,244,.55);
  --faint: rgba(240,239,244,.24);
  --dim:   rgba(240,239,244,.12);
  --ln:    rgba(255,255,255,.07);
  --ln2:   rgba(255,255,255,.12);
  --card:  rgba(255,255,255,.03);
  --font:  'Outfit', system-ui, -apple-system, sans-serif;
  --disp:  'Bebas Neue', sans-serif;
  --r:     14px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
button { border: none; background: none; cursor: pointer; color: inherit; }
::selection { background: rgba(200,16,46,.3); color: #fff; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200,16,46,.4); }
.scrollbar-thin { scrollbar-width: thin; scrollbar-color: rgba(200,16,46,.3) transparent; }
.scrollbar-thin::-webkit-scrollbar { height: 4px; width: 4px; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: rgba(200,16,46,.3); }

/* ── Grain overlay ── */
.grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ── Container ── */
.container { max-width: 1380px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 56px; } }

/* ══ HEADER ══ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 62px;
  transition: all .3s;
}
.header.scrolled {
  background: rgba(9,9,11,.95);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--ln);
}
.header__inner {
  max-width: 1380px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
@media (min-width: 768px) { .header__inner { padding: 0 48px; } }

.logo { display: flex; align-items: center; gap: 10px; }
.logo__icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo__icon span { font-family: var(--disp); font-size: 20px; color: #fff; line-height: 1; }
.logo__text { font-family: var(--disp); font-size: 20px; letter-spacing: 3px; color: #fff; }
@media (max-width: 640px) { .logo__text { display: none; } }

.nav { display: none; align-items: center; gap: 2px; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a {
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  transition: all .18s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav a.active { color: #fff; font-weight: 700; background: rgba(255,255,255,.06); }

.header__right { display: flex; align-items: center; gap: 8px; }

/* User menu */
.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 8px;
  border-radius: 11px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--ln2);
  transition: all .18s;
}
.user-btn:hover { background: rgba(255,255,255,.08); }
.user-avatar {
  width: 28px; height: 28px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.8); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .user-name { display: none; } }

.plan-badge {
  font-size: 9px; font-weight: 800; letter-spacing: 1.5px;
  padding: 2px 6px; border-radius: 5px;
}
.plan-badge.vip     { background: rgba(245,158,11,.2); color: var(--gold); border: 1px solid rgba(245,158,11,.3); }
.plan-badge.premium { background: rgba(200,16,46,.2); color: var(--red); border: 1px solid rgba(200,16,46,.3); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: rgba(13,12,18,.98);
  border: 1px solid var(--ln2);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.97);
  transition: all .18s;
}
.dropdown.open { opacity: 1; visibility: visible; transform: none; }
.dropdown__head { padding: 10px 12px; border-bottom: 1px solid var(--ln); margin-bottom: 4px; }
.dropdown__head .n { font-size: 13px; font-weight: 700; color: #fff; }
.dropdown__head .e { font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown a, .dropdown button {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px; font-weight: 600;
  color: var(--sub);
  transition: all .15s;
}
.dropdown a:hover { background: rgba(255,255,255,.05); color: #fff; }
.dropdown .logout { color: rgba(200,16,46,.7); border-top: 1px solid var(--ln); margin-top: 4px; padding-top: 11px; }
.dropdown .logout:hover { background: rgba(200,16,46,.08); color: var(--red); }

.burger {
  display: flex;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: 11px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--ln);
  color: var(--sub);
}
@media (min-width: 900px) { .burger { display: none; } }

/* ══ BOUTONS ══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  transition: all .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red2));
  color: #fff;
  box-shadow: 0 6px 22px rgba(200,16,46,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(200,16,46,.5); color: #fff; }
.btn-primary:active { transform: scale(.98); }
.btn-ghost {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--ln2);
  color: var(--sub);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 15px 32px; font-size: 15px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ══ INPUT ══ */
.input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1.5px solid var(--ln2);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
  outline: none;
}
.input::placeholder { color: var(--faint); }
.input:focus { border-color: rgba(200,16,46,.4); background: rgba(255,255,255,.07); box-shadow: 0 0 0 3px rgba(200,16,46,.07); }

/* ══ BADGES ══ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.badge-film  { background: rgba(59,130,246,.85);  color: #fff; }
.badge-serie { background: rgba(16,185,129,.85);  color: #fff; }
.badge-anime { background: rgba(245,158,11,.85);  color: #000; }
.badge-doc   { background: rgba(139,92,246,.85);  color: #fff; }
.badge-new   { background: rgba(200,16,46,.9);    color: #fff; }
.badge-qual  { border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.6); color: #fff; }
.badge-4k    { border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.12); color: var(--gold); }
.badge-hls   { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.25); color: #34d399; }

/* ══ CARD CONTENU ══ */
.card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--ln);
  display: block;
  transition: all .3s cubic-bezier(.22,1,.36,1);
}
.card:hover {
  transform: translateY(-7px) scale(1.025);
  border-color: rgba(200,16,46,.35);
  box-shadow: 0 20px 50px rgba(0,0,0,.75), 0 0 0 1px rgba(200,16,46,.1);
}
.card__poster {
  position: relative;
  width: 100%;
  padding-top: 148%;
  background: var(--bg3);
  overflow: hidden;
}
.card__stripe { position: absolute; top: 0; left: 0; right: 0; height: 2.5px; z-index: 5; }
.stripe-film  { background: linear-gradient(90deg,#3b82f6,transparent); }
.stripe-serie { background: linear-gradient(90deg,#10b981,transparent); }
.stripe-anime { background: linear-gradient(90deg,#f59e0b,transparent); }
.stripe-documentaire { background: linear-gradient(90deg,#8b5cf6,transparent); }
.card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.card:hover .card__img { transform: scale(1.06); }
.card__grad {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,.96), rgba(0,0,0,.5), transparent);
  z-index: 2;
}
.card__badges { position: absolute; top: 8px; left: 8px; z-index: 6; display: flex; flex-direction: column; gap: 4px; }
.card__qual { position: absolute; top: 8px; right: 8px; z-index: 6; }
.card__note {
  position: absolute; bottom: 8px; right: 8px; z-index: 4;
  display: flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(4px);
  font-size: 11px; font-weight: 800;
}
.card__note i { color: var(--gold); font-size: 9px; }
.card__overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  background: rgba(0,0,0,.42);
  opacity: 0;
  transition: opacity .24s;
}
.card:hover .card__overlay { opacity: 1; }
.card__play {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red2));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(200,16,46,.5);
}
.card__play i { color: #fff; font-size: 16px; margin-left: 2px; }
.card__body { padding: 10px; }
.card__title {
  font-family: var(--disp);
  font-size: 15px;
  letter-spacing: .5px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.card__meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--faint); }
.card__meta span { display: flex; align-items: center; }
.card__dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.12); }

/* ══ GRID ══ */
.grid-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px)  { .grid-content { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .grid-content { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .grid-content { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1280px) { .grid-content { grid-template-columns: repeat(6, 1fr); } }

/* ══ EYEBROW / TITRES ══ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--red); border-radius: 2px; }

.section-title {
  font-family: var(--disp);
  color: #fff;
  letter-spacing: 1.5px;
  font-size: 26px;
}

/* ══ FOOTER ══ */
.footer { position: relative; margin-top: auto; border-top: 1px solid var(--ln); }
.footer__inner { max-width: 1380px; margin: 0 auto; padding: 48px 24px 32px; }
@media (min-width: 768px) { .footer__inner { padding: 48px 56px 32px; } }
.footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (min-width: 640px)  { .footer__cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__cols { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer__brand-desc { font-size: 14px; color: var(--sub); margin: 16px 0 20px; max-width: 240px; }
.footer h3 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer h3::before { content: ''; width: 16px; height: 1px; background: rgba(200,16,46,.4); }
.footer nav { display: flex; flex-direction: column; gap: 2px; }
.footer nav a {
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  transition: all .15s;
}
.footer nav a:hover { background: rgba(255,255,255,.045); color: #fff; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--ln);
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--faint);
}

/* ══ ANIMATIONS ══ */
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: fadeUp .55s cubic-bezier(.22,1,.36,1) forwards; }
.reveal-1 { animation-delay: .05s; } .reveal-2 { animation-delay: .12s; }
.reveal-3 { animation-delay: .2s; }  .reveal-4 { animation-delay: .3s; }

.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* ══ GLOW ══ */
.glow-tr { position: fixed; top: -180px; right: -180px; width: 800px; height: 800px; border-radius: 50%; background: radial-gradient(circle, rgba(200,16,46,.07), transparent 65%); pointer-events: none; z-index: 0; }
.glow-bl { position: fixed; bottom: -120px; left: -120px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(200,16,46,.04), transparent 65%); pointer-events: none; z-index: 0; }

/* ══ UTILITIES ══ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
