/* ╔══════════════════════════════════════════════════════════════╗
   ║              Beartify — Friends Activity Panel CSS          ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* ── Overlay backdrop ──────────────────────────────────────── */
/* Le backdrop est derrière le panel (z-index inférieur).
   Il sert uniquement à capter les clics HORS du panel. */
#friendsPanelBackdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 198;   /* toujours SOUS le panel (199) */
  display: none;
  pointer-events: none;
}
#friendsPanelBackdrop.open {
  display: block;
  pointer-events: auto;
}

/* ── Panel container ─────────────────────────────────────────
   Positionné pour couvrir exactement le right-panel (#rightPanel)
   Variables CSS reprises depuis style.css :
     --top-bar-h  : 64px
     --player-h   : 90px
     --right-panel-w : 280px (300px sur wide)
─────────────────────────────────────────────────────────────── */
#friendsPanel {
  position: fixed;
  top: var(--top-bar-h, 64px);
  right: 0;
  bottom: var(--player-h, 90px);
  width: var(--right-panel-w, 280px);
  /* Fond : utilise les variables CSS injectées par settings.js applyTheme() */
  background: var(--bg-elevated, #000);
  border-left: 1px solid var(--decorative, rgba(255,255,255,0.07));
  display: flex;
  flex-direction: column;
  /* 199 = au-dessus du backdrop (198) et du right-panel, sous les modales (1200+) */
  z-index: 199;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
#friendsPanel.open {
  transform: translateX(0);
}

/* ── Thème clair ───────────────────────────────────────────── */
body.theme-clair #friendsPanel {
  background: rgba(250, 250, 252, 0.97);
  border-left-color: rgba(0,0,0,0.08);
  color: #121216;
}
body.theme-clair .fp-header-title,
body.theme-clair .fp-card-name,
body.theme-clair .fp-snippet-title,
body.theme-clair .fp-pp-name,
body.theme-clair .fp-pm-name {
  color: #121216;
}
body.theme-clair .fp-tab {
  color: rgba(18,18,22,0.45);
}
body.theme-clair .fp-tab.active {
  color: #121216;
  border-bottom-color: #1DB954;
}
body.theme-clair .fp-section-label,
body.theme-clair .fp-card-status,
body.theme-clair .fp-snippet-artist,
body.theme-clair .fp-pp-track-sub {
  color: rgba(18,18,22,0.5);
}
body.theme-clair .fp-friend-card:hover,
body.theme-clair .fp-search-result-item:hover {
  background: rgba(0,0,0,0.04);
}
body.theme-clair .fp-track-snippet {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
}
body.theme-clair .fp-track-snippet:hover {
  background: rgba(0,0,0,0.08);
}
body.theme-clair .fp-wip-banner {
  background: rgba(250,173,20,0.1);
}
body.theme-clair .fp-search-box {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
}
body.theme-clair .fp-search-input { color: #121216; }
body.theme-clair .fp-empty { color: rgba(18,18,22,0.4); }

/* ── Thème Starry Night ────────────────────────────────────── */
body.theme-starry #friendsPanel {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-left-color: rgba(255,255,255,0.08);
}

/* ── Header ────────────────────────────────────────────────── */
.fp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.fp-header-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex: 1;
  letter-spacing: -0.2px;
}
.fp-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  padding: 4px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.fp-close-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.fp-close-btn svg { width: 14px; height: 14px; }

/* ── Tabs ──────────────────────────────────────────────────── */
.fp-tabs {
  display: flex;
  padding: 8px 12px 0;
  gap: 4px;
  flex-shrink: 0;
}
.fp-tab {
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.1px;
  white-space: nowrap;
}
.fp-tab:hover { color: rgba(255,255,255,0.75); }
.fp-tab.active {
  color: #fff;
  border-bottom-color: #1DB954;
}

/* ── Scrollable content ─────────────────────────────────────── */
.fp-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.fp-content::-webkit-scrollbar { width: 4px; }
.fp-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
}

/* ── Search bar ─────────────────────────────────────────────── */
.fp-search-wrap {
  padding: 8px 12px 4px;
}
.fp-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 12px;
  transition: border-color 0.15s;
}
.fp-search-box:focus-within {
  border-color: rgba(255,255,255,0.2);
}
.fp-search-box svg {
  width: 14px; height: 14px;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}
.fp-search-input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  flex: 1;
  min-width: 0;
}
.fp-search-input::placeholder { color: rgba(255,255,255,0.3); }

/* ── Search results ─────────────────────────────────────────── */
.fp-search-results {
  padding: 4px 12px 8px;
}
.fp-search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-radius: 8px;
  cursor: default;
  transition: background 0.12s;
}
.fp-search-result-item:hover { background: rgba(255,255,255,0.05); }
.fp-search-result-item .fp-avatar {
  width: 36px; height: 36px;
  flex-shrink: 0;
}
.fp-search-result-meta { flex: 1; min-width: 0; }
.fp-search-result-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-search-result-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}
.fp-follow-btn {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.fp-follow-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
}
.fp-follow-btn.following {
  background: rgba(29,185,84,0.15);
  border-color: #1DB954;
  color: #1DB954;
}
.fp-follow-btn.following:hover {
  background: rgba(220,50,50,0.12);
  border-color: rgba(220,50,50,0.5);
  color: #ff5555;
}
.fp-follow-btn.following:hover::after { content: 'Se désabonner'; }
.fp-follow-btn.following span { }
.fp-follow-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Section label ──────────────────────────────────────────── */
.fp-section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 12px 16px 6px;
}

/* ── Empty state ─────────────────────────────────────────────── */
.fp-empty {
  text-align: center;
  padding: 32px 16px;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  line-height: 1.6;
}
.fp-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
  opacity: 0.5;
}

/* ── Friend Activity Card ───────────────────────────────────── */
.fp-friend-card {
  padding: 10px 12px;
  cursor: default;
  transition: background 0.12s;
  border-radius: 8px;
  margin: 0 4px 2px;
}
.fp-friend-card:hover { background: rgba(255,255,255,0.04); }
.fp-friend-card.is-playing { }

.fp-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

/* ── Avatar ──────────────────────────────────────────────────── */
.fp-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}
.fp-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.fp-avatar-initials { pointer-events: none; }


