/* ==========================================================
   Audyo — mode Player
   ========================================================== */

/* ---------- boutons de lancement (barre latérale) ---------- */
.launchers {
  position: sticky; bottom: 0; z-index: 2; flex: none;
  display: grid; gap: 10px;
  padding-top: 10px;
  background: linear-gradient(180deg, transparent, var(--bg) 18px);
}
.player-launch {
  position: relative;
  flex: none;
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 84px; padding: 14px 16px;
  border: 0; border-radius: 18px; text-align: left; color: #fff;
  background: linear-gradient(120deg, #ff8a1f, #ff4757, #ec4899, #a855f7, #3b82f6, #22d3ee, #ff8a1f);
  background-size: 300% 100%;
  animation: launchShift 8s linear infinite;
  box-shadow: 0 10px 28px rgba(236, 72, 153, .35), 0 0 0 1px rgba(255, 255, 255, .15) inset;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.player-launch::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: launchShine 3.6s ease-in-out infinite;
}
.player-launch::after {
  content: ""; position: absolute; inset: 2px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 55%);
  pointer-events: none;
}
.player-launch:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(236, 72, 153, .5), 0 0 0 1px rgba(255, 255, 255, .25) inset; }
.player-launch:active { transform: translateY(0); }
.player-launch:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pl-eq { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 38px; flex: none; }
.pl-eq i { width: 5px; border-radius: 3px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .8); animation: eqBounce 1s ease-in-out infinite; }
.pl-eq i:nth-child(1) { height: 40%; animation-delay: -.2s; }
.pl-eq i:nth-child(2) { height: 90%; animation-delay: -.5s; }
.pl-eq i:nth-child(3) { height: 60%; animation-delay: -.1s; }
.pl-eq i:nth-child(4) { height: 100%; animation-delay: -.7s; }
.pl-eq i:nth-child(5) { height: 50%; animation-delay: -.35s; }
.pl-text { position: relative; flex: 1; display: flex; flex-direction: column; line-height: 1.1; }
.pl-text strong { font-family: var(--font-title); font-size: 30px; font-weight: 800; letter-spacing: .5px; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.pl-text small { font-size: 12px; font-weight: 700; opacity: .92; }
.pl-go {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: #ff4757;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  animation: goPulse 2s ease-in-out infinite;
}
.pl-go .ico { margin-left: 3px; }
@keyframes launchShift { to { background-position: 300% 0; } }
@keyframes launchShine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes eqBounce { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.pl-eq i { transform-origin: bottom; }
@keyframes goPulse { 50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, .25); } }

/* ---------- bascule de mode ---------- */
.mode-bar { display: none; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.mode-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-title); font-size: 22px; font-weight: 800;
  background: linear-gradient(90deg, #22d3ee, #a855f7, #ff8a1f); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.6s ease-in-out infinite; }
.back-editor { min-height: 42px; }

body.mode-alt .toolbar,
body.mode-alt .sidebar,
body.mode-alt .editor,
body.mode-alt .inspector,
body.mode-alt .transport,
body.mode-alt #btnToggleSidebar,
body.mode-alt #btnToggleInspector { display: none !important; }
body.mode-alt .mode-bar { display: flex; }
body.mode-alt .main { grid-template-columns: minmax(0, 1fr); }

/* ---------- vue Player ---------- */
.player {
  min-height: 0;
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr) 420px;
  gap: 12px;
}
.player[hidden] { display: none; }
.pl-card {
  background: linear-gradient(180deg, rgba(24, 35, 92, .8), rgba(17, 26, 74, .8));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  min-height: 0;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; font-family: var(--font-title); font-size: 18px; font-weight: 700; }

