:root {
  --bg: #f6f5fa;
  --surface: #ffffff;
  --surface-2: #efedf6;
  --border: #dcd8e8;
  --text: #1d1b26;
  --muted: #6b6780;
  --accent: #b7791f;
  --accent-strong: #8f5d12;
  --accent-soft: #fbf1df;
  --primary: #5b3fa8;
  --primary-text: #ffffff;
  --ok: #1f7a4d;
  --ok-soft: #e1f4ea;
  --warn: #a15c07;
  --warn-soft: #fdf0dc;
  --error: #b42335;
  --error-soft: #fbe4e7;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(0 0 0 / 6%), 0 4px 16px rgb(0 0 0 / 5%);
  --wave: #a9a4c0;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14131c;
    --surface: #1d1b28;
    --surface-2: #262433;
    --border: #363347;
    --text: #ecebf3;
    --muted: #a19db5;
    --accent: #e8b04b;
    --accent-strong: #f2c46e;
    --accent-soft: #3a2f1a;
    --primary: #8b6fe0;
    --primary-text: #ffffff;
    --ok: #5cc493;
    --ok-soft: #173326;
    --warn: #f0b35a;
    --warn-soft: #3a2a12;
    --error: #ff8593;
    --error-soft: #3d1a20;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%);
    --wave: #5d5973;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--primary); }
h1 { font-size: 1.6rem; margin: 0 0 1rem; }
h2 { font-size: 1.2rem; margin: 1.5rem 0 .75rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* --- En-tête --- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: .6rem 16px;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand { font-weight: 800; text-decoration: none; color: var(--text); font-size: 1.1rem; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; flex: 1; }
@media (max-width: 760px) {
  .topbar-inner { gap: .4rem 1rem; }
  .userbox { margin-left: auto; }
  .nav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
}
.nav a {
  text-decoration: none; color: var(--muted); padding: .35rem .7rem; border-radius: 8px; font-weight: 500;
}
.nav a:hover, .nav a.active { background: var(--surface-2); color: var(--text); }
.nav .badge { margin-left: .25rem; }
.userbox { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.userbox form { margin: 0; }

main { max-width: 1200px; margin: 0 auto; padding: 1.5rem 16px 4rem; }

/* --- Éléments --- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.card + .card { margin-top: 1rem; }
.stack > * + * { margin-top: 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: .5rem .9rem; border-radius: 8px; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.btn-primary:hover { background: var(--primary); filter: brightness(1.1); }
.btn-danger { color: var(--error); }
.btn-small { padding: .25rem .55rem; font-size: .85rem; }
.btn-link { border: 0; background: none; padding: 0; color: var(--primary); font-weight: 500; cursor: pointer; font: inherit; }

label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: .3rem; }
input:not([type]), input[type=text], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: .5rem .65rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 1px;
}
.field { margin-bottom: 1rem; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.row-between > h1, .row-between > h2 { margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: .4rem; }
.check {
  display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; margin: 0;
  border: 1px solid var(--border); border-radius: 999px; padding: .25rem .7rem; cursor: pointer; font-size: .9rem;
}
.check:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }

.badge {
  display: inline-block; font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-error { background: var(--error-soft); color: var(--error); }
.badge-accent { background: var(--accent-soft); color: var(--accent-strong); }
.tag { background: var(--surface-2); color: var(--text); font-weight: 500; text-decoration: none; }

.flash { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-weight: 500; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-error { background: var(--error-soft); color: var(--error); }
.flash-warn { background: var(--warn-soft); color: var(--warn); }

/* --- Connexion --- */
.auth { max-width: 380px; margin: 3rem auto; }

/* --- Bibliothèque --- */
.filters { display: grid; gap: .6rem; grid-template-columns: 2fr repeat(5, 1fr) auto; align-items: end; }
.filters-works { grid-template-columns: 2fr 1fr 1fr auto; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } .filters .grow { grid-column: 1 / -1; } }
.extract-list { display: grid; gap: .6rem; margin-top: 1rem; }
.extract-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: .9rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem .8rem;
}
.thumb {
  width: 56px; height: 80px; border-radius: 6px; object-fit: cover; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 1.4rem;
}
.extract-item .title { font-weight: 700; text-decoration: none; color: var(--text); }
.extract-item .meta { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .25rem; align-items: center; }
.extract-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.extract-actions form { margin: 0; }
@media (max-width: 640px) {
  .extract-item { grid-template-columns: 48px 1fr; }
  .thumb { width: 48px; height: 68px; }
  .extract-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
.play {
  width: 36px; height: 36px; border-radius: 50%; padding: 0; font-size: .9rem;
}
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }

/* --- Formulaire d'extrait --- */
.steps { display: grid; gap: 1rem; }
.step-title { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--primary-text);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; flex: none;
}
.tabs { display: flex; gap: .25rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.tab {
  border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); padding: .5rem .9rem;
  border-bottom: 2px solid transparent; cursor: pointer;
}
.tab.active { color: var(--text); border-bottom-color: var(--primary); }
.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 2rem 1rem; text-align: center;
  color: var(--muted); cursor: pointer;
}
.dropzone.over { border-color: var(--primary); background: var(--surface-2); }
#waveform { border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); min-height: 96px; }
.passage-controls .btn { white-space: normal; }
.passage-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .6rem; margin-top: .75rem; align-items: end; }
.source-info { margin-top: .5rem; font-size: .9rem; }
.hidden { display: none !important; }