.fp-card-meta { flex: 1; min-width: 0; }
.fp-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-card-status {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 1px;
}
.fp-card-status.playing { color: #1DB954; }
.fp-card-status.paused  { color: #faad14; }

/* ── Track snippet — style Discord ─────────────────────────── */
.fp-track-snippet {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
  user-select: none;
}
.fp-track-snippet:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}
.fp-track-snippet:active { transform: translateY(0); }

.fp-snippet-art {
  position: relative;
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.07);
}
.fp-snippet-cover {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.fp-snippet-cover-ph {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fp-snippet-cover-ph svg { width: 20px; height: 20px; opacity: 0.35; }

.fp-snippet-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fp-snippet-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.1px;
}
.fp-snippet-artist {
  font-size: 11.5px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-snippet-timeline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.fp-snippet-pos,
.fp-snippet-dur {
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  flex-shrink: 0;
}
.fp-snippet-pos { color: rgba(255,255,255,0.65); }

.fp-snippet-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.fp-snippet-fill {
  height: 100%;
  background: #1DB954;
  border-radius: 2px;
  transition: width 1s linear;
}
.fp-track-snippet.paused .fp-snippet-fill { background: #faad14; }
.fp-track-snippet.paused .fp-snippet-pos  { color: #faad14; }

@keyframes fp-wave {
  0%, 100% { transform: scaleY(0.45); opacity: 0.75; }
  50%       { transform: scaleY(1.0);  opacity: 1; }
}
.fp-waveform.paused span { animation: none; opacity: 0.4; }

/* ── Footer (share playlist) ─────────────────────────────────── */
.fp-footer {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.fp-share-btn {
  width: 100%;
  background: rgba(29,185,84,0.12);
  border: 1.5px solid rgba(29,185,84,0.25);
  border-radius: 8px;
  color: #1DB954;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}
.fp-share-btn:hover {
  background: rgba(29,185,84,0.22);
  border-color: rgba(29,185,84,0.5);
}
.fp-share-btn svg { width: 14px; height: 14px; }

/* ── Share modal ─────────────────────────────────────────────── */
.fp-share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fp-fade-in 0.15s ease;
}
@keyframes fp-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fp-share-modal {
  background: #1a1a20;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
  width: 320px;
  max-width: 90vw;
  animation: fp-slide-up 0.2s cubic-bezier(0.4,0,0.2,1);
}
@keyframes fp-slide-up {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.fp-share-modal h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.fp-share-modal p {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin: 0 0 16px;
}
.fp-share-modal select,
.fp-share-modal input[type="text"] {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  padding: 9px 12px;
  margin-bottom: 10px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.fp-share-modal select:focus,
.fp-share-modal input[type="text"]:focus {
  border-color: rgba(255,255,255,0.25);
}
.fp-share-modal select option { background: #1a1a20; }
.fp-token-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(29,185,84,0.1);
  border: 1px solid rgba(29,185,84,0.25);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.fp-token-code {
  flex: 1;
  font-size: 18px;
  font-weight: 800;
  color: #1DB954;
  letter-spacing: 3px;
  font-family: monospace;
}
.fp-token-copy {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
  font-family: inherit;
}
.fp-token-copy:hover { color: #fff; }
.fp-token-copy svg { width: 14px; height: 14px; display: block; }
.fp-modal-btns {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.fp-modal-btn {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity 0.15s;
}
.fp-modal-btn:hover { opacity: 0.85; }
.fp-modal-btn.primary {
  background: #1DB954;
  color: #000;
}
.fp-modal-btn.secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ── Import tab ──────────────────────────────────────────────── */
.fp-import-section {
  padding: 8px 12px;
}
.fp-import-row {
  display: flex;
  gap: 6px;
}
.fp-import-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  padding: 8px 12px;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  transition: border-color 0.15s;
}
.fp-import-input::placeholder {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: rgba(255,255,255,0.25);
}
.fp-import-input:focus { border-color: rgba(255,255,255,0.25); }
.fp-import-btn {
  background: rgba(29,185,84,0.15);
  border: 1.5px solid rgba(29,185,84,0.3);
  color: #1DB954;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}
.fp-import-btn:hover { background: rgba(29,185,84,0.25); }

/* ── Toast notification ──────────────────────────────────────── */
.fp-toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(30,30,36,0.97);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 24px;
  z-index: 1300;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.fp-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.fp-toast.success { border-color: rgba(29,185,84,0.4); }
.fp-toast.error   { border-color: rgba(220,80,80,0.4); }

/* ── Loading spinner ─────────────────────────────────────────── */
.fp-spinner {
  width: 24px; height: 24px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: #1DB954;
  border-radius: 50%;
  animation: fp-spin 0.7s linear infinite;
  margin: 24px auto;
  display: block;
}
@keyframes fp-spin {
  to { transform: rotate(360deg); }
}

/* ── Private session override ────────────────────────────────── */
body.private-session #friendsPanel .fp-my-presence-note {
  display: block;
}


/* ── WIP Banner ──────────────────────────────────────────────── */
.fp-wip-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 12px 4px;
  background: rgba(250, 173, 20, 0.08);
  border: 1px solid rgba(250, 173, 20, 0.22);
  border-radius: 10px;
  padding: 10px 10px 10px 12px;
  animation: fp-fade-in 0.25s ease;
}
.fp-wip-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.3;
}
.fp-wip-text {
  flex: 1;
  font-size: 11.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.fp-wip-text strong {
  color: rgba(250, 173, 20, 0.9);
  font-size: 12px;
}
.fp-wip-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
  font-family: inherit;
}
.fp-wip-close:hover { color: rgba(255,255,255,0.75); }


/* ══════════════════════════════════════════════════════════════
   Profile Modal
══════════════════════════════════════════════════════════════ */
.fp-profile-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fp-fade-in 0.15s ease;
}
.fp-profile-modal {
  position: relative;
  background: #18181f;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  padding: 24px 20px 20px;
  width: 300px;
  max-width: 90vw;
  animation: fp-slide-up 0.22s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.fp-pm-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.06);
  border: none;
  border-radius: 50%;
  width: 28px; height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: background 0.15s, color 0.15s;
}
.fp-pm-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Hero: avatar + nom + statut */
.fp-pm-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.fp-pm-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
}
.fp-pm-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.fp-pm-identity { min-width: 0; }
.fp-pm-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.3px;
}
.fp-pm-status {
  font-size: 12px;
  font-weight: 600;
  margin-top: 3px;
}

/* Track section */
.fp-pm-track {
  display: flex;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.fp-pm-track:hover { background: rgba(255,255,255,0.08); }

.fp-pm-cover-wrap {
  position: relative;
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.07);
}
.fp-pm-cover {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.fp-pm-cover-ph {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
}
.fp-pm-wave-badge {
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.fp-pm-wave-badge span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #fff;
  animation: fp-wave 0.85s ease-in-out infinite;
}
.fp-pm-wave-badge span:nth-child(1) { animation-delay: 0s;    height: 40%; }
.fp-pm-wave-badge span:nth-child(2) { animation-delay: 0.18s; height: 100%; }
.fp-pm-wave-badge span:nth-child(3) { animation-delay: 0.32s; height: 65%; }
.fp-pm-wave-badge span:nth-child(4) { animation-delay: 0.08s; height: 80%; }

.fp-pm-track-info { flex: 1; min-width: 0; }
.fp-pm-track-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #1DB954;
  margin-bottom: 3px;
}
.fp-pm-track-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-pm-track-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Timeline */
.fp-pm-timeline {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}
.fp-pm-pos, .fp-pm-dur {
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}
.fp-pm-pos { color: rgba(255,255,255,0.7); }
.fp-pm-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.fp-pm-fill {
  height: 100%;
  background: #1DB954;
  border-radius: 2px;
  transition: width 1s linear;
}
.fp-pm-fill.paused { background: #faad14; }

/* Action buttons */
.fp-pm-actions {
  display: flex;
  gap: 8px;
}
.fp-pm-follow-btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: transparent;
  color: #fff;
  font-family: inherit;
  transition: all 0.15s;
}
.fp-pm-follow-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.35);
}
.fp-pm-follow-btn.following {
  background: rgba(29,185,84,0.12);
  border-color: rgba(29,185,84,0.35);
  color: #1DB954;
}
.fp-pm-follow-btn.following:hover:not(:disabled) {
  background: rgba(220,60,60,0.1);
  border-color: rgba(220,60,60,0.4);
  color: #ff6b6b;
}
.fp-pm-follow-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.fp-pm-play-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: #1DB954;
  color: #000;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.12s;
}
.fp-pm-play-btn:hover { opacity: 0.87; transform: translateY(-1px); }


