:root {
  --mp3-bg: #0f1419;
  --mp3-bg-soft: #171d24;
  --mp3-surface: #ffffff;
  --mp3-surface-muted: #f4f6f8;
  --mp3-text: #1a2332;
  --mp3-text-muted: #5c6b7a;
  --mp3-primary: #e85d04;
  --mp3-primary-dark: #c44900;
  --mp3-accent: #009688;
  --mp3-border: rgba(15, 20, 25, 0.08);
  --mp3-radius: 16px;
  --mp3-radius-sm: 10px;
  --mp3-shadow: 0 12px 40px rgba(15, 20, 25, 0.12);
  --mp3-header-h: 56px;
}

body.mp3-modern {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--mp3-text);
  background: linear-gradient(180deg, #eef2f6 0%, #f8fafc 240px, #f4f6f8 100%);
  overflow-x: hidden;
  overflow-y: auto !important;
  height: auto !important;
}

body.mp3-modern .hbox.stretch {
  display: block;
  height: auto !important;
}

body.mp3-modern .hbox.stretch > aside,
body.mp3-modern .hbox.stretch > section {
  display: block;
  width: 100%;
  height: auto !important;
  float: none;
}

@media (min-width: 768px) {
  body.mp3-modern .hbox.stretch {
    display: table;
    table-layout: fixed;
    width: 100%;
  }

  body.mp3-modern .hbox.stretch > aside {
    display: table-cell;
    width: 220px;
    vertical-align: top;
  }

  body.mp3-modern .hbox.stretch > section#content {
    display: table-cell;
    vertical-align: top;
  }
}

/* Contenu principal réduit pour laisser plus de place à la sidebar droite */
@media (min-width: 992px) {
  body.mp3-modern #content > .hbox.stretch > aside#sidebar.aside-md {
    width: 300px;
    min-width: 300px;
    padding-left: 12px;
  }

  body.mp3-modern #content > .hbox.stretch > section:first-of-type .padder-lg {
    padding-right: 16px;
  }

  body.mp3-modern #content .row:has(#sidebar) > .col-sm-9 {
    width: 66.66666667%;
  }

  body.mp3-modern #content .row:has(#sidebar) > .col-sm-3 {
    width: 33.33333333%;
  }

  body.mp3-modern #content .row:has(#sidebar) > .col-sm-9.wrapper-lg,
  body.mp3-modern #content .scrollable.wrapper-lg:has(+ .row #sidebar),
  body.mp3-modern #content .scrollable.wrapper-lg .row:has(#sidebar) > .col-sm-9 {
    padding-right: 16px;
  }
}

body.mp3-modern .vbox > section {
  position: relative !important;
}

/* Un seul décalage sous l'en-tête fixe (annule top/padding legacy de app.css) */
body.mp3-modern .navbar-fixed-top.header-md + *,
body.mp3-modern .navbar-fixed-top.header-md + .hbox.stretch,
body.mp3-modern .navbar-fixed-top-xs + *,
body.mp3-modern .vbox > header.header-md ~ section,
body.mp3-modern .vbox > header ~ section {
  top: 0 !important;
  padding-top: 0 !important;
  margin-top: var(--mp3-header-h) !important;
}

body.mp3-modern .scrollable {
  overflow: visible !important;
}

/* ── En-tête site ── */
body.mp3-modern .mp3-site-header.header.header-md {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  min-height: var(--mp3-header-h);
  height: var(--mp3-header-h);
  padding: 0;
  background: rgba(15, 20, 25, 0.96) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

body.mp3-modern .mp3-site-header .mp3-site-header__brand.navbar-header {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0;
  max-width: none;
  min-height: var(--mp3-header-h);
  padding: 0 12px 0 6px;
  background: transparent !important;
  float: none;
  position: relative;
  text-align: left;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

body.mp3-modern .mp3-site-header .mp3-site-header__brand > .btn {
  position: static;
  flex: 0 0 auto;
  order: -1;
  padding: 6px 8px;
  margin: 0;
  line-height: 1;
  font-size: 1.15em;
  color: rgba(255, 255, 255, 0.92) !important;
}

body.mp3-modern .mp3-site-header .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  line-height: 1;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  float: none;
  white-space: nowrap;
}

body.mp3-modern .mp3-site-header .navbar-brand img {
  height: 28px;
  max-height: 28px;
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

body.mp3-modern .mp3-site-header__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  color: #fff !important;
}

body.mp3-modern .mp3-site-header .mp3-site-header__collapse {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  float: none;
}

body.mp3-modern .mp3-site-header .mp3-site-header__collapse > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0 4px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72) !important;
}

body.mp3-modern .mp3-site-header .mp3-site-header__collapse > li > a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

body.mp3-modern .mp3-site-header .mp3-site-header__actions.navbar-right {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 6px;
  float: none;
  margin: 0;
  padding: 0 12px 0 8px;
  min-width: 0;
}

