/* Next Up — palette « Néon » : bleu nuit + dégradé violet → rose */
:root {
  --bg: #0b0b1a;
  --bg-2: #101024;
  --surface: #15152b;
  --surface-2: #1d1d38;
  --line: rgba(196, 181, 253, 0.1);
  --line-2: rgba(196, 181, 253, 0.18);
  --text: #f5f3ff;
  --muted: #9c98b8;
  --violet: #a855f7;
  --pink: #ec4899;
  --grad: linear-gradient(135deg, var(--violet), var(--pink));
  --glow: 0 8px 30px -6px rgba(168, 85, 247, 0.55), 0 4px 16px -6px rgba(236, 72, 153, 0.5);
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --radius: 20px;
  --radius-sm: 12px;
  --nav-h: 72px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Un élément masqué reste masqué, quel que soit son affichage (évite les calques invisibles qui bloquent les touchers). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(60rem 30rem at 110% -10%, rgba(168, 85, 247, 0.16), transparent 60%),
    radial-gradient(50rem 30rem at -20% 0%, rgba(236, 72, 153, 0.1), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
.muted { color: var(--muted); }
.pad { padding: 8px 0 4px; }
.pad a { color: var(--text); }
.ic { width: 20px; height: 20px; flex: none; }

/* ——— Structure ——— */
.app { min-height: 100dvh; }
#view {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 16px calc(var(--nav-h) + env(safe-area-inset-bottom) + 28px);
}

/* Barre du haut (téléphone) : logo et nom sur toutes les pages */
.topbar {
  position: sticky; top: 0; z-index: 15;
  display: flex; align-items: center; justify-content: space-between;
  height: calc(58px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0;
  background: rgba(11, 11, 26, 0.72);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar-brand .logo { width: 32px; height: 32px; }
.topbar-brand .wordmark { font-size: 21px; }
.topbar-avatar {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted);
  font: 800 15px var(--display); text-decoration: none;
}
.topbar-avatar.on { background: var(--grad); border-color: transparent; color: #fff; }
.topbar-avatar .ic { width: 18px; height: 18px; }
@media (min-width: 900px) { .topbar { display: none; } }
#view[data-route='title'] { padding-top: 0; }

.nav {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  display: flex; justify-content: space-around; align-items: center;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 0 8px env(safe-area-inset-bottom);
  background: rgba(11, 11, 26, 0.78);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-top: 1px solid var(--line);
}
.nav .brand { display: none; }
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 58px; padding: 6px 4px;
  color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 500;
  transition: color 0.2s;
}
.nav a .ic { width: 22px; height: 22px; }
.nav a.active { color: var(--text); }
.nav a.active .ic { color: var(--pink); }
.nav a.nav-add { color: var(--text); }
.nav a.nav-add .add-bubble {
  display: grid; place-items: center; width: 46px; height: 46px; margin-top: -6px;
  border-radius: 16px; background: var(--grad); box-shadow: var(--glow);
}
.nav a.nav-add .ic { color: #fff; }
.nav a.nav-add span:last-child { display: none; }

@media (min-width: 900px) {
  .nav {
    inset: 0 auto 0 0; width: 232px; height: auto;
    flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 4px;
    padding: 28px 16px; border-top: 0; border-right: 1px solid var(--line);
  }
  .nav .brand { display: flex; align-items: center; gap: 10px; margin: 0 8px 28px; }
  .nav a { flex-direction: row; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: 15px; }
  .nav a:hover { background: var(--surface); color: var(--text); }
  .nav a.active { background: var(--surface-2); }
  .nav a.nav-add { order: 10; margin-top: 12px; background: var(--grad); box-shadow: var(--glow); font-weight: 600; }
  .nav a.nav-add .add-bubble { width: auto; height: auto; margin: 0; background: none; box-shadow: none; }
  .nav a.nav-add span:last-child { display: inline; }
  #view { margin-left: 232px; padding: 40px 40px 60px; max-width: 1120px; }
  .search { top: 8px; }
  #view[data-route='title'] { padding-top: 0; }
}
@media (min-width: 1400px) { #view { margin-left: max(232px, calc(50vw - 560px + 116px)); } }

.logo { width: 34px; height: 34px; flex: none; border-radius: 23.4%; box-shadow: 0 4px 14px -4px rgba(168, 85, 247, 0.6); }
.splash-logo { border-radius: 23.4%; box-shadow: none; }
.logo.big { width: 68px; height: 68px; }
.wordmark { font: 800 22px var(--display); letter-spacing: -0.03em; }
.wordmark span, .splash-word span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ——— Animation d'ouverture ——— */
.splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: radial-gradient(40rem 30rem at 50% 40%, #1a1638, var(--bg) 70%);
  transition: opacity 0.5s ease, visibility 0.5s;
}
.splash.out { opacity: 0; visibility: hidden; }
.splash-inner { position: relative; display: grid; justify-items: center; gap: 10px; margin-top: -6vh; }
.splash-glow {
  position: absolute; top: -70px; left: 50%; width: 280px; height: 280px; margin-left: -140px; border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(168, 85, 247, 0.45), rgba(236, 72, 153, 0.18) 55%, rgba(236, 72, 153, 0) 100%);
  pointer-events: none; animation: glow 2.2s ease-out both;
}
.splash-logo { position: relative; width: 112px; height: 112px; margin-bottom: 14px; animation: logo-pop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.25) both; }
.splash-logo .logo-play { transform-box: fill-box; transform-origin: center; animation: play-in 0.5s 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.splash-logo .logo-arrow { transform-box: fill-box; transform-origin: center; animation: arrow-up 0.5s 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.4) both; }
.splash-word { position: relative; font: 800 40px var(--display); letter-spacing: -0.035em; animation: rise 0.55s 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.splash-tag { position: relative; color: var(--muted); font-size: 15px; animation: rise 0.55s 1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes logo-pop { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes play-in { from { opacity: 0; transform: translateX(-60%); } to { opacity: 1; transform: none; } }
@keyframes arrow-up { from { opacity: 0; transform: translateY(45%); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes glow { 0% { opacity: 0; transform: scale(0.5); } 40% { opacity: 1; } 100% { opacity: 0.7; transform: scale(1.15); } }

/* ——— En-têtes ——— */
.page-head { margin: 8px 0 24px; }
.page-head h1 { font-size: clamp(30px, 8vw, 44px); font-weight: 800; }
.page-head.compact { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.page-head.compact h1 { font-size: 32px; }
.eyebrow {
  margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.block { margin-top: 32px; }
.block-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.block-head h2 { font-size: 21px; font-weight: 700; }
.block-sub { margin: -8px 0 14px; font-size: 14px; }
.count { min-width: 24px; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; }
.sub-title { margin: 6px 0 14px; font-size: 18px; }
.label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); font-size: 11px; font-weight: 600; letter-spacing: 0.03em; }

/* ——— Affiches ——— */
.poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 14px; background: var(--surface-2); }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster.gen {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 12px;
  background:
    radial-gradient(120% 70% at 20% 0%, color-mix(in srgb, var(--a) 90%, white 10%), transparent 70%),
    linear-gradient(170deg, var(--a), var(--b) 75%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.poster.gen::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, 0.03) 22px 23px);
}
.gen-type { position: absolute; top: 10px; left: 12px; font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.65; }
.gen-title { position: relative; font: 800 clamp(15px, 4.2vw, 21px)/1.02 var(--display); letter-spacing: -0.03em; text-wrap: balance; overflow-wrap: anywhere; }
.gen-year { position: relative; font-size: 11px; opacity: 0.6; }

/* ——— Progression ——— */
.bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--grad); box-shadow: 0 0 12px rgba(236, 72, 153, 0.6); transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* ——— Bouton +1 ——— */
.plus {
  position: relative; display: grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 18px;
  background: var(--grad); color: #fff; box-shadow: var(--glow);
  font: 800 18px var(--display); letter-spacing: -0.02em;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}
.plus .ic { width: 24px; height: 24px; stroke-width: 2.6; }
.plus:hover:not(:disabled) { transform: translateY(-1px); }
.plus:active:not(:disabled) { transform: scale(0.92); }
.plus:disabled { background: var(--surface-2); color: var(--muted); box-shadow: none; opacity: 0.6; }
.plus.sm { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border-radius: 13px; font-size: 14px; }
.plus.xl { width: 72px; height: 72px; border-radius: 22px; font-size: 24px; }
.plus.bump { animation: bump 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.4); }
.plus.bump::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7); animation: ring 0.6s ease-out;
}
@keyframes bump { 0% { transform: scale(0.85); } 50% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes ring { to { box-shadow: 0 0 0 18px rgba(236, 72, 153, 0); } }
.done-btn { font-size: 0; }

/* ——— Cartes « Continuer » ——— */
.resume-list { display: grid; gap: 12px; }
@media (min-width: 720px) { .resume-list { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.rcard {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 140px; padding: 14px 16px 14px 14px; overflow: hidden; cursor: pointer;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.2s, border-color 0.2s;
}
.rcard:hover { border-color: var(--line-2); }
.rcard:active { transform: scale(0.99); }
.rcard-bg { position: absolute; inset: 0; }
.rcard-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 26, 0.96) 30%, rgba(11, 11, 26, 0.7) 70%, rgba(11, 11, 26, 0.45)); }
.rcard-poster { width: 76px; flex: none; border-radius: 10px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.8); }
.rcard-poster.gen { padding: 7px; }
.rcard-poster .gen-type, .rcard-poster .gen-year { display: none; }
.rcard-poster .gen-title { font-size: 11px; }
.rcard-body { position: relative; flex: 1; min-width: 0; display: grid; gap: 6px; }
.rcard-top { display: flex; gap: 6px; align-items: center; }
.rcard h3 { font-size: 19px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rcard .next { color: var(--muted); font-size: 14px; }
.rcard .next b { color: var(--text); font-weight: 600; }
.rcard .bar { margin-top: 4px; max-width: 260px; }
.rcard .meta { color: var(--muted); font-size: 12px; }

.bd-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bd-img.blur { filter: blur(24px) saturate(1.3); transform: scale(1.3); }
.bd-gen {
  position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(90% 120% at 85% 20%, var(--a), transparent 70%), var(--b);
}
.bd-gen span {
  position: absolute; right: -2%; bottom: -12%;
  font: 800 clamp(70px, 16vw, 150px)/0.85 var(--display); letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.07); white-space: nowrap;
}