/* ══════════════════════════════════════════════════════════════
   Profile Page (glisse par-dessus le contenu du panel)
══════════════════════════════════════════════════════════════ */
.fp-profile-page {
  position: absolute;
  inset: 0;
  background: #0e0e12;
  display: flex;
  flex-direction: column;
  z-index: 10;
  transform: translateX(105%);
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.fp-profile-page.open { transform: translateX(0); }
body.theme-clair   .fp-profile-page { background: #f4f4f6; }
body.theme-amoled  .fp-profile-page { background: #000; }
body.theme-starry  .fp-profile-page { background: rgba(5,5,12,0.95); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); }

.fp-pp-topbar {
  display: flex;
  align-items: center;
  padding: 12px 12px 8px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.fp-pp-back {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px 4px 4px;
  border-radius: 6px;
  font-family: inherit;
  transition: color 0.15s, background 0.15s;
}
.fp-pp-back:hover { color: #fff; background: rgba(255,255,255,0.07); }

/* Hero */
.fp-pp-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 16px;
  text-align: center;
  flex-shrink: 0;
}
.fp-pp-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
  flex-shrink: 0;
}
.fp-pp-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.fp-pp-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.fp-pp-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.fp-pp-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fp-pp-status-label {
  font-size: 12px;
  font-weight: 600;
}
.fp-pp-follow-row { width: 100%; }
.fp-pp-follow-btn {
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #fff;
  font-family: inherit;
  transition: all 0.15s;
}
.fp-pp-follow-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
}
.fp-pp-follow-btn.following {
  background: rgba(29,185,84,0.12);
  border-color: rgba(29,185,84,0.35);
  color: #1DB954;
}
.fp-pp-follow-btn.following:hover:not(:disabled) {
  background: rgba(220,60,60,0.1);
  border-color: rgba(220,60,60,0.4);
  color: #ff6b6b;
}
.fp-pp-follow-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Body */
.fp-pp-body {
  flex: 1;
  padding: 4px 12px 16px;
}
.fp-pp-section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 10px 0 6px;
}
.fp-pp-empty {
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* Track card */
.fp-pp-track {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 10px;
}
.fp-pp-track:hover { background: rgba(255,255,255,0.09); }
.fp-pp-track-cover {
  width: 48px; height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.fp-pp-track-cover-ph {
  width: 48px; height: 48px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
}
.fp-pp-track-meta { flex: 1; min-width: 0; }
.fp-pp-track-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-pp-track-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.fp-pp-timeline {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}
.fp-pp-pos, .fp-pp-dur {
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}
.fp-pp-pos { color: rgba(255,255,255,0.7); }
.fp-pp-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.fp-pp-fill {
  height: 100%;
  background: #1DB954;
  border-radius: 2px;
  transition: width 1s linear;
}
.fp-pp-fill.paused { background: #faad14; }

/* Mini waveform */
.fp-pp-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  flex-shrink: 0;
}
.fp-pp-wave span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #1DB954;
  animation: fp-wave 0.85s ease-in-out infinite;
}
.fp-pp-wave span:nth-child(1) { animation-delay: 0s;    height: 35%; }
.fp-pp-wave span:nth-child(2) { animation-delay: 0.18s; height: 100%; }
.fp-pp-wave span:nth-child(3) { animation-delay: 0.32s; height: 60%; }
.fp-pp-wave span:nth-child(4) { animation-delay: 0.08s; height: 80%; }

/* Listen button */
.fp-pp-listen-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: #1DB954;
  color: #000;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.12s;
}
.fp-pp-listen-btn:hover { opacity: 0.87; transform: translateY(-1px); }


/* ══════════════════════════════════════════════════════════════
   PROFIL — Nouvelles sections (stats, artistes, playlists, historique, upload)
══════════════════════════════════════════════════════════════ */

/* ── Badge "Mon profil" ──────────────────────────────────────── */
.fp-pp-own-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
body.theme-clair .fp-pp-own-badge { color: rgba(18,18,22,0.35); }