body.mp3-modern .mp3-site-header .mp3-site-header__search.navbar-form {
  flex: 1 1 auto;
  max-width: 380px;
  min-width: 0;
  margin: 0;
  padding: 0;
  float: none;
}

body.mp3-modern .mp3-site-header .mp3-site-header__search .form-group {
  margin: 0;
  width: 100%;
}

body.mp3-modern .mp3-site-header .mp3-site-header__search .input-group {
  width: 100%;
}

body.mp3-modern .mp3-site-header .mp3-site-header__search .form-control {
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 13px;
}

body.mp3-modern .mp3-site-header .mp3-site-header__search .input-group-btn .btn {
  height: 36px;
  border-radius: 999px 0 0 999px;
}

body.mp3-modern .mp3-site-header .mp3-site-header__nav {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 2px;
  margin: 0;
  float: none;
}

body.mp3-modern .mp3-site-header .mp3-site-header__nav > li > a {
  padding: 8px 11px;
  font-size: 13px;
  border-radius: 999px;
  white-space: nowrap;
}

body.mp3-modern .mp3-site-header .mp3-site-header__nav .dropdown-toggle {
  background: rgba(255, 255, 255, 0.08) !important;
}

body.mp3-modern .mp3-site-header .nav-user > li > a {
  color: #fff !important;
  font-weight: 600;
}

@media (min-width: 768px) {
  body.mp3-modern .mp3-site-header .mp3-site-header__brand.navbar-header {
    min-width: 188px;
    padding: 0 14px 0 10px;
  }

  body.mp3-modern .mp3-site-header__title {
    font-size: 14px;
  }

  body.mp3-modern .mp3-site-header .navbar-brand img {
    height: 30px;
    max-height: 30px;
  }
}

@media (max-width: 767px) {
  body.mp3-modern .mp3-site-header .mp3-site-header__brand.navbar-header {
    flex: 0 1 auto;
    max-width: 46%;
    padding: 0 8px 0 2px;
  }

  body.mp3-modern .mp3-site-header__title {
    font-size: 11px;
    letter-spacing: 0;
  }

  body.mp3-modern .mp3-site-header .navbar-brand img {
    height: 24px;
    max-height: 24px;
  }

  body.mp3-modern .mp3-site-header .mp3-site-header__actions.navbar-right {
    padding: 0 8px 0 0;
  }

  body.mp3-modern .mp3-site-header .mp3-site-header__search.navbar-form {
    max-width: none;
  }

  body.mp3-modern .mp3-site-header .mp3-site-header__search .form-control {
    height: 34px;
    font-size: 12px;
    padding: 6px 10px;
  }

  body.mp3-modern .mp3-site-header .mp3-site-header__search .input-group-btn .btn {
    height: 34px;
    padding: 0 9px;
  }
}

@media (max-width: 360px) {
  body.mp3-modern .mp3-site-header__title {
    font-size: 10px;
  }

  body.mp3-modern .mp3-site-header .navbar-brand {
    gap: 5px;
  }
}

body.mp3-modern #nav.aside {
  background: linear-gradient(180deg, #121820, #0d1218) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  width: 272px;
  min-width: 272px;
}

/* Sidebar : flex (plus de float sur les icônes), rubriques indentées */
body.mp3-modern #nav .mp3-sidebar-nav {
  float: none;
  padding: 6px 0 28px;
  margin: 0;
}

body.mp3-modern #nav .mp3-sidebar-nav::before,
body.mp3-modern #nav .mp3-sidebar-nav::after {
  display: none;
}

body.mp3-modern #nav .mp3-sidebar-nav > li {
  float: none;
  clear: both;
  width: 100%;
}

body.mp3-modern #nav .mp3-sidebar-nav__heading {
  display: block;
  padding: 16px 20px 6px;
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  list-style: none;
}

body.mp3-modern #nav .mp3-sidebar-nav__item > a {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 2px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  line-height: 1.35;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.mp3-modern #nav .mp3-sidebar-nav__item > a:hover,
body.mp3-modern #nav .mp3-sidebar-nav__item > a:focus {
  background: rgba(232, 93, 4, 0.18);
  color: #fff;
  transform: translateX(2px);
  outline: none;
}

body.mp3-modern #nav .mp3-sidebar-nav__item--hub > a {
  margin-left: 14px;
  margin-right: 12px;
}

body.mp3-modern #nav .mp3-sidebar-nav__item--sub > a {
  margin-left: 22px;
  margin-right: 12px;
  padding-left: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

body.mp3-modern #nav .mp3-sidebar-nav__item > a > i {
  float: none !important;
  flex: 0 0 20px;
  width: 20px !important;
  min-width: 20px;
  margin: 1px 0 0 !important;
  line-height: 1.25 !important;
  text-align: center;
  font-size: 15px;
  position: static !important;
  overflow: visible !important;
}