/* ——— Plateformes ——— */
.pchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px;
  border-radius: 99px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pchip i, .tile-sub i, .timeline i, .pick i { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 8px var(--pc); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; margin-top: 12px; }
.pick {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 12px;
  border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; text-align: left; transition: border-color 0.15s, background 0.15s;
}
.pick small.paid { background: rgba(251, 191, 36, 0.15); color: var(--warn); }
.avail-kind { margin: 10px 0 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.avail .label + .avail-kind { margin-top: 2px; }
.pchip em.paid { font-style: normal; color: var(--warn); font-weight: 800; }
.pick small { margin-left: auto; padding: 1px 6px; border-radius: 6px; background: rgba(52, 211, 153, 0.15); color: var(--ok); font-size: 10px; font-weight: 700; }
.pick:hover { border-color: var(--line-2); }
.pick.on { border-color: transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }

/* ——— Alertes ——— */
.alert {
  display: flex; gap: 14px; margin-bottom: 14px; padding: 16px;
  border-radius: var(--radius); border: 1px solid rgba(251, 191, 36, 0.25);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(236, 72, 153, 0.06));
}
.alert-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: rgba(251, 191, 36, 0.15); color: var(--warn); }
.alert-body { display: grid; gap: 4px; font-size: 14px; }
.alert-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ——— Rangées horizontales ——— */
.row-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: 128px; gap: 12px;
  margin: 0 -16px; padding: 0 16px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.row-scroll::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .row-scroll { grid-auto-columns: 150px; margin: 0; padding: 0 0 6px; } }
