/* =============================================================
   marketplace.css — Phase 2 refonte accueil WATT
   -------------------------------------------------------------
   Styles spécifiques à la transformation de l'accueil en marketplace :
     1. Hero unifié avec 2 barres de recherche (DNA + CONNECT)
     2. Vitrine du compte officiel Smyle (avatar + checkmark + packs)
     3. Sections "Classement Sons" / "Classement Artistes"
     4. Grilles "Tous les sons" / "Tous les artistes"

   Les 4 packs historiques (Jungle Osmose, Night City, Hit Mix, Sunset
   Lover) conservent leurs styles dans style.css — on ne les duplique
   pas ici, on ajuste seulement leur wrapper (.smyle-vitrine les contient).

   Palette : héritage violet WATT (#7C3AED fallback, override via
   --smyle-brand sur .smyle-vitrine quand l'API renvoie une couleur).
   ============================================================= */


/* ══════════════════════════════════════════════ HERO MARKETPLACE ═ */

.mp-hero {
  max-width: 1080px;
  margin: 48px auto 32px;
  padding: 0 24px;
  text-align: center;
}

.mp-hero-title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  background: linear-gradient(180deg, #fff 0%, #c8a3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 0.95;
}

/* Développement de l'acronyme W.A.T.T. — petit caps mauve, sous le titre */
.mp-hero-acronym {
  font-size: 11px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(200, 163, 255, 0.75);
  margin: 0 0 10px;
  font-weight: 600;
}

.mp-hero-sub {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 32px;
  font-weight: 500;
}

/* Hint loupe (remplace les barres supprimées) */
.mp-hero-search-hint {
  font-size: 13px;
  color: rgba(255,255,255,.38);
  margin: 4px 0 0;
  letter-spacing: .02em;
}

/* Bloc des 2 barres de recherche côte à côte (puis verticales en mobile) */
.mp-search-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .mp-search-wrap {
    grid-template-columns: 1fr;
  }
}

.mp-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  transition: border-color 0.2s, background 0.2s;
  cursor: text;
}

.mp-search-bar:focus-within {
  background: rgba(255, 255, 255, 0.06);
}

.mp-search-bar-dna:focus-within {
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.mp-search-bar-connect:focus-within {
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
}

.mp-search-icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
}

.mp-search-bar-dna .mp-search-icon {
  color: rgba(200, 163, 255, 0.9);
}

.mp-search-bar-connect .mp-search-icon {
  color: rgba(255, 215, 0, 0.85);
}

.mp-search-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.mp-search-bar-dna .mp-search-tag {
  color: rgba(200, 163, 255, 0.95);
  background: rgba(124, 58, 237, 0.18);
}

.mp-search-bar-connect .mp-search-tag {
  color: rgba(255, 220, 100, 0.95);
  background: rgba(255, 215, 0, 0.12);
}

.mp-search-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 14px;
  color: #fff;
  font-family: inherit;
}

.mp-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* ── Pill de match DNA / CONNECT ─────────────────────────────────────
   Injecté dynamiquement par ui/hub/marketplace.js quand l'analyseur
   détecte un univers (DNA) ou une catégorie (CONNECT). Discret par
   design : pas de canvas, pas d'animation lourde — juste un chip coloré
   qui confirme ce que le moteur a compris. */
.mp-search-match {
  --match-color: #7C3AED;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--match-color);
  background: color-mix(in srgb, var(--match-color) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--match-color) 45%, transparent);
  flex-shrink: 0;
  white-space: nowrap;
  animation: mp-match-in 180ms ease-out;
}

.mp-search-bar.has-match {
  border-color: color-mix(in srgb, currentColor 30%, rgba(255,255,255,.10));
}

@keyframes mp-match-in {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════════════════════ VITRINE SMYLE ═══ */

.smyle-vitrine {
  max-width: 1080px;
  margin: 24px auto;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(124, 58, 237, 0.08) 0%,
    rgba(124, 58, 237, 0.02) 100%
  );
  border: 1px solid rgba(124, 58, 237, 0.16);
  position: relative;
}

/* Tête : avatar + nom + checkmark + bio + stats + CTA profil */
.smyle-vitrine-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 0 8px 20px;
}

@media (max-width: 720px) {
  .smyle-vitrine-head {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "avatar identity"
      "cta    cta";
    gap: 16px;
  }
  .smyle-vitrine-avatar   { grid-area: avatar; }
  .smyle-vitrine-identity { grid-area: identity; }
  .smyle-vitrine-cta      { grid-area: cta; justify-self: stretch; text-align: center; }
}

