/* activity_dj/styles.css — Charte Obsidienne & Laiton doré (Discord Activity embarquée) */
:root {
  --obsidian: #12141a;
  --surface: #1b1f29;
  --surface-2: #232938;
  --border: #30374a;
  --brass: #c9973e;
  --gold: #e5b84b;
  --emerald: #3e8e6e;
  --emerald-bright: #4da984;
  --crimson: #b84235;
  --amethyst: #7c5cbf;
  --text: #eef1f7;
  --muted: #98a2b3;
}

* { box-sizing: border-box; }
.hidden { display: none !important; }

body {
  margin: 0;
  background: radial-gradient(circle at top right, #1e1a2b 0%, var(--obsidian) 60%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

.shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brass);
  border-radius: 12px;
  padding: 12px 16px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.crest { font-size: 1.6rem; }
.topbar h1 { margin: 0; font-size: 1.15rem; color: var(--gold); letter-spacing: .02em; }
.sub { margin: 2px 0 0; font-size: .82rem; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 8px; }

.pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .78rem;
  color: var(--gold);
}

.deck-card {
  background: linear-gradient(180deg, rgba(124, 92, 191, 0.14), rgba(27, 31, 41, 0.96));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.np-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tag {
  background: rgba(201, 151, 62, 0.18);
  border: 1px solid var(--brass);
  color: var(--gold);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: .75rem;
  font-weight: 700;
}
.owner { font-size: .85rem; color: var(--muted); }
.now-playing h2 { margin: 4px 0 10px; font-size: 1.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.progress-row { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-track { flex: 1; height: 7px; background: #0e1015; border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--brass), var(--gold)); transition: width .35s ease; }

.controls-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; align-items: center; }
.transport { display: flex; flex-wrap: wrap; gap: 8px; }
.faders { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; }
.fader { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: var(--muted); min-width: 125px; }
.fader b { color: var(--text); }
.fader em { color: var(--gold); font-style: normal; margin-left: 4px; }
.fader input[type="range"] { accent-color: var(--brass); }
.duck-toggle { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text); cursor: pointer; }

.quick-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(48, 55, 74, 0.75);
}
.quick-input {
  flex: 1;
  min-width: 220px;
  background: #101218;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .86rem;
}
.quick-input:focus { outline: none; border-color: var(--gold); }

.feedback {
  font-size: .82rem;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(62, 142, 110, 0.16);
  border: 1px solid var(--emerald);
  color: var(--text);
}
.feedback.err {
  background: rgba(184, 66, 53, 0.18);
  border-color: var(--crimson);
}

.workspace { display: grid; grid-template-columns: 345px 1fr; gap: 12px; min-height: 430px; }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.panel h3 { margin: 0; font-size: .92rem; color: var(--gold); }
.panel h3.mt { margin-top: 8px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: .82rem;
  cursor: pointer;
}
.chip.active { background: rgba(201, 151, 62, 0.22); border-color: var(--gold); color: var(--gold); }

.sfx-pad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.sfx-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 9px;
  min-height: 42px;
  font-size: .81rem;
  line-height: 1.25;
  cursor: pointer;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sfx-btn.cached { border-color: var(--emerald); }
.sfx-btn:hover { background: rgba(62, 142, 110, 0.28); }

.tracks-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tracks-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search {
  background: #101218;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 10px;
  min-width: 190px;
}
.tracks-list { flex: 1; overflow-y: auto; max-height: 360px; display: flex; flex-direction: column; gap: 4px; }
.track-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #151821;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: .86rem;
}
.track-row:hover { border-color: var(--brass); background: var(--surface-2); }
.track-row.playing { border-color: var(--gold); background: rgba(201, 151, 62, 0.16); }
.track-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-dur { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; flex-shrink: 0; }

.pager { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); }

.btn, .select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: .84rem;
  cursor: pointer;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.primary { background: var(--brass); color: #12141a; border-color: var(--gold); font-weight: 700; }
.btn.primary:hover:not(:disabled) { background: var(--gold); }
.btn.success { background: var(--emerald); color: #fff; border-color: var(--emerald-bright); font-weight: 700; }
.btn.success:hover:not(:disabled) { background: var(--emerald-bright); }
.btn.accent { background: rgba(124, 92, 191, 0.28); border-color: var(--amethyst); color: #f3ecff; font-weight: 600; }
.btn.accent:hover:not(:disabled) { background: rgba(124, 92, 191, 0.45); }
.btn.danger { background: var(--crimson); border-color: #d65446; color: #fff; font-weight: 600; }
.btn.subtle { background: #161922; }
.btn.full { width: 100%; }

@media (max-width: 820px) {
  .controls-grid, .workspace { grid-template-columns: 1fr; }
  .faders { justify-content: flex-start; }
  .search { min-width: 140px; flex: 1; }
}