body.mp3-modern #nav .mp3-sidebar-nav__label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

body.mp3-modern #nav .mp3-sidebar-nav__divider {
  list-style: none;
  margin: 10px 20px;
  padding: 0;
  height: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Menu réduit (icônes seules — classe .nav-xs sur #nav) */
body.mp3-modern #nav.aside.nav-xs {
  width: 70px !important;
  min-width: 70px !important;
}

body.mp3-modern #nav.nav-xs .mp3-sidebar-nav__heading,
body.mp3-modern #nav.nav-xs .mp3-sidebar-nav__label,
body.mp3-modern #nav.nav-xs .mp3-sidebar-nav__divider {
  display: none !important;
}

body.mp3-modern #nav.nav-xs .mp3-sidebar-nav__item > a {
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin: 2px 6px;
  padding: 12px 6px !important;
  min-height: 44px;
  height: auto !important;
  overflow: visible !important;
  text-align: center;
}

body.mp3-modern #nav.nav-xs .mp3-sidebar-nav__item--hub > a,
body.mp3-modern #nav.nav-xs .mp3-sidebar-nav__item--sub > a {
  margin-left: 6px;
  margin-right: 6px;
  padding-left: 6px !important;
  border-left: none;
}

body.mp3-modern #nav.nav-xs .mp3-sidebar-nav__item > a > i {
  margin: 0 !important;
  font-size: 17px;
  flex: none;
}

/* Rétrocompatibilité liens sans mp3-sidebar-nav */
body.mp3-modern #nav .nav-primary .nav:not(.mp3-sidebar-nav) > li > a {
  border-radius: 12px;
  margin: 4px 10px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.82);
  transition: background 0.2s ease, transform 0.2s ease;
}

body.mp3-modern #nav .hidden-nav-xs.text-muted {
  color: rgba(255, 255, 255, 0.45) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

body.mp3-modern #content {
  background: transparent;
}

body.mp3-modern .wrapper-lg {
  padding-top: 24px;
  padding-left: 20px;
  padding-right: 20px;
}

.mp3-hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--mp3-radius) + 4px);
  padding: 36px 32px;
  margin-bottom: 28px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(232, 93, 4, 0.35), transparent 42%),
    linear-gradient(135deg, #121820 0%, #1f2937 55%, #0f766e 100%);
  box-shadow: var(--mp3-shadow);
  isolation: isolate;
}

.mp3-hero__wave {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.mp3-hero__wave-canvas {
  display: block;
  width: 100%;
  height: 100%;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 45%, transparent 100%);
}

.mp3-hero__content {
  position: relative;
  z-index: 2;
}

.mp3-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18, 24, 32, 0.82) 0%, rgba(18, 24, 32, 0.5) 38%, rgba(18, 24, 32, 0.15) 72%, rgba(15, 118, 110, 0.12) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .mp3-hero__wave-canvas {
    opacity: 0.85;
  }
}

.mp3-hero__eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.mp3-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
}

.mp3-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

.mp3-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mp3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mp3-btn:hover {
  transform: translateY(-1px);
}

.mp3-btn--primary {
  background: var(--mp3-primary);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(232, 93, 4, 0.28);
}

.mp3-btn--primary:hover {
  background: var(--mp3-primary-dark);
  color: #fff !important;
}

.mp3-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.mp3-btn--ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--mp3-border);
  background: var(--mp3-surface);
  color: var(--mp3-text) !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mp3-btn--ghost-dark:hover {
  transform: translateY(-1px);
  background: var(--mp3-surface-muted);
  color: var(--mp3-text) !important;
}

.mp3-track-detail {
  margin-bottom: 24px;
}

.mp3-track-detail__hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px;
  margin-bottom: 18px;
  border-radius: calc(var(--mp3-radius) + 2px);
  background: var(--mp3-surface);
  border: 1px solid var(--mp3-border);
  box-shadow: var(--mp3-shadow);
}

.mp3-track-detail__artist-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: var(--mp3-text) !important;
}

.mp3-track-detail__artist-link img {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(15, 20, 25, 0.12);
}

.mp3-track-detail__artist-name {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  max-width: 100px;
  line-height: 1.3;
}

.mp3-track-detail__type {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.1);
  color: var(--mp3-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mp3-track-detail__title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--mp3-text);
}