.smyle-vitrine-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--smyle-brand, #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.35);
  overflow: hidden;
  flex-shrink: 0;
}

.smyle-vitrine-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.smyle-vitrine-identity {
  min-width: 0;
}

.smyle-vitrine-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.smyle-vitrine-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

/* Checkmark officiel — utilise la couleur de marque du compte.
   Dessine un badge en étoile (12 branches) avec un ✓ au centre. */
.smyle-vitrine-checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--smyle-brand, #7C3AED);
  filter: drop-shadow(0 2px 6px rgba(124, 58, 237, 0.5));
  cursor: help;
}

.smyle-vitrine-bio {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 8px;
  max-width: 540px;
}

.smyle-vitrine-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
}

.smyle-vitrine-stat b {
  color: #fff;
  font-weight: 700;
}

.smyle-vitrine-stat-sep {
  opacity: 0.4;
}

.smyle-vitrine-cta {
  align-self: center;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--smyle-brand, #7C3AED);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.smyle-vitrine-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

/* Bandeau "Packs officiels Smyle" — variante du soh-header qui se
   fond mieux dans la vitrine (pas de margin top/bottom excessif). */
.smyle-vitrine-packs-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 8px 14px;
}

.smyle-vitrine-packs-label .soh-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.smyle-vitrine-packs-label .soh-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════ SECTIONS MARKETPLACE ═ */

.mp-section {
  max-width: 1080px;
  margin: 48px auto;
  padding: 0 24px;
}

.mp-section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* ── TEINTE PAR MONDE (07/07) — accent bleu électrique en mode musique,
   mauve en mode visuel. Couleurs canoniques ui/core/tokens.css. Seuls les
   ACCENTS changent : fond pétrole, cartes et socle binaire inchangés. */
body {
  --mp-accent: var(--sp-monde-audio, #0055ff);
  --mp-accent-txt: #7da2ff;
  --mp-accent-soft: rgba(0, 85, 255, 0.14);
  --mp-accent-on: #fff;
}
body.mp-mode-image {
  --mp-accent: var(--sp-monde-visuel, #cc88ff);
  --mp-accent-txt: #d9b0ff;
  --mp-accent-soft: rgba(204, 136, 255, 0.14);
  --mp-accent-on: #1a0030;
}

.mp-section-kicker {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mp-accent-txt, rgba(200, 163, 255, 0.75));
  font-weight: 700;
  padding: 3px 9px;
  background: var(--mp-accent-soft, rgba(124, 58, 237, 0.14));
  border-radius: 6px;
}

.mp-section-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

.mp-section-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-left: auto;
}


/* ══════════════════════════════════════════════ CLASSEMENTS (rankings) ═ */

.mp-ranking {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mp-ranking-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  transition: background 0.15s;
  cursor: pointer;
}

