:root {
  --bg: #0e0f13;
  --surface: #171920;
  --surface-2: #1f222b;
  --line: #2a2e39;
  --text: #e8e6e1;
  --muted: #8d919c;
  --accent: #f2b33d;
  --accent-ink: #1a1405;
  --danger: #e5675c;
  --radius: 10px;
  --font: 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); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); font-weight: 400; }
main { max-width: 1280px; margin: 0 auto; padding: 0 16px 48px; }

/* en-tête */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1280px; margin: 0 auto; padding: 16px; }
.brand { color: var(--text); font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }

.hero { padding: 28px 0 24px; }
.hero h1 { margin: 0 0 6px; font-size: clamp(24px, 4vw, 36px); line-height: 1.15; }
.hero p { margin: 0; color: var(--muted); max-width: 60ch; }

/* catalogue + salon */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  color: var(--text); transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); border-color: var(--accent); text-decoration: none; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.card-body { padding: 12px 14px 14px; }
.card h2 { font-size: 16px; margin: 0 0 4px; }
.meta { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); }
.empty { color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; min-height: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px 6px; }
.panel-head h1, .panel-head h2 { margin: 0; font-size: 16px; }
.online { font-size: 12px; color: var(--muted); }
.chat { position: sticky; top: 16px; height: calc(100vh - 32px); max-height: 720px; }
.messages { list-style: none; margin: 0; padding: 4px 16px; overflow-y: auto; flex: 1; min-height: 120px; }
.msg { padding: 8px 0; border-bottom: 1px solid var(--line); }
.msg:last-child { border-bottom: 0; }
.msg-head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.msg-head strong { color: var(--accent); }
.msg-body { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.report { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 11px; cursor: pointer; padding: 0; }
.report:hover { color: var(--danger); }

/* formulaires */
.post { display: grid; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
input, textarea { width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 11px; font: inherit; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin: 0; color: var(--danger); font-size: 13px; min-height: 1em; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 8px;
  padding: 9px 16px; font: 600 14px var(--font); }
button:hover, .button:hover { filter: brightness(1.08); text-decoration: none; }
button:disabled { opacity: .6; cursor: default; }
.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.small { padding: 4px 8px; font-size: 12px; font-weight: 500; }

/* page film */
.film { padding-top: 8px; }
.player { background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: var(--surface); }
.stats { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.film-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; margin-top: 24px; align-items: start; }
.film h1 { margin: 0 0 4px; font-size: clamp(22px, 3vw, 30px); }
.synopsis { max-width: 65ch; }
.credit { color: var(--muted); font-size: 13px; border-left: 3px solid var(--accent); padding-left: 12px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 10px; }
.hash { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.comments .messages { max-height: 480px; }

.prose { max-width: 70ch; padding-top: 16px; }
.prose h2 { font-size: 18px; margin-top: 28px; }

/* modération */
.admin .panel-head { padding: 16px 0; }
.toggle { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.toggle input { width: auto; }
.mod { width: 100%; border-collapse: collapse; font-size: 13px; }
.mod th, .mod td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mod td:nth-child(4) { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 420px; }
.mod .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.hidden-msg { opacity: .45; }

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

@media (max-width: 960px) {
  .layout, .film-body { grid-template-columns: 1fr; }
  .chat { position: static; height: 520px; }
  .mod { display: block; overflow-x: auto; }
}
