:root {
  --bg: #0a0a0a;
  --panel: #181818;
  --panel-2: #1c1c1c;
  --input: #2a2a2a;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #a7a7a7;
  --muted-2: #6e6e6e;
  --accent: #1DB954;
  --accent-weak: color-mix(in srgb, var(--accent), transparent 88%);
  --accent-line: color-mix(in srgb, var(--accent), transparent 70%);
  --accent-glow: color-mix(in srgb, var(--accent), transparent 55%);
  --accent-strong: color-mix(in srgb, var(--accent), #000 45%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-glow); color: #fff; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 8px; border: 3px solid var(--bg); }
@keyframes vp-spin { to { transform: rotate(360deg); } }
@keyframes vp-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes vp-pop { from { opacity: 0; transform: scale(.96) translateY(-6px); } to { opacity: 1; transform: none; } }
a { color: inherit; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; height: 72px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: height 0.22s ease;
}
.topbar.at-top { height: 96px; border-bottom-color: transparent; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
/* Taille native = la grande (net). On RÉDUIT au scroll via transform (GPU, fluide, sans tremblement). */
.brand-logo { height: 62px; display: block; transform-origin: left center; transform: scale(0.71); transition: transform 0.25s ease; will-change: transform; }
.topbar.at-top .brand-logo { transform: scale(1); }
.logo-dot {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 22px var(--accent-glow); display: flex; align-items: center; justify-content: center; flex: none;
}
.logo-dot::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.4px; color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.nav { display: flex; align-items: center; gap: 4px; margin-right: 6px; }
.nav a {
  text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 8px;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

/* ---------- Color picker ---------- */
.picker { position: relative; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--panel); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .12s, border-color .12s;
}
.icon-btn:hover { transform: scale(1.06); border-color: rgba(255, 255, 255, 0.3); }
.icon-btn .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.picker-panel {
  position: absolute; right: 0; top: calc(100% + 12px); width: 288px;
  background: var(--panel-2); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px;
  padding: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); animation: vp-pop .16s ease; z-index: 60;
}
.picker-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.picker-head span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.reset-btn { background: none; border: none; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; padding: 2px 4px; }
.reset-btn:hover { color: #fff; }
.swatches { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: 18px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform .12s; padding: 0; }
.swatch:hover { transform: scale(1.12); }
.swatch.active { border-color: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.5); }
.hue-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hue-row .label { font-size: 12px; font-weight: 600; color: #cfcfcf; }
.hue-row .hex { font-size: 12px; font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: #3a3a3a; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid var(--panel); margin-top: -6px; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: #3a3a3a; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid var(--panel); border-radius: 50%; background: var(--accent); }
input[data-rainbow]::-webkit-slider-runnable-track { height: 12px; border-radius: 6px; background: linear-gradient(to right,#ff3b3b,#ffec3b,#3bff7a,#3bd4ff,#3b6bff,#c23bff,#ff3bb0,#ff3b3b); }
input[data-rainbow]::-webkit-slider-thumb { background: #fff; width: 20px; height: 20px; margin-top: -4px; border: 3px solid rgba(0,0,0,.25); }
input[data-rainbow]::-moz-range-track { height: 12px; border-radius: 6px; background: linear-gradient(to right,#ff3b3b,#ffec3b,#3bff7a,#3bd4ff,#3b6bff,#c23bff,#ff3bb0,#ff3b3b); }
input[data-rainbow]::-moz-range-thumb { background: #fff; border: 3px solid rgba(0,0,0,.25); }
.picker-preview { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.picker-preview .chip { width: 24px; height: 24px; border-radius: 7px; background: var(--accent); flex: none; box-shadow: 0 0 14px var(--accent-glow); }
.picker-preview span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.menu-sep { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 14px -18px; }
.menu-logout { display: flex; align-items: center; gap: 9px; padding: 4px 2px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }
.menu-logout:hover { color: #ff6b6b; }
.menu-logout-ico { font-size: 15px; }

/* ---------- Screens ---------- */
.screen { max-width: 720px; margin: 0 auto; padding: 44px 24px 80px; animation: vp-rise .35s ease both; }
.screen-wide { max-width: 1040px; }

/* ---------- Landing ---------- */
.hero {
  min-height: calc(100vh - 64px); display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 40px 24px; position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: -160px; width: 540px; height: 540px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent), transparent 75%), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero-inner { position: relative; animation: vp-rise .5s ease both; }
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.hero h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; margin: 0 0 20px; max-width: 760px; }
.hero .sub { font-size: clamp(16px, 2.4vw, 20px); color: var(--muted); max-width: 520px; margin: 0 auto 38px; line-height: 1.5; }
.hero .fineprint { font-size: 13px; color: var(--muted-2); margin-top: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: #000; border: none; border-radius: 500px;
  padding: 12px 24px; font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none;
  transition: transform .12s, filter .12s;
}
.btn:hover { transform: scale(1.04); filter: brightness(1.07); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-lg { padding: 17px 34px; font-size: 17px; box-shadow: 0 10px 40px var(--accent-glow); }
.btn-sm { padding: 11px 22px; font-size: 14px; }
.btn-block { width: 100%; padding: 16px; font-size: 16px; margin-top: 22px; }
.btn-ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.18);
  border-radius: 500px; padding: 11px 22px; font-size: 14px; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .12s, border-color .12s;
}
.btn-ghost:hover { background: var(--accent-weak); border-color: var(--accent); }
.play-ico { width: 22px; height: 22px; border-radius: 50%; background: #000; display: flex; align-items: center; justify-content: center; flex: none; }
.play-ico::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(0,0,0,.25); border-top-color: #000; animation: vp-spin .7s linear infinite; display: inline-block; }
.link-muted { color: var(--muted); text-decoration: none; }
.link-muted:hover { color: #fff; }

/* ---------- Create card ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.screen h2.title { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.screen .subtitle { color: var(--muted); margin: 0 0 30px; font-size: 15px; }
.field-label { display: block; font-size: 13px; font-weight: 700; color: #cfcfcf; margin-bottom: 10px; }
.field-label .opt { color: var(--muted-2); font-weight: 500; }
textarea, input[type=text], input[type=number], select {
  width: 100%; background: var(--input); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 14px 16px; font-size: 15px; color: #fff; transition: border-color .12s, box-shadow .12s;
}
textarea { resize: vertical; line-height: 1.5; }
select { -webkit-appearance: none; appearance: none; cursor: pointer; padding: 13px 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%23a7a7a7' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-line); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.count-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.count-head .field-label { margin: 0; }
.count-val { font-size: 14px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.count-box { background: var(--input); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 14px 10px; }
.mt18 { margin-top: 18px; }

/* Toggles (switches) */
.toggles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.toggle { display: flex; align-items: center; gap: 12px; background: #222; border: 1px solid var(--line-2);
  border-radius: 12px; padding: 12px 16px; cursor: pointer; flex: 1; min-width: 220px; margin: 0; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw { width: 42px; height: 24px; border-radius: 999px; background: #4a4a4a; position: relative; flex: none; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle input:checked + .sw { background: var(--accent); }
.toggle input:checked + .sw::after { transform: translateX(18px); }
.toggle-text b { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.toggle-text small { display: block; font-size: 12px; color: #8a8a8a; }
.gen-note { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0 0; line-height: 1.4; }
.gen-note b { color: #fff; }

/* ---------- Reiterate banner ---------- */
.reiter {
  display: flex; align-items: flex-start; gap: 14px; background: var(--accent-weak);
  border: 1px solid var(--accent-line); border-radius: 14px; padding: 16px 18px; margin-bottom: 26px;
}
.reiter .ico { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #000;
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.reiter b { font-weight: 700; font-size: 15px; }
.reiter small { display: block; font-size: 13px; color: #bdbdbd; line-height: 1.4; margin-top: 2px; }
.prompt-current { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.prompt-current summary { cursor: pointer; }
.prompt-current p { color: #cfcfcf; margin: 8px 0 0; }

/* ---------- Playlist / result head ---------- */
.pl-head { display: flex; align-items: flex-end; gap: 22px; margin-bottom: 22px; }
.pl-cover { width: 150px; height: 150px; border-radius: 12px; flex: none; box-shadow: 0 8px 30px rgba(0,0,0,.5); object-fit: cover; }
.pl-cover-fallback { display: grid; place-items: center; font-size: 16px; color: #000;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong)); }
.pl-kicker { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; color: var(--muted); margin: 0; }
.pl-title { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 6px; }
.pl-sub { color: var(--muted); margin: 0; font-size: 15px; }
.pl-sub b { color: #fff; }
.open-link { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.open-link:hover { text-decoration: underline; }
.pl-actions { display: flex; gap: 10px; margin: 0 0 18px; flex-wrap: wrap; }

/* ---------- Tracklist ---------- */
.tracklist { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; list-style: none; margin: 0; padding: 0; }
.trk { display: flex; align-items: center; gap: 14px; padding: 11px 18px; border-bottom: 1px solid rgba(255,255,255,.045); }
.trk:last-child { border-bottom: none; }
.trk:hover { background: rgba(255,255,255,.04); }
.trk-n { width: 22px; text-align: right; color: var(--muted-2); font-size: 13px; font-variant-numeric: tabular-nums; flex: none; }
.trk-main { flex: 1; min-width: 0; }
.trk-title { font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk-artist { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk-glyph { color: var(--accent); font-size: 13px; flex: none; }
.trk-actions { display: flex; gap: 6px; flex: none; }
.trk-act {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2);
  background: #222; color: var(--muted); cursor: pointer; font-size: 13px; line-height: 1;
  display: grid; place-items: center; transition: background .12s, color .12s, transform .12s;
}
.trk-act:hover { background: var(--card-hover); color: #fff; transform: scale(1.1); }
.trk-act[data-action="like"]:hover { color: #ff5c8a; }
.trk-act.liked { color: #ff5c8a; border-color: #ff5c8a; }
.trk-act:disabled { cursor: default; }
.trk-msg { text-align: center; font-size: 14px; font-weight: 600; margin: 12px 0 0; }
.btn-danger:hover { background: rgba(255,107,107,.14); border-color: #ff6b6b; color: #ff6b6b; }
.notfound { margin-top: 18px; }
.notfound summary { color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 2px; }
.notfound summary:hover { color: #fff; }
.notfound .box { background: #141414; border: 1px solid var(--line); border-radius: 12px; padding: 6px 16px; margin-top: 8px; }
.notfound .box div { padding: 9px 0; font-size: 14px; color: #8a8a8a; border-bottom: 1px solid rgba(255,255,255,.04); }
.notfound .box div:last-child { border-bottom: none; }

/* ---------- Library ---------- */
.lib-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.lib-head p { color: var(--muted); margin: 4px 0 0; font-size: 15px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.lib-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; transition: background .15s, transform .15s; text-decoration: none; }
.lib-card:hover { background: #1f1f1f; transform: translateY(-2px); }
.lib-icon { width: 46px; height: 46px; border-radius: 11px; background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: 0 6px 20px var(--accent-glow); flex: none; }
.lib-icon::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: rgba(0,0,0,.5); }
.lib-icon-img { width: 46px; height: 46px; border-radius: 11px; object-fit: cover; margin-bottom: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.lib-cover { width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; object-fit: cover; margin-bottom: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.lib-name { font-size: 17px; font-weight: 700; margin: 0 0 7px; letter-spacing: -.01em; color: #fff; }
.lib-excerpt { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lib-meta { font-size: 12px; color: var(--muted-2); margin-top: auto; margin-bottom: 16px; }
.lib-card .btn-ghost { width: 100%; padding: 10px; font-size: 13px; }

/* ---------- Empty ---------- */
.empty { text-align: center; padding: 70px 20px; border: 1px dashed rgba(255,255,255,.12); border-radius: 18px; }
.empty .badge { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-weak); align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; color: var(--accent); }
.empty h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.empty p { color: var(--muted); margin: 0 0 24px; font-size: 15px; }

/* ---------- Page playlist (v2) ---------- */
.pl2-wash {
  position: absolute; top: 0; left: 0; right: 0; height: 460px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent), transparent 78%), transparent 92%);
}
.pl2 { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 40px 24px 90px; animation: vp-rise .35s ease both; }

.pl2-head { display: flex; gap: 28px; align-items: flex-end; }
.pl2-cover { width: 220px; height: 220px; border-radius: 14px; flex: none; object-fit: cover; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.pl2-cover-fallback {
  display: flex; align-items: flex-end; padding: 16px; color: rgba(255,255,255,.55); font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 14px, rgba(255,255,255,0) 14px 28px),
    linear-gradient(135deg, color-mix(in srgb, var(--accent), #000 18%), color-mix(in srgb, var(--accent), #000 64%));
}
.pl2-headmeta { flex: 1; min-width: 0; padding-bottom: 6px; }
.pl2-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #cfcfcf; margin-bottom: 14px; }
.pl2-name { font-size: clamp(34px, 5.5vw, 60px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; margin: 0 0 16px; }
.pl2-sub { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.pl2-sub strong { color: #fff; }
.pl2-sub .dot { opacity: .5; }
.pl2-plan { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); border-radius: 500px; padding: 6px 14px; font-size: 12px; color: #bdbdbd; }
.pl2-plan .d { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.pl2-actions { display: flex; align-items: center; gap: 10px; margin: 30px 0 10px; }
.pl2-actions .spacer { flex: 1; }

.pl2-list { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 14px; }
.pl2-list-head { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.pl2-n { width: 22px; text-align: right; flex: none; color: var(--muted-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.pl2-row { display: flex; align-items: center; gap: 14px; padding: 11px 18px; border-bottom: 1px solid rgba(255,255,255,.045); overflow: hidden; }
.pl2-row:last-of-type { border-bottom: none; }
.pl2-row:hover { background: rgba(255,255,255,.04); }
.pl2-tmain { flex: 1; min-width: 0; }
.pl2-title { font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl2-artist { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl2-flash { font-size: 13px; font-weight: 700; flex: none; }
.pl2-rowact { display: flex; align-items: center; gap: 6px; flex: none; }
.pl2-act { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: #222; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .12s; }
.pl2-act:hover { transform: scale(1.08); }
.act-like:hover { border-color: var(--accent); color: var(--accent); }
.act-like.liked { color: #ff5c8a; border-color: #ff5c8a; }
.act-like.liked svg { fill: #ff5c8a; }
.act-block:hover { border-color: #ff6b6b; color: #ff6b6b; }
.act-remove:hover { border-color: #fff; color: #fff; background: #2c2c2c; }
.pl2-row.removing { height: 0 !important; padding-top: 0; padding-bottom: 0; opacity: 0; transition: height .28s ease, opacity .28s ease, padding .28s ease; }

.pl2-empty { text-align: center; padding: 60px 24px; }
.pl2-empty .badge { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-weak); align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; color: var(--accent); }
.pl2-empty h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.pl2-empty p { color: var(--muted); margin: 0 auto 22px; font-size: 14px; max-width: 360px; line-height: 1.5; }

.pl2-reiter { background: var(--panel); border: 1px solid color-mix(in srgb, var(--accent), transparent 80%); border-radius: 18px; padding: 24px; margin-top: 26px; scroll-margin-top: 90px; }
.pl2-reiter-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.pl2-reiter-head .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #000; display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.pl2-reiter-head h3 { font-size: 18px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.pl2-reiter-head p { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.pl2-reiter-head p strong { color: #fff; }

/* Modale suppression */
.pl2-modal { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: vp-pop .14s ease; }
.pl2-modal[hidden] { display: none; }
.pl2-modal-box { background: var(--panel-2); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 28px; max-width: 380px; width: 100%; box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.pl2-modal-box h3 { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.pl2-modal-box p { color: var(--muted); margin: 0 0 24px; font-size: 14px; line-height: 1.5; }
.pl2-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.btn-del { background: #ff6b6b; color: #1a0000; }
.btn-del:hover { filter: brightness(1.06); transform: none; }

/* Toast */
.pl2-toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 130; background: #fff; color: #000; font-size: 14px; font-weight: 700; padding: 12px 22px; border-radius: 500px; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.pl2-toast[hidden] { display: none; }
.pl2-toast.show { animation: vp-toast 2.4s ease forwards; }
@keyframes vp-toast { 0% { opacity: 0; transform: translateX(-50%) translateY(8px); } 12% { opacity: 1; transform: translateX(-50%); } 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-6px); } }

@media (max-width: 720px) {
  .pl2-head { flex-direction: column; align-items: flex-start; }
  .pl2-cover { width: 160px; height: 160px; }
}

/* ---------- Loader génération ---------- */
.gen-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: vp-rise .25s ease both;
}
.gen-overlay[hidden] { display: none; }  /* sinon display:flex écrase l'attribut hidden */
.gen-eq { display: flex; align-items: center; gap: 7px; height: 70px; }
.gen-eq span {
  width: 11px; height: 70px; border-radius: 6px;
  background: linear-gradient(var(--accent), var(--accent-strong));
  transform-origin: center; animation: eq 1.1s ease-in-out infinite;
}
.gen-eq span:nth-child(1) { animation-delay: 0s; }
.gen-eq span:nth-child(2) { animation-delay: .12s; }
.gen-eq span:nth-child(3) { animation-delay: .24s; }
.gen-eq span:nth-child(4) { animation-delay: .36s; }
.gen-eq span:nth-child(5) { animation-delay: .24s; }
.gen-eq span:nth-child(6) { animation-delay: .12s; }
.gen-eq span:nth-child(7) { animation-delay: 0s; }
@keyframes eq { 0%, 100% { transform: scaleY(.22); } 50% { transform: scaleY(1); } }
.gen-overlay-text { font-size: 19px; font-weight: 800; margin: 6px 0 0; letter-spacing: -.01em; }
.gen-overlay-sub { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Error ---------- */
.error-box { text-align: center; }
.error-box .error { color: #ff6b6b; }

@media (max-width: 540px) {
  .grid2 { grid-template-columns: 1fr; }
  .pl-head { flex-direction: column; align-items: flex-start; }
  .nav { display: none; }
}
