/* =========================================================
   BPM 219 — Profils artistes et membres
   Amélioration progressive : aucune section existante retirée.
   ========================================================= */

body.bpm-profile-v219 {
  --bpm219-profile-line: color-mix(in srgb, var(--bdr, #253047) 78%, rgba(14,165,255,.24));
  --bpm219-profile-glow: rgba(14,165,255,.16);
}

body.bpm-profile-v219 .profil-hero {
  min-height: 270px;
  height: auto;
  isolation: isolate;
}

body.bpm-profile-v219 .profil-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}

body.bpm-profile-v219 .profil-hero .ph-bg-img {
  transform: scale(1.012);
  filter: saturate(1.04) contrast(1.02);
}

body.bpm-profile-v219 .profil-hero .ph-grad {
  background:
    linear-gradient(180deg, rgba(1,5,14,.08) 0%, rgba(1,5,14,.46) 48%, rgba(1,5,14,.94) 100%),
    linear-gradient(90deg, rgba(1,5,14,.68), transparent 62%);
}

body.bpm-profile-v219 .profil-hero .ph-bottom {
  z-index: 2;
  gap: 1rem;
  padding-bottom: 1.15rem;
}

body.bpm-profile-v219 .profil-hero .ph-ava {
  border: 3px solid rgba(255,255,255,.88);
  outline: 5px solid rgba(14,165,255,.12);
  background: linear-gradient(145deg, var(--s2, #111827), var(--s3, #172033));
}

body.bpm-profile-v219 .profil-hero .ph-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.bpm-profile-v219 .profil-hero .ph-name {
  text-wrap: balance;
  max-width: 850px;
}

body.bpm-profile-v219 .profil-hero .ph-url {
  opacity: .86;
}

body.bpm-profile-v219 .profil-hero .ph-actions {
  gap: .45rem;
}

body.bpm-profile-v219 .profil-hero .ph-actions .btn {
  min-height: 39px;
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

body.bpm-profile-v219 .profil-body {
  position: relative;
  padding-top: 1.1rem;
  padding-bottom: 4rem;
}

body.bpm-profile-v219 .profil-badges {
  gap: .45rem;
}

body.bpm-profile-v219 .profil-bio {
  position: relative;
  max-width: 1040px;
  color: color-mix(in srgb, var(--text, #fff) 78%, var(--muted, #93a4bb));
  line-height: 1.72;
  font-size: 14px;
  margin-bottom: .65rem;
  transition: max-height .25s ease;
}

body.bpm-profile-v219 .profil-bio.bpm219-bio-collapsed {
  max-height: 7.2em;
  overflow: hidden;
}

body.bpm-profile-v219 .profil-bio.bpm219-bio-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.6em;
  pointer-events: none;
  background: linear-gradient(transparent, var(--bg, #050914));
}

body.bpm-profile-v219 .bpm219-bio-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 0;
  background: none;
  color: var(--bb, #59c7ff);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: .2rem 0 .7rem;
  cursor: pointer;
}

body.bpm-profile-v219 .bpm219-profile-nav {
  position: sticky;
  top: 74px;
  z-index: 24;
  display: flex;
  align-items: center;
  gap: .42rem;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  padding: .55rem;
  margin: .85rem 0 1rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surf, #0b1220) 89%, transparent);
  box-shadow: 0 14px 44px rgba(0,0,0,.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.bpm-profile-v219 .bpm219-profile-nav::-webkit-scrollbar {
  display: none;
}

body.bpm-profile-v219 .bpm219-profile-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 37px;
  padding: .5rem .72rem;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted, #93a4bb);
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

body.bpm-profile-v219 .bpm219-profile-nav a:hover,
body.bpm-profile-v219 .bpm219-profile-nav a:focus-visible {
  color: #fff;
  border-color: rgba(14,165,255,.22);
  background: rgba(14,165,255,.08);
  outline: none;
}

body.bpm-profile-v219 .bpm219-profile-nav a.is-active {
  color: #fff;
  border-color: rgba(14,165,255,.34);
  background: linear-gradient(135deg, rgba(14,165,255,.22), rgba(37,99,235,.14));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}

body.bpm-profile-v219 .bpm192-tabs.bpm219-profile-nav {
  flex-wrap: nowrap;
  margin-bottom: 1rem;
}

body.bpm-profile-v219 .bpm192-tabs.bpm219-profile-nav a {
  border-radius: 11px;
  background: transparent;
}

body.bpm-profile-v219 .bpm192-tabs.bpm219-profile-nav a:hover,
body.bpm-profile-v219 .bpm192-tabs.bpm219-profile-nav a.is-active {
  transform: none;
  background: rgba(14,165,255,.10);
}

body.bpm-profile-v219 .bpm192-artist-premium {
  border-color: rgba(14,165,255,.22);
  box-shadow: 0 28px 86px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.025);
}

body.bpm-profile-v219 .bpm192-premium-art img,
body.bpm-profile-v219 .post-cover-img img,
body.bpm-profile-v219 .bpm192-video-card video {
  transition: transform .25s ease, filter .25s ease;
}

body.bpm-profile-v219 .bpm192-premium-art:hover img,
body.bpm-profile-v219 .post-cover-img:hover img {
  transform: scale(1.025);
}

body.bpm-profile-v219 .bpm192-metrics div,
body.bpm-profile-v219 .bpm192-card,
body.bpm-profile-v219 .section-card,
body.bpm-profile-v219 .ic-card,
body.bpm-profile-v219 .post-card,
body.bpm-profile-v219 .playlist-card,
body.bpm-profile-v219 .radio-emission-card {
  border-color: var(--bpm219-profile-line);
  box-shadow: 0 12px 36px rgba(0,0,0,.14);
}

body.bpm-profile-v219 .bpm192-metrics div {
  min-width: 0;
}

body.bpm-profile-v219 .bpm192-feature-grid > *,
body.bpm-profile-v219 .profil-main > .post-card,
body.bpm-profile-v219 .profil-main > .section-card,
body.bpm-profile-v219 .profil-sidebar > * {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

@media (hover:hover) and (pointer:fine) {
  body.bpm-profile-v219 .bpm192-feature-grid > *:hover,
  body.bpm-profile-v219 .profil-main > .post-card:hover,
  body.bpm-profile-v219 .profil-sidebar > *:hover {
    transform: translateY(-2px);
    border-color: rgba(14,165,255,.24);
    box-shadow: 0 18px 48px rgba(0,0,0,.20);
  }
}

body.bpm-profile-v219 .profil-layout {
  align-items: start;
}

body.bpm-profile-v219 .profil-main {
  min-width: 0;
}

body.bpm-profile-v219 .profil-sidebar {
  position: sticky;
  top: 138px;
  min-width: 0;
}

body.bpm-profile-v219 .profile-section-title {
  position: relative;
  scroll-margin-top: 142px;
  margin-top: 1.45rem;
  padding-bottom: .55rem;
  font-size: 21px;
}

body.bpm-profile-v219 .profile-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(14,165,255,.48), rgba(255,255,255,.06) 42%, transparent);
}

body.bpm-profile-v219 #bpm192-music,
body.bpm-profile-v219 #bpm192-videos,
body.bpm-profile-v219 #bpm192-events,
body.bpm-profile-v219 #bpm192-wall,
body.bpm-profile-v219 #bpm192-playlists,
body.bpm-profile-v219 #bpm192-epk,
body.bpm-profile-v219 #profile-overview {
  scroll-margin-top: 145px;
}

body.bpm-profile-v219 .post-card {
  border-radius: 18px;
  overflow: hidden;
}

body.bpm-profile-v219 .post-head {
  gap: .8rem;
}

body.bpm-profile-v219 .post-cover-img {
  flex: 0 0 auto;
  overflow: hidden;
}

body.bpm-profile-v219 .post-title,
body.bpm-profile-v219 .playlist-track-title,
body.bpm-profile-v219 .bpm192-video-card strong {
  overflow-wrap: anywhere;
}

body.bpm-profile-v219 .post-acts {
  gap: .25rem;
  flex-wrap: wrap;
}

body.bpm-profile-v219 .post-acts button {
  min-height: 35px;
}

body.bpm-profile-v219 .tr,
body.bpm-profile-v219 .playlist-track,
body.bpm-profile-v219 .public-playlist-mini {
  transition: background .15s ease, border-color .15s ease;
}

body.bpm-profile-v219 .tr:hover,
body.bpm-profile-v219 .playlist-track:hover {
  background: rgba(14,165,255,.055);
}

body.bpm-profile-v219 .bpm192-video-card video {
  background: #02050c;
}

body.bpm-profile-v219 .bpm219-copy-toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 9999;
  transform: translate(-50%, 18px);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  max-width: min(92vw, 420px);
  padding: .72rem .9rem;
  border: 1px solid rgba(14,165,255,.28);
  border-radius: 12px;
  background: rgba(4,10,22,.94);
  color: #fff;
  box-shadow: 0 18px 55px rgba(0,0,0,.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  font-size: 13px;
  font-weight: 750;
  backdrop-filter: blur(14px);
}

body.bpm-profile-v219 .bpm219-copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.bpm-profile-v219 .bpm219-copy-toast i {
  color: var(--bb, #59c7ff);
  font-size: 18px;
}

@media (max-width: 900px) {
  body.bpm-profile-v219 .profil-sidebar {
    position: static;
    order: 0;
  }

  body.bpm-profile-v219 .profil-layout {
    display: flex !important;
    flex-direction: column;
  }

  body.bpm-profile-v219 .profil-main,
  body.bpm-profile-v219 .profil-sidebar {
    width: 100%;
  }

  body.bpm-profile-v219 .bpm219-profile-nav {
    top: 62px;
    margin-inline: -.2rem;
    border-radius: 14px;
  }
}

@media (max-width: 680px) {
  body.bpm-profile-v219 .profil-hero {
    min-height: 380px !important;
  }

  body.bpm-profile-v219 .profil-hero .ph-actions {
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    width: calc(100vw - 2rem) !important;
    padding: .15rem 0 .3rem;
    scrollbar-width: none;
  }

  body.bpm-profile-v219 .profil-hero .ph-actions::-webkit-scrollbar {
    display: none;
  }

  body.bpm-profile-v219 .profil-hero .ph-actions .btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content;
  }

  body.bpm-profile-v219 .profil-body {
    padding-inline: .85rem;
  }

  body.bpm-profile-v219 .bpm192-metrics {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  body.bpm-profile-v219 .bpm192-metrics::-webkit-scrollbar {
    display: none;
  }

  body.bpm-profile-v219 .bpm192-metrics div {
    flex: 0 0 118px;
    scroll-snap-align: start;
  }

  body.bpm-profile-v219 .bpm192-feature-grid {
    grid-template-columns: 1fr;
  }

  body.bpm-profile-v219 .post-head {
    align-items: flex-start;
  }

  body.bpm-profile-v219 .post-head > .btn {
    min-width: 40px;
    min-height: 40px;
  }

  body.bpm-profile-v219 .tr {
    grid-template-columns: 34px minmax(0,1fr) auto;
  }

  body.bpm-profile-v219 .tr .btn {
    grid-column: 2 / -1;
    justify-self: start;
    margin: .15rem 0 .35rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.bpm-profile-v219 *,
  body.bpm-profile-v219 *::before,
  body.bpm-profile-v219 *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