.tmdb-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .6rem; margin-top: .75rem; }
.tmdb-result {
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: .35rem;
  text-align: left; cursor: pointer; font: inherit; color: var(--text);
}
.tmdb-result:hover { border-color: var(--primary); }
.tmdb-result img, .tmdb-result .noimg { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; background: var(--surface-2); display: block; }
.tmdb-result .t { font-weight: 600; font-size: .82rem; margin-top: .3rem; line-height: 1.25; }
.tmdb-result .y { font-size: .75rem; color: var(--muted); }
.chosen-work {
  display: flex; gap: .9rem; align-items: center; padding: .6rem; border: 1px solid var(--accent);
  background: var(--accent-soft); border-radius: var(--radius);
}
.chosen-work img { width: 60px; height: 90px; object-fit: cover; border-radius: 6px; }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.spinner {
  display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Génération --- */
.preview-list { display: grid; gap: .5rem; margin-top: .75rem; }
.preview-item {
  display: grid; grid-template-columns: 2rem 40px 1fr auto; gap: .7rem; align-items: center;
  border: 1px solid var(--border); border-radius: 8px; padding: .4rem .6rem; background: var(--surface);
}
.preview-item img, .preview-item .thumb { width: 40px; height: 56px; border-radius: 4px; object-fit: cover; font-size: 1rem; }
.preview-item .n { font-weight: 700; color: var(--muted); text-align: right; }
.progress { height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); transition: width .4s; }
video { width: 100%; max-height: 70vh; border-radius: var(--radius); background: #000; }
.answers { padding-left: 1.4rem; }
.answers li { margin-bottom: .3rem; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* --- Divers --- */
.btn-lg { padding: .7rem 1.2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn.active, .btn.toggle[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }
.empty { text-align: center; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
textarea { resize: vertical; }
select.auto { width: auto; }
label.inline { display: inline; margin: 0; font-weight: 500; }
kbd { font: .75rem ui-monospace, monospace; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 0 .3rem; background: var(--surface-2); }
.kbd-help { display: inline-block; margin-left: .3rem; }
@media (hover: none) { .kbd-help { display: none; } }
.noposter { display: flex; align-items: center; justify-content: center; color: var(--muted); background: var(--surface-2); font-size: 1.4rem; }
button.badge.tag { border: 0; cursor: pointer; font: inherit; font-size: .75rem; }

/* --- Accueil --- */
.hero { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; margin-top: 1rem; }
.stats > .card, .cat-tiles > * { margin-top: 0; }
.stat { text-decoration: none; color: var(--text); display: flex; flex-direction: column; padding: 1rem; }
.stat strong { font-size: 1.8rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }
.stat-warn strong { color: var(--warn); }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; }
.cat-tile {
  display: flex; flex-direction: column; gap: .2rem; padding: 1rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); box-shadow: var(--shadow);
}
.cat-tile:hover { border-color: var(--accent); }
.cat-icon { color: var(--accent); font-size: 1.2rem; }
.cat-name { font-weight: 700; font-size: 1.05rem; }

/* --- Ajouter : catégories + recherche --- */
.cat-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.cat-tab {
  display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: .5rem 1rem; font: inherit; font-weight: 600; color: var(--text); cursor: pointer;
}
.cat-tab.active { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.cat-tab.active .cat-icon { color: inherit; }
.search-bar input { font-size: 1.15rem; padding: .8rem 1rem; border-radius: 12px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; margin-top: .6rem; }
@media (max-width: 480px) { .pick-grid { grid-template-columns: repeat(2, 1fr); } }
.pick {
  display: flex; flex-direction: column; text-align: left; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  padding: 0; overflow: hidden; cursor: pointer; font: inherit; color: var(--text);
}
.pick:hover, .pick:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.pick img, .pick .noimg { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 2rem; }
.pick-body { padding: .45rem .55rem .6rem; }
.pick .t { font-weight: 700; font-size: .9rem; line-height: 1.25; }
.pick .y { font-size: .78rem; color: var(--muted); }
.pick .s { font-size: .75rem; color: var(--muted); margin-top: .2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick-badge { margin-top: .35rem; font-size: .72rem; font-weight: 700; color: var(--accent-strong); }
.work-preview { display: grid; grid-template-columns: 180px 1fr; gap: 1.25rem; align-items: start; }
.work-preview-poster { width: 100%; border-radius: 10px; aspect-ratio: 2 / 3; object-fit: cover; }
.work-preview-title { font-size: 1.35rem; margin: 0 0 .2rem; }
@media (max-width: 560px) { .work-preview { grid-template-columns: 110px 1fr; gap: .8rem; } .work-preview-title { font-size: 1.1rem; } }
.meta-rows { display: grid; gap: .25rem; margin-top: .75rem; }
.meta-row { display: grid; grid-template-columns: 11rem 1fr; gap: .75rem; font-size: .92rem; }
.meta-row > span { color: var(--muted); }
@media (max-width: 560px) { .meta-row { grid-template-columns: 1fr; gap: 0; } .meta-row > span { font-size: .8rem; } }
.overview { white-space: pre-line; color: var(--text); margin-bottom: 0; }

/* --- Œuvres --- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; margin-top: 1rem; }
@media (max-width: 480px) { .work-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; } }
.work-card { text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.work-card:hover { border-color: var(--primary); }
.work-poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: flex; font-size: 2.2rem; }
.work-card-body { padding: .5rem .6rem .65rem; }
.work-card-title { font-weight: 700; font-size: .92rem; line-height: 1.25; }
.work-hero { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); margin-bottom: 1rem; }
.work-hero.has-backdrop::before {
  content: ""; position: absolute; inset: 0; background-image: var(--backdrop); background-size: cover; background-position: center;
  opacity: .22; filter: blur(2px);
}
.work-hero-inner { position: relative; display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; padding: 1.5rem; }
.work-hero-poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 6px 24px rgb(0 0 0 / 25%); font-size: 3rem; }
.work-hero-info { min-width: 0; }
@media (max-width: 640px) {
  .work-hero-inner { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
  .work-hero-poster { width: 130px; }
  .work-hero-info h1 { font-size: 1.3rem; }
}
.extract-item-compact { grid-template-columns: auto 1fr auto; }
@media (max-width: 640px) { .extract-item-compact { grid-template-columns: auto 1fr; } }
.work-strip {
  display: flex; gap: .8rem; align-items: center; text-decoration: none; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem .8rem; margin-bottom: 1rem;
}
.work-strip > div { flex: 1; min-width: 0; }
.work-strip .thumb { width: 44px; height: 64px; font-size: 1rem; }
.work-strip > .small { color: var(--primary); white-space: nowrap; }

/* --- Outil de découpage --- */
.waveform { border: 1px solid var(--border); border-radius: 8px 8px 0 0; background: var(--surface-2); min-height: 112px; touch-action: pan-y; }
#timeline { border: 1px solid var(--border); border-top: 0; border-radius: 0 0 8px 8px; background: var(--surface); }
.cutter-status { margin: .4rem 0 .8rem; font-variant-numeric: tabular-nums; }
.cutter { display: grid; gap: .8rem; }
.cutter-group { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.cutter-marks { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 520px) { .cutter-marks { grid-template-columns: 1fr; } }
.mark { border: 1px solid var(--border); border-radius: 10px; padding: .6rem; display: grid; gap: .4rem; }
.mark label { margin: 0; }
.mark-row { display: grid; grid-template-columns: auto 1fr auto; gap: .4rem; align-items: center; }
.mark-row input { text-align: center; font-variant-numeric: tabular-nums; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 35%); padding: 1rem 0 .5rem; margin-top: .5rem; }

/* --- Jouer en direct --- */
.play-layout { display: grid; gap: 1rem; }
.stage {
  position: relative; overflow: hidden; border-radius: var(--radius); min-height: min(70vh, 560px);
  background: linear-gradient(180deg, #121220, #2a1640); color: #f5f5f5;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem 1rem 2.5rem;
}
.stage:fullscreen { border-radius: 0; min-height: 100vh; }
.stage-bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(18px) brightness(.4); opacity: 0; transition: opacity .6s; }
.stage.revealed .stage-bg { opacity: 1; }
.screen { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .8rem; width: 100%; }
.stage-kicker { color: #e8b04b; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; }
.stage-title { font-size: clamp(1.8rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.1; }
.stage-hint { color: #e8b04b; font-size: 1.2rem; min-height: 1.5em; }
.stage-sub { color: #c9c6d8; margin: 0; }
.stage .btn { color: var(--text); }
.stage .btn-primary { color: var(--primary-text); }
.countdown { position: relative; width: min(46vw, 230px); aspect-ratio: 1; }
.countdown svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.countdown circle { fill: none; stroke-width: 7; }
.countdown .track { stroke: rgb(255 255 255 / 12%); }
.countdown .ring { stroke: #e8b04b; stroke-linecap: round; stroke-dasharray: 339.29; stroke-dashoffset: 0; }
.countdown span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(3rem, 14vw, 6rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.answer-wrap { display: grid; grid-template-columns: minmax(120px, 280px) 1fr; gap: 2rem; align-items: center; text-align: left; max-width: 980px; width: 100%; }
.answer-poster { width: 100%; max-height: min(58vh, 440px); object-fit: contain; border-radius: 12px; box-shadow: 0 10px 40px rgb(0 0 0 / 50%); justify-self: center; }
.answer-text { display: flex; flex-direction: column; gap: .5rem; }
.answer-details { font-size: 1.15rem; display: grid; gap: .2rem; margin-top: .5rem; }
.muted-light { color: #c9c6d8; }
@media (max-width: 600px) {
  .answer-wrap { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
  .answer-poster { width: auto; max-width: 60%; max-height: 38vh; margin: 0 auto; }
  .answer-text { align-items: center; }
}
.stage-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgb(255 255 255 / 10%); }
.stage-progress > div { height: 100%; width: 0; background: #e8b04b; }
.final-scores { display: grid; gap: .4rem; min-width: min(320px, 90%); margin: .5rem 0 1rem; }
.final-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .9rem; border-radius: 8px; background: rgb(255 255 255 / 8%); font-size: 1.1rem; }
.final-row.winner { background: rgb(232 176 75 / 25%); color: #ffd98c; }
.players { display: grid; gap: .5rem; margin-top: .75rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.player { display: flex; gap: .3rem; align-items: center; }
.player-main {
  flex: 1; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem .8rem;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.player-main:active { background: var(--accent-soft); }
.player-main strong { font-size: 1.15rem; color: var(--accent-strong); }

/* --- Choix d'une œuvre (déplacer / fusionner) --- */
.picker-results { display: grid; gap: .4rem; margin-top: .5rem; }
.picker-item { display: flex; gap: .6rem; align-items: center; border: 1px solid var(--border); border-radius: 8px; padding: .35rem .5rem; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--text); }
.picker-item:hover, .picker-item.selected { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.picker-item img, .picker-item .noposter { width: 34px; height: 50px; object-fit: cover; border-radius: 4px; font-size: .8rem; }