.mp-ranking-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.mp-ranking-rank {
  font-size: 18px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.mp-ranking-row:nth-child(1) .mp-ranking-rank { color: #FFD700; }
.mp-ranking-row:nth-child(2) .mp-ranking-rank { color: #C0C0C0; }
.mp-ranking-row:nth-child(3) .mp-ranking-rank { color: #CD7F32; }

.mp-ranking-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mp-ranking-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-ranking-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mp-ranking-sub-sep {
  opacity: 0.4;
}

.mp-ranking-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mp-ranking-empty {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  list-style: none;
}


/* ══════════════════════════════════════════════ GRILLES (catalogues) ═ */

.mp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.mp-grid-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

/* --- Carte son (catalogue) ----------------------------------- */

.mp-son-card {
  /* position:relative = ancre du badge recette en coin (QA 2026-06-13).
     Carte normale (retour à l'état d'origine — expérience verre/éclats abandonnée). */
  position: relative;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mp-son-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.05);
}

/* TAXONOMIE 2026-07-15 — variante BARRE : un SON SEUL (sans image vendable
   liée) s'affiche en ligne, sans cover ni socle. Occupe toute la largeur de
   la grille pour ne pas casser la grille de cartes-œuvres. */
.mp-son-card--bar {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}
.mp-son-card--bar:hover { transform: none; }

/* CARTE DÉPLIABLE 2026-07-20 — flèche ▾ + panneau de détail inline.
   Évite d'ouvrir la fiche latérale pour un simple coup d'œil. */
.mp-card-expand {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #cfc6e6;
  width: 26px;
  height: 26px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.15s, border-color 0.15s;
}
.mp-card-expand:hover {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(124, 58, 237, 0.6);
}
.mp-card-details {
  margin: 8px 0 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mp-card-details[hidden] { display: none; }
.mp-card-teaser {
  font-size: 0.7rem;
  color: #a79fc0;
  line-height: 1.5;
}
.mp-card-linked-thumb {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}
.mp-son-card--bar .mp-son-card-play {
  position: static;
  inset: auto;
  margin: 0;
  width: 40px;
  height: 40px;
  opacity: 1;
  flex: 0 0 auto;
}
.mp-son-bar-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mp-son-card--bar .mp-son-card-title,
.mp-son-card--bar .mp-son-card-artist {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-son-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.mp-son-bar-recipe {
  width: auto !important;
  margin-top: 0 !important;
}

.mp-adn-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(204,136,255,.45);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  color: #cc88ff;
  letter-spacing: .02em;
  cursor: pointer;
  z-index: 8;
  transition: background .15s, border-color .15s;
  pointer-events: auto;
}
.mp-adn-badge:hover {
  background: rgba(204,136,255,.18);
  border-color: rgba(204,136,255,.85);
}

.mp-son-card-cover {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--son-color, #7C3AED), #1a0030);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mp-son-card-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.mp-son-card:hover .mp-son-card-play {
  opacity: 1;
}

/* Pivot écoute (2026-05-05) — quand le track est en cours de lecture,
   garder le bouton play visible et changer son icône via background */
.mp-son-card.is-playing .mp-son-card-play {
  opacity: 1;
  background: rgba(124, 58, 237, 0.85);
}

.mp-son-card-play svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* Pivot écoute — image de cover (si uploadée). Sans cover, fallback
   sur le gradient existant (.mp-son-card-cover background). */
.mp-son-card-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Audio inline caché — la card propre fait office de player visuel
   via le bouton .mp-son-card-play, on ne montre pas les controls
   natifs du <audio>. */
.mp-son-card-audio {
  display: none;
}

/* Card cursor pointer (toute la zone est cliquable → profil) */
.mp-son-card {
  cursor: pointer;
}

/* Ranking row cliquable */
.mp-ranking-row-clickable {
  cursor: pointer;
}

/* Pivot écoute v2 (2026-05-05) — bouton play sur les rows Top Sons +
   audio caché (joué via JS, controls natifs masqués). */
.mp-ranking-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .12s ease;
}
.mp-ranking-play:hover {
  background: rgba(124, 58, 237, 0.35);
}
.mp-ranking-row.is-playing .mp-ranking-play {
  background: rgba(124, 58, 237, 0.6);
}
.mp-ranking-play svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}
.mp-ranking-audio {
  display: none;
}

.mp-son-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-son-card-artist {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 4px;
}

.mp-son-card-artist-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-son-card-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

/* --- Carte artiste (catalogue) ------------------------------- */

.mp-artist-card {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 14px;
}

.mp-artist-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.4);
}

.mp-artist-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--artist-color, #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.mp-artist-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-artist-card-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mp-artist-card-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mp-artist-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Checkmark officiel inline (dans les listes) — réutilisable */
.mp-checkmark-official {
  display: inline-flex;
  align-items: center;
  color: var(--artist-color, #7C3AED);
  flex-shrink: 0;
}

.mp-checkmark-official svg {
  filter: drop-shadow(0 1px 3px rgba(124, 58, 237, 0.5));
}

.mp-artist-card-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mp-artist-card-sub-sep {
  opacity: 0.4;
}

/* ─────────────────────────────────────────────────────────────────────────
   REFONTE DESIGN MARKETPLACE — minimaliste cohérent (2026-05-12)
   Cards compactes, boutons d'action discrets, Top Sons en flex pour
   accommoder les boutons + et ♥ ajoutés post-PR 2a-bis/2-ter.
   ─────────────────────────────────────────────────────────────────────── */

.mp-son-card-actions { display: none !important; }

.mp-son-card {
  padding: 10px;
  gap: 8px;
}

.mp-son-card-title {
  font-size: 13px;
}

.mp-son-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  padding: 4px 0 0;
  border-top: 1px solid rgba(255,255,255,.05);
  margin-top: 6px;
}
.mp-son-card-meta-plays,
.mp-son-card-meta > span:first-child {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Groupe actions dans la meta card marketplace */
.mp-son-card-meta-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.add-to-pl-btn,
.like-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  border-radius: 7px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
  flex: 0 0 28px;
  transition: color .12s ease, border-color .12s ease, background .12s ease;
  vertical-align: middle;
  font-family: inherit;
  font-weight: 400;
}