.mini { display: grid; gap: 6px; text-decoration: none; scroll-snap-align: start; }
.mini .poster { transition: transform 0.2s; }
.mini:hover .poster { transform: translateY(-3px); }
.mini-name { font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-sub .pchip { padding: 2px 8px 2px 6px; font-size: 11px; }

/* ——— Grille bibliothèque ——— */
.filters { display: flex; gap: 8px; margin: -8px -16px 20px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .filters { margin: -8px 0 24px; padding: 0; flex-wrap: wrap; } }
.fchip {
  padding: 8px 15px; border-radius: 99px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  font-size: 14px; font-weight: 600; transition: all 0.15s;
}
.fchip:hover { color: var(--text); }
.fchip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 14px; }
@media (max-width: 380px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 18px; } }
.tile { display: grid; gap: 7px; align-content: start; cursor: pointer; text-align: left; }
.tile-poster { position: relative; }
.tile .poster { transition: transform 0.2s, box-shadow 0.2s; }
.tile:hover .poster { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.8); }
.tile .bar { height: 4px; }
.tile-name { font-size: 14px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-sub { display: flex; align-items: center; gap: 6px; margin-top: -3px; color: var(--muted); font-size: 12px; font-weight: 500; }
.tile-done { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #052e1f; }
.tile-paid { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 8px; background: rgba(11, 11, 26, 0.85); color: var(--warn); font-size: 11px; font-weight: 800; backdrop-filter: blur(6px); }
.tile-done .ic { width: 15px; height: 15px; stroke-width: 3; }
.result .tile-sub { margin-top: -4px; }
.tile-reason { margin-top: -4px; color: #f0abfc; font-size: 12px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.finder-info .reason { color: #f0abfc; }

/* ——— Recherche ——— */
.search {
  position: sticky; top: calc(env(safe-area-inset-top) + 66px); z-index: 5;
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 0 16px;
  border-radius: 16px; background: rgba(21, 21, 43, 0.9); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.search:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.18); }
.search .ic { color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 54px; border: 0; outline: 0; background: none; font-size: 17px; }
#results { transition: opacity 0.15s; }
#results.loading { opacity: 0.55; }
.search input::placeholder { color: #6b6890; }

/* ——— Fiche titre ——— */
.detail { max-width: 760px; margin: 0 auto; }
.hero { position: relative; height: 300px; margin: 0 -16px; overflow: hidden; }
.hero .bd-gen span { bottom: -6%; }
.hero-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 26, 0.35), rgba(11, 11, 26, 0.2) 40%, var(--bg)); }
@media (min-width: 900px) { .hero { margin: 0; height: 340px; border-radius: 0 0 28px 28px; } }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  background: rgba(11, 11, 26, 0.55); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.back { position: absolute; top: 14px; left: 16px; z-index: 2; }
.detail-head { position: relative; display: flex; align-items: flex-end; gap: 16px; margin-top: -110px; margin-bottom: 18px; }
.detail-poster { width: 112px; flex: none; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.9); }
.detail-poster .gen-title { font-size: 15px; }
.detail-title { display: grid; gap: 6px; padding-bottom: 4px; min-width: 0; }
.detail-title h1 { font-size: clamp(26px, 7vw, 38px); font-weight: 800; text-wrap: balance; }
.status { justify-self: start; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); }
.status.s-watching { background: rgba(168, 85, 247, 0.18); color: #d8b4fe; }
.status.s-completed { background: rgba(52, 211, 153, 0.15); color: var(--ok); }
.status.s-paused { background: rgba(251, 191, 36, 0.15); color: var(--warn); }
.overview { margin: 0 0 20px; color: #c9c5e0; font-size: 15px; line-height: 1.6; }

.card { margin-bottom: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card-title .ic { color: var(--pink); }
.card-title h3 { font-size: 17px; }
.card > .muted { font-size: 14px; }

/* Regarder sur… */
.watch-btn {
  display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 13px 16px;
  border-radius: 14px; text-decoration: none; font-size: 15px;
  background: color-mix(in srgb, var(--pc) 14%, var(--bg-2)); border: 1px solid color-mix(in srgb, var(--pc) 40%, transparent);
  transition: transform 0.15s, background 0.15s;
}
.watch-btn:hover { background: color-mix(in srgb, var(--pc) 22%, var(--bg-2)); }
.watch-btn:active { transform: scale(0.98); }
.watch-btn > .ic:first-child { width: 18px; height: 18px; color: var(--pc); }
.watch-btn span { flex: 1; }
.watch-btn em { font-style: normal; color: var(--warn); font-size: 13px; }
.watch-btn > .ic:last-child { width: 16px; height: 16px; color: var(--muted); }
.watch-sub { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.watch-sub a { color: #d8b4fe; }
.chip-link { text-decoration: none; }
.chip-link .pchip { transition: border-color 0.15s, background 0.15s; }
.chip-link:hover .pchip { border-color: var(--line-2); background: rgba(255, 255, 255, 0.12); }
.pchip .chip-ext { width: 11px; height: 11px; margin-left: 2px; opacity: 0.55; }

/* Cartes de la fiche : en-tête, espacements et fonds identiques */
.detail .card { margin-bottom: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; margin-bottom: 12px; }
.card-head .label { margin: 0; font-family: var(--font); letter-spacing: 0.05em; }
.dcard .chips { gap: 8px; }
.dcard .avail-kind:first-child { margin-top: 0; }
.dcard .hint { margin-top: 12px; }
.dcard .pick-grid { margin-top: 14px; }
.dcard .timeline { margin-top: 14px; }
.dcard .seg { margin-top: 0; }
.eps-card .season-tabs { margin: 0 -18px 12px; padding: 0 18px 4px; }
.eps-card .stab { background: var(--bg-2); }
.eps-card .stab.on { background: var(--surface-2); }
.eps-card .ep { background: var(--bg-2); }
.eps-card .ep.on { background: rgba(168, 85, 247, 0.1); }
.eps-card .ep-n { background: var(--surface-2); }
.eps-card .season-avail { background: var(--bg-2); }
.remove-btn { margin-top: 4px; }
.progress-card {
  background:
    radial-gradient(100% 140% at 100% 0%, rgba(168, 85, 247, 0.16), transparent 60%),
    var(--surface);
}
.pc-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.big { font: 800 34px/1.05 var(--display); letter-spacing: -0.03em; }
.epname { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.pc-meta { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 500; }
.ep-minutes { margin-top: 16px; padding: 14px 14px 8px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.ep-minutes-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.ep-minutes-head > span:first-child { display: flex; align-items: center; gap: 6px; }
.ep-minutes-head .ic { width: 16px; height: 16px; color: var(--pink); }
.ep-minutes-head .left, .epname .left, .sheet-sec .left { color: #f0abfc; font-weight: 700; }
.ep-minutes-head .left { font-size: 13px; }
.ep-minutes-sub { margin-top: 2px; color: var(--muted); font-size: 12px; }
.link { margin-top: 12px; color: #d8b4fe; font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(216, 180, 254, 0.35); text-underline-offset: 3px; }
.link:hover { color: var(--text); }
.platform-now .pchip { padding: 6px 12px 6px 10px; font-size: 13px; }

.timeline { margin: 16px 0 0; padding: 0 0 0 4px; list-style: none; border-left: 1px dashed var(--line-2); }
.timeline li { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 0 4px 14px; font-size: 13px; }
.timeline li i { position: absolute; left: -9px; }
.timeline li span { color: var(--muted); }
.timeline li:last-child b { color: var(--text); }
.avail { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.avail .muted { font-size: 13px; }

.season-tabs { display: flex; gap: 8px; margin: 0 -16px 12px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
.season-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .season-tabs { margin: 0 0 12px; padding: 0 0 4px; flex-wrap: wrap; } }
.stab {
  display: grid; gap: 6px; min-width: 54px; padding: 9px 12px 8px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  font-weight: 700; font-size: 14px;
}
.stab.on { color: var(--text); border-color: var(--violet); background: var(--surface-2); }
.stab-n { display: flex; align-items: center; justify-content: center; gap: 3px; }
.stab-flag { font-style: normal; font-size: 11px; font-weight: 800; line-height: 1; }
.stab-flag.paid { color: var(--warn); }
.stab-flag.none { color: var(--muted); }
.stab.st-none { opacity: 0.6; }
.season-avail { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; font-size: 13px; background: var(--surface); border: 1px solid var(--line); }
.season-avail .ic { width: 15px; height: 15px; flex: none; }
.season-avail.ok { color: var(--ok); }
.season-avail.paid { color: var(--warn); border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.06); }
.season-avail.none { color: var(--muted); }
.season-avail.muted { border-style: dashed; }
.stab-bar { display: block; height: 3px; border-radius: 9px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.stab-bar span { display: block; height: 100%; background: var(--grad); }
.stab.full .stab-bar span { background: var(--ok); }
.season-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 13px; }
.season-head .link { margin: 0; }

.eps { display: grid; gap: 6px; }
@media (min-width: 720px) { .eps { grid-template-columns: repeat(2, 1fr); } }
.ep {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px 8px 8px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  text-align: left; transition: background 0.15s, border-color 0.15s;
}
.ep:hover { border-color: var(--line-2); }
.ep-n { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--bg-2); color: var(--muted); font-weight: 700; font-size: 14px; }
.ep-t { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-c { display: grid; place-items: center; }
.ep-c em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ep.on { background: rgba(168, 85, 247, 0.08); }
.ep.on .ep-n { background: var(--grad); color: #fff; }
.ep.on .ep-c { color: var(--pink); }
.ep.on .ep-t { color: var(--muted); }
.ep.next { border-color: rgba(236, 72, 153, 0.55); box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1); }
.ep.next .ep-c em { color: var(--pink); }
.ep.future { opacity: 0.45; }

.seg { display: flex; padding: 4px; margin-top: 8px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { flex: 1; padding: 10px 6px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 600; transition: all 0.15s; }
.seg button.on { background: var(--surface-2); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }

/* ——— Boutons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 0.15s, background 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.btn.primary:disabled { opacity: 0.5; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface); }
.btn.danger { color: var(--danger); }
.btn.small { height: 36px; padding: 0 14px; border-radius: 11px; font-size: 13px; }
.btn.block { width: 100%; margin-top: 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn-row .btn { flex: 1; min-width: 140px; }

/* ——— Vide / chargement ——— */
.empty { display: grid; justify-items: center; gap: 12px; padding: 48px 20px; text-align: center; }
.empty.small { padding: 32px 0; }
.empty h2 { font-size: 24px; }
.empty p { max-width: 340px; color: var(--muted); }
.empty-art { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 6px; border-radius: 28px; background: var(--grad); box-shadow: var(--glow); }
.empty-art .ic { width: 34px; height: 34px; color: #fff; }
.spinner { width: 28px; height: 28px; margin: 32px auto; border-radius: 50%; border: 3px solid var(--surface-2); border-top-color: var(--pink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ——— Profil ——— */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: grid; gap: 2px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat b { font: 800 30px var(--display); letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 13px; }
.steps { margin: 12px 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.steps a { color: #d8b4fe; }
.key-form { display: flex; gap: 8px; margin-top: 8px; }
.key-form input, .field select {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line-2); outline: 0;
}
.key-form input:focus, .field select:focus { border-color: var(--violet); }
.field { display: grid; gap: 6px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.field select { color: var(--text); }
.hint { margin-top: 10px; color: var(--muted); font-size: 13px; }
.hint.ok { display: flex; align-items: center; gap: 6px; color: var(--ok); }
.hint.ok .ic { width: 16px; height: 16px; }
.hint.warn { color: var(--warn); }
.credit { margin-top: 24px; font-size: 12px; text-align: center; }

/* ——— Curseur (minutes) ——— */
.range { width: 100%; height: 28px; margin: 4px 0 0; background: none; -webkit-appearance: none; appearance: none; --v: 0%; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 9px; background: linear-gradient(90deg, var(--violet), var(--pink)) 0 / var(--v) 100% no-repeat, rgba(255, 255, 255, 0.1); }
.range::-moz-range-track { height: 6px; border-radius: 9px; background: rgba(255, 255, 255, 0.1); }
.range::-moz-range-progress { height: 6px; border-radius: 9px; background: var(--grad); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.35); }
.range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.35); }

/* ——— Comptes ——— */
.ic.flip { transform: rotate(180deg); }
.account-banner {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 14px 16px;
  border-radius: var(--radius); text-decoration: none;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1px solid transparent;
}
.account-banner > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.account-banner small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.account-banner .ic { color: var(--muted); }
.hint-card { display: flex; align-items: center; gap: 10px; margin: -8px 0 18px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.hint-card .ic { color: var(--pink); }
.hint-card a { color: var(--text); font-weight: 600; }

.auth { position: relative; max-width: 420px; margin: 0 auto; padding-top: 8px; }
.auth > .icon-btn { margin-bottom: 8px; }
.auth-head { display: grid; justify-items: center; gap: 8px; margin-bottom: 22px; text-align: center; }
.auth-head h1 { margin-top: 8px; font-size: 30px; font-weight: 800; }
.auth-tabs { margin: 0 0 18px; }
.seg a { flex: 1; padding: 10px 6px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; transition: all 0.15s; }
.seg a.on { background: var(--surface-2); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
.auth-form { display: grid; gap: 4px; }
.auth-form .field { margin-top: 10px; }
.field input {
  width: 100%; min-width: 0; height: 50px; padding: 0 14px; border-radius: 14px; outline: 0;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font-size: 16px;
}
.field input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15); }
.field small { color: var(--muted); font-size: 12px; }
.field.first { margin-top: 0; }
.auth-form .btn.block { height: 52px; margin-top: 16px; }
.form-error { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(251, 113, 133, 0.12); color: var(--danger); font-size: 14px; }
.notice.warn { background: rgba(251, 191, 36, 0.12); color: var(--warn); }
.danger-zone { border-color: rgba(251, 113, 133, 0.25); }
.danger-zone .card-title .ic { color: var(--danger); }
.danger-zone .btn { margin-top: 14px; }
.btn.danger-solid { background: #e11d48; border-color: transparent; color: #fff; }
.btn.danger-solid:disabled { opacity: 0.4; }
.confirm-box { margin: 4px 0 18px; padding-right: 36px; }
.confirm-box .muted { margin-top: 6px; font-size: 15px; }
.delete-head { display: grid; justify-items: center; gap: 6px; margin-bottom: 18px; text-align: center; }
.delete-head .muted { font-size: 14px; }
.delete-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: rgba(251, 113, 133, 0.15); color: var(--danger); }
.delete-icon .ic { width: 26px; height: 26px; }
.notice { margin-bottom: 18px; padding: 12px 14px; border-radius: 14px; background: rgba(52, 211, 153, 0.12); color: var(--ok); font-size: 14px; }
.link.center { display: block; margin: 18px auto 0; text-align: center; width: fit-content; }
.perks { display: grid; gap: 10px; margin: 26px 0 0; padding: 18px; list-style: none; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.perks li { display: flex; align-items: center; gap: 10px; }
.perks .ic { width: 18px; height: 18px; color: var(--pink); stroke-width: 2.6; }

.card.account { display: flex; align-items: center; gap: 14px; }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--grad); box-shadow: var(--glow); font: 800 22px var(--display); }
.account-info { flex: 1; min-width: 0; display: grid; gap: 1px; }
.account-info b { font-size: 17px; }
.name-row { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.name-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link.small { margin: 0; font-size: 13px; }
@media (max-width: 520px) {
  .card.account { flex-wrap: wrap; }
  .card.account > .btn { flex: 1 0 100%; }
}
.account-info .muted { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.account-info .hint { margin-top: 6px; font-size: 12px; }

.welcome { display: grid; justify-items: center; gap: 12px; max-width: 420px; margin: 8vh auto 0; text-align: center; }
.welcome h1 { margin-top: 8px; font-size: 30px; font-weight: 800; text-wrap: balance; }
.welcome p { margin-bottom: 8px; }
.welcome .btn.block { margin-top: 0; }

/* ——— Recherche globale ——— */
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); }
.topbar-btn .ic { width: 18px; height: 18px; }
.home-search {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 50px; margin: -6px 0 22px; padding: 0 16px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); font-size: 15px; text-align: left;
  transition: border-color 0.15s;
}
.home-search:hover { border-color: var(--violet); }
.home-search .ic { width: 19px; height: 19px; }
.finder {
  position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column;
  background: var(--bg); opacity: 0; transform: translateY(8px); transition: opacity 0.18s, transform 0.18s;
}
.finder:not(.open) { pointer-events: none; }
.finder.open { opacity: 1; transform: none; }
.finder-bar {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: calc(env(safe-area-inset-top) + 12px) 16px 12px; border-bottom: 1px solid var(--line);
}
.finder-bar > .ic { color: var(--muted); }
.finder-bar input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; font-size: 18px; color: var(--text); }
.finder-bar input::placeholder { color: #6b6890; }
.finder-close { padding: 8px 4px; color: #d8b4fe; font-weight: 600; font-size: 15px; }
.finder-body { flex: 1; overflow-y: auto; padding: 8px 16px calc(env(safe-area-inset-bottom) + 24px); transition: opacity 0.15s; }
.finder-body.loading { opacity: 0.6; }
.finder-body section { max-width: 720px; margin: 14px auto 0; }
.finder-body .label { margin-bottom: 8px; }
.finder-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border-radius: 14px; text-align: left; }
.finder-row:hover, .finder-row:focus-visible { background: var(--surface); }
.finder-poster { width: 42px; flex: none; border-radius: 8px; }
.finder-poster.gen { padding: 4px; }
.finder-poster .gen-type, .finder-poster .gen-year { display: none; }
.finder-poster .gen-title { font-size: 7px; }
.finder-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.finder-info b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finder-info small { color: var(--muted); font-size: 13px; }
.finder-row > .ic { width: 16px; height: 16px; color: var(--muted); }
.finder-hint { max-width: 720px; margin: 18px auto 0; color: var(--muted); font-size: 14px; text-align: center; }
.finder-hint .link { margin: 0; }
@media (min-width: 900px) { .finder-bar { padding-left: max(16px, calc(50vw - 360px)); padding-right: max(16px, calc(50vw - 360px)); } }

.settings { max-width: 560px; margin: 0 auto; }
.settings .page-head { justify-content: flex-start; gap: 12px; align-items: center; }
.settings-form { display: grid; gap: 4px; }
.settings-form .field { margin-top: 10px; }
.settings-form .field.first { margin-top: 0; }
.settings-form .btn { justify-self: start; margin-top: 14px; }
.settings-current { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.settings-current b { color: var(--text); }
.settings .card .link.small { display: inline-block; margin-top: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ——— Abonnements ——— */
.subs-banner, .soon-card {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 14px 16px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none;
}
.subs-banner > span:nth-child(2), .soon-card > span:nth-child(2) { flex: 1; display: grid; gap: 2px; min-width: 0; }
.subs-banner small, .soon-card small { color: var(--muted); font-size: 13px; }
.subs-banner > .ic, .soon-card > .ic { color: var(--muted); }
.subs-icons { display: flex; flex: none; }
.subs-icons i { width: 22px; height: 22px; margin-left: -6px; border-radius: 50%; background: var(--pc); border: 2px solid var(--surface); }
.subs-icons i:first-child { margin-left: 0; }
.pick .pick-check { width: 16px; height: 16px; margin-left: auto; color: var(--pink); stroke-width: 3; }
.pchip .mine { width: 12px; height: 12px; margin-left: 2px; color: var(--ok); stroke-width: 3.2; }
.tag.warn { background: rgba(251, 191, 36, 0.16); color: var(--warn); }
.tag.hot { background: var(--grad); color: #fff; }

/* ——— À venir ——— */
.soon-card { background: linear-gradient(135deg, rgba(168, 85, 247, 0.16), rgba(236, 72, 153, 0.08)), var(--surface); border-color: rgba(236, 72, 153, 0.25); }
.soon-card small:first-child { color: #f0abfc; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-size: 11px; }
.soon-card b { font-size: 15px; }
.soon-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soon-card em { color: #f0abfc; font-style: normal; font-weight: 600; }
.soon-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; background: var(--grad); box-shadow: var(--glow); color: #fff; }
.block.first { margin-top: 8px; }
.up-list { display: grid; gap: 10px; }
@media (min-width: 900px) { .up-list { grid-template-columns: repeat(2, 1fr); } }
.up-row {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none;
  transition: border-color 0.15s;
}
.up-row:hover { border-color: var(--line-2); }
.up-row.fresh { border-color: rgba(52, 211, 153, 0.3); }
.up-row.fresh .up-when b { color: var(--ok); }
.up-poster { width: 54px; flex: none; border-radius: 9px; }
.up-poster.gen { padding: 6px; }
.up-poster .gen-type, .up-poster .gen-year { display: none; }
.up-poster .gen-title { font-size: 9px; }
.up-info { flex: 1; min-width: 0; display: grid; gap: 3px; }
.up-info b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-info > span:nth-child(2) { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.up-tags .pchip { padding: 2px 8px 2px 6px; font-size: 11px; }
.up-when { display: grid; justify-items: end; gap: 2px; flex: none; text-align: right; }
.up-when b { font-size: 14px; text-transform: capitalize; color: #f0abfc; }
.up-when small { color: var(--muted); font-size: 12px; }
.mini-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--surface-2); border-top-color: var(--pink); animation: spin 0.8s linear infinite; }

/* ——— Regardé avec ——— */
.with-card .chips { margin-top: 4px; }
.with-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px 9px 11px;
  border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 600; transition: all 0.15s;
}
.with-chip > span { font-size: 15px; line-height: 1; }
.with-chip.static { padding: 6px 12px 6px 9px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.08); }
.dcard .pchip { padding: 6px 12px 6px 10px; font-size: 13px; }
.with-chip.alone { color: var(--muted); }
.with-chip.on { background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box; border-color: transparent; }
.with-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.with-add { display: flex; gap: 8px; margin-bottom: 8px; }
.with-add input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 14px; outline: 0;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font-size: 15px;
}
.with-add input:focus { border-color: var(--violet); }
.with-meta { color: #f0abfc; }

/* ——— Ajout manuel ——— */
.manual-cta {
  display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 28px; padding: 16px;
  border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--line-2); text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.manual-cta:hover { border-color: var(--violet); background: var(--surface-2); }
.manual-cta > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.manual-cta small { color: var(--muted); font-size: 13px; }
.manual-cta > .ic { color: var(--muted); }
.manual-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; background: var(--grad); box-shadow: var(--glow); color: #fff; }
.sheet > .sheet-title + .muted { margin-bottom: 18px; }
.mf-grid { display: grid; grid-template-columns: 1fr 96px; gap: 10px; margin-bottom: 18px; }
.mf-grid .field { margin-top: 0; }
.mf-seasons { display: grid; gap: 8px; margin-top: 10px; }
.mf-season { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.mf-season > span:first-child { flex: 1; font-weight: 600; font-size: 14px; }
.mf-season .stepper-ctl { gap: 8px; }
.mf-season .stepper-ctl b { min-width: 30px; font-size: 22px; text-align: center; }
.mf-season .stepper-ctl small { margin-left: -4px; color: var(--muted); font-size: 12px; }
.mf-season .stepper-ctl button { width: 34px; height: 34px; border-radius: 10px; }
.mf-remove { width: 34px; height: 34px; border-radius: 10px; }
.mf-add { margin-top: 10px; }
.toggle { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 14px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span { position: relative; width: 44px; height: 26px; flex: none; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-2); transition: background 0.2s; }
.toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.toggle input:checked + span { background: var(--grad); border-color: transparent; }
.toggle input:checked + span::after { transform: translateX(18px); }
.toggle input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.link.left { justify-self: start; }
.seg button:disabled { opacity: 0.5; }

/* ——— Feuille (bottom sheet) ——— */
.sheet-root { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.sheet-root.open { pointer-events: auto; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 12, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.25s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto;
  padding: 10px 18px calc(env(safe-area-inset-bottom) + 20px);
  border-radius: 28px 28px 0 0; background: var(--bg-2); border-top: 1px solid var(--line-2);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(100%); transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.sheet-root.open .sheet-backdrop { opacity: 1; }
.sheet-root.open .sheet { transform: none; }
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; bottom: 50%; width: 540px; border-radius: 28px; border: 1px solid var(--line-2); transform: translate(-50%, 54%) scale(0.98); opacity: 0; transition: transform 0.25s, opacity 0.2s; }
  .sheet-root.open .sheet { transform: translate(-50%, 50%); opacity: 1; }
}
.grab { width: 40px; height: 5px; margin: 0 auto 14px; border-radius: 9px; background: var(--line-2); }
@media (min-width: 720px) { .grab { visibility: hidden; } }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 12px; }
.sheet-head { display: flex; gap: 14px; margin-bottom: 18px; padding-right: 36px; }
.sheet-poster { width: 84px; flex: none; }
.sheet-poster .gen-title { font-size: 12px; }
.sheet-poster .gen-type { display: none; }
.sheet-title { margin: 6px 0; font-size: 22px; font-weight: 800; }
.clamp { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sheet-sec { margin-bottom: 18px; }
.sheet-sec h4 { font: 600 14px var(--font); letter-spacing: 0; color: var(--muted); }
.sheet-sec h4 b { color: var(--text); }
.sheet .pick-grid { margin-top: 10px; }
.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.stepper { padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.stepper > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.stepper small { text-transform: none; letter-spacing: 0; }
.stepper-ctl { display: flex; align-items: center; justify-content: space-between; }
.stepper-ctl b { font: 800 30px var(--display); }
.stepper-ctl button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface-2); }
.stepper-ctl button:active { transform: scale(0.92); }

/* ——— Toast ——— */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px); z-index: 60;
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 12px 12px 12px 18px;
  border-radius: 16px; background: #26244a; border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  font-size: 14px; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: all 0.25s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.toast span { overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); color: #f0abfc; font-weight: 700; font-size: 13px; }
@media (min-width: 900px) { .toast { bottom: 28px; left: calc(50% + 116px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