.mp3-track-detail__intro {
  margin: 0 0 14px;
  color: var(--mp3-text-muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

.mp3-track-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp3-track-detail__meta li {
  font-size: 13px;
  color: var(--mp3-text-muted);
}

.mp3-track-detail__meta .fa {
  margin-right: 4px;
  color: var(--mp3-primary);
}

.mp3-track-detail__player {
  margin-bottom: 16px;
}

.mp3-track-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  align-items: flex-end;
}

.mp3-download-form {
  flex: 1 1 280px;
  max-width: 100%;
}

.mp3-download-form__fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.mp3-download-form__captcha {
  min-height: 65px;
}

.mp3-captcha-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mp3-track-detail__description {
  padding: 18px 20px;
  border-radius: var(--mp3-radius-sm);
  background: var(--mp3-surface-muted);
  border: 1px solid var(--mp3-border);
}

.mp3-track-detail__description h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
}

.mp3-track-detail__description p {
  margin: 0;
  color: var(--mp3-text-muted);
  line-height: 1.65;
}

.mp3-share__lead {
  margin: 0 0 18px;
  color: var(--mp3-text-muted);
  line-height: 1.55;
}

.mp3-share__native {
  margin-bottom: 14px;
}

.mp3-share__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.mp3-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  color: #fff !important;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.mp3-share-btn:hover,
.mp3-share-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  color: #fff !important;
}

.mp3-share-btn--native {
  width: auto;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
}

.mp3-share-btn--whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.mp3-share-btn--facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

.mp3-share-btn--twitter {
  background: linear-gradient(135deg, #14171a 0%, #000 100%);
}

.mp3-share-btn--linkedin {
  background: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
}

.mp3-share-btn--email {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.mp3-share__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.mp3-share__url {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--mp3-border, #dbe3ef);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--mp3-text-muted);
  font-size: 13px;
}

.mp3-share-btn--copy {
  width: auto;
  white-space: nowrap;
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

.mp3-share__feedback {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  color: #0f766e;
  font-weight: 600;
}

@media (max-width: 575px) {
  .mp3-share__copy {
    grid-template-columns: 1fr;
  }

  .mp3-share-btn--copy {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .mp3-track-detail__hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mp3-track-detail__meta {
    justify-content: center;
  }

  .mp3-track-detail__actions {
    flex-direction: column;
  }

  .mp3-track-detail__actions .mp3-btn {
    width: 100%;
    justify-content: center;
  }
}

.mp3-panel {
  background: var(--mp3-surface);
  border: 1px solid var(--mp3-border);
  border-radius: var(--mp3-radius);
  box-shadow: var(--mp3-shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.mp3-panel h2,
.mp3-panel h3 {
  margin-top: 0;
  font-weight: 700;
  color: var(--mp3-text);
}

.mp3-panel p,
.mp3-panel li {
  color: var(--mp3-text-muted);
  line-height: 1.7;
}

.mp3-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 18px;
}

.mp3-section-title h2,
.mp3-section-title h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.mp3-section-title__lead {
  margin: 6px 0 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--mp3-text-muted);
}

.mp3-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.mp3-category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 132px;
  padding: 18px;
  border-radius: var(--mp3-radius);
  text-decoration: none !important;
  color: var(--mp3-text) !important;
  background: var(--mp3-surface);
  border: 1px solid var(--mp3-border);
  box-shadow: 0 8px 24px rgba(15, 20, 25, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mp3-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 20, 25, 0.12);
}

.mp3-category-card__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 18px;
  color: #fff;
}

.mp3-category-card__label {
  font-weight: 700;
  line-height: 1.35;
}

.mp3-category-card--amber .mp3-category-card__icon { background: #f59e0b; }
.mp3-category-card--green .mp3-category-card__icon { background: #10b981; }
.mp3-category-card--blue .mp3-category-card__icon { background: #3b82f6; }
.mp3-category-card--violet .mp3-category-card__icon { background: #8b5cf6; }
.mp3-category-card--rose .mp3-category-card__icon { background: #ec4899; }
.mp3-category-card--indigo .mp3-category-card__icon { background: #6366f1; }
.mp3-category-card--teal .mp3-category-card__icon { background: #14b8a6; }
.mp3-category-card--gold .mp3-category-card__icon { background: #d97706; }

.mp3-artist-section {
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
}

.mp3-artist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 576px) {
  .mp3-artist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 992px) {
  .mp3-artist-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1200px) {
  .mp3-artist-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

a.mp3-artist-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--mp3-surface);
  border: 1px solid rgba(15, 20, 25, 0.07);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(15, 20, 25, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none !important;
  color: var(--mp3-text) !important;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(232, 93, 4, 0.15);
  position: relative;
  isolation: isolate;
}

a.mp3-artist-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

a.mp3-artist-card:hover,
a.mp3-artist-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(232, 93, 4, 0.22);
  box-shadow: 0 18px 40px rgba(15, 20, 25, 0.14);
  color: var(--mp3-text) !important;
}

a.mp3-artist-card:focus-visible {
  outline: 2px solid var(--mp3-primary);
  outline-offset: 3px;
}

.mp3-artist-card__media {
  position: relative;
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(145deg, #1a2332, #0f1419);
}

.mp3-artist-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.45s ease;
}

a.mp3-artist-card:hover .mp3-artist-card__media img,
a.mp3-artist-card:focus-visible .mp3-artist-card__media img {
  transform: scale(1.06);
}

.mp3-artist-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.96), rgba(196, 73, 0, 0.94));
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(232, 93, 4, 0.35);
}

.mp3-artist-card__badge .fa {
  font-size: 10px;
}

.mp3-artist-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(15, 20, 25, 0.05), rgba(15, 20, 25, 0.45));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.mp3-artist-card__play {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--mp3-primary);
  font-size: 15px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transform: scale(0.92);
  transition: transform 0.25s ease;
}

.mp3-artist-card__play .fa {
  margin-left: 2px;
}

a.mp3-artist-card:hover .mp3-artist-card__overlay,
a.mp3-artist-card:focus-visible .mp3-artist-card__overlay {
  opacity: 1;
}

a.mp3-artist-card:hover .mp3-artist-card__play,
a.mp3-artist-card:focus-visible .mp3-artist-card__play {
  transform: scale(1);
}

@media (hover: none) {
  a.mp3-artist-card:active .mp3-artist-card__overlay {
    opacity: 0.85;
  }
}

.mp3-artist-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
}

.mp3-artist-card__title {
  display: -webkit-box;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--mp3-text);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mp3-artist-card__meta {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--mp3-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp3-artist-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 20, 25, 0.06);
}

.mp3-artist-card__tracks {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mp3-primary);
}