.add-to-pl-btn:hover {
  color: #cc88ff;
  border-color: rgba(204, 136, 255, 0.45);
  background: rgba(204, 136, 255, 0.06);
}

.like-btn::before { content: "\2661"; font-size: 14px; }
.like-btn:hover {
  color: #ff7799;
  border-color: rgba(255, 119, 153, 0.35);
  background: rgba(255, 119, 153, 0.05);
}

.like-btn.liked::before { content: "\2665"; }
.like-btn.liked {
  color: #ff5577;
  border-color: rgba(255, 85, 119, 0.5);
  background: rgba(255, 85, 119, 0.08);
}

/* ── Boutons Wishlist / Playlist dans le drawer marketplace ─────────────── */
.mp-td-social-row {
  display: flex;
  gap: 8px;
  padding: 12px 0 4px;
}
.mp-td-like-btn,
.mp-td-addpl-btn {
  flex: 1;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color .14s, border-color .14s, background .14s;
  font-family: inherit;
  letter-spacing: .01em;
}
.mp-td-like-btn:hover {
  color: #ff7799;
  border-color: rgba(255, 119, 153, .35);
  background: rgba(255, 119, 153, .06);
}
.mp-td-like-btn.liked {
  color: #ff5577;
  border-color: rgba(255, 85, 119, .5);
  background: rgba(255, 85, 119, .08);
}
.mp-td-addpl-btn:hover {
  color: #cc88ff;
  border-color: rgba(204, 136, 255, .4);
  background: rgba(204, 136, 255, .07);
}

.mp-ranking-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.mp-ranking-rank { flex: 0 0 32px; }
.mp-ranking-play { flex: 0 0 36px; }
.mp-ranking-main {
  flex: 1 1 auto;
  min-width: 0;
}
.mp-ranking-meta {
  flex: 0 0 auto;
  white-space: nowrap;
}
.mp-ranking-add,
.mp-ranking-like {
  flex: 0 0 24px;
}

.mp-grid-sons,
[class*="mp-grid"][class*="sons"] {
  grid-template-columns: repeat(auto-fill, minmax(180px, 240px)) !important;
}

/* ── Artist name dans cards/rows : lien explicite (post-fix navigation libre) */
.mp-son-card-artist-name {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}
.mp-son-card-artist-name:hover {
  color: #cc88ff;
  text-decoration: underline;
}
.mp-ranking-sub a {
  transition: color .15s ease;
}
.mp-ranking-sub a:hover {
  color: #cc88ff;
}

/* ── Badge ADN owned state ──────────────────────────────────────────────── */
.mp-adn-badge.is-owned {
  border-color: rgba(100,220,100,.5);
  color: #88dd88;
  cursor: default;
}
.mp-adn-badge.is-owned:hover {
  background: rgba(0,0,0,.72);
  border-color: rgba(100,220,100,.5);
}