/* ── Bannière ────────────────────────────────────────────────── */
.fp-pp-banner {
  flex-shrink: 0;
  height: 100px;
  margin-top: -46px;
  position: relative;
  overflow: hidden;
}
.fp-pp-banner-gradient {
  position: absolute; inset: 0;
  opacity: 0.65;
  transition: opacity 0.3s;
}
.fp-pp-banner-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, #0e0e12 100%);
}
body.theme-clair .fp-pp-banner-fade  { background: linear-gradient(to bottom, transparent 30%, #f4f4f6 100%); }
body.theme-amoled .fp-pp-banner-fade { background: linear-gradient(to bottom, transparent 30%, #000 100%); }
body.theme-starry .fp-pp-banner-fade { background: linear-gradient(to bottom, transparent 30%, rgba(5,5,12,0.94) 100%); }

/* Bouton upload bannière */
.fp-pp-banner-upload {
  position: absolute;
  bottom: 30px; right: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px 5px 8px;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(4px);
  transition: background 0.15s;
  font-family: inherit;
}
.fp-pp-banner-upload:hover { background: rgba(0,0,0,0.7); }

/* ── Avatar wrap + bouton upload ─────────────────────────────── */
.fp-pp-avatar-wrap {
  position: relative;
  margin-bottom: 10px;
}
.fp-pp-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15), 0 6px 20px rgba(0,0,0,0.4);
}
body.theme-clair .fp-pp-avatar { box-shadow: 0 0 0 3px rgba(0,0,0,0.08), 0 6px 20px rgba(0,0,0,0.1); }
.fp-pp-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }

.fp-pp-avatar-upload {
  position: absolute;
  bottom: 0; right: -2px;
  width: 24px; height: 24px;
  background: #1DB954;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #0e0e12;
  color: #000;
  transition: opacity 0.15s, transform 0.12s;
}
body.theme-clair .fp-pp-avatar-upload { border-color: #f4f4f6; }
.fp-pp-avatar-upload:hover { opacity: 0.85; transform: scale(1.1); }

/* ── Stats row ───────────────────────────────────────────────── */
.fp-pp-stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 16px;
  width: 100%;
}
body.theme-clair .fp-pp-stats-row { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.07); }
.fp-pp-stat {
  flex: 1;
  text-align: center;
}
.fp-pp-stat-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-base, #fff);
  line-height: 1.2;
}
.fp-pp-stat-lbl {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-subdued, rgba(255,255,255,0.4));
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
}
.fp-pp-stat-sep {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
body.theme-clair .fp-pp-stat-sep { background: rgba(0,0,0,0.08); }

/* ── Section ──────────────────────────────────────────────────── */
.fp-pp-section {
  margin-bottom: 4px;
}

/* ── Now playing card ────────────────────────────────────────── */
.fp-pp-now-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(29,185,84,0.07);
  border: 1px solid rgba(29,185,84,0.2);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
  margin-bottom: 8px;
}
.fp-pp-now-card:hover { background: rgba(29,185,84,0.12); transform: translateY(-1px); }
.fp-pp-now-cover {
  width: 52px; height: 52px;
  border-radius: 8px; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.fp-pp-now-cover-ph {
  width: 52px; height: 52px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center; opacity: 0.4;
}
.fp-pp-now-meta { flex: 1; min-width: 0; }
.fp-pp-now-label {
  font-size: 9px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: #1DB954; margin-bottom: 3px;
}
.fp-pp-now-label.paused { color: #faad14; }
.fp-pp-now-title {
  font-size: 13px; font-weight: 700;
  color: var(--text-base, #fff);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fp-pp-now-artist {
  font-size: 11px; color: var(--text-subdued, rgba(255,255,255,0.5));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px;
}

/* ── Artists grid ────────────────────────────────────────────── */
.fp-pp-artists-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fp-pp-artist-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 5px 10px 5px 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-base, #fff);
}
body.theme-clair .fp-pp-artist-chip { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.08); color: #121216; }
.fp-pp-artist-dot {
  width: 10px; height: 10px;
  border-radius: 50%; flex-shrink: 0;
}
.fp-pp-artist-count {
  font-size: 10px;
  color: var(--text-subdued, rgba(255,255,255,0.4));
  margin-left: 2px;
}

/* ── Playlist rows ───────────────────────────────────────────── */
.fp-pp-playlist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.fp-pp-playlist-row:last-child { border-bottom: none; }
body.theme-clair .fp-pp-playlist-row { border-bottom-color: rgba(0,0,0,0.05); }
.fp-pp-playlist-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--text-subdued, rgba(255,255,255,0.5));
}
body.theme-clair .fp-pp-playlist-icon { background: rgba(0,0,0,0.06); }
.fp-pp-playlist-meta { flex: 1; min-width: 0; }
.fp-pp-playlist-name {
  font-size: 13px; font-weight: 600;
  color: var(--text-base, #fff);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.theme-clair .fp-pp-playlist-name { color: #121216; }
.fp-pp-playlist-count {
  font-size: 11px;
  color: var(--text-subdued, rgba(255,255,255,0.4));
  margin-top: 1px;
}

/* ── History rows ────────────────────────────────────────────── */
.fp-pp-history-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-radius: 8px;
  transition: background 0.12s;
}
.fp-pp-history-row:hover { background: rgba(255,255,255,0.05); }
body.theme-clair .fp-pp-history-row:hover { background: rgba(0,0,0,0.04); }
.fp-pp-history-cover {
  width: 36px; height: 36px;
  border-radius: 6px; object-fit: cover; flex-shrink: 0;
}
.fp-pp-history-cover-ph {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; opacity: 0.4;
}
.fp-pp-history-meta { flex: 1; min-width: 0; }
.fp-pp-history-title {
  font-size: 12px; font-weight: 600;
  color: var(--text-base, #fff);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.theme-clair .fp-pp-history-title { color: #121216; }
.fp-pp-history-artist {
  font-size: 11px;
  color: var(--text-subdued, rgba(255,255,255,0.45));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.fp-pp-history-play {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: none; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-base, #fff);
  opacity: 0;
  transition: background 0.15s, opacity 0.15s, transform 0.12s;
}
.fp-pp-history-row:hover .fp-pp-history-play { opacity: 1; }
.fp-pp-history-play:hover { background: #1DB954; color: #000; transform: scale(1.1); }

/* ── Loading state ───────────────────────────────────────────── */
.fp-pp-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 32px 0;
}

/* ── Profil : bannière ──────────────────────────────────────────── */
.fp-pp-banner { flex-shrink:0; height:96px; margin-top:-46px; position:relative; overflow:hidden; }
.fp-pp-banner-gradient { position:absolute; inset:0; opacity:0.65; }
.fp-pp-banner-fade { position:absolute; inset:0; background:linear-gradient(to bottom,transparent 30%,#0e0e12 100%); }
body.theme-clair  .fp-pp-banner-fade { background:linear-gradient(to bottom,transparent 30%,#f4f4f6 100%); }
body.theme-amoled .fp-pp-banner-fade { background:linear-gradient(to bottom,transparent 30%,#000 100%); }
body.theme-starry .fp-pp-banner-fade { background:linear-gradient(to bottom,transparent 30%,rgba(5,5,12,0.95) 100%); }
.fp-pp-banner-upload { position:absolute; bottom:28px; right:10px; display:flex; align-items:center; gap:5px; background:rgba(0,0,0,0.5); border:1px solid rgba(255,255,255,0.2); border-radius:20px; color:#fff; font-size:11px; font-weight:600; padding:5px 10px 5px 8px; cursor:pointer; z-index:3; backdrop-filter:blur(4px); font-family:inherit; transition:background .15s; }
.fp-pp-banner-upload:hover { background:rgba(0,0,0,0.7); }

/* ── Profil : avatar wrap + upload ─────────────────────────────── */
.fp-pp-avatar-wrap { position:relative; margin-bottom:10px; }
.fp-pp-avatar-upload { position:absolute; bottom:0; right:-2px; width:24px; height:24px; border-radius:50%; background:#1DB954; border:2px solid #0e0e12; display:flex; align-items:center; justify-content:center; cursor:pointer; color:#000; transition:opacity .15s,transform .12s; }
body.theme-clair .fp-pp-avatar-upload { border-color:#f4f4f6; }
.fp-pp-avatar-upload:hover { opacity:.85; transform:scale(1.1); }
.fp-pp-own-badge { margin-left:auto; font-size:10px; font-weight:700; color:rgba(255,255,255,0.35); text-transform:uppercase; letter-spacing:0.4px; }

/* ── Profil : stats ─────────────────────────────────────────────── */
.fp-pp-stats-row { display:flex; align-items:center; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.08); border-radius:12px; padding:10px 16px; width:100%; margin-bottom:14px; }
body.theme-clair .fp-pp-stats-row { background:rgba(0,0,0,0.04); border-color:rgba(0,0,0,0.07); }
.fp-pp-stat { flex:1; text-align:center; }
.fp-pp-stat-val { font-size:16px; font-weight:800; color:#fff; line-height:1.2; }
body.theme-clair .fp-pp-stat-val { color:#121216; }
.fp-pp-stat-lbl { font-size:10px; font-weight:600; color:rgba(255,255,255,0.4); text-transform:uppercase; letter-spacing:0.4px; margin-top:2px; }
body.theme-clair .fp-pp-stat-lbl { color:rgba(18,18,22,0.4); }
.fp-pp-stat-sep { width:1px; height:28px; background:rgba(255,255,255,0.08); flex-shrink:0; }
body.theme-clair .fp-pp-stat-sep { background:rgba(0,0,0,0.08); }

/* ── Profil : divider + body ────────────────────────────────────── */
.fp-pp-divider { height:1px; background:rgba(255,255,255,0.07); margin:0 12px 4px; flex-shrink:0; }
body.theme-clair .fp-pp-divider { background:rgba(0,0,0,0.07); }
.fp-pp-section { margin-bottom:4px; }
.fp-pp-loading { display:flex; align-items:center; justify-content:center; padding:32px 0; }

/* ── Profil : now playing card ──────────────────────────────────── */
.fp-pp-now-card { display:flex; align-items:center; gap:12px; background:rgba(29,185,84,0.07); border:1px solid rgba(29,185,84,0.2); border-radius:12px; padding:10px 12px; cursor:pointer; transition:background .15s,transform .12s; margin-bottom:8px; }
.fp-pp-now-card:hover { background:rgba(29,185,84,0.12); transform:translateY(-1px); }
.fp-pp-now-cover { width:52px; height:52px; border-radius:8px; object-fit:cover; flex-shrink:0; box-shadow:0 4px 12px rgba(0,0,0,0.3); display:block; }
.fp-pp-now-cover-ph { width:52px; height:52px; border-radius:8px; background:rgba(255,255,255,0.07); display:flex; align-items:center; justify-content:center; flex-shrink:0; opacity:0.4; }
.fp-pp-now-meta { flex:1; min-width:0; }
.fp-pp-now-label { font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:0.8px; color:#1DB954; margin-bottom:3px; }
.fp-pp-now-label.paused { color:#faad14; }
.fp-pp-now-title { font-size:13px; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.theme-clair .fp-pp-now-title { color:#121216; }
.fp-pp-now-artist { font-size:11px; color:rgba(255,255,255,0.5); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
.fp-pp-listen-btn { width:100%; display:flex; align-items:center; justify-content:center; gap:8px; padding:11px; border-radius:10px; font-size:13px; font-weight:700; cursor:pointer; border:none; background:#1DB954; color:#000; font-family:inherit; transition:opacity .15s,transform .12s; }
.fp-pp-listen-btn:hover { opacity:.87; transform:translateY(-1px); }

/* ── Profil : artistes ──────────────────────────────────────────── */
.fp-pp-artists-grid { display:flex; flex-wrap:wrap; gap:6px; }
.fp-pp-artist-chip { display:flex; align-items:center; gap:6px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08); border-radius:20px; padding:5px 10px 5px 7px; font-size:12px; font-weight:600; color:#fff; }
body.theme-clair .fp-pp-artist-chip { background:rgba(0,0,0,0.05); border-color:rgba(0,0,0,0.08); color:#121216; }
.fp-pp-artist-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.fp-pp-artist-count { font-size:10px; color:rgba(255,255,255,0.4); margin-left:2px; }

/* ── Profil : playlists ─────────────────────────────────────────── */
.fp-pp-playlist-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid rgba(255,255,255,0.05); }
.fp-pp-playlist-row:last-child { border-bottom:none; }
body.theme-clair .fp-pp-playlist-row { border-bottom-color:rgba(0,0,0,0.05); }
.fp-pp-playlist-icon { width:34px; height:34px; border-radius:8px; background:rgba(255,255,255,0.07); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:rgba(255,255,255,0.5); }
body.theme-clair .fp-pp-playlist-icon { background:rgba(0,0,0,0.06); }
.fp-pp-playlist-meta { flex:1; min-width:0; }
.fp-pp-playlist-name { font-size:13px; font-weight:600; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.theme-clair .fp-pp-playlist-name { color:#121216; }
.fp-pp-playlist-count { font-size:11px; color:rgba(255,255,255,0.4); margin-top:1px; }

/* ── Profil : historique ─────────────────────────────────────────── */
.fp-pp-history-row { display:flex; align-items:center; gap:10px; padding:6px 4px; border-radius:8px; transition:background .12s; }
.fp-pp-history-row:hover { background:rgba(255,255,255,0.05); }
body.theme-clair .fp-pp-history-row:hover { background:rgba(0,0,0,0.04); }
.fp-pp-history-cover { width:36px; height:36px; border-radius:6px; object-fit:cover; flex-shrink:0; display:block; }
.fp-pp-history-cover-ph { width:36px; height:36px; border-radius:6px; background:rgba(255,255,255,0.07); flex-shrink:0; display:flex; align-items:center; justify-content:center; opacity:0.4; }
.fp-pp-history-meta { flex:1; min-width:0; }
.fp-pp-history-title { font-size:12px; font-weight:600; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.theme-clair .fp-pp-history-title { color:#121216; }
.fp-pp-history-artist { font-size:11px; color:rgba(255,255,255,0.45); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:1px; }
.fp-pp-history-play { width:28px; height:28px; border-radius:50%; background:rgba(255,255,255,0.07); border:none; cursor:pointer; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:#fff; opacity:0; transition:background .15s,opacity .15s,transform .12s; }
.fp-pp-history-row:hover .fp-pp-history-play { opacity:1; }
.fp-pp-history-play:hover { background:#1DB954; color:#000; transform:scale(1.1); }

/* ══════════════════════════════════════════════════════════════
   Listen Confirm Dialog
══════════════════════════════════════════════════════════════ */
.fp-listen-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: calc(var(--player-h, 90px) + 12px);
  animation: fp-fade-in 0.15s ease;
}
.fp-listen-confirm {
  background: var(--bg-elevated, #1c1c24);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 16px;
  width: 300px;
  max-width: 90vw;
  animation: fp-slide-up 0.2s cubic-bezier(0.4,0,0.2,1);
}
.fp-lc-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.fp-lc-cover {
  width: 52px; height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.fp-lc-cover-ph {
  width: 52px; height: 52px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.5;
}
.fp-lc-meta { min-width: 0; }
.fp-lc-question {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 3px;
}
.fp-lc-track {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-lc-artist {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.fp-lc-actions {
  display: flex;
  gap: 8px;
}
.fp-lc-cancel {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-family: inherit;
  transition: all 0.15s;
}
.fp-lc-cancel:hover { border-color: rgba(255,255,255,0.35); color: #fff; }
.fp-lc-play {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: #1DB954;
  color: #000;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.12s;
}
.fp-lc-play:hover { opacity: 0.87; transform: translateY(-1px); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  #friendsPanel {
    width: 100%;
    top: 60px;
    right: 0;
    bottom: 72px;
    border-left: none;
  }
}
/* ══════════════════════════════════════════════════════════════
   ADDITIONS & SURCHARGES — friends-panel-profile.css (fusionné)
   ══════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════════
   FRIENDS PANEL — Profil utilisateur (refonte complète)
   À appender à la fin de friends-panel.css
   ══════════════════════════════════════════════════════════════════ */

/* ── Panel : position absolute (overlay #rightPanel) ──────────── */
#friendsPanel {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: var(--bg-elevated, #0b0b0f);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-left: 1px solid rgba(255,255,255,0.06);
}
#friendsPanel.open { transform: translateX(0); }

/* ── Supprime l'ancien backdrop (devenu inutile) ───────────────── */
#friendsPanelBackdrop { display: none !important; }

/* ══════════════════════════════════════════════════════════════════
   PAGE PROFIL
   ══════════════════════════════════════════════════════════════════ */

.fp-profile-page {
  position: absolute;
  inset: 0;
  background: var(--bg-base, #0b0b0f);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 10;
}
.fp-profile-page.open { transform: translateX(0); }
body.theme-clair   .fp-profile-page { background: #f4f4f6; }
body.theme-amoled  .fp-profile-page { background: #000; }
body.theme-starry  .fp-profile-page { background: rgba(5,5,12,0.97); backdrop-filter: blur(20px); }

/* ── Topbar (retour) ────────────────────────────────────────────── */
.fp-pp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 0;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
}
.fp-pp-back {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px 5px 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.fp-pp-back:hover { background: rgba(0,0,0,0.65); }
body.theme-clair .fp-pp-back { background: rgba(255,255,255,0.75); border-color: rgba(0,0,0,0.12); color: #121216; }
.fp-pp-own-badge {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.07);
  padding: 4px 8px;
  border-radius: 10px;
}
body.theme-clair .fp-pp-own-badge { color: rgba(18,18,22,0.4); background: rgba(0,0,0,0.06); }

/* ── Bannière ───────────────────────────────────────────────────── */
.fp-pp-banner {
  height: 130px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.fp-pp-banner-bg {
  position: absolute;
  inset: 0;
  transition: opacity 0.4s;
}
/* Mosaïque 4 images dans la bannière */
.fp-pp-banner-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%; height: 100%;
}
.fp-pp-banner-mosaic img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.fp-pp-banner-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, var(--bg-base,#0b0b0f) 100%);
}
body.theme-clair   .fp-pp-banner-fade { background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, #f4f4f6 100%); }
body.theme-amoled  .fp-pp-banner-fade { background: linear-gradient(to bottom, transparent 20%, #000 100%); }
body.theme-starry  .fp-pp-banner-fade { background: linear-gradient(to bottom, transparent 20%, rgba(5,5,12,0.97) 100%); }

/* Bouton upload bannière */
.fp-pp-banner-upload {
  position: absolute;
  bottom: 36px; right: 10px;
  z-index: 4;
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 5px 10px 5px 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.fp-pp-banner-upload:hover { background: rgba(0,0,0,0.7); }

/* ── Hero ───────────────────────────────────────────────────────── */
.fp-pp-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 14px 12px;
  margin-top: -36px;   /* avatar remonte dans la bannière */
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  text-align: center;
}

/* Avatar */
.fp-pp-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  margin-bottom: 10px;
}
.fp-pp-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--bg-base,#0b0b0f), 0 8px 24px rgba(0,0,0,0.5);
  position: relative;
}
body.theme-clair   .fp-pp-avatar { box-shadow: 0 0 0 3px #f4f4f6, 0 6px 20px rgba(0,0,0,0.12); }
body.theme-amoled  .fp-pp-avatar { box-shadow: 0 0 0 3px #000, 0 8px 24px rgba(0,0,0,0.6); }
.fp-pp-avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.fp-pp-avatar-initials {
  font-size: 28px;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
/* Upload avatar */
.fp-pp-avatar-upload {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-elevated,#1c1c24);
  border: 2px solid var(--bg-base,#0b0b0f);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  transition: background 0.15s;
}
.fp-pp-avatar-upload:hover { background: rgba(255,255,255,0.15); }

/* Infos hero (centré directement dans .fp-pp-hero) */
.fp-pp-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
  text-align: center;
  line-height: 1.15;
}
body.theme-clair .fp-pp-name { color: #121216; }

/* ── Stats cliquables ───────────────────────────────────────────── */
.fp-pp-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px 14px 4px;
  flex-shrink: 0;
}
.fp-pp-stat {
  flex: 1;
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 4px;
  transition: background 0.14s;
  user-select: none;
}
.fp-pp-stat:hover { background: rgba(255,255,255,0.07); }
.fp-pp-stat.active { background: rgba(255,255,255,0.1); }
body.theme-clair .fp-pp-stat:hover  { background: rgba(0,0,0,0.05); }
body.theme-clair .fp-pp-stat.active { background: rgba(0,0,0,0.08); }

.fp-pp-stat-val {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
body.theme-clair .fp-pp-stat-val { color: #121216; }
.fp-pp-stat-lbl {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 3px;
}
body.theme-clair .fp-pp-stat-lbl { color: rgba(18,18,22,0.38); }
.fp-pp-stat-sep {
  width: 1px;
  height: 26px;
  background: rgba(255,255,255,0.07);
  flex-shrink: 0;
}
body.theme-clair .fp-pp-stat-sep { background: rgba(0,0,0,0.07); }

/* ── Tiroir stats ─────────────────────────────────────────────── */
.fp-pp-stat-drawer {
  margin: 4px 14px 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  animation: fp-drawer-in 0.22s cubic-bezier(0.4,0,0.2,1);
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
@keyframes fp-drawer-in {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:translateY(0); }
}
body.theme-clair .fp-pp-stat-drawer { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.07); }
.fp-pp-drawer-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.5px; color: rgba(255,255,255,0.35);
  padding: 8px 12px 4px;
}
body.theme-clair .fp-pp-drawer-label { color: rgba(18,18,22,0.38); }
.fp-pp-drawer-empty {
  font-size: 12px; color: rgba(255,255,255,0.3);
  padding: 14px 12px; text-align: center;
}
body.theme-clair .fp-pp-drawer-empty { color: rgba(18,18,22,0.3); }
/* Utilisateurs dans le tiroir */
.fp-pp-drawer-user {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px; transition: background 0.12s;
}
.fp-pp-drawer-user:hover { background: rgba(255,255,255,0.06); }
body.theme-clair .fp-pp-drawer-user:hover { background: rgba(0,0,0,0.05); }
.fp-pp-drawer-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.85);
}
.fp-pp-drawer-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.fp-pp-drawer-uname {
  font-size: 12px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.theme-clair .fp-pp-drawer-uname { color: #121216; }
/* Titres aimés dans le tiroir */
.fp-pp-drawer-track {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 12px; transition: background 0.12s;
}
.fp-pp-drawer-track:hover { background: rgba(255,255,255,0.06); }
.fp-pp-drawer-img {
  width: 32px; height: 32px; border-radius: 5px;
  object-fit: cover; flex-shrink: 0;
}
.fp-pp-drawer-img-ph {
  width: 32px; height: 32px; border-radius: 5px;
  background: rgba(255,255,255,0.07); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.fp-pp-drawer-meta { flex: 1; min-width: 0; }
.fp-pp-drawer-title {
  font-size: 12px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.theme-clair .fp-pp-drawer-title { color: #121216; }
.fp-pp-drawer-artist {
  font-size: 10px; color: rgba(255,255,255,0.42); margin-top: 1px;
}

/* ── Actions (follow) ───────────────────────────────────────────── */
.fp-pp-actions {
  padding: 8px 14px 4px;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.fp-pp-follow-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #fff;
  font-family: inherit;
  transition: all 0.18s;
}
.fp-pp-follow-btn:hover:not(:disabled) {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.07);
}
.fp-pp-follow-btn.following {
  background: var(--green,#1DB954);
  border-color: var(--green,#1DB954);
  color: #000;
}
.fp-pp-follow-btn.following:hover:not(:disabled) {
  background: rgba(29,185,84,0.8);
}
.fp-pp-follow-btn:disabled { opacity: 0.4; cursor: default; }
body.theme-clair .fp-pp-follow-btn { border-color: rgba(0,0,0,0.18); color: #121216; }

/* ── Divider ────────────────────────────────────────────────────── */
.fp-pp-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 6px 14px 0;
  flex-shrink: 0;
}
body.theme-clair .fp-pp-divider { background: rgba(0,0,0,0.08); }

/* ── Corps scrollable ───────────────────────────────────────────── */
.fp-pp-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.fp-pp-body::-webkit-scrollbar { width: 3px; }
.fp-pp-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.fp-pp-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 0;
}
.fp-pp-empty {
  text-align: center;
  padding: 32px 24px;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
  line-height: 1.5;
}
body.theme-clair .fp-pp-empty { color: rgba(18,18,22,0.3); }

/* ── Section générique ─────────────────────────────────────────── */
.fp-pp-section {
  padding: 10px 14px 4px;
}
.fp-pp-section-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
body.theme-clair .fp-pp-section-label { color: rgba(18,18,22,0.38); }
.fp-pp-section-count {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 1px 6px;
  color: rgba(255,255,255,0.5);
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Section "En écoute" ────────────────────────────────────────── */
.fp-pp-now-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(29,185,84,0.1), rgba(29,185,84,0.04));
  border: 1px solid rgba(29,185,84,0.18);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
  margin-bottom: 8px;
}
.fp-pp-now-card:hover { background: linear-gradient(135deg, rgba(29,185,84,0.16), rgba(29,185,84,0.07)); transform: translateY(-1px); }
.fp-pp-now-cover-wrap {
  position: relative;
  flex-shrink: 0;
  width: 54px; height: 54px;
}
.fp-pp-now-cover {
  width: 54px; height: 54px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.fp-pp-now-cover-ph {
  width: 54px; height: 54px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  opacity: 0.4;
}
/* Wave overlay sur la cover */
.fp-pp-wave--overlay {
  position: absolute;
  bottom: 5px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 2px; align-items: flex-end;
}
.fp-pp-wave--overlay span {
  width: 3px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  animation: fp-wave 0.9s ease-in-out infinite;
}
.fp-pp-wave--overlay span:nth-child(1) { height: 6px; animation-delay: 0s; }
.fp-pp-wave--overlay span:nth-child(2) { height: 10px; animation-delay: 0.15s; }
.fp-pp-wave--overlay span:nth-child(3) { height: 7px; animation-delay: 0.3s; }
.fp-pp-wave--overlay span:nth-child(4) { height: 9px; animation-delay: 0.45s; }

.fp-pp-now-meta { flex: 1; min-width: 0; }
.fp-pp-now-label {
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--green,#1DB954); margin-bottom: 3px;
}
.fp-pp-now-label.paused { color: #faad14; }
.fp-pp-now-title {
  font-size: 13px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.theme-clair .fp-pp-now-title { color: #121216; }
.fp-pp-now-artist {
  font-size: 11px; color: rgba(255,255,255,0.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.fp-pp-now-sep { margin: 0 3px; opacity: 0.4; }
/* Timeline */
.fp-pp-timeline {
  display: flex; align-items: center; gap: 5px; margin-top: 6px;
}
.fp-pp-pos, .fp-pp-dur {
  font-size: 9px; color: rgba(255,255,255,0.4); flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.fp-pp-bar {
  flex: 1; height: 3px; background: rgba(255,255,255,0.15);
  border-radius: 2px; overflow: hidden;
}
.fp-pp-fill {
  height: 100%; background: var(--green,#1DB954);
  border-radius: 2px; transition: width 0.8s linear;
}
.fp-pp-fill.paused { background: #faad14; transition: none; }

/* Bouton "Écouter aussi" */
.fp-pp-listen-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px; font-weight: 700;
  cursor: pointer; border: none;
  background: var(--green,#1DB954); color: #000;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.12s;
}
.fp-pp-listen-btn:hover { opacity: 0.87; transform: translateY(-1px); }

/* ── Affinité musicale ──────────────────────────────────────────── */
.fp-pp-section--affinity {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  margin: 4px 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.06);
}
body.theme-clair .fp-pp-section--affinity {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.07);
}
.fp-pp-aff-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.fp-pp-aff-label {
  font-size: 12px; font-weight: 700; color: #fff;
}
body.theme-clair .fp-pp-aff-label { color: #121216; }
.fp-pp-aff-pct {
  font-size: 14px; font-weight: 800;
}
.fp-pp-aff-bar {
  height: 5px; background: rgba(255,255,255,0.1);
  border-radius: 3px; overflow: hidden; margin-bottom: 5px;
}
body.theme-clair .fp-pp-aff-bar { background: rgba(0,0,0,0.1); }
.fp-pp-aff-fill {
  height: 100%; border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.fp-pp-aff-sub {
  font-size: 10px; color: rgba(255,255,255,0.38); font-weight: 500;
}
body.theme-clair .fp-pp-aff-sub { color: rgba(18,18,22,0.38); }

/* ── Artistes — cartes verticales (photo + nom + titres) ──────── */
.fp-pp-artists-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fp-pp-artist-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.13s, transform 0.1s;
}
.fp-pp-artist-card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateX(2px);
}
body.theme-clair .fp-pp-artist-card:hover { background: rgba(0,0,0,0.05); }
.fp-pp-artist-photo {
  width: 46px; height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
}
.fp-pp-artist-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.fp-pp-artist-initial {
  font-size: 18px; font-weight: 800;
  color: rgba(255,255,255,0.85);
}
.fp-pp-artist-info { flex: 1; min-width: 0; }
.fp-pp-artist-name {
  font-size: 13px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.theme-clair .fp-pp-artist-name { color: #121216; }
.fp-pp-artist-meta {
  font-size: 11px; color: rgba(255,255,255,0.42);
  margin-top: 2px;
}
.fp-pp-artist-chevron {
  flex-shrink: 0;
  color: rgba(255,255,255,0.25);
  transition: color 0.13s;
}
.fp-pp-artist-card:hover .fp-pp-artist-chevron { color: rgba(255,255,255,0.55); }

/* ── Playlists — grille 2 colonnes ──────────────────────────────── */
.fp-pp-pl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.fp-pp-pl-card {
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transition: background 0.15s, transform 0.12s;
}
.fp-pp-pl-card:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-2px);
}
body.theme-clair .fp-pp-pl-card { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.07); }
body.theme-clair .fp-pp-pl-card:hover { background: rgba(0,0,0,0.08); }
.fp-pp-pl-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3);
}
/* Mosaïque dans la card */
.fp-pp-pl-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%; height: 100%;
}
.fp-pp-pl-mosaic img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.fp-pp-pl-single {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* Overlay play au hover */
.fp-pp-pl-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  color: #fff;
}
.fp-pp-pl-card:hover .fp-pp-pl-play-overlay { opacity: 1; }
.fp-pp-pl-name {
  font-size: 11px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 6px 7px 2px;
}
body.theme-clair .fp-pp-pl-name { color: #121216; }
.fp-pp-pl-count {
  font-size: 10px; color: rgba(255,255,255,0.38);
  padding: 0 7px 7px;
}

/* ── Écoutes récentes ───────────────────────────────────────────── */
.fp-pp-history-row {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}
.fp-pp-history-row:hover { background: rgba(255,255,255,0.05); }
body.theme-clair .fp-pp-history-row:hover { background: rgba(0,0,0,0.04); }
.fp-pp-history-num {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.22);
  width: 14px; text-align: right; flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
body.theme-clair .fp-pp-history-num { color: rgba(18,18,22,0.25); }
.fp-pp-history-row:hover .fp-pp-history-num { color: transparent; }
.fp-pp-history-cover {
  width: 34px; height: 34px;
  border-radius: 6px; object-fit: cover;
  flex-shrink: 0; display: block;
}
.fp-pp-history-cover-ph {
  width: 34px; height: 34px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.35;
}
.fp-pp-history-meta { flex: 1; min-width: 0; }
.fp-pp-history-title {
  font-size: 12px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.theme-clair .fp-pp-history-title { color: #121216; }
.fp-pp-history-artist {
  font-size: 10px; color: rgba(255,255,255,0.42);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.fp-pp-history-play {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: none; cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  opacity: 0;
  transition: background 0.15s, opacity 0.15s, transform 0.12s;
}
.fp-pp-history-row:hover .fp-pp-history-play { opacity: 1; }
.fp-pp-history-play:hover {
  background: var(--green,#1DB954);
  color: #000; transform: scale(1.1);
}