.mp3-artist-card__tracks--muted {
  color: var(--mp3-text-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.mp3-artist-card__arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.1);
  color: var(--mp3-primary);
  font-size: 11px;
  transition: transform 0.25s ease, background 0.25s ease;
}

a.mp3-artist-card:hover .mp3-artist-card__arrow,
a.mp3-artist-card:focus-visible .mp3-artist-card__arrow {
  transform: translateX(2px);
  background: rgba(232, 93, 4, 0.16);
}

.mp3-pagination {
  display: flex;
  justify-content: center;
  margin: 28px 0 8px;
}

.mp3-pagination .pagination {
  margin: 0;
  border-radius: 999px;
  padding: 6px;
  background: var(--mp3-surface);
  border: 1px solid var(--mp3-border);
  box-shadow: 0 6px 18px rgba(15, 20, 25, 0.05);
}

.mp3-pagination .pagination > li > a,
.mp3-pagination .pagination > li > span {
  border: 0 !important;
  border-radius: 999px !important;
  margin: 0 2px;
  color: var(--mp3-text) !important;
  font-weight: 600;
}

.mp3-pagination .pagination > .active > a,
.mp3-pagination .pagination > .active > span {
  background: var(--mp3-primary) !important;
  color: #fff !important;
}

/* Grille artistes : priorité de clic au-dessus des widgets latéraux (tablette) */
body.mp3-modern #content .mp3-artist-section,
body.mp3-modern #content .row.row-sm {
  position: relative;
  z-index: 2;
}

@media (max-width: 991px) {
  body.mp3-modern #content > .hbox.stretch {
    display: block;
  }

  body.mp3-modern #content > .hbox.stretch > section,
  body.mp3-modern #content > .hbox.stretch > aside#sidebar {
    display: block;
    width: 100%;
  }

  body.mp3-modern #content > .hbox.stretch > aside#sidebar {
    margin-top: 24px;
    overflow: hidden;
    isolation: isolate;
  }

  body.mp3-modern #content > .hbox.stretch > aside#sidebar iframe {
    max-width: 100%;
  }
}

.mp3-track-list {
  display: grid;
  gap: 12px;
}

.mp3-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--mp3-radius-sm);
  background: var(--mp3-surface);
  border: 1px solid var(--mp3-border);
}

.mp3-track-item__meta {
  min-width: 0;
}

.mp3-track-item__title {
  display: block;
  font-weight: 700;
  color: var(--mp3-text);
  text-decoration: none !important;
}

.mp3-track-item__subtitle {
  display: block;
  font-size: 13px;
  color: var(--mp3-text-muted);
}

.mp3-track-item__action {
  flex-shrink: 0;
  color: var(--mp3-primary) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.mp3-track-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
  justify-content: flex-end;
}

.mp3-track-item__action--listen {
  color: var(--mp3-text) !important;
  background: var(--mp3-surface-muted);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--mp3-border);
}

.mp3-artist-profile {
  margin-bottom: 24px;
}

.mp3-breadcrumb {
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--mp3-text-muted);
}

.mp3-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp3-breadcrumb__item {
  display: inline-flex;
  align-items: center;
}

.mp3-breadcrumb__item + .mp3-breadcrumb__item::before {
  content: '/';
  margin-right: 8px;
  opacity: 0.45;
}

