/* Montage par référence (web/src/pages/montage_ref.rs) : /montage, /montage/:id, /montage-video */
.mr-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0 12px}
.mr-tab{border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:var(--pill);padding:7px 14px;font:inherit;cursor:pointer}
.mr-tab.active{border-color:var(--accent-fill);background:var(--accent-soft)}
.mr-tpls{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.mr-tpl,.mr-rush,.mr-result{display:flex;flex-direction:column;gap:4px;padding:6px;text-align:left;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg);color:var(--text);font:inherit;cursor:pointer;position:relative}
.mr-tpl:hover,.mr-rush:hover{border-color:var(--border-strong)}
.mr-tpl.selected,.mr-rush.selected,.mr-result.selected{border-color:var(--accent-fill);background:var(--accent-soft);box-shadow:0 0 0 1px var(--accent-fill)}
.mr-tpl-thumb{display:block;aspect-ratio:9/16;max-height:220px;border-radius:var(--r-xs);overflow:hidden;background:var(--stage,#100d0b)}
.mr-tpl-thumb video{width:100%;height:100%;object-fit:cover;display:block}
/* schéma d'un format sans aperçu vidéo : le tableau du jeu en haut, la prise en dessous */
.mr-schema{display:flex;flex-direction:column;gap:3px;padding:8px;height:100%;min-height:120px;box-sizing:border-box;background:linear-gradient(180deg,#2a241f 0 34%,#4a3f37 34%)}
.mr-schema i{display:block;height:10px;border-radius:3px;background:#ff7f7f}
.mr-schema i:nth-child(2){background:#ffbf7f;width:80%}.mr-schema i:nth-child(3){background:#ffdf7f;width:60%}
.mr-schema-columns,.mr-schema-pairs{flex-direction:row;align-items:flex-start}
.mr-schema-columns i,.mr-schema-pairs i{flex:1;height:16px;background:#ef4444}.mr-schema-columns i:nth-child(2),.mr-schema-pairs i:nth-child(2){background:#22c55e;width:auto}.mr-schema-columns i:nth-child(3),.mr-schema-pairs i:nth-child(3){display:none}
.mr-schema-split{flex-direction:row;background:linear-gradient(90deg,#3b2f2a 0 50%,#2f3b2a 50%)}
.mr-schema-split i{display:none}
.mr-search{display:flex;gap:8px}.mr-search .input{flex:1}
.mr-results,.mr-media{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin:10px 0}
.mr-result img,.mr-rush img{width:100%;aspect-ratio:9/16;object-fit:cover;border-radius:var(--r-xs);background:var(--bg-elev)}
.mr-result{cursor:default}.mr-result .btn{margin-top:auto}
.mr-rush svg{position:absolute;top:10px;right:10px;width:20px;height:20px;background:var(--accent-fill);color:var(--on-accent);border-radius:50%;padding:2px}
.mr-rights{display:flex;gap:8px;align-items:flex-start;margin:12px 0}
.mr-locked{max-width:640px;margin:24px auto;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px}
.mr-locked svg{width:32px;height:32px;color:var(--accent)}
.mr-result-page{padding:24px;max-width:900px}
.mr-progress{display:flex;align-items:center;gap:10px;font-weight:600}
.mr-error{color:var(--danger,#d33);display:flex;gap:8px;align-items:center}
.mr-done{display:flex;gap:20px;flex-wrap:wrap;align-items:flex-start;margin:12px 0}
.mr-player{width:min(340px,100%);aspect-ratio:9/16;background:#000;border-radius:var(--radius)}
.mr-actions{display:flex;flex-direction:column;gap:10px}
.mr-report{margin-top:16px;padding:16px}.mr-report ul{padding-left:18px}
.mr-warn{color:var(--muted)}.mr-warn svg{width:14px;height:14px;vertical-align:-2px;margin-right:4px}
.mr-report pre{max-height:320px;overflow:auto;font-size:12px;background:var(--bg-elev);padding:10px;border-radius:var(--r-xs)}
.mr-land-grid{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
.mr-land-card video{width:100%;aspect-ratio:9/16;object-fit:cover;border-radius:var(--r-xs);display:block;background:#000}
.mr-land-more{margin-top:16px;color:var(--muted)}
.mr-result .btn{white-space:normal;font-size:12px;line-height:1.2;padding:6px 8px;width:100%}
.mr-result img{object-fit:cover}