/* ---------- lecture en cours ---------- */
.np { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; scrollbar-width: thin; }
.np-art { position: relative; height: 210px; flex: none; }
.sleeve {
  position: absolute; left: 0; top: 0; z-index: 2;
  width: 210px; height: 210px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, #2b4bd8, #0c1440 70%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .1) inset;
  display: grid; place-items: center;
}
.sleeve img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sleeve .sleeve-logo { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(59, 130, 246, .6)); }
.sleeve img[hidden] { display: none; }
.vinyl {
  position: absolute; left: 6px; top: 5px; z-index: 1;
  width: 200px; height: 200px; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 17%, rgba(0, 0, 0, 0) 17%),
    repeating-radial-gradient(circle, #15161c 0 1.5px, #0b0c10 1.5px 3.5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55), inset 0 0 0 2px #23252e;
  display: grid; place-items: center;
  transform: translateX(16%);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.vinyl::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 20%, rgba(255, 255, 255, .12) 25%, transparent 32% 70%, rgba(255, 255, 255, .08) 75%, transparent 82%);
}
.vinyl img { width: 36%; height: 36%; border-radius: 50%; background: #0c1440; box-shadow: 0 0 0 3px #ff4757; }
.np-art.playing .vinyl { transform: translateX(42%); }
.np-art.playing .vinyl img { animation: spin 2.4s linear infinite; }
.np-art.playing .vinyl::before { animation: none; }

.lcd {
  flex: none;
  border-radius: 14px; padding: 10px 12px;
  background: linear-gradient(180deg, #03150f, #021008);
  border: 1px solid rgba(34, 197, 94, .35);
  box-shadow: inset 0 0 22px rgba(34, 197, 94, .14), 0 0 0 3px rgba(0, 0, 0, .25);
  font-family: var(--font-mono);
  color: #4ade80; text-shadow: 0 0 8px rgba(74, 222, 128, .7);
}
.lcd-marquee { overflow: hidden; white-space: nowrap; font-size: 15px; font-weight: 700; }
.lcd-marquee span { display: inline-block; }
.lcd-marquee span.run { animation: marquee linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.lcd-row { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.lcd-tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; border: 1px solid rgba(74, 222, 128, .35); color: #86efac; }
.lcd-tag.fmt { margin-left: auto; color: #fde047; border-color: rgba(253, 224, 71, .45); text-shadow: 0 0 8px rgba(253, 224, 71, .6); }
.lcd:not(.playing) .lcd-marquee span.run { animation-play-state: paused; }

.np-meta { min-width: 0; }
.np-title { margin: 0; font-family: var(--font-title); font-size: 24px; font-weight: 800; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.np-artist { margin: 4px 0 0; color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.seek { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.np-time {
  border: 0; background: transparent; padding: 4px 6px; border-radius: 8px; min-width: 6ch; text-align: left;
  font-family: var(--font-mono); font-weight: 700; font-size: 18px; color: var(--cyan); text-shadow: 0 0 12px rgba(34, 211, 238, .5);
}
.np-time:hover { background: rgba(34, 211, 238, .1); }
.np-dur { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
#npSeek::-webkit-slider-runnable-track { background: linear-gradient(90deg, #22d3ee, #a855f7 var(--p, 0%), rgba(255, 255, 255, .12) var(--p, 0%)); height: 8px; }
#npSeek::-webkit-slider-thumb { border-color: #a855f7; margin-top: -5px; }
#npSeek::-moz-range-progress { background: linear-gradient(90deg, #22d3ee, #a855f7); height: 8px; }
#npSeek::-moz-range-thumb { border-color: #a855f7; }

.np-controls { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ctl {
  position: relative;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .05); color: var(--text);
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .1s ease;
}
.ctl:hover { background: rgba(255, 255, 255, .12); }
.ctl:active { transform: scale(.94); }
.ctl.big {
  width: 68px; height: 68px; border: 0; color: #fff;
  background: var(--grad-brand); box-shadow: 0 8px 24px rgba(255, 71, 87, .5);
}
.ctl.big .ico { width: 30px; height: 30px; }
.ctl.big.playing { background: linear-gradient(135deg, #22d3ee, #3b82f6 60%, #a855f7); box-shadow: 0 8px 24px rgba(59, 130, 246, .55); }
.ctl.toggle[aria-pressed="true"] { color: #052e14; background: var(--green); border-color: transparent; box-shadow: 0 0 14px rgba(34, 197, 94, .5); }
.rep-one {
  position: absolute; top: -3px; right: -3px; display: none;
  width: 18px; height: 18px; border-radius: 50%; font-size: 11px; line-height: 18px; text-align: center;
  background: var(--yellow); color: #1b1400; font-family: var(--font-mono);
}
.ctl.one .rep-one { display: block; }

.np-sliders { display: grid; gap: 6px; }
.mini-slider { display: grid; grid-template-columns: 28px 1fr 64px; align-items: center; gap: 8px; color: var(--orange); }
.mini-slider output { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-align: right; }
.bal-lr { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--pink); }
.mini-slider:nth-child(2) input::-webkit-slider-runnable-track { background: rgba(255, 255, 255, .12); }
.mini-slider:nth-child(2) input::-webkit-slider-thumb { border-color: var(--pink); }
.mini-slider:nth-child(3) { color: var(--yellow); }
.mini-slider:nth-child(3) input::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--yellow) 0 var(--p, 50%), rgba(255, 255, 255, .12) var(--p, 50%)); }
.mini-slider:nth-child(3) input::-webkit-slider-thumb { border-color: var(--yellow); }
.np-edit { width: 100%; }
.np-edit:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- centre : visualisation + EQ ---------- */
.pl-center { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; min-height: 0; }
.viz-card { display: flex; flex-direction: column; min-height: 220px; }
.viz-stage { position: relative; flex: 1; min-height: 0; border-radius: 14px; overflow: hidden; }
#plViz, .viz-gl { position: absolute; inset: 0; }
.viz-gl { width: 100%; height: 100%; display: block; cursor: pointer; border-radius: 14px; background: #000; }
.viz-gl[hidden] { display: none; }
.viz-hud {
  position: absolute; left: 18px; bottom: 16px; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; gap: 2px; max-width: 70%;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .8);
  animation: hudIn .8s ease-out;
}
.viz-hud[hidden] { display: none; }
.hud-tag { font: 800 10px var(--font-mono); letter-spacing: 4px; color: rgba(255, 255, 255, .55); }
.viz-hud strong {
  font-family: var(--font-title); font-size: clamp(18px, 2.4vw, 34px); font-weight: 800; line-height: 1.05;
  background: linear-gradient(90deg, #fff, #a5f3fc 40%, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.viz-hud small { font-weight: 700; font-size: 13px; color: rgba(226, 232, 255, .8); }
@keyframes hudIn { from { opacity: 0; transform: translateY(8px); } }
.hyper-chip { position: relative; }
.hyper-chip:not(.active) { background: linear-gradient(90deg, #ff8a1f, #ec4899, #a855f7, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.viz-full {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(5, 10, 36, .55); color: #fff;
  backdrop-filter: blur(4px); opacity: .55;
  transition: background-color .18s ease, opacity .18s ease;
}
.viz-stage:hover .viz-full, .viz-full:focus-visible { opacity: 1; }
.viz-full:hover { background: rgba(34, 211, 238, .3); }
.viz-card:fullscreen { padding: 0; border-radius: 0; border: 0; background: #000; }
.viz-card:fullscreen .card-head {
  position: absolute; top: 14px; left: 16px; right: 16px; z-index: 3; margin: 0;
  opacity: 0; transition: opacity .3s ease;
}
.viz-card:fullscreen:hover .card-head { opacity: 1; }
.viz-card:fullscreen .viz-stage, .viz-card:fullscreen #plViz, .viz-card:fullscreen .viz-gl { border-radius: 0; border: 0; }
.viz-card:fullscreen .viz-hud { left: 40px; bottom: 36px; }
#plViz {
  width: 100%; height: 100%; display: block; cursor: pointer;
  border-radius: 14px;
  background:
    radial-gradient(600px 300px at 50% 120%, rgba(168, 85, 247, .18), transparent 70%),
    radial-gradient(500px 260px at 50% -20%, rgba(34, 211, 238, .12), transparent 70%),
    #050a24;
  border: 1px solid var(--line);
}
.chips { display: flex; gap: 4px; padding: 3px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.chip-btn {
  min-height: 34px; padding: 0 12px; border: 0; border-radius: 99px; background: transparent;
  font-weight: 800; font-size: 13px; color: var(--muted);
  transition: background-color .18s ease, color .18s ease;
}
.chip-btn:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.chip-btn.active { background: linear-gradient(90deg, #22d3ee, #a855f7); color: #fff; }

.eq-tools { display: flex; align-items: center; gap: 10px; }
.eq-tools select { height: 38px; }
.switch {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px 0 4px; border-radius: 99px;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .06);
  font-weight: 800; font-size: 12px; font-family: var(--font-mono);
}
.switch .knob { width: 26px; height: 26px; border-radius: 50%; background: var(--dim); transition: background-color .2s ease, box-shadow .2s ease; }
.switch[aria-checked="true"] { border-color: rgba(34, 197, 94, .6); color: #86efac; }
.switch[aria-checked="true"] .knob { background: var(--green); box-shadow: 0 0 12px var(--green); }

.eq { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; align-items: stretch; transition: opacity .2s ease; }
.eq.off { opacity: .4; }
.band { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.band.pre { background: rgba(250, 204, 21, .07); margin-right: 6px; }
.band output { font-family: var(--font-mono); font-size: 11px; color: var(--cyan); min-height: 14px; }
.band.pre output { color: var(--yellow); }
.band label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--muted); }
.band input[type="range"] {
  writing-mode: vertical-lr; direction: rtl;
  width: 24px; height: 120px; margin: 0;
}
.band input[type="range"]::-webkit-slider-runnable-track {
  width: 6px; height: 100%; border-radius: 6px;
  background: linear-gradient(0deg, #a855f7 0, #22d3ee var(--p, 50%), rgba(255, 255, 255, .1) var(--p, 50%));
}
.band input[type="range"]::-webkit-slider-thumb { margin-top: 0; margin-left: -6px; width: 18px; height: 18px; border-color: #22d3ee; }
.band.pre input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(0deg, #ff8a1f 0, #facc15 var(--p, 50%), rgba(255, 255, 255, .1) var(--p, 50%)); }
.band.pre input[type="range"]::-webkit-slider-thumb { border-color: var(--yellow); }
.band input[type="range"]::-moz-range-track { width: 6px; }
.band input[type="range"]::-moz-range-progress { background: linear-gradient(0deg, #a855f7, #22d3ee); width: 6px; }

/* ---------- playlist ---------- */
.playlist { display: flex; flex-direction: column; min-height: 0; }
.pl-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 12px; border-radius: 99px;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .05);
  font-weight: 800; font-size: 13px; color: var(--sky);
  transition: background-color .18s ease;
}
.pill > span:not(.ico) { color: var(--text); }
.pill .ico { width: 16px; height: 16px; }
.pill:hover { background: rgba(56, 189, 248, .14); }
.pill.icon-only { width: 38px; padding: 0; justify-content: center; color: var(--green); }
.pill.danger { color: var(--red); }
.pill.danger:hover { background: rgba(255, 71, 87, .14); }
.pill-select { height: 38px; border-radius: 99px; padding: 0 12px; font-size: 13px; font-weight: 800; }
.pl-search {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; margin-bottom: 8px;
  border-radius: 12px; border: 1px solid var(--line2); background: #0a1238; color: var(--muted);
}
.pl-search:focus-within { border-color: var(--cyan); }
.pl-search .ico { width: 16px; height: 16px; }
.pl-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font-weight: 600; font-size: 14px; }

.pl-list {
  list-style: none; margin: 0; padding: 0 4px 0 0;
  flex: 1; min-height: 120px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
  scrollbar-width: thin; scrollbar-color: var(--panel3) transparent;
}
.pl-list[hidden] { display: none; }
.pl-row {
  position: relative;
  display: grid; grid-template-columns: 28px 0 minmax(0, 1fr) auto auto 26px; align-items: center; gap: 8px;
  padding: 7px 6px 7px 8px; border-radius: 10px;
  cursor: pointer; user-select: none;
  transition: background-color .15s ease;
}
.pl-row:hover { background: rgba(255, 255, 255, .06); }
.pl-row.selected { background: rgba(59, 130, 246, .16); }
.pl-row.current { background: linear-gradient(90deg, rgba(255, 71, 87, .22), rgba(168, 85, 247, .16)); }
.pl-row.current .pl-title { color: #fff; }
.pl-row:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.pl-num { font-family: var(--font-mono); font-size: 12px; color: var(--dim); text-align: right; }
.pl-row.current .pl-num { display: none; }
.eqa { display: none; align-items: flex-end; gap: 2px; height: 14px; width: 28px; justify-content: flex-end; }
.pl-row.current .eqa { display: flex; grid-column: 1; grid-row: 1; }
.eqa i { width: 3px; height: 100%; border-radius: 2px; background: var(--red); transform-origin: bottom; transform: scaleY(.35); }
.pl-row.playing .eqa i { animation: eqBounce .9s ease-in-out infinite; }
.eqa i:nth-child(2) { animation-delay: -.3s !important; background: var(--orange); }
.eqa i:nth-child(3) { animation-delay: -.6s !important; background: var(--yellow); }
.pl-info { min-width: 0; grid-column: 3; }
.pl-title { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.pl-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-ext { font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, .07); color: var(--yellow); }
.pl-time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); min-width: 4.5ch; text-align: right; }
.pl-del { width: 26px; height: 26px; border-radius: 7px; border: 0; background: transparent; color: var(--dim); display: grid; place-items: center; opacity: 0; transition: opacity .15s ease, background-color .15s ease, color .15s ease; }
.pl-row:hover .pl-del, .pl-row:focus-within .pl-del { opacity: 1; }
.pl-del:hover { background: rgba(255, 71, 87, .2); color: var(--red); }
.pl-row.error .pl-title { color: #fda4af; text-decoration: line-through; text-decoration-color: rgba(253, 164, 175, .5); }
.pl-row.error .pl-sub { color: #fda4af; }
.pl-row.dragging { opacity: .4; }
.pl-row.drop-before::before, .pl-row.drop-after::after {
  content: ""; position: absolute; left: 6px; right: 6px; height: 3px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.pl-row.drop-before::before { top: -2px; }
.pl-row.drop-after::after { bottom: -2px; }

.pl-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
  padding: 24px 12px; border-radius: 16px; border: 2px dashed var(--line2); color: var(--muted); line-height: 1.55;
  min-height: 200px;
}
.pl-empty[hidden] { display: none; }
.pl-empty-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #fff; box-shadow: 0 10px 26px rgba(255, 71, 87, .4); }
.pl-empty-ico .ico { width: 30px; height: 30px; }
.pl-empty p { margin: 0; font-size: 14px; }
.pl-empty strong { color: var(--text); font-size: 16px; }
body.dragging.mode-player .playlist { box-shadow: 0 0 0 3px var(--cyan), 0 0 30px rgba(34, 211, 238, .4); }
body.dragging.mode-player .pl-empty { border-color: var(--cyan); background: rgba(34, 211, 238, .08); }

.formats { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; flex: none; }
.formats summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 800; font-size: 13px; color: var(--muted); min-height: 32px; list-style: none; }
.formats summary::-webkit-details-marker { display: none; }
.formats summary .ico { width: 16px; height: 16px; color: var(--yellow); }
.formats summary:hover { color: var(--text); }
.fmt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; margin-top: 8px; }
.fmt-chip { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; border: 1px solid; font-size: 12px; }
.fmt-chip b { color: var(--text); font-weight: 800; }
.fmt-chip small { font-weight: 800; }
.fmt-chip.ok { border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .08); color: #86efac; }
.fmt-chip.mid { border-color: rgba(250, 204, 21, .45); background: rgba(250, 204, 21, .08); color: #fde68a; }
.fmt-chip.no { border-color: rgba(255, 71, 87, .4); background: rgba(255, 71, 87, .07); color: #fda4af; }
.fmt-note { margin: 8px 0 0; font-size: 12px; color: var(--dim); line-height: 1.5; }

/* ---------- responsive ---------- */
@media (max-width: 1400px) {
  .player { grid-template-columns: 340px minmax(0, 1fr) 380px; }
  .np-art { height: 190px; }
  .sleeve { width: 190px; height: 190px; }
  .vinyl { width: 180px; height: 180px; }
}
@media (max-width: 1180px) {
  .player {
    grid-template-columns: 340px minmax(0, 1fr);
    grid-template-areas: "np list" "center center";
    grid-template-rows: max-content max-content;
    align-content: start;
    overflow-y: auto;
  }
  .np { grid-area: np; }
  .playlist { grid-area: list; max-height: 760px; }
  .pl-center { grid-area: center; grid-template-rows: 300px auto; }
}
@media (max-width: 860px) {
  .player { grid-template-columns: minmax(0, 1fr); grid-template-areas: "np" "list" "center"; grid-template-rows: max-content max-content max-content; }
  .np { overflow: visible; }
  .np-art { height: 170px; }
  .sleeve { width: 170px; height: 170px; }
  .vinyl { width: 160px; height: 160px; }
  .playlist { max-height: none; }
  .pl-list { max-height: 60vh; }
  .eq { grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 2px; }
  .band input[type="range"] { height: 100px; }
  .mode-title { display: none; }
  .back-editor { padding: 0 12px; font-size: 13px; }
}
@media (max-width: 520px) {
  .band label { font-size: 9px; }
  .band output { font-size: 9px; }
  .band.pre label { font-size: 8px; }
  .ctl { width: 42px; height: 42px; }
  .ctl.big { width: 60px; height: 60px; }
}

/* sélecteur de scène dans la visualisation */
.viz-scene {
  position: absolute; top: 10px; left: 10px; z-index: 3; height: 36px; max-width: 60%;
  padding: 0 10px; border-radius: 10px; font-size: 13px; font-weight: 700;
  background: rgba(5, 10, 36, .6); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
  backdrop-filter: blur(4px); opacity: .6; transition: opacity .18s ease;
}
.viz-scene[hidden] { display: none; }
.viz-stage:hover .viz-scene, .viz-scene:focus { opacity: 1; }
.viz-card:fullscreen .viz-scene { top: 70px; left: 16px; }

/* bouton mode soirée (barre du haut) */
.party-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 12px;
  border: 0; color: #fff; font-weight: 800; font-size: 14px;
  background: linear-gradient(120deg, #a855f7, #ec4899, #ff8a1f, #a855f7); background-size: 250% 100%;
  animation: launchShift 6s linear infinite;
  box-shadow: 0 6px 18px rgba(236, 72, 153, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.party-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(236, 72, 153, .5); }
.party-btn .ico { width: 18px; height: 18px; }
@media (max-width: 960px) { .party-btn { padding: 0 10px; font-size: 0; gap: 0; } .party-btn .ico { width: 20px; height: 20px; } }

/* ==========================================================
   Mode soirée
   ========================================================== */
.party {
  position: fixed; inset: 0; z-index: 90; background: #000; color: #fff; overflow: hidden;
  font-family: var(--font-ui);
}
.party[hidden] { display: none; }
.party-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.party-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 22%),
    linear-gradient(0deg, rgba(0, 0, 0, .7), transparent 45%);
}
.party-top {
  position: absolute; top: 0; left: 0; right: 0; padding: clamp(16px, 3vw, 40px);
  display: flex; justify-content: space-between; align-items: flex-start;
}
.party-brand { display: flex; align-items: center; gap: 12px; }
.party-brand img { width: clamp(48px, 5vw, 80px); height: auto; filter: drop-shadow(0 6px 18px rgba(59, 130, 246, .6)); }
.party-brand span { font-family: var(--font-title); font-weight: 800; font-size: clamp(24px, 2.6vw, 42px); }
.party-clock { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.party-clock b {
  font-family: var(--font-mono); font-weight: 700; font-size: clamp(42px, 6.5vw, 120px); line-height: 1; letter-spacing: 2px;
  text-shadow: 0 0 30px rgba(34, 211, 238, .6), 0 4px 30px rgba(0, 0, 0, .6);
}
.party-clock small { font-size: clamp(14px, 1.4vw, 24px); font-weight: 700; color: rgba(255, 255, 255, .8); margin-top: 6px; }
.party-now {
  position: absolute; left: clamp(16px, 3vw, 48px); right: clamp(16px, 3vw, 48px); bottom: clamp(20px, 4vw, 56px);
  display: flex; align-items: flex-end; gap: clamp(16px, 2.4vw, 36px);
}
.party-now.enter .party-cover { animation: partyCover .9s cubic-bezier(.2, .8, .2, 1); }
.party-now.enter .party-text > * { animation: partyText .9s cubic-bezier(.2, .8, .2, 1) backwards; }
.party-now.enter .party-text > *:nth-child(2) { animation-delay: .08s; }
.party-now.enter .party-text > *:nth-child(3) { animation-delay: .16s; }
.party-now.enter .party-text > *:nth-child(n+4) { animation-delay: .24s; }
@keyframes partyCover { from { opacity: 0; transform: translateY(30px) scale(.9) rotate(-4deg); } }
@keyframes partyText { from { opacity: 0; transform: translateY(24px); } }
.party-cover {
  flex: none; width: clamp(110px, 16vw, 280px); aspect-ratio: 1; border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .15);
  background: radial-gradient(circle at 30% 25%, #2b4bd8, #0c1440 70%);
}
.party-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.party-cover.logo img { object-fit: contain; padding: 10%; }
.party-text { min-width: 0; flex: 1; }
.party-tag { font: 800 clamp(11px, 1vw, 16px) var(--font-mono); letter-spacing: 6px; color: #67e8f9; }
.party-tag::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #ff4757; margin-right: 10px; box-shadow: 0 0 12px #ff4757; animation: pulse 1.6s ease-in-out infinite; vertical-align: middle; }
.party-text h1 {
  margin: 6px 0 0; font-family: var(--font-title); font-weight: 800; line-height: 1.02;
  font-size: clamp(34px, 6vw, 112px);
  background: linear-gradient(90deg, #fff 0%, #a5f3fc 35%, #f0abfc 70%, #fed7aa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .55));
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.party-artist { margin: 4px 0 0; font-size: clamp(18px, 2.3vw, 40px); font-weight: 700; color: rgba(255, 255, 255, .88); text-shadow: 0 2px 20px rgba(0, 0, 0, .7); }
.party-bar { margin-top: clamp(12px, 1.6vw, 24px); height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; max-width: 900px; }
.party-bar i { display: block; height: 100%; background: linear-gradient(90deg, #22d3ee, #a855f7, #ec4899, #ff8a1f); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 14px rgba(236, 72, 153, .7); }
.party-times { display: flex; justify-content: space-between; max-width: 900px; margin-top: 6px; font: 700 clamp(12px, 1vw, 16px) var(--font-mono); color: rgba(255, 255, 255, .75); }
.party-next { margin: clamp(8px, 1.2vw, 16px) 0 0; font-size: clamp(13px, 1.3vw, 22px); font-weight: 700; color: rgba(255, 255, 255, .7); }
.party-next:empty { display: none; }
.party-scene {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font: 800 clamp(12px, 1.2vw, 18px) var(--font-mono); letter-spacing: 10px; text-transform: uppercase;
  color: rgba(255, 255, 255, .9); text-shadow: 0 0 20px rgba(168, 85, 247, .9); opacity: 0; pointer-events: none;
}
.party-scene.show { animation: sceneName 3.2s ease-in-out; }
@keyframes sceneName { 0% { opacity: 0; letter-spacing: 2px; } 20%, 70% { opacity: 1; letter-spacing: 10px; } 100% { opacity: 0; letter-spacing: 16px; } }
.party-ctrl {
  position: absolute; top: clamp(16px, 3vw, 40px); left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 14px;
  background: rgba(5, 10, 36, .55); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(8px);
  transition: opacity .4s ease;
}
.party-ctrl select { height: 40px; font-size: 13px; }
.party-ctrl button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: #fff; font-weight: 800; font-size: 13px;
}
.party-ctrl button:hover { background: rgba(255, 255, 255, .18); }
.party-exit { background: rgba(255, 71, 87, .25) !important; border-color: rgba(255, 71, 87, .5) !important; }
.party.idle { cursor: none; }
.party.idle .party-ctrl { opacity: 0; pointer-events: none; }
@media (max-width: 720px) {
  .party-ctrl span { display: none; }
  .party-ctrl { top: auto; bottom: 8px; }
  .party-now { flex-direction: column; align-items: flex-start; bottom: 70px; }
}

/* état de la sauvegarde */
.save-state { flex-basis: 100%; font: 700 11px var(--font-mono); color: var(--dim); margin-top: -6px; }
.save-state:empty { display: none; }
.save-state.ok { color: #86efac; }
.save-state.ok::before { content: "● "; color: var(--green); }
.save-state.busy { color: var(--yellow); }
.save-state.err { color: #fda4af; }