.mp3-breadcrumb a {
  color: var(--mp3-text-muted) !important;
  text-decoration: none !important;
}

.mp3-breadcrumb a:hover {
  color: var(--mp3-primary) !important;
}

.mp3-breadcrumb__sep {
  opacity: 0.45;
}

.mp3-breadcrumb__current,
.mp3-breadcrumb__item--current {
  color: var(--mp3-text);
  font-weight: 600;
}

.mp3-artist-profile__card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px;
  border-radius: calc(var(--mp3-radius) + 2px);
  background: var(--mp3-surface);
  border: 1px solid var(--mp3-border);
  box-shadow: var(--mp3-shadow);
}

@media (min-width: 576px) {
  .mp3-artist-profile__card {
    grid-template-columns: 180px 1fr;
    gap: 28px;
    padding: 28px;
  }
}

@media (min-width: 768px) {
  .mp3-artist-profile__card {
    grid-template-columns: 220px 1fr;
  }
}

.mp3-artist-profile__media {
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a2332, #0f1419);
  box-shadow: 0 12px 32px rgba(15, 20, 25, 0.12);
}

.mp3-artist-profile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp3-artist-profile__badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mp3-artist-profile__badge--blue { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.mp3-artist-profile__badge--violet { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.mp3-artist-profile__badge--amber { background: rgba(245, 158, 11, 0.14); color: #d97706; }
.mp3-artist-profile__badge--rose { background: rgba(236, 72, 153, 0.12); color: #db2777; }
.mp3-artist-profile__badge--green { background: rgba(16, 185, 129, 0.12); color: #059669; }

.mp3-artist-profile__name {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--mp3-text);
}

.mp3-artist-profile__legal {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--mp3-text-muted);
}

.mp3-artist-profile__intro {
  margin: 0 0 16px;
  color: var(--mp3-text-muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.mp3-artist-profile__intro strong {
  color: var(--mp3-text);
  font-weight: 600;
}

.mp3-artist-profile__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp3-artist-profile__stats li {
  font-size: 13px;
  color: var(--mp3-text-muted);
}

.mp3-artist-profile__stats strong {
  color: var(--mp3-primary);
  font-size: 1.05rem;
}

@media (max-width: 575px) {
  .mp3-artist-profile__card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mp3-artist-profile__media {
    max-width: 200px;
    margin: 0 auto;
  }

  .mp3-artist-profile__stats {
    justify-content: center;
  }

  .mp3-track-item {
    flex-direction: column;
    align-items: stretch;
  }

  .mp3-track-item__actions {
    justify-content: stretch;
  }

  .mp3-track-item__action {
    flex: 1;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
}

body.mp3-modern #sidebar.aside-md {
  background: transparent !important;
  box-shadow: none;
}

@media (min-width: 992px) {
  body.mp3-modern #sidebar.aside-md {
    width: 300px;
    min-width: 300px;
  }
}

body.mp3-modern #sidebar .list-group-item {
  background: var(--mp3-surface);
  border: 1px solid var(--mp3-border);
  border-radius: var(--mp3-radius-sm);
  margin-bottom: 10px;
  box-shadow: 0 6px 18px rgba(15, 20, 25, 0.05);
}

/* ── Sidebar droite modernisée ── */
body.mp3-modern .mp3-sidebar {
  background: transparent !important;
}

.mp3-sidebar__block {
  margin-bottom: 22px;
}

body.mp3-modern .mp3-sidebar .mp3-sidebar__title {
  margin: 0 0 14px;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mp3-text);
  letter-spacing: 0.02em;
}

.mp3-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mp3-sidebar__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--mp3-radius-sm);
  background: var(--mp3-surface);
  border: 1px solid var(--mp3-border);
  box-shadow: 0 6px 18px rgba(15, 20, 25, 0.05);
}

body.mp3-modern .mp3-sidebar .mp3-sidebar__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--mp3-surface-muted);
  color: var(--mp3-primary);
  font-size: 14px;
}

.mp3-sidebar__icon--brand {
  background: rgba(232, 93, 4, 0.12);
  color: var(--mp3-primary);
}

body.mp3-modern .mp3-sidebar .mp3-sidebar__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--mp3-text-muted);
  line-height: 1.5;
}

body.mp3-modern .mp3-sidebar .mp3-sidebar__content strong {
  display: block;
  font-size: 14px;
  color: var(--mp3-text);
}

body.mp3-modern .mp3-sidebar .mp3-sidebar__content a {
  color: var(--mp3-primary-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}

.mp3-sidebar__content a:hover {
  text-decoration: underline;
}

.mp3-social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: var(--mp3-radius-sm);
  border: 1px solid var(--mp3-border);
  background: var(--mp3-surface);
  color: var(--mp3-text);
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(15, 20, 25, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mp3-social-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 20, 25, 0.1);
}

