/* MoonTik t394a — éditeur Demandes de chansons */
.sp-ed {
  --sp-accent: #7c3aed;
  --sp-cyan: #22d3ee;
  --sp-ink: #eef2ff;
  --sp-muted: #94a3b8;
  --sp-panel: rgba(15, 10, 28, .72);
  --sp-line: rgba(165, 243, 252, .16);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  color: var(--sp-ink);
  font-family: "Segoe UI", "Avenir Next", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(124, 58, 237, .28), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(34, 211, 238, .16), transparent 55%),
    #0b0714;
  border-radius: 16px;
  overflow: hidden;
}
.sp-ed * { box-sizing: border-box; }
.sp-ed-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sp-line);
  background: rgba(10, 6, 20, .55);
  backdrop-filter: blur(12px);
}
.sp-ed-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.sp-ed-moon {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #7c3aed, #22d3ee);
  box-shadow: 0 0 18px rgba(34, 211, 238, .35);
  font-size: 18px; color: #fff;
}
.sp-ed-brand h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.sp-ed-brand p { margin: 0; font-size: 12px; color: var(--sp-muted); }
.sp-ed-soon {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, .45);
  color: #94a3b8;
  background: rgba(15, 23, 42, .4);
  font-size: 12px;
  white-space: nowrap;
}
.sp-ed-soon button {
  border: 0; border-radius: 999px;
  padding: 4px 10px;
  background: #334155; color: #94a3b8;
  cursor: not-allowed; opacity: .7;
  font-size: 11px;
}
.sp-ed-actions { display: flex; gap: 8px; margin-left: auto; }
.sp-ed-btn {
  border: 0; border-radius: 10px;
  padding: 8px 12px;
  font-weight: 650; font-size: 13px;
  cursor: pointer;
  color: #0b0714;
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  box-shadow: 0 6px 16px rgba(34, 211, 238, .22);
}
.sp-ed-btn:hover { filter: brightness(1.06); }
.sp-ed-btn.ghost {
  background: transparent; color: var(--sp-ink);
  border: 1px solid var(--sp-line);
  box-shadow: none;
}
.sp-ed-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 340px;
  gap: 0;
  flex: 1;
  min-height: 0;
}
.sp-ed-queue, .sp-ed-set {
  min-height: 0;
  overflow: auto;
  background: var(--sp-panel);
  border-right: 1px solid var(--sp-line);
  padding: 14px 12px;
}
.sp-ed-set { border-right: 0; border-left: 1px solid var(--sp-line); }
.sp-ed-col-h {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: #67e8f9; font-weight: 700; margin: 0 0 10px;
}
.sp-ed-q {
  display: flex; gap: 8px; align-items: center;
  padding: 8px; border-radius: 10px;
  background: rgba(255,255,255,.04);
  margin-bottom: 6px;
}
.sp-ed-q.is-now { outline: 1px solid rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .08); }
.sp-ed-q-cv {
  width: 36px; height: 36px; border-radius: 8px;
  background: #1a1028 center/cover no-repeat; flex: 0 0 36px;
}
.sp-ed-q-t { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-ed-q-s { font-size: 11px; color: var(--sp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-ed-q-tag { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #67e8f9; }

.sp-ed-stage-col {
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  padding: 12px;
  gap: 10px;
}
.sp-ed-bg-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.sp-ed-bg-bar button {
  border: 1px solid var(--sp-line);
  background: rgba(255,255,255,.04);
  color: var(--sp-ink);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}
.sp-ed-bg-bar button.is-on {
  border-color: #67e8f9;
  background: rgba(34, 211, 238, .12);
  color: #ecfeff;
}
.sp-ed-stage {
  position: relative;
  flex: 1;
  min-height: 360px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sp-line);
  background: #0b0b12;
}
.sp-ed-stage.is-dark { background: #0b0b12; }
.sp-ed-stage.is-light { background: #e8e8ee; }
.sp-ed-stage.is-checker {
  background-color: #cfcfd6;
  background-image:
    linear-gradient(45deg, #bbb 25%, transparent 25%),
    linear-gradient(-45deg, #bbb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #bbb 75%),
    linear-gradient(-45deg, transparent 75%, #bbb 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}
.sp-ed-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  z-index: 1;
}
.sp-ed-safe {
  display: none;
  pointer-events: none;
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(250, 204, 21, .85);
  box-shadow: 0 0 0 9999px rgba(0,0,0,.28);
  z-index: 2;
  border-radius: 2px;
}
.sp-ed-safe i {
  position: absolute; left: 8%; right: 8%; top: 8%; bottom: 8%;
  border: 1px dotted rgba(250, 204, 21, .45);
}
.sp-ed-stage.is-safe .sp-ed-safe { display: block; }
.sp-ed-stage.is-safe { background: #0b0b12; }

.sp-ed-search {
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid var(--sp-line);
  background: rgba(0,0,0,.28);
  color: var(--sp-ink);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}
.sp-ed-sec {
  border: 1px solid var(--sp-line);
  border-radius: 12px;
  margin-bottom: 10px;
  background: rgba(255,255,255,.03);
  overflow: hidden;
}
.sp-ed-sec > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #e0e7ff;
}
.sp-ed-sec > summary::-webkit-details-marker { display: none; }
.sp-ed-sec > summary::after {
  content: "▾"; float: right; color: var(--sp-muted); font-weight: 400;
}
.sp-ed-sec:not([open]) > summary::after { content: "▸"; }
.sp-ed-fields { padding: 0 12px 12px; display: grid; gap: 8px; }
.sp-ed-field { display: grid; gap: 4px; }
.sp-ed-field label {
  font-size: 11px; color: var(--sp-muted); letter-spacing: .02em;
}
.sp-ed-field input[type="range"] { width: 100%; accent-color: #22d3ee; }
.sp-ed-field input[type="color"] {
  width: 100%; height: 32px; border: 0; padding: 0; background: transparent; cursor: pointer;
}
.sp-ed-field input[type="text"], .sp-ed-field select {
  width: 100%;
  border: 1px solid var(--sp-line);
  background: rgba(0,0,0,.28);
  color: var(--sp-ink);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
}
.sp-ed-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
.sp-ed-row output { color: #67e8f9; font-variant-numeric: tabular-nums; }
.sp-ed-check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sp-ed-check input { accent-color: #22d3ee; }
.sp-ed-link {
  margin-top: 8px;
  font-size: 11px;
  color: var(--sp-muted);
  word-break: break-all;
  padding: 8px;
  border-radius: 8px;
  background: rgba(0,0,0,.25);
}

.sp-ed-themes {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px 14px;
  border-top: 1px solid var(--sp-line);
  background: rgba(10, 6, 20, .65);
}
.sp-ed-th {
  border: 1px solid var(--sp-line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  color: #fff;
  padding: 0;
  text-align: left;
}
.sp-ed-th.is-on { border-color: #67e8f9; box-shadow: 0 0 0 2px rgba(34, 211, 238, .35); }
.sp-ed-th .sw { height: 28px; display: block; }
.sp-ed-th .lb { display: block; padding: 5px 6px 6px; font-size: 10px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-ed-th[data-theme="moontik"] .sw { background: linear-gradient(135deg, #7c3aed, #22d3ee); }
.sp-ed-th[data-theme="boombox"] .sw { background: linear-gradient(135deg, #2a241c, #9eff6a 80%); }
.sp-ed-th[data-theme="partition"] .sw { background: repeating-linear-gradient(#f4ecd4 0 6px, #1a1520 6px 7px); }
.sp-ed-th[data-theme="crate"] .sw { background: repeating-linear-gradient(90deg, #8a5a28 0 8px, #4a2c10 8px 10px); }
.sp-ed-th[data-theme="arcade"] .sw { background: linear-gradient(#120018, #120018) padding-box, linear-gradient(90deg, #f5d36a, #ff4d6d); border-bottom: 3px solid #f5d36a; }
.sp-ed-th[data-theme="vinyl"] .sw { background: radial-gradient(circle at 50% 50%, #333 20%, #111 21%, #111 40%, #222 41%, #0a0a0c); }
.sp-ed-th[data-theme="minimal"] .sw { background: linear-gradient(#111, #fafafa); }
.sp-ed-th[data-theme="neon"] .sw { background: linear-gradient(135deg, #041012, #22d3ee 50%, #f472b6); }
.sp-ed-th[data-theme="glass"] .sw { background: linear-gradient(135deg, #e2e8f0, #94a3b8); }
.sp-ed-th[data-theme="radio"] .sw { background: linear-gradient(#24302c, #9dffb0); }

.sp-ed-toast {
  position: absolute;
  right: 18px; bottom: 18px;
  background: rgba(15, 10, 28, .92);
  border: 1px solid rgba(34, 211, 238, .4);
  color: #ecfeff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  z-index: 8;
}
.sp-ed-toast.is-on { opacity: 1; }

@media (max-width: 1100px) {
  .sp-ed-body { grid-template-columns: 200px minmax(0, 1fr) 280px; }
  .sp-ed-themes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
