:root {
  --bg: #0f1420; --panel: #19202e; --panel2: #222b3d; --line: #2c3650;
  --txt: #e7ecf5; --muted: #93a0b8; --accent: #4f8cff; --accent2: #6ee7b7;
  --danger: #ff5d6c; --warn: #ffb454; --ok: #6ee7b7;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--txt);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; }
a { color: var(--accent); }
button { font: inherit; cursor: pointer; border: 0; border-radius: 8px; padding: 8px 14px;
  background: var(--panel2); color: var(--txt); }
button:hover { filter: brightness(1.15); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary { background: var(--accent); color: #fff; }
button.ok { background: var(--ok); color: #07261b; }
button.danger { background: var(--danger); color: #fff; }
button.ghost { background: transparent; border: 1px solid var(--line); }
button.sm { padding: 4px 10px; font-size: 13px; }
input, select { font: inherit; background: var(--panel); color: var(--txt);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 12px 22px;
  background: var(--panel); border-bottom: 1px solid var(--line); }
.topbar .brand { font-weight: 700; font-size: 18px; }
.topbar .spacer { flex: 1; }
.topbar nav button { background: transparent; }
.topbar nav button.active { background: var(--panel2); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 22px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; margin-bottom: 18px; }
.card h2 { margin: 0 0 12px; font-size: 17px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); }
.pill { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.on { background: rgba(110,231,183,.15); color: var(--ok); }
.pill.off { background: rgba(255,93,108,.15); color: var(--danger); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
tr.drag-over td { box-shadow: inset 0 2px 0 var(--accent); }
.handle { cursor: grab; color: var(--muted); }
.login { max-width: 360px; margin: 9vh auto; }
.error { background: rgba(255,93,108,.12); color: var(--danger); border: 1px solid var(--danger);
  padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--panel2);
  border: 1px solid var(--line); padding: 12px 16px; border-radius: 10px; }
.progress { height: 8px; background: var(--panel2); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
code.url { background: var(--panel2); padding: 4px 8px; border-radius: 6px; font-size: 13px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal { width: 100%; max-width: 720px; max-height: 80vh; overflow: auto; margin: 0; }
.created-banner { margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: rgba(110,231,183,.12); border: 1px solid var(--ok); }
.preview-banner { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px;
  background: rgba(79,140,255,.12); border: 1px solid var(--accent); color: var(--accent);
  display: flex; align-items: center; gap: 12px; }
.banner { background: linear-gradient(135deg, var(--panel2), var(--panel)); }
.nowbar { margin-top: 14px; padding: 10px 14px; border-radius: 10px;
  background: rgba(110,231,183,.10); color: var(--ok); display: flex; align-items: center; gap: 10px; }
/* liste de lecture façon Spotify */
table.playlist td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.playlist tr:hover td { background: rgba(255,255,255,.03); }
table.playlist .idx { width: 36px; text-align: center; color: var(--muted); }
table.playlist .dur { width: 70px; } table.playlist .act { width: 90px; }
tr.np td { color: var(--ok); }
tr.np td:nth-child(2) { font-weight: 600; }
/* égaliseur animé */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; height: 14px; background: var(--ok); transform-origin: bottom;
  animation: eqbar .9s infinite ease-in-out; }
.eq i:nth-child(1) { animation-delay: 0s; }
.eq i:nth-child(2) { animation-delay: .25s; }
.eq i:nth-child(3) { animation-delay: .5s; }
@keyframes eqbar { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
label.btn-like { display: inline-block; margin: 0; background: var(--accent); color: #fff;
  padding: 8px 14px; border-radius: 8px; cursor: pointer; }
label.btn-like:hover { filter: brightness(1.1); }