body.mp3-modern .mp3-sidebar .mp3-social-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 16px;
  color: #fff;
}

.mp3-social-card--facebook .mp3-social-card__icon {
  background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

.mp3-social-card--youtube .mp3-social-card__icon {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.mp3-social-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.mp3-modern .mp3-sidebar .mp3-social-card__body strong {
  display: block;
  font-size: 14px;
  color: var(--mp3-text);
}

body.mp3-modern .mp3-sidebar .mp3-social-card__body span {
  font-size: 12px;
  color: var(--mp3-text-muted);
}

body.mp3-modern .mp3-sidebar .mp3-social-card__arrow {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--mp3-text-muted);
  opacity: 0.7;
}

.mp3-sidebar__embed {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--mp3-radius-sm);
  background: var(--mp3-surface);
  border: 1px solid var(--mp3-border);
  overflow: hidden;
  text-align: center;
}

.mp3-sidebar__embed iframe {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  height: 200px;
}

body.mp3-modern .footer.bg-success {
  background: #101820 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 32px;
}

body.mp3-modern .footer.bg-success p,
body.mp3-modern .footer.bg-success a {
  color: rgba(255, 255, 255, 0.82) !important;
}

.mp3-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at top right, rgba(232, 93, 4, 0.18), transparent 35%),
    linear-gradient(180deg, #eef2f6, #f8fafc);
}

.mp3-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--mp3-surface);
  border-radius: calc(var(--mp3-radius) + 4px);
  box-shadow: var(--mp3-shadow);
  padding: 32px;
  border: 1px solid var(--mp3-border);
}

.mp3-auth-card--wide {
  max-width: 720px;
}

.mp3-auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.mp3-auth-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.mp3-auth-brand__link:hover,
.mp3-auth-brand__link:focus {
  text-decoration: none;
  color: inherit;
}

.mp3-auth-brand__logo {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.mp3-auth-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.mp3-auth-brand__text strong {
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 700;
}

.mp3-auth-brand__text span {
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 500;
}

.mp3-auth-back {
  margin-bottom: 18px;
  border-color: #cbd5e1;
  color: #334155 !important;
  background: #f8fafc;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.mp3-auth-back:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a !important;
}

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

.mp3-auth-grid .mp3-panel {
  height: 100%;
  margin-bottom: 0;
}

.mp3-legal-content h3,
.mp3-legal-content h4,
.mp3-legal-content h5 {
  margin-top: 24px;
}

.mp3-auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.mp3-auth-header {
  margin-bottom: 22px;
}

.mp3-auth-lead {
  margin: 0;
  color: #5c6b7a;
  font-size: 0.98rem;
  line-height: 1.55;
}

.mp3-auth-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-left: 4px solid #f59e0b;
  border-radius: 0 10px 10px 0;
  background: #fffbeb;
  color: #78350f;
  font-size: 0.92rem;
  line-height: 1.5;
}

.mp3-auth-card .form-control {
  border-radius: 12px;
  border-color: var(--mp3-border);
  min-height: 46px;
}

.mp3-type-choice {
  margin: 24px 0;
  padding: 18px 18px 16px;
  border: 2px solid #f59e0b;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 52%);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.mp3-type-choice--error {
  border-color: #dc2626;
  background: linear-gradient(180deg, #fef2f2 0%, #ffffff 52%);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.mp3-type-choice--empty .mp3-type-choice__legend {
  animation: mp3-type-choice-pulse 2s ease-in-out infinite;
}

@keyframes mp3-type-choice-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.72;
  }
}

.mp3-type-choice__legend {
  display: block;
  width: 100%;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #92400e;
  line-height: 1.35;
}

.mp3-type-choice--error .mp3-type-choice__legend {
  color: #991b1b;
}

.mp3-type-choice__badge {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}

.mp3-type-choice--error .mp3-type-choice__badge {
  background: #dc2626;
}

.mp3-type-choice__hint {
  margin: 0 0 14px;
  color: #78350f;
  font-size: 0.92rem;
  line-height: 1.45;
}

.mp3-type-choice--error .mp3-type-choice__hint {
  color: #991b1b;
}