/* ── Modale achat ADN artiste ────────────────────────────────────────────── */
.mp-adn-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: mpFadeIn .18s ease;
}
@keyframes mpFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.mp-adn-modal-box {
  position: relative;
  background: #130a1e;
  border: 1px solid rgba(204,136,255,.3);
  border-radius: 18px;
  padding: 32px 28px 28px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  animation: mpSlideUp .2s ease;
}
@keyframes mpSlideUp {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.mp-adn-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color .15s;
}
.mp-adn-modal-close:hover { color: #fff; }

.mp-adn-modal-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.mp-adn-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

.mp-adn-modal-desc {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
  margin: 0 0 18px;
}
.mp-adn-modal-desc strong { color: #cc88ff; }

.mp-adn-modal-price {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  background: rgba(204,136,255,.1);
  border: 1px solid rgba(204,136,255,.3);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 22px;
}
.mp-adn-modal-price-val {
  font-size: 22px;
  font-weight: 800;
  color: #cc88ff;
}
.mp-adn-modal-price-unit {
  font-size: 12px;
  color: rgba(204,136,255,.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.mp-adn-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}

.mp-adn-modal-cancel {
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.mp-adn-modal-cancel:hover {
  border-color: rgba(255,255,255,.3);
  color: #fff;
}

.mp-adn-modal-confirm {
  padding: 9px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: opacity .15s, transform .1s;
}
.mp-adn-modal-confirm:hover:not(:disabled) {
  opacity: .88;
  transform: translateY(-1px);
}
.mp-adn-modal-confirm:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.mp-adn-modal-note {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  margin: 0;
}

/* ── Badge Recette sur track cards ───────────────────────────────────────
   ⚠️ Définition canonique déplacée plus bas (« Bouton recette cliquable »).
   Ce bloc dupliqué FUSIONNAIT avec l'autre (absolu haut-gauche + pleine
   largeur translucide) → barre illisible qui mangeait la cover (retour QA
   Tom 2026-06-13). Un seul bloc fait foi désormais. */
.mp-recipe-badge.is-owned {
  border-color: rgba(100,220,100,.5);
  color: #88dd88;
  cursor: default;
}
.mp-recipe-badge.is-owned:hover {
  background: rgba(0,0,0,.72);
  border-color: rgba(100,220,100,.5);
}

/* ── Modale achat recette ────────────────────────────────────────────────── */
.mp-recipe-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: mpFadeIn .18s ease;
}
.mp-recipe-modal-box {
  position: relative;
  background: #130a1e;
  border: 1px solid rgba(255,200,80,.3);
  border-radius: 18px;
  padding: 32px 28px 28px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  animation: mpSlideUp .2s ease;
}
.mp-recipe-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color .15s;
}
.mp-recipe-modal-close:hover { color: #fff; }
.mp-recipe-modal-icon { font-size: 36px; margin-bottom: 12px; }
.mp-recipe-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}
.mp-recipe-modal-desc {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
  margin: 0 0 18px;
}
.mp-recipe-modal-desc strong { color: #ffc850; }
.mp-recipe-modal-price {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  background: rgba(255,200,80,.1);
  border: 1px solid rgba(255,200,80,.3);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 22px;
}
.mp-recipe-modal-price-val {
  font-size: 22px;
  font-weight: 800;
  color: #ffc850;
}
.mp-recipe-modal-price-unit {
  font-size: 12px;
  color: rgba(255,200,80,.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.mp-recipe-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}
.mp-recipe-modal-cancel {
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.mp-recipe-modal-cancel:hover { border-color: rgba(255,255,255,.3); color: #fff; }
.mp-recipe-modal-confirm {
  padding: 9px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #b8860b, #ffc850);
  color: #0a0a12;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: opacity .15s, transform .1s;
}
.mp-recipe-modal-confirm:hover:not(:disabled) { opacity: .88; transform: translateY(-1px); }
.mp-recipe-modal-confirm:disabled { opacity: .45; cursor: not-allowed; }
.mp-recipe-modal-note {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   SHOP CARDS MARKETPLACE — Voix + Playlists ADN
   Même langage visuel que les ap-shop-card du profil artiste.
   ───────────────────────────────────────────────────────────────────────── */

.mp-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  padding: 0 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.mp-shop-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-left-width: 3px;
  border-left-style: solid;
  border-left-color: #cc88ff;
  border-radius: 14px;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background .15s, transform .15s;
}
.mp-shop-card:hover {
  background: rgba(255,255,255,.055);
  transform: translateY(-2px);
}

.mp-shop-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mp-shop-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(204,136,255,.12);
  border: 1px solid rgba(204,136,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.mp-shop-card-info {
  flex: 1;
  min-width: 0;
}

.mp-shop-card-type {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(204,136,255,.75);
  margin-bottom: 2px;
}

.mp-shop-card-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(232,228,240,.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-shop-card-artist {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  text-decoration: none;
}
.mp-shop-card-artist:hover { color: rgba(255,255,255,.75); text-decoration: underline; }

.mp-shop-card-desc {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mp-shop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mp-shop-chip {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.6);
  letter-spacing: .2px;
}

.mp-shop-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Player preview voix — marketplace */
.mp-voice-preview {
  width: 100%;
  height: 28px;
  outline: none;
  border-radius: 6px;
  filter: invert(1) hue-rotate(180deg) brightness(.85);
}

.mp-shop-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(204,136,255,.45);
  color: #cc88ff;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .3px;
  backdrop-filter: blur(6px);
  transition: background .15s, border-color .15s;
}
.mp-shop-card-cta:hover {
  background: rgba(204,136,255,.15);
  border-color: rgba(204,136,255,.8);
}

@media (max-width: 640px) {
  .mp-shop-grid { grid-template-columns: 1fr 1fr; padding: 0 12px; }
}
@media (max-width: 420px) {
  .mp-shop-grid { grid-template-columns: 1fr; }
}

/* ══ Track Detail Drawer (click-to-detail marketplace) ═══════════════════ */
.mp-td-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .25s;
  pointer-events: none;
}
.mp-td-overlay.is-open { opacity: 1; pointer-events: auto; }

.mp-td-drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: min(420px, 100vw);
  background: #0f0d14;
  border-left: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.22,.68,0,1.2);
  z-index: 1201;
}
.mp-td-drawer.is-open { transform: translateX(0); }

.mp-td-close {
  position: absolute; top: 14px; right: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7); border-radius: 50%;
  width: 28px; height: 28px; cursor: pointer;
  font-size: 14px; line-height: 1; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.mp-td-close:hover { background: rgba(255,255,255,.14); }

.mp-td-cover {
  width: 100%; aspect-ratio: 1/1; max-height: 260px;
  overflow: hidden; flex-shrink: 0;
}
.mp-td-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-td-cover-fallback { width: 100%; height: 100%; }

.mp-td-body { padding: 18px 20px 32px; display: flex; flex-direction: column; gap: 10px; }

.mp-td-color-bar { height: 3px; border-radius: 2px; margin-bottom: 4px; }
.mp-td-type { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.mp-td-title { font-size: 20px; font-weight: 700; color: #fff; margin: 0; line-height: 1.2; }
.mp-td-artist { font-size: 13px; color: rgba(204,136,255,.9); text-decoration: none; }
.mp-td-artist:hover { text-decoration: underline; }
.mp-td-plays { font-size: 12px; color: rgba(255,255,255,.4); }

.mp-td-audio-wrap { margin-top: 4px; }
.mp-td-audio-label { font-size: 11px; color: rgba(255,255,255,.4); margin-bottom: 4px; }
.mp-td-audio { width: 100%; height: 28px; outline: none; border-radius: 6px; }

.mp-td-recipe {
  margin-top: 8px; padding: 14px 16px;
  border-radius: 12px;
  background: rgba(204,136,255,.07);
  border: 1px solid rgba(204,136,255,.2);
}
.mp-td-recipe-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mp-td-recipe-label { font-size: 11px; color: rgba(255,255,255,.45); margin-bottom: 3px; text-transform: uppercase; letter-spacing: .08em; }
.mp-td-recipe-price { font-size: 20px; font-weight: 700; color: #fff; }
.mp-td-recipe-unit { font-size: 12px; color: rgba(255,255,255,.45); }
.mp-td-recipe-btn {
  padding: 9px 16px; border-radius: 999px;
  background: rgba(204,136,255,.18);
  border: 1px solid rgba(204,136,255,.5);
  color: #cc88ff; font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.mp-td-recipe-btn:hover { background: rgba(204,136,255,.3); border-color: #cc88ff; }

@media (max-width: 480px) {
  .mp-td-drawer { width: 100vw; }
  .mp-td-cover { max-height: 200px; }
}

/* ── Fiche ID IMAGE — panneau latéral (C4) ──────────────────────────────────
   Miroir de .mp-td-* (drawer son) mais le héros est une grande zone d'aperçu
   visuel : médium visuel → image plus grande, object-fit:contain sur fond
   sombre pour respecter le ratio. Préfixe dédié .mp-id-* (pas de collision). */
.mp-id-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .25s;
  pointer-events: none;
}
.mp-id-overlay.is-open { opacity: 1; pointer-events: auto; }

.mp-id-drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: min(460px, 100vw);
  background: #0f0d14;
  border-left: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.22,.68,0,1.2);
  z-index: 1201;
}
.mp-id-drawer.is-open { transform: translateX(0); }

.mp-id-close {
  position: absolute; top: 14px; right: 16px;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.8); border-radius: 50%;
  width: 30px; height: 30px; cursor: pointer;
  font-size: 14px; line-height: 1; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.mp-id-close:hover { background: rgba(0,0,0,.7); }

/* Héros image agrandie : grande zone, fond sombre, ratio respecté. */
.mp-id-hero {
  width: 100%;
  min-height: 300px; max-height: 60vh;
  background: radial-gradient(120% 120% at 50% 0%, #1a1622 0%, #0a0810 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mp-id-hero-img {
  max-width: 100%; max-height: 60vh;
  width: auto; height: auto;
  object-fit: contain; display: block;
  user-select: none; -webkit-user-drag: none;
}
.mp-id-hero-fallback {
  width: 100%; min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; opacity: .35;
}

.mp-id-body { padding: 18px 20px 32px; display: flex; flex-direction: column; gap: 10px; }
.mp-id-type { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.mp-id-title { font-size: 20px; font-weight: 700; color: #fff; margin: 0; line-height: 1.2; }
.mp-id-artist { font-size: 13px; color: rgba(204,136,255,.9); text-decoration: none; }
.mp-id-artist:hover { text-decoration: underline; }
.mp-id-badges { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 2px; }
.mp-id-meta-line { font-size: 12px; color: rgba(255,255,255,.45); }
.mp-id-desc { font-size: 13px; color: rgba(255,255,255,.62); line-height: 1.5; }

.mp-id-social-row { display: flex; gap: 8px; padding: 6px 0 2px; }
.mp-id-like-btn {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.65);
  font-size: 12px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: color .14s, border-color .14s, background .14s;
}
.mp-id-like-btn:hover {
  color: #ff7799;
  border-color: rgba(255,119,153,.35);
  background: rgba(255,119,153,.06);
}
.mp-id-like-btn.liked {
  color: #ff5577;
  border-color: rgba(255,85,119,.5);
  background: rgba(255,85,119,.08);
}

/* Bloc « Œuvre complète » — son lié (aperçu only, achat séparé). */
/* C4 galerie avatar — bande d'aperçus publics dans la fiche image. */
.mp-id-gallery {
  margin-top: 6px; padding: 12px 14px;
  border-radius: 12px;
  background: rgba(124,58,237,.07);
  border: 1px solid rgba(124,58,237,.2);
}
.mp-id-gallery-label { font-size: 12px; font-weight: 700; color: #cbb3ff; margin-bottom: 8px; }
.mp-id-gallery-strip {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: thin;
}
.mp-id-gallery-thumb {
  width: 72px; height: 72px; flex-shrink: 0;
  object-fit: cover; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  -webkit-user-drag: none; user-select: none;
}
.mp-id-gallery-note { margin-top: 8px; font-size: 11px; color: rgba(255,255,255,.5); }

.mp-id-linked {
  margin-top: 6px; padding: 12px 14px;
  border-radius: 12px;
  background: rgba(124,58,237,.07);
  border: 1px solid rgba(124,58,237,.2);
}
.mp-id-linked-label { font-size: 11px; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.mp-id-linked-row { display: flex; align-items: center; gap: 10px; }
.mp-id-linked-cover { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.mp-id-linked-cover-fallback { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); font-size: 1.2rem; }
.mp-id-linked-main { flex: 1; min-width: 0; }
.mp-id-linked-title { font-size: 13px; font-weight: 700; color: #f3f0ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-id-linked-price { font-size: 12px; color: #cbb3ff; font-weight: 700; }
.mp-id-linked-price span { font-size: 10px; color: #8b7bd8; }
.mp-id-linked-btn {
  flex-shrink: 0;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(204,136,255,.18);
  border: 1px solid rgba(204,136,255,.5);
  color: #cc88ff; font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap; font-family: inherit;
  transition: background .15s, border-color .15s;
}
.mp-id-linked-btn:hover { background: rgba(204,136,255,.3); border-color: #cc88ff; }

/* CTA achat / état possession. */
.mp-id-cta { margin-top: 8px; }
.mp-id-buy {
  width: 100%;
  padding: 13px 18px; border-radius: 12px; border: none;
  background: linear-gradient(135deg,#7c5cff,#9d4dff);
  color: #fff; font-size: 14px; font-weight: 800;
  cursor: pointer; font-family: inherit;
  transition: filter .15s, transform .1s;
}
.mp-id-buy:hover { filter: brightness(1.08); }
.mp-id-buy:active { transform: translateY(1px); }
.mp-id-buy:disabled {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.45);
  cursor: default;
}
.mp-id-state {
  text-align: center; padding: 13px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 800;
}
.mp-id-state.owned { color: #4ADE80; background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.25); }
.mp-id-state.mine  { color: #8b7bd8; background: rgba(139,123,216,.08); border: 1px solid rgba(139,123,216,.25); }

@media (max-width: 480px) {
  .mp-id-drawer { width: 100vw; }
  .mp-id-hero { min-height: 240px; max-height: 50vh; }
  .mp-id-hero-img { max-height: 50vh; }
}

/* Bouton recette cliquable sur la card (remplace le simple indicateur) */
.mp-son-card-recipe-row {
  padding: 0 4px 4px;
}
/* Définition CANONIQUE (retour QA Tom 2026-06-13) : pastille compacte dans
   le COIN haut-droit de la card — elle ne mange plus la cover — fond quasi
   opaque pour rester lisible sur n'importe quelle pochette. */
.mp-recipe-badge {
  /* 2026-07-15 — le prix recette revient DANS le socle (colonne Musique /
     Visuel) au lieu de recouvrir la cover. Trois choix d'achat lisibles :
     Musique · Visuel · Œuvre. Cover libérée. */
  position: static;
  width: 100%;
  display: block;
  gap: 5px;
  background: rgba(12, 9, 20, .92);
  border: 1px solid rgba(204, 136, 255, .65);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 11px;
  color: #e7d9ff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: background .15s, border-color .15s, transform .15s;
}
.mp-recipe-badge:hover {
  background: rgba(50, 28, 78, .96);
  border-color: rgba(204, 136, 255, .95);
  transform: scale(1.04);
}
.mp-recipe-badge.is-owned {
  color: #6fffb0;
  border-color: rgba(111,255,176,.4);
  background: rgba(111,255,176,.08);
  cursor: default;
}
.mp-recipe-badge-price {
  font-weight: 400;
  opacity: .8;
}

/* Lien perma artiste (↗) sur la card */
.mp-son-card-permalink {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  flex-shrink: 0;
  margin-left: auto;
  transition: color .15s;
}
.mp-son-card-permalink:hover {
  color: rgba(255,255,255,.75);
}

/* ── SOCLE BINAIRE des cards son (plan binarité parfaite, 07/07) ─────────
   Deux demi-colonnes MUSIQUE (bleu électrique) | VISUEL (mauve) sous le
   titre, couture centrale, pont « Œuvre complète » si image liée.
   Couleurs canoniques : var(--sp-monde-audio) / var(--sp-monde-visuel). */
.mp-socle {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  margin: 6px 0 8px;
  border: 0.5px solid rgba(255,255,255,.10);
  border-radius: 9px;
  overflow: hidden;
}
.mp-socle.has-pont { border-radius: 9px 9px 0 0; margin-bottom: 0; }
.mp-socle-seam { background: rgba(255,255,255,.14); }
.mp-socle-half { padding: 7px 8px; min-width: 0; }
.mp-socle-half--music  { background: rgba(0,85,255,.10); }
.mp-socle-half--visual { background: rgba(204,136,255,.09); }
.mp-socle-face {
  font-size: .64rem; font-weight: 700; letter-spacing: .4px;
  margin-bottom: 5px; text-transform: uppercase;
}
.mp-socle-half--music  .mp-socle-face,
.mp-socle-half--music  .mp-socle-line { color: #7da2ff; }
.mp-socle-half--visual .mp-socle-face,
.mp-socle-half--visual .mp-socle-line { color: #d9b0ff; }
.mp-socle-line {
  font-size: .68rem; margin: 0 0 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-socle-price {
  display: block; width: 100%; margin-top: 4px; padding: 4px 6px;
  border: 0.5px solid rgba(255,255,255,.18); border-radius: 7px;
  background: rgba(0,0,0,.25); color: #eee;
  font-size: .7rem; font-weight: 600; cursor: pointer; text-align: center;
}
.mp-socle-price:hover { border-color: rgba(255,255,255,.4); }
.mp-socle-half--visual.is-invitation {
  background: transparent;
  border: 1px dashed rgba(204,136,255,.45);
  border-radius: 0 8px 8px 0;
  margin: -0.5px;
}
.mp-socle-invit-txt { font-size: .66rem; line-height: 1.4; color: #b9a3cf; margin-bottom: 5px; }
.mp-socle-invit-cta { font-size: .66rem; color: #d9b0ff; }
.mp-socle-pont {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; width: 100%;
  border: 0.5px solid rgba(255,255,255,.16); border-top: none;
  border-radius: 0 0 9px 9px;
  background: #181322; color: #eee;
  padding: 6px 8px; margin: 0 0 8px; cursor: pointer;
}
.mp-socle-pont:hover { background: #1f1830; }
.mp-socle-pont-lbl { padding: 0 8px; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.mp-socle-pont-rail { height: 2px; border-radius: 1px; }
.mp-socle-pont-rail--m { background: var(--sp-monde-audio, #0055ff); }
.mp-socle-pont-rail--v { background: var(--sp-monde-visuel, #cc88ff); }

/* ── Carte ID binaire (drawer détail son, 07/07) — grand socle ─────────── */
.mp-socle--td { margin: 12px 0 4px; }
.mp-socle-half--td { padding: 10px 11px; }
.mp-socle-half--td .mp-socle-face { font-size: .7rem; }
.mp-socle-half--td .mp-socle-line { font-size: .74rem; white-space: normal; }
.mp-td-socle-thumb {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 8px; margin: 2px 0 6px; cursor: pointer;
  border: 0.5px solid rgba(255,255,255,.14);
}
.mp-socle--td + .mp-socle-pont { margin-bottom: 4px; }
