:root {
  --bg: #0d1012; --surface: #151a1d; --surface-2: #1d2427; --surface-3: #263034; --line: #2a3438;
  --text: #e8edea; --muted: #8e9b9d; --accent: #7cc4a8; --accent-hi: #95d6bc; --accent-ink: #0b1914;
  --danger: #e5675c; --warn: #e2b04a; --radius: 12px; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
main { max-width: 1320px; margin: 0 auto; padding: 0 20px 56px; }
h1 { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.15; margin: 22px 0 10px; letter-spacing: -0.01em; }
h2 { font-size: 18px; margin: 30px 0 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.muted, .meta { color: var(--muted); }
.meta { font-size: 12.5px; margin: 0; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- en-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1320px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { color: var(--text); font-weight: 750; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.brand:hover { color: var(--text); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.top nav a { color: var(--muted); padding: 6px 10px; border-radius: 8px; font-weight: 500; }
.top nav a:hover { color: var(--text); background: var(--surface-2); }
.top nav a.on { color: var(--text); background: var(--surface-2); }
.top nav a.button, .top nav a.button:hover { color: var(--accent-ink); background: var(--accent); padding: 6px 12px; }
.who { font-size: 12px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); margin-left: 6px; }

/* ---------- boutons & champs ---------- */
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 10px;
  padding: 9px 16px; font: 650 14px var(--font); transition: background .15s, transform .05s; }
button:hover, .button:hover { background: var(--accent-hi); color: var(--accent-ink); }
button:active, .button:active { transform: translateY(1px); }
button:disabled { opacity: .6; cursor: default; }
button.big, .button.big { padding: 13px 22px; font-size: 16px; border-radius: 12px; }
button.small { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; }
button.ghost, .button.ghost { background: transparent; color: var(--text); border-color: var(--line); }
button.ghost:hover, .button.ghost:hover { background: var(--surface-2); color: var(--text); }
button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
input, select { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; max-width: 100%; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- catalogue ---------- */
.row-section { margin-top: 20px; }
.row-section h2 { margin-bottom: 10px; }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 14px; overflow-x: auto;
  padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.row-scroll .card { scroll-snap-align: start; }
.row-scroll .card.big { width: 168px; }

.filters { position: sticky; top: 61px; z-index: 10; display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(6, minmax(120px, max-content)); gap: 8px;
  margin: 26px 0 8px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.search input { width: 100%; padding-left: 36px; }
.result-count { color: var(--muted); font-size: 13px; margin: 6px 2px 12px; }
.grid-title { margin: 18px 0 0; }
#results { transition: opacity .15s; }
#results.loading { opacity: .45; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 18px 14px; }
.card { color: var(--text); display: block; border-radius: var(--radius); }
.card:hover { color: var(--text); }
.poster-wrap { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2);
  aspect-ratio: 2 / 3; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.card:hover .poster-wrap, .card:focus-visible .poster-wrap { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.5); }
.poster-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noposter { display: flex; align-items: center; justify-content: center; text-align: center; height: 100%; padding: 14px;
  color: var(--muted); font-size: 13px; background: linear-gradient(160deg, var(--surface-3), var(--surface)); }
.badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; gap: 6px; }
.b-res, .b-lang, .b-rating { font-size: 10.5px; font-weight: 750; letter-spacing: .03em; padding: 2px 7px; border-radius: 6px;
  background: rgba(10, 14, 16, .78); color: #fff; backdrop-filter: blur(4px); }
.b-lang.b-vf { background: rgba(37, 99, 235, .85); }
.b-lang.b-multi { background: rgba(124, 196, 168, .92); color: var(--accent-ink); }
.b-lang.b-vo { background: rgba(120, 120, 130, .85); }
.b-rating { position: absolute; bottom: 8px; left: 8px; color: #ffd76a; opacity: 0; transition: opacity .15s; }
.card:hover .b-rating, .card:focus-visible .b-rating { opacity: 1; }
.card-body { padding: 8px 2px 0; }
.card h3 { font-size: 13.5px; font-weight: 600; margin: 0; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pager { display: flex; gap: 14px; justify-content: center; align-items: center; margin: 30px 0 10px; color: var(--muted); }
.empty, .empty-state { color: var(--muted); text-align: center; padding: 28px; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* ---------- fiche film ---------- */
.film-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface); }
.film-hero .backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) saturate(1.1);
  transform: scale(1.04); opacity: .45; }
.film-hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(13,16,18,.88) 38%, rgba(13,16,18,.55) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 45%); }
.film-hero-inner { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 40px 20px 34px;
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.film-hero .poster { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.film-info h1 { margin-top: 4px; }
.original { color: var(--muted); margin: -4px 0 8px; font-style: italic; }
.facts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 10px 0; color: var(--muted); font-size: 14px; }
.star { color: #ffd76a; font-weight: 650; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 14px; }
.tag { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text);
  background: rgba(255,255,255,.04); }
.tag:hover { border-color: var(--accent); color: var(--accent); }
.overview { max-width: 68ch; font-size: 15.5px; color: #d5dcd8; }
.actions { display: flex; gap: 14px 18px; align-items: center; flex-wrap: wrap; margin: 22px 0 18px; }
.status { margin: 0; font-size: 13.5px; color: var(--muted); }
.status .ok, .ok { color: var(--accent); }
.details { display: flex; gap: 10px 28px; flex-wrap: wrap; margin: 0; }
.details div { min-width: 90px; }
.details dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.details dd { margin: 2px 0 0; font-weight: 550; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 6px; }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); }
.step span { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 750;
  background: var(--accent); color: var(--accent-ink); }
.step p { margin: 2px 0 0; font-size: 14px; color: #cfd7d3; }

/* ---------- pages texte ---------- */
.prose { max-width: 760px; }
.lead { font-size: 17px; color: #cfd7d3; max-width: 65ch; }
.howto { padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.howto li { counter-increment: s; position: relative; padding: 16px 18px 14px 62px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); }
.howto li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 750; background: var(--accent); color: var(--accent-ink); }
.howto h2 { margin: 2px 0 4px; font-size: 16px; }
.howto p { margin: 0; color: #cfd7d3; }
.prose details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 8px 0; }
.prose summary, .fr-plot summary { cursor: pointer; font-weight: 600; }
.prose details p, .fr-plot p { color: #cfd7d3; margin: 10px 0 2px; }
.welcome { max-width: 680px; margin: 30px auto; }
.welcome-card { margin: 22px 0 10px; padding: 24px; background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius); }
.welcome-card p { margin: 0; }
.notice { max-width: 640px; margin: 40px auto; padding: 24px; background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--danger); border-radius: var(--radius); }

/* ---------- tuiles, tableaux, admin ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 14px 0 6px; }
.tile { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tile span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.tile strong { display: block; font-size: 24px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile.warn { border-color: var(--warn); }
.tile.warn strong { color: var(--warn); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.panel.highlight { border-color: var(--warn); }
.list { width: 100%; border-collapse: collapse; font-size: 14px; }
.list th, .list td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list tr:last-child td { border-bottom: 0; }
.list th { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.list tbody tr:hover { background: rgba(255,255,255,.02); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.inline-form { display: flex; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.inline-form .muted { font-size: 12.5px; }
.pill { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); white-space: nowrap; }
.pill.ok, .pill.k-grant, .pill.k-seed_add { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.pill.warn, .pill.k-request { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
.pill.danger, .pill.k-revoke, .pill.k-refused { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, transparent); }
.pill.k-torrent { color: var(--text); }
.small-select { padding: 4px 8px; font-size: 13px; font-weight: 400; }

.foot { max-width: 1320px; margin: 0 auto; padding: 24px 20px 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .filters { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .search { grid-column: 1 / -1; }
  .film-hero-inner { grid-template-columns: 140px minmax(0, 1fr); gap: 18px; padding-top: 24px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  main, .top-inner, .film-hero-inner { padding-left: 16px; padding-right: 16px; }
  .top nav a { padding: 5px 7px; font-size: 14px; }
  .who { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; }
  .row-scroll { grid-auto-columns: 124px; }
  .row-scroll .card.big { width: 124px; }
  .film-hero-inner { grid-template-columns: 1fr; }
  .film-hero .poster { max-width: 170px; }
  .tile strong { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ======================= v3 : comptes, salon, OMDb, accueil ======================= */
.live { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 750; }
.account-menu { position: relative; margin-left: 6px; }
.account-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 3px 4px;
  border-radius: 999px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover { background: var(--surface-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 750;
  background: linear-gradient(135deg, var(--accent), #4c9ad6); color: var(--accent-ink); }
.account-menu .who { margin: 0; border: 0; padding: 0 6px 0 0; }
.account-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 30; }
.account-menu .menu a, .linklike { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px;
  color: var(--text); background: none; border: 0; font: 500 14px var(--font); cursor: pointer; }
.account-menu .menu a:hover, .linklike:hover { background: var(--surface-2); color: var(--text); }
.account-menu form { margin: 0; }

/* pages connexion / inscription */
.auth-page { background:
  radial-gradient(1200px 600px at 10% -10%, rgba(124,196,168,.18), transparent 60%),
  radial-gradient(900px 500px at 110% 10%, rgba(76,154,214,.16), transparent 60%), var(--bg); }
.auth-card { max-width: 420px; margin: 7vh auto 40px; padding: 30px 28px; background: rgba(21,26,29,.85);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.auth-card h1 { margin: 14px 0 4px; font-size: 26px; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 750; color: var(--muted); }
.stack { display: grid; gap: 14px; margin-top: 18px; }
.stack label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #cfd7d3; }
.stack input { width: 100%; }
.auth-switch { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.form-error { color: #ffb4ab; background: rgba(229,103,92,.12); border: 1px solid rgba(229,103,92,.4); padding: 10px 12px;
  border-radius: 10px; font-size: 14px; }
.form-error:empty { display: none; }
.form-ok { color: var(--accent); background: rgba(124,196,168,.1); border: 1px solid rgba(124,196,168,.4); padding: 10px 12px; border-radius: 10px; }
.hint { color: var(--muted); font-size: 12.5px; margin: -6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.narrow { max-width: 760px; }
.panel-form { max-width: 440px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* film à la une */
.feature { position: relative; overflow: hidden; min-height: 440px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); }
.feature .backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.feature::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,16,18,.96) 0%, rgba(13,16,18,.7) 45%, rgba(13,16,18,.15) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
.feature-inner { position: relative; z-index: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 60px 20px 40px; }
.feature h1 { font-size: clamp(30px, 5vw, 54px); margin: 6px 0 8px; max-width: 18ch; }
.feature .overview { max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.score.imdb, .b-rating.imdb { background: #f5c518; color: #111; font-weight: 800; padding: 2px 8px; border-radius: 6px; }
.b-rating.imdb { opacity: 1; font-size: 10.5px; }

/* fiche : notes et générique */
.scores { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 6px; }
.score-box { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 12px; min-width: 110px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.score-box strong { font-size: 22px; line-height: 1.1; }
.score-box span { font-size: 11.5px; color: var(--muted); }
.score-box.imdb strong { color: #f5c518; }
.score-box.rotten strong { color: #fa6447; }
.score-box.meta strong { color: #66cc33; }
.rated { border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-size: 12px; }
.fr-plot { max-width: 68ch; margin: 4px 0 0; background: transparent; padding: 0; border: 0; }
.fr-plot summary { color: var(--accent); font-weight: 600; font-size: 14px; }
.film-columns { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; margin-top: 28px; align-items: start; }
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 24px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.credits .wide { grid-column: 1 / -1; }
.credits h3 { margin: 0 0 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.credits p { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.steps-col { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps-col h3 { margin: 0 0 8px; font-size: 15px; }
.mini-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: #cfd7d3; font-size: 14px; }

/* aperçu du salon sur l'accueil */
.chat-teaser { margin-top: 26px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.chat-teaser-head { display: flex; justify-content: space-between; align-items: center; }
.chat-teaser h2 { margin: 0; font-size: 16px; }
.chat-teaser ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.chat-teaser strong { color: var(--accent); margin-right: 6px; }

/* salon */
.salon { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; margin-top: 10px; }
.salon-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.chat { list-style: none; margin: 0; padding: 16px; height: min(62vh, 640px); overflow-y: auto; display: flex;
  flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.bubble { max-width: 78%; align-self: flex-start; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface-2); }
.bubble.mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: rgba(124,196,168,.16); border: 1px solid rgba(124,196,168,.3); }
.bubble-head { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; }
.bubble-head strong { color: var(--accent); }
.bubble-head time { color: var(--muted); font-size: 11.5px; }
.bubble p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form { display: flex; gap: 10px; margin-top: 10px; }
.chat-form textarea { flex: 1; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; font: inherit; resize: vertical; min-height: 46px; }
.salon-side { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); align-self: start; }
.salon-side h2 { margin: 0 0 10px; font-size: 15px; }
.salon-side ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.salon-side li::before { content: "● "; color: var(--accent); }
.salon-side li.me { font-weight: 700; }
.small { font-size: 12.5px; }

/* admin v3 */
.reveal { margin: 16px 0; padding: 16px 18px; border: 1px solid var(--accent); border-radius: var(--radius); background: rgba(124,196,168,.08); }
.reveal code { display: block; font-size: 22px; font-weight: 750; letter-spacing: .04em; margin: 8px 0 12px; user-select: all; }
tr.dimmed { opacity: .5; }
.msg-cell { max-width: 520px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pill.k-signup, .pill.k-login, .pill.k-enable { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.pill.k-login_failed, .pill.k-login_blocked, .pill.k-disable { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, transparent); }

@media (max-width: 900px) {
  .film-columns, .salon { grid-template-columns: 1fr; }
  .feature { min-height: 380px; }
}
@media (max-width: 560px) {
  .account-menu .who { display: none; }
  .feature-inner { padding: 40px 16px 26px; }
  .bubble { max-width: 92%; }
  .chat-form { flex-direction: column; }
}

/* animes */
.anime-filters { grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, max-content)); }
.seasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.season { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.season h3 { margin: 0; font-size: 15px; }
.season p { margin: 2px 0 0; font-size: 13px; }
.season.pending { opacity: .6; }
.season.ready { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.anime-help { margin-top: 22px; max-width: 520px; }
.row-section h2 .button { margin-left: auto; }
@media (max-width: 900px) {
  .anime-filters { grid-template-columns: 1fr 1fr; }
  .anime-filters .search { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- prix, générique, personnes */
.b-awards { position: absolute; bottom: 8px; right: 8px; display: flex; gap: 2px; padding: 2px 6px; border-radius: 6px;
  background: rgba(10, 12, 14, .82); font-size: 14px; line-height: 1.2; }
.prizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.prize { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px;
  font-weight: 650; color: #ffe3a1; background: rgba(245, 197, 24, .12); border: 1px solid rgba(245, 197, 24, .35); text-decoration: none; }
a.prize:hover { background: rgba(245, 197, 24, .22); }
a.chip { color: var(--text); text-decoration: none; }
a.chip:hover { background: var(--surface-3); }
.cast-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.cast { flex: 0 0 96px; display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; font-size: 12.5px; }
.cast img, .cast .avatar { width: 96px; height: 144px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.cast strong { font-weight: 650; line-height: 1.25; }
.cast small { color: var(--muted); line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cast:hover strong { text-decoration: underline; }
.avatar { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--muted);
  font-weight: 800; font-size: 22px; border-radius: 50%; }
.person-hits { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 16px; }
.person-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.person-chip:hover { background: var(--surface-3); }
.person-chip img, .person-chip .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; font-size: 16px; }
.person-chip span { display: flex; flex-direction: column; line-height: 1.2; }
.person-chip small { color: var(--muted); font-size: 12px; }
.person-head { display: flex; align-items: center; gap: 22px; margin: 8px 0 24px; }
.person-head img, .person-head .avatar.big { width: 120px; height: 180px; object-fit: cover; border-radius: 14px; flex: none; }
.person-head .avatar.big { border-radius: 14px; font-size: 48px; }
.person-head h1 { margin: 2px 0 6px; }
.card .meta.role { font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .person-head { gap: 14px; }
  .person-head img, .person-head .avatar.big { width: 84px; height: 126px; }
}
@media (max-width: 1280px) and (min-width: 901px) {
  #filters { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  #filters .search { grid-column: 1 / -1; }
}
/* les menus ne doivent jamais imposer leur largeur (sinon la page déborde sur téléphone) */
.filters select, .filters input { min-width: 0; width: 100%; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .b-awards { bottom: 32px; padding: 1px 4px; font-size: 12px; }
}

/* ---------------------------------------------------------------- statistiques */
.stats-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 4px; }
.stats-head h1 { margin: 2px 0 0; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.seg a { padding: 6px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 13.5px; white-space: nowrap; }
.seg a.on { background: var(--surface-3); color: var(--text); }
.tile small { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.stats-block { margin: 28px 0 0; }
.stats-block h2 { font-size: 18px; margin: 0 0 12px; }
.chart-panel { padding: 14px 14px 8px; }
.chart { display: block; width: 100%; height: 150px; overflow: visible; stroke: none; }
.chart rect { stroke: none; }
.chart .hit { fill: transparent; }
.chart .base { stroke: var(--line) !important; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart g:hover .hit { fill: var(--surface-2); }
.chart .bar { fill: var(--accent); }
.chart g:hover .bar { opacity: .8; }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 6px; }
.stats-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.rank { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rank li { counter-increment: r; display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rank li::before { content: counter(r); width: 22px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank li b, .meter b { color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.meter { margin: 0; padding: 0; list-style: none; }
.meter li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 36px; align-items: center; gap: 10px; padding: 6px 0; }
.meter a { color: var(--text); text-decoration: none; }
.meter a:hover { text-decoration: underline; }
.meter meter { width: 100%; height: 10px; }
.meter b { text-align: right; }
.rank-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rank-table th, .rank-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rank-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.rank-table tr.me td { color: var(--accent); font-weight: 650; }
.rank-table tbody tr:last-child td { border-bottom: 0; }
.small { font-size: 13px; }
@media (max-width: 760px) {
  .stats-columns { grid-template-columns: minmax(0, 1fr); }
  .meter li { grid-template-columns: 100px minmax(0, 1fr) 30px; }
  .rank-table th, .rank-table td { padding: 8px 10px; }
}


/* ---------------------------------------------------------------- profils et avatars */
.acc-or { --acc: #e0b54a; --acc-dark: #7a5410; }
.acc-emeraude { --acc: #4cc9a0; --acc-dark: #0f5a44; }
.acc-azur { --acc: #5aa9f0; --acc-dark: #163f73; }
.acc-violet { --acc: #a98bf0; --acc-dark: #3d2878; }
.acc-rose { --acc: #ee7fb5; --acc-dark: #6e1f47; }
.acc-rouge { --acc: #ef6b62; --acc-dark: #6b1a15; }
.acc-orange { --acc: #f29a4a; --acc-dark: #6d3a0c; }
.acc-ardoise { --acc: #9aa8b4; --acc-dark: #2c3740; }
.av { display: block; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }
.av-sm { width: 30px; height: 30px; }
.av-md { width: 36px; height: 36px; }
.av-lg { width: 72px; height: 72px; }
.av-xl { width: 128px; height: 128px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--acc, var(--accent)); }
.flash { padding: 10px 14px; border-radius: 10px; margin: 12px 0; border: 1px solid var(--line); background: var(--surface); }
.flash.ok { border-color: var(--accent); }
.flash.warn { border-color: var(--warn); color: var(--warn); }
.wide-form { max-width: 720px; margin: 18px 0; }
.wide-form h2 { margin: 0 0 12px; font-size: 17px; }
.wide-form textarea { width: 100%; margin-top: 6px; }
.avatar-edit { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.avatar-edit > div { flex: 1; min-width: 220px; }
.upload-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.file-pick { position: relative; display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 10px;
  border: 1px dashed var(--line); cursor: pointer; max-width: 100%; }
.file-pick input { max-width: 220px; }
.accents { border: 0; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.accents legend { margin-bottom: 8px; padding: 0; }
.accent-pick { cursor: pointer; }
.accent-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.accent-pick .swatch { display: block; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--acc), var(--acc-dark)); border: 3px solid transparent; }
.accent-pick input:checked + .swatch { border-color: var(--text); }
.accent-pick input:focus-visible + .swatch { outline: 2px solid var(--accent); outline-offset: 2px; }
.member-head { display: flex; gap: 24px; align-items: center; margin: 10px 0 8px; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(120deg, color-mix(in srgb, var(--acc) 22%, var(--surface)), var(--surface) 70%);
  border: 1px solid var(--line); flex-wrap: wrap; }
.member-head h1 { margin: 2px 0 8px; }
.member-head .bio { margin: 0 0 10px; white-space: pre-line; max-width: 60ch; }
.member-head .facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.online-dot { color: #6fdc8c; }
span.online-dot:empty { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6fdc8c; vertical-align: middle; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-top: 16px; }
.member-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; text-align: center;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none;
  border-top: 3px solid var(--acc); }
.member-card:hover { background: var(--surface-2); }
.member-card small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.fav-form { display: inline; margin: 0; }
.fav.on { color: #ff7aa8; border-color: rgba(255, 122, 168, .5); }
.bubble-head .av { width: 22px; height: 22px; }
.bubble-head { display: flex; align-items: center; gap: 8px; }
.bubble-head a { color: inherit; text-decoration: none; }
.bubble-head a:hover { text-decoration: underline; }
#online li { display: flex; align-items: center; gap: 8px; }
#online li .av { width: 24px; height: 24px; }
@media (max-width: 560px) {
  .member-head { padding: 16px; gap: 14px; }
  .av-xl { width: 96px; height: 96px; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .file-pick span { display: none; }
  .file-pick { padding: 8px; }
}

/* ---------------------------------------------------------------- Nen */
[hidden] { display: none !important; }
.hexa { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.hexa.small { width: 64px; max-width: 64px; }
.hexa .hx-outer { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.hexa .hx-mid { fill: none; stroke: var(--line); stroke-dasharray: 3 4; }
.hexa .hx-spoke { stroke: var(--line); }
.hexa .hx-shape { fill: color-mix(in srgb, var(--acc) 38%, transparent); stroke: var(--acc); stroke-width: 2; stroke-linejoin: round; }
.hexa .hx-label { fill: var(--muted); font-size: 8.5px; font-weight: 600; stroke: none; }
.hexa .hx-label.mine { fill: var(--text); font-weight: 800; }
.nen-intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; margin: 18px 0; }
.nen-intro h1 { margin: 4px 0 12px; }
.nen-rules { color: var(--muted); padding-left: 18px; margin: 14px 0 22px; line-height: 1.6; }
.nen-result { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; margin: 18px 0; }
.nen-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(150deg, color-mix(in srgb, var(--acc) 20%, var(--surface)), var(--surface) 65%); }
.nen-kanji { font-size: 44px; line-height: 1; margin: 12px 0 2px; color: var(--acc); font-weight: 800; letter-spacing: .05em; }
.nen-card h1 { margin: 6px 0 8px; font-size: 34px; }
.nen-pitch { font-size: 17px; margin: 0 0 8px; }
.nen-proscons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0 8px; }
.nen-proscons h3 { margin: 0 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.nen-proscons ul { margin: 0; padding-left: 18px; line-height: 1.5; }
.nen-proscons div:first-child h3 { color: #6fdc8c; }
.nen-proscons div:last-child h3 { color: var(--warn); }
.nen-hexa { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.nen-aff { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.nen-aff li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.nen-aff li.mine { font-weight: 800; }
.nen-test { max-width: 720px; margin: 18px auto; }
.nen-test-head { margin-bottom: 18px; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 10px 0 6px; }
#nen-bar { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
#nen-bar[data-p="0"] { width: 0%; }
#nen-bar[data-p="1"] { width: 10%; }
#nen-bar[data-p="2"] { width: 20%; }
#nen-bar[data-p="3"] { width: 30%; }
#nen-bar[data-p="4"] { width: 40%; }
#nen-bar[data-p="5"] { width: 50%; }
#nen-bar[data-p="6"] { width: 60%; }
#nen-bar[data-p="7"] { width: 70%; }
#nen-bar[data-p="8"] { width: 80%; }
#nen-bar[data-p="9"] { width: 90%; }
#nen-bar[data-p="10"] { width: 100%; }
.nen-q { border: 0; padding: 0; margin: 0 0 26px; }
.nen-q legend { font-size: 20px; font-weight: 700; line-height: 1.35; margin-bottom: 14px; padding: 0; }
.nen-q legend .muted { font-size: 14px; font-weight: 600; display: block; margin-bottom: 4px; }
.nen-opt { display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin: 0 0 10px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.nen-opt:hover { background: var(--surface-2); }
.nen-opt input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.nen-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.nen-nav { display: flex; justify-content: space-between; gap: 12px; }
.member-nen { display: flex; align-items: center; gap: 12px; margin-left: auto; padding: 10px 16px 10px 10px; border-radius: 14px;
  background: color-mix(in srgb, var(--acc) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--acc) 40%, var(--line)); }
.member-nen span { display: flex; flex-direction: column; }
.member-nen small { color: var(--acc); font-size: 15px; font-weight: 800; }
.nen-tag { font-size: 11.5px; font-weight: 750; padding: 2px 9px; border-radius: 999px; color: var(--acc);
  background: color-mix(in srgb, var(--acc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); }
@media (max-width: 760px) {
  .nen-intro, .nen-result { grid-template-columns: 1fr; }
  .nen-proscons { grid-template-columns: 1fr; }
  .member-nen { margin-left: 0; }
}

/* ---------------------------------------------------------------- aura */
.aura-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; margin: 14px 0;
  padding: 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(120deg, color-mix(in srgb, var(--acc) 22%, var(--surface)), var(--surface) 70%); }
.aura-level { width: 96px; height: 96px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  border: 3px solid var(--acc); box-shadow: 0 0 24px color-mix(in srgb, var(--acc) 45%, transparent); }
.aura-level span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.aura-level strong { font-size: 34px; line-height: 1; }
.aura-main h1 { margin: 2px 0 10px; font-size: 34px; }
.aura-main h1 small { font-size: 16px; color: var(--muted); font-weight: 600; }
.aura-progress span { display: block; height: 100%; background: var(--acc); }
.aura-progress .w0 { width: 0%; }
.aura-progress .w5 { width: 5%; }
.aura-progress .w10 { width: 10%; }
.aura-progress .w15 { width: 15%; }
.aura-progress .w20 { width: 20%; }
.aura-progress .w25 { width: 25%; }
.aura-progress .w30 { width: 30%; }
.aura-progress .w35 { width: 35%; }
.aura-progress .w40 { width: 40%; }
.aura-progress .w45 { width: 45%; }
.aura-progress .w50 { width: 50%; }
.aura-progress .w55 { width: 55%; }
.aura-progress .w60 { width: 60%; }
.aura-progress .w65 { width: 65%; }
.aura-progress .w70 { width: 70%; }
.aura-progress .w75 { width: 75%; }
.aura-progress .w80 { width: 80%; }
.aura-progress .w85 { width: 85%; }
.aura-progress .w90 { width: 90%; }
.aura-progress .w95 { width: 95%; }
.aura-progress .w100 { width: 100%; }
.aura-streak { text-align: center; padding: 12px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.aura-streak strong { display: block; font-size: 30px; }
.aura-streak span { display: block; font-size: 13px; }
.aura-streak small { color: var(--muted); font-size: 12px; }
.bonus { color: #6fdc8c; }
.malus { color: var(--warn); }
.aura-rules li { align-items: flex-start; }
.aura-rules li::before { padding-top: 2px; }
.rank li.me span a { color: var(--accent); font-weight: 700; }
.rank li .av { flex: none; }
.rank li span a { color: var(--text); text-decoration: none; }
.member-level { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--acc); }
@media (max-width: 760px) {
  .aura-head { grid-template-columns: auto minmax(0, 1fr); }
  .aura-streak { grid-column: 1 / -1; }
  .aura-level { width: 72px; height: 72px; }
  .aura-level strong { font-size: 26px; }
}
.aura-rules li span { white-space: normal; overflow: visible; }
@media (max-width: 560px) {
  .rank-table .muted { white-space: normal; min-width: 140px; }
}

/* ---------------------------------------------------------------- compétences : cadres, halos, bulles, bannières */
.av.fr-simple { box-shadow: 0 0 0 2px var(--acc); }
.av.fr-double { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--acc); }
.av.fr-pointille { outline: 2px dashed var(--acc); outline-offset: 2px; }
.av.fr-conique { box-shadow: 0 0 0 2px var(--acc), 0 0 0 4px var(--bg), 0 0 0 6px var(--acc-dark), 0 0 0 7px var(--acc); }
.av.fr-ecarlate { box-shadow: 0 0 0 2px #2a0606, 0 0 0 4px #e0262b; }
.av.gl-doux { filter: drop-shadow(0 0 6px var(--acc)); }
.av.gl-pulse { animation: nen-pulse 2.4s ease-in-out infinite; }
.av.gl-tourbillon { animation: nen-storm 1.3s ease-in-out infinite; }
.av.gl-ecarlate { filter: drop-shadow(0 0 8px #e0262b); animation: nen-pulse-red 1.8s ease-in-out infinite; }
@keyframes nen-pulse { 0%, 100% { filter: drop-shadow(0 0 3px var(--acc)); } 50% { filter: drop-shadow(0 0 12px var(--acc)); } }
@keyframes nen-pulse-red { 0%, 100% { filter: drop-shadow(0 0 4px #e0262b); } 50% { filter: drop-shadow(0 0 14px #ff3b3b); } }
@keyframes nen-storm { 0%, 100% { filter: drop-shadow(0 0 4px var(--acc)) drop-shadow(0 0 1px var(--acc-dark)); }
  50% { filter: drop-shadow(0 0 16px var(--acc)) drop-shadow(0 0 6px var(--acc-dark)); } }
@media (prefers-reduced-motion: reduce) { .av[class*="gl-"] { animation: none !important; } }
.bubble.bu-teinte { background: color-mix(in srgb, var(--acc) 16%, var(--surface)); border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); }
.bubble.bu-teinte .bubble-head strong a { color: var(--acc); }
.bubble-title { font-size: 11.5px; color: var(--muted); font-style: italic; }
.member-title { margin: -4px 0 8px; color: var(--acc); font-weight: 650; font-style: italic; }
.member-card .member-title { margin: 0; font-size: 12px; }
.member-head.bn-motif { background:
  repeating-linear-gradient(135deg, color-mix(in srgb, var(--acc) 10%, transparent) 0 12px, transparent 12px 24px),
  linear-gradient(120deg, color-mix(in srgb, var(--acc) 26%, var(--surface)), var(--surface) 75%); }
.member-head.bn-ecarlate { background: radial-gradient(circle at 15% 50%, rgba(224, 38, 43, .35), var(--surface) 60%); border-color: #6b1a15; }

/* ---------------------------------------------------------------- page de l'arbre */
.balance { border-color: var(--acc); color: var(--acc); }
.equip-preview { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.equip-form { flex: 1; min-width: 240px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 14px; align-items: end; }
.equip-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.equip-form .check { flex-direction: row; align-items: center; gap: 8px; grid-column: 1 / -1; color: var(--text); }
.equip-form button { justify-self: start; }
.tree { margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tree > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 18px; flex-wrap: wrap; }
.tree > summary::-webkit-details-marker { display: none; }
.tree > summary strong { font-size: 18px; }
.tree-kanji { color: var(--acc); font-weight: 800; font-size: 20px; }
.tree[open] > summary { border-bottom: 1px solid var(--line); }
.branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; padding: 18px; }
.branch-col h3 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.branch { list-style: none; margin: 0; padding: 0 0 0 14px; position: relative; display: flex; flex-direction: column; gap: 12px; }
.branch::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.branch.trunk { flex-direction: row; flex-wrap: wrap; padding: 0; }
.branch.trunk::before { display: none; }
.branch.trunk .node { flex: 1 1 200px; }
.node { position: relative; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.branch:not(.trunk) .node::before { content: ""; position: absolute; left: -15px; top: 18px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface-3); border: 2px solid var(--line); }
.node.owned { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, var(--surface-2)); }
.branch:not(.trunk) .node.owned::before { background: var(--acc); border-color: var(--acc); }
.node.locked { opacity: .62; }
.node-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.node p { margin: 6px 0 8px; font-size: 13.5px; color: var(--muted); }
.node .node-why { font-size: 12.5px; font-style: italic; margin: 0; }
.node-cost { font-weight: 750; color: var(--acc); white-space: nowrap; }
.node-state.ok { color: var(--acc); font-weight: 750; font-size: 13px; }
.node form { margin: 0; }

/* ---------------------------------------------------------------- demandes */
.req-search { grid-template-columns: minmax(0, 1fr) auto; position: static; }
.req-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin: 12px 0 8px; }
.req-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); }
.req-card img, .req-card .noposter { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; height: auto; }
.req-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.req-body h3 { margin: 0; font-size: 14.5px; line-height: 1.3; }
.req-body .meta { margin: 0; }
.req-body form { margin-top: auto; }
.req-state { margin-top: auto; font-size: 12.5px; color: var(--muted); font-style: italic; }
@media (max-width: 560px) { .req-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.b-unit { position: absolute; bottom: 8px; right: 8px; font-size: 10.5px; font-weight: 750; padding: 2px 7px; border-radius: 6px;
  background: rgba(10, 14, 16, .82); color: #fff; }
.season .muted .b-res, .season .muted .b-lang { margin-left: 6px; vertical-align: 1px; }
.person-sort { margin: 0 0 6px; max-width: 100%; overflow-x: auto; }

/* transition douce entre les pages (navigateurs récents ; ignoré ailleurs) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
.show-cast { margin: 24px 0; }
.b-rating.tmdb { opacity: 1; background: rgba(10, 14, 16, .82); color: #ffd76a; }