.mp3-type-choice__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 540px) {
  .mp3-type-choice__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mp3-type-choice__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  font-weight: 400;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mp3-type-choice__item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.mp3-type-choice__item input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mp3-type-choice__indicator {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 2px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mp3-type-choice__indicator .fa {
  color: #ffffff;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.mp3-type-choice__item input:checked ~ .mp3-type-choice__indicator {
  border-color: #e85d04;
  background: #e85d04;
}

.mp3-type-choice__item input:checked ~ .mp3-type-choice__indicator .fa {
  opacity: 1;
}

.mp3-type-choice__item input:focus-visible ~ .mp3-type-choice__indicator {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.mp3-type-choice__item:has(input:checked) {
  border-color: #f97316;
  background: #fff7ed;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.28);
}

.mp3-type-choice__body {
  min-width: 0;
}

.mp3-type-choice__label {
  display: block;
  margin-bottom: 4px;
  color: #1e293b;
  font-weight: 600;
  line-height: 1.35;
}

.mp3-type-choice__label .fa {
  margin-right: 6px;
  color: #64748b;
}

.mp3-type-choice__desc {
  display: block;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.4;
}

.mp3-type-choice__grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.mp3-type-choice__grid--compact .mp3-type-choice__item {
  padding: 10px 12px;
}

.mp3-type-choice__grid--compact .mp3-type-choice__desc {
  display: none;
}

.mp3-type-subgroup {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--mp3-border, #dbe3ef);
}

.mp3-type-subgroup--error label {
  color: #b45309;
}

.mp3-type-subgroup__panel label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.mp3-audio-shell {
  background: var(--mp3-surface-muted);
  border: 1px solid var(--mp3-border);
  border-radius: var(--mp3-radius);
  padding: 16px;
}

.mp3-audio-shell audio {
  width: 100%;
}

.mp3-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.mp3-search-form .form-group {
  flex: 1;
  min-width: 220px;
  margin-bottom: 0;
}

.mp3-search-result {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--mp3-border);
  border-radius: var(--mp3-radius-sm);
  background: var(--mp3-surface);
  margin-bottom: 12px;
}

.mp3-search-result__media {
  flex-shrink: 0;
}

.mp3-search-result__media img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--mp3-radius-sm);
}

.mp3-search-result__body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.mp3-search-result__body h3 a {
  color: var(--mp3-text) !important;
}

.mp3-search-result__meta {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--mp3-text-muted);
}

.mp3-search-result__type {
  font-weight: 600;
  color: var(--mp3-primary);
}

.mp3-search-result__action {
  display: inline-flex;
  padding: 8px 14px;
  font-size: 13px;
}

.mp3-search-results__summary {
  margin-bottom: 18px;
}

.mp3-search-results__count {
  margin: 0 0 6px;
  font-size: 1rem;
}

.mp3-search-results__term {
  font-weight: 700;
  color: var(--mp3-text);
}

.mp3-search-results__error {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--mp3-radius-sm);
  background: rgba(232, 93, 4, 0.08);
  color: var(--mp3-text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mp3-empty-state {
  padding: 28px 16px;
  text-align: center;
  color: var(--mp3-text-muted);
  border: 1px dashed var(--mp3-border);
  border-radius: var(--mp3-radius-sm);
  background: var(--mp3-surface-muted);
}

@media (max-width: 767px) {
  .mp3-hero {
    padding: 28px 22px;
  }

  .mp3-hero__actions {
    flex-direction: column;
  }

  .mp3-btn {
    width: 100%;
  }

  /* ── Drawer mobile : corrige conflits modern.css ↔ app.css (nav-off-screen) ── */
  body.mp3-modern .hbox.stretch > aside#nav {
    position: fixed !important;
    top: var(--mp3-header-h);
    left: 0;
    bottom: 0;
    width: min(320px, 82vw) !important;
    max-width: 320px;
    z-index: 2001;
    transform: translate3d(-105%, 0, 0);
    transition: transform 0.25s ease;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: visible;
  }

  body.mp3-modern .hbox.stretch > aside#nav.nav-off-screen {
    transform: translate3d(0, 0, 0);
  }

  body.mp3-modern #nav .nav-primary,
  body.mp3-modern #nav .nav-primary.hidden-xs {
    display: block !important;
  }

  body.mp3-modern #nav .mp3-sidebar-nav__item > a {
    display: flex !important;
    color: rgba(255, 255, 255, 0.92) !important;
  }

  body.mp3-modern #nav .mp3-sidebar-nav__heading {
    display: block !important;
  }

  body.mp3-modern #nav .mp3-sidebar-nav__label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.mp3-modern #nav.nav-off-screen + section#content {
    position: fixed !important;
    top: var(--mp3-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    z-index: 2000;
    transform: translate3d(min(320px, 82vw), 0, 0) !important;
    overflow: hidden;
  }

  body.mp3-modern #nav.nav-off-screen + section#content .nav-off-screen-block {
    display: block !important;
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(15, 20, 25, 0.35);
  }

  /* Menu fermé : contenu scrollable et cliquable (évite conflits app.css) */
  body.mp3-modern #nav:not(.nav-off-screen) + section#content {
    position: static !important;
    transform: none !important;
    overflow: visible !important;
    width: auto !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
  }

  body.mp3-modern #nav:not(.nav-off-screen) + section#content .nav-off-screen-block {
    display: none !important;
    pointer-events: none !important;
  }
}

html.nav-open {
  overflow: hidden;
}
