/**
 * Culture Congo MP3 — UI plateforme (mobile-first, dark premium).
 */

:root {
  --mp3-dark: #0a0e14;
  --mp3-dark-soft: #121820;
  --mp3-dark-card: #171f2a;
  --mp3-gold: #d4a017;
  --mp3-gold-light: #f0c14d;
  --mp3-congo-red: #c41e3a;
  --mp3-congo-red-soft: #e63950;
  --mp3-bottom-nav-h: 62px;
  /* Hauteur réelle du dock lecteur (seek + contrôles) */
  --mp3-player-h: 96px;
  /* Décalage bas : barre mobile uniquement sur petits écrans */
  --mp3-dock-offset: var(--mp3-bottom-nav-h);
}

/* Tablette / PC : menu latéral gauche → pas de barre mobile en bas */
@media (min-width: 768px) {
  :root {
    --mp3-dock-offset: 0px;
  }
}

body.mp3-modern {
  padding-bottom: calc(var(--mp3-dock-offset) + env(safe-area-inset-bottom, 0px));
}

body.mp3-modern.mp3-has-player {
  padding-bottom: calc(
    var(--mp3-dock-offset) + var(--mp3-player-h) + 16px + env(safe-area-inset-bottom, 0px)
  );
}

/* ── Hero premium ── */
.mp3-hero--premium {
  position: relative;
  overflow: hidden;
  border-radius: var(--mp3-radius);
  min-height: 320px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--mp3-dark) 0%, #1a1220 45%, #2a1018 100%);
  color: #fff;
  box-shadow: var(--mp3-shadow);
}

.mp3-hero--premium .mp3-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  filter: blur(2px) saturate(1.2);
  transform: scale(1.08);
}

.mp3-hero--premium .mp3-hero__content {
  position: relative;
  z-index: 2;
  padding: 36px 28px 32px;
  max-width: 640px;
}

.mp3-hero--premium h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 14px;
}

.mp3-hero--premium h1 em {
  font-style: normal;
  color: var(--mp3-gold-light);
}

.mp3-hero--premium p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 22px;
}

.mp3-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(212, 160, 23, 0.18);
  color: var(--mp3-gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.mp3-btn--gold {
  background: linear-gradient(135deg, var(--mp3-gold) 0%, #b8860b 100%);
  color: #1a1200 !important;
  border: none;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(212, 160, 23, 0.35);
}

.mp3-btn--gold:hover {
  filter: brightness(1.06);
  color: #1a1200 !important;
}

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

.mp3-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff !important;
}

.mp3-home {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Rails / carrousels ── */
.mp3-rail {
  margin-bottom: 28px;
  padding: 20px 0 8px;
}

.mp3-rail--dark {
  margin-left: -12px;
  margin-right: -12px;
  padding: 24px 12px 16px;
  background: linear-gradient(180deg, var(--mp3-dark) 0%, var(--mp3-dark-soft) 100%);
  border-radius: var(--mp3-radius);
  color: #eef2f6;
}

.mp3-rail--dark .mp3-rail__title,
.mp3-rail--dark .mp3-rail__lead {
  color: #eef2f6;
}

.mp3-rail--dark .mp3-rail__lead {
  color: rgba(238, 242, 246, 0.72);
}

.mp3-rail--dark .mp3-rail__more {
  color: var(--mp3-gold-light);
}

.mp3-rail__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.mp3-rail__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.mp3-rail__lead {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--mp3-text-muted);
}

.mp3-rail__more {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mp3-primary);
  white-space: nowrap;
}

.mp3-rail__scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 12px;
  scrollbar-width: none;
}

.mp3-rail__scroll::-webkit-scrollbar {
  display: none;
}

.mp3-rail__scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.mp3-rail__scroll--artists .mp3-artist-card {
  flex: 0 0 150px;
  scroll-snap-align: start;
}

/* ── Tuiles morceaux ── */
.mp3-tile {
  flex: 0 0 148px;
  scroll-snap-align: start;
}

.mp3-tile__cover-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--mp3-dark-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mp3-tile:hover .mp3-tile__cover-wrap {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.mp3-tile__cover {
  display: block;
  width: 100%;
  height: 100%;
}

.mp3-tile__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp3-tile__rank {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 8px;
  background: rgba(196, 30, 58, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp3-tile__play-btn,
.mp3-tile__fav-btn {
  position: absolute;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.mp3-tile__play-btn {
  right: 10px;
  bottom: 10px;
  width: 42px;
  height: 42px;
  background: var(--mp3-gold);
  color: #1a1200;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: scale(0.9);
}

.mp3-tile:hover .mp3-tile__play-btn,
.mp3-tile__play-btn:focus {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 991px) {
  .mp3-tile__play-btn {
    opacity: 1;
    transform: scale(1);
  }
}

.mp3-tile__fav-btn {
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.85rem;
  opacity: 0;
}

.mp3-tile:hover .mp3-tile__fav-btn,
.mp3-tile__fav-btn.is-active {
  opacity: 1;
}

.mp3-tile__fav-btn.is-active {
  background: var(--mp3-congo-red);
}

.mp3-tile__body {
  padding: 10px 2px 0;
}

.mp3-tile__title {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp3-rail:not(.mp3-rail--dark) .mp3-tile__title {
  color: var(--mp3-text);
}

.mp3-tile__artist {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp3-rail:not(.mp3-rail--dark) .mp3-tile__artist {
  color: var(--mp3-text-muted);
}

.mp3-tile__verified {
  color: var(--mp3-gold);
}

/* ── Lignes classement ── */
.mp3-rail__list,
.mp3-rail__list--page {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mp3-track-row {
  display: grid;
  grid-template-columns: 32px 36px 48px 1fr auto 36px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.2s;
}

.mp3-track-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mp3-rail:not(.mp3-rail--dark) .mp3-track-row:hover {
  background: var(--mp3-surface-muted);
}

.mp3-track-row__rank {
  font-weight: 700;
  color: var(--mp3-gold);
  text-align: center;
}

.mp3-track-row__play {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--mp3-primary);
  color: #fff;
  cursor: pointer;
}

.mp3-track-row__cover img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.mp3-track-row__title {
  display: block;
  font-weight: 600;
  color: inherit;
}

.mp3-track-row__artist {
  display: block;
  font-size: 0.82rem;
  color: var(--mp3-text-muted);
}

.mp3-rail--dark .mp3-track-row__artist {
  color: rgba(255, 255, 255, 0.6);
}

.mp3-track-row__stat {
  font-size: 0.82rem;
  color: var(--mp3-text-muted);
  min-width: 48px;
  text-align: right;
}

.mp3-track-row__fav {
  border: none;
  background: transparent;
  color: var(--mp3-text-muted);
  cursor: pointer;
}

.mp3-track-row__fav.is-active {
  color: var(--mp3-congo-red);
}

/* ── Page hero / tabs ── */
.mp3-page-hero {
  margin-bottom: 20px;
}

.mp3-page-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.mp3-page-hero p {
  color: var(--mp3-text-muted);
  margin: 0;
}

.mp3-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
  padding-bottom: 4px;
}

.mp3-tabs__item {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--mp3-surface-muted);
  color: var(--mp3-text);
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s, color 0.2s;
}

.mp3-tabs__item.is-active {
  background: linear-gradient(135deg, var(--mp3-congo-red) 0%, #8b1530 100%);
  color: #fff;
}

/* ── Player global ── */
.mp3-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--mp3-dock-offset) + env(safe-area-inset-bottom, 0px));
  z-index: 1060;
  background: linear-gradient(180deg, rgba(18, 24, 32, 0.98) 0%, rgba(10, 14, 20, 0.99) 100%);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(212, 160, 23, 0.28);
  color: #fff;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  --mp3-progress: 0%;
  --mp3-buffer: 0%;
}

@media (min-width: 768px) {
  .mp3-player {
    bottom: 0;
    left: 220px;
    right: 0;
    width: auto;
    max-width: none;
    margin: 0;
    transform: none;
    border-radius: 0;
  }
}

/* Barre de progression animée (haut du player) */
.mp3-player__seek {
  padding: 0 0 2px;
  cursor: pointer;
  touch-action: none;
}

.mp3-player__seek-track {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: visible;
  transition: height 0.2s ease;
}

.mp3-player__seek:hover .mp3-player__seek-track,
.mp3-player.is-seeking .mp3-player__seek-track {
  height: 6px;
}

.mp3-player__seek-buffer {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--mp3-buffer, 0%);
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
  transition: width 0.25s ease;
}

.mp3-player__seek-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--mp3-progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mp3-gold) 0%, #f0c14d 45%, var(--mp3-congo-red-soft) 100%);
  pointer-events: none;
  transition: width 0.15s linear;
  overflow: hidden;
}

.mp3-player.is-seeking .mp3-player__seek-fill {
  transition: none;
}

.mp3-player.is-playing .mp3-player__seek-fill {
  box-shadow: 0 0 12px rgba(212, 160, 23, 0.55);
}

.mp3-player__seek-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  opacity: 0;
}

.mp3-player.is-playing .mp3-player__seek-shimmer {
  opacity: 1;
  animation: mp3-seek-shimmer 2.2s ease-in-out infinite;
}

@keyframes mp3-seek-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.mp3-player__seek-thumb {
  position: absolute;
  top: 50%;
  left: var(--mp3-progress, 0%);
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.45), 0 2px 8px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.mp3-player__seek:hover .mp3-player__seek-thumb,
.mp3-player.is-seeking .mp3-player__seek-thumb,
.mp3-player.is-playing .mp3-player__seek-thumb {
  opacity: 1;
  transform: scale(1);
}

.mp3-player__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "art meta controls"
    "times times times";
  gap: 6px 12px;
  align-items: center;
  padding: 8px 14px 10px;
  min-height: calc(var(--mp3-player-h) - 6px);
}

@media (min-width: 768px) {
  .mp3-player__inner {
    grid-template-columns: auto minmax(100px, 1.2fr) auto auto auto;
    grid-template-areas: "art meta controls times extras";
  }
}

.mp3-player__art {
  position: relative;
  display: block;
  grid-area: art;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .mp3-player__art {
    width: 56px;
    height: 56px;
  }
}

.mp3-player__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mp3-player.is-playing .mp3-player__art img {
  transform: scale(1.06);
}

.mp3-player__pulse {
  display: none;
}

.mp3-player.is-playing .mp3-player__pulse {
  display: block;
  position: absolute;
  inset: -3px;
  border: 2px solid var(--mp3-gold);
  border-radius: 12px;
  animation: mp3-pulse 1.4s ease infinite;
  pointer-events: none;
}

@keyframes mp3-pulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

.mp3-player__eq {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
}

.mp3-player.is-playing .mp3-player__eq {
  display: flex;
}

.mp3-player__eq span {
  display: block;
  width: 3px;
  height: 40%;
  background: var(--mp3-gold-light);
  border-radius: 2px;
  animation: mp3-eq 0.9s ease-in-out infinite;
}

.mp3-player__eq span:nth-child(1) { animation-delay: 0s; }
.mp3-player__eq span:nth-child(2) { animation-delay: 0.15s; }
.mp3-player__eq span:nth-child(3) { animation-delay: 0.3s; }
.mp3-player__eq span:nth-child(4) { animation-delay: 0.08s; }

@keyframes mp3-eq {
  0%, 100% { height: 35%; }
  50% { height: 100%; }
}

.mp3-player__loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

.mp3-player.is-buffering .mp3-player__loader {
  display: flex;
}

.mp3-player__loader::after {
  content: "";
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--mp3-gold);
  border-radius: 50%;
  animation: mp3-spin 0.75s linear infinite;
}

@keyframes mp3-spin {
  to { transform: rotate(360deg); }
}

.mp3-player__meta {
  grid-area: meta;
  min-width: 0;
}

.mp3-player__title {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp3-player__artist {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp3-player__controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

@media (min-width: 768px) {
  .mp3-player__controls {
    justify-content: center;
  }
}

.mp3-player__btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}

.mp3-player__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
}

.mp3-player__btn--main {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--mp3-gold) 0%, #c99400 100%);
  color: #1a1200;
  box-shadow: 0 4px 16px rgba(212, 160, 23, 0.4);
}

.mp3-player__btn--main:hover {
  background: linear-gradient(135deg, var(--mp3-gold-light) 0%, var(--mp3-gold) 100%);
  color: #1a1200;
}

.mp3-player__times {
  grid-area: times;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}

@media (min-width: 768px) {
  .mp3-player__times {
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 0;
    min-width: 72px;
  }
}

.mp3-player__time {
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.55);
}

.mp3-player__extras {
  grid-area: extras;
  display: none;
}

@media (min-width: 768px) {
  .mp3-player__extras {
    display: flex;
    align-items: center;
    gap: 4px;
  }
}

.mp3-player__volume-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mp3-player__volume {
  width: 72px;
  height: 4px;
  accent-color: var(--mp3-gold);
  cursor: pointer;
}

/* Tuile en cours de lecture */
.mp3-tile.is-now-playing .mp3-tile__cover-wrap {
  box-shadow: 0 0 0 2px var(--mp3-gold), 0 12px 32px rgba(212, 160, 23, 0.25);
}

.mp3-tile.is-now-playing .mp3-tile__play-btn {
  opacity: 1;
  background: var(--mp3-congo-red);
  color: #fff;
}

.mp3-track-row.is-now-playing {
  background: rgba(212, 160, 23, 0.12);
}

.mp3-track-row.is-now-playing .mp3-track-row__play {
  background: var(--mp3-congo-red);
}

/* Lecteur intégré fiche morceau */
.mp3-detail-player {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 18px;
  padding: 20px;
  border-radius: var(--mp3-radius);
  background: linear-gradient(135deg, var(--mp3-dark) 0%, #1a1220 100%);
  color: #fff;
  box-shadow: var(--mp3-shadow);
  --mp3-progress: 0%;
  --mp3-buffer: 0%;
}

@media (min-width: 576px) {
  .mp3-detail-player {
    flex-wrap: nowrap;
  }
}

.mp3-detail-player__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.mp3-detail-player__cover {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.mp3-detail-player__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp3-detail-player__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s;
}

.mp3-detail-player:hover .mp3-detail-player__play,
.mp3-detail-player.is-now-playing .mp3-detail-player__play {
  opacity: 1;
}

@media (max-width: 767px) {
  .mp3-detail-player__play {
    opacity: 1;
  }
}

.mp3-detail-player__label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mp3-gold-light);
  font-weight: 600;
}

.mp3-detail-player__hint {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.mp3-detail-player__toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mp3-detail-player__toggle {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mp3-gold) 0%, #c99400 100%);
  color: #1a1200;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(212, 160, 23, 0.35);
}

.mp3-detail-player__times {
  display: flex;
  justify-content: space-between;
  flex: 1;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.65);
}

.mp3-detail-player__seek {
  cursor: pointer;
  touch-action: none;
  padding: 4px 0;
}

.mp3-detail-player__seek-track {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transition: height 0.2s ease;
}

.mp3-detail-player__seek:hover .mp3-detail-player__seek-track,
.mp3-detail-player.is-seeking .mp3-detail-player__seek-track {
  height: 8px;
}

.mp3-detail-player__seek-buffer {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--mp3-buffer, 0%);
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.mp3-detail-player__seek-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--mp3-progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mp3-gold) 0%, #f0c14d 50%, var(--mp3-congo-red-soft) 100%);
  pointer-events: none;
  transition: width 0.15s linear;
  overflow: hidden;
}

.mp3-detail-player.is-seeking .mp3-detail-player__seek-fill {
  transition: none;
}

.mp3-detail-player.is-playing .mp3-detail-player__seek-fill {
  box-shadow: 0 0 10px rgba(212, 160, 23, 0.5);
}

.mp3-detail-player__seek-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-100%);
  opacity: 0;
}

.mp3-detail-player.is-playing .mp3-detail-player__seek-shimmer {
  opacity: 1;
  animation: mp3-seek-shimmer 2.2s ease-in-out infinite;
}

.mp3-detail-player__seek-thumb {
  position: absolute;
  top: 50%;
  left: var(--mp3-progress, 0%);
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.4), 0 2px 8px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.mp3-detail-player__seek:hover .mp3-detail-player__seek-thumb,
.mp3-detail-player.is-seeking .mp3-detail-player__seek-thumb,
.mp3-detail-player.is-playing .mp3-detail-player__seek-thumb {
  opacity: 1;
  transform: scale(1);
}

.mp3-detail-player__eq {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
}

.mp3-detail-player.is-playing .mp3-detail-player__eq {
  display: flex;
}

.mp3-detail-player__eq span {
  display: block;
  width: 3px;
  height: 40%;
  background: var(--mp3-gold-light);
  border-radius: 2px;
  animation: mp3-eq 0.9s ease-in-out infinite;
}

.mp3-detail-player__eq span:nth-child(1) { animation-delay: 0s; }
.mp3-detail-player__eq span:nth-child(2) { animation-delay: 0.12s; }
.mp3-detail-player__eq span:nth-child(3) { animation-delay: 0.24s; }
.mp3-detail-player__eq span:nth-child(4) { animation-delay: 0.06s; }

.mp3-detail-player.is-now-playing {
  box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.45), var(--mp3-shadow);
}

/* ── Bottom navigation (mobile uniquement) ── */
.mp3-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  min-height: var(--mp3-bottom-nav-h);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(10, 14, 20, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .mp3-bottom-nav {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
  }
}

.mp3-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.mp3-bottom-nav__item i {
  font-size: 1.15rem;
}

.mp3-bottom-nav__item.is-active {
  color: var(--mp3-gold-light);
}

/* ── Toast ── */
.mp3-toast-stack {
  position: fixed;
  top: calc(var(--mp3-header-h) + 12px);
  right: 12px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.mp3-toast {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--mp3-dark);
  color: #fff;
  font-size: 0.88rem;
  box-shadow: var(--mp3-shadow);
  animation: mp3-toast-in 0.3s ease;
}

.mp3-toast.is-out {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s;
}

@keyframes mp3-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Search sheet ── */
.mp3-search-sheet[hidden] {
  display: none !important;
}

.mp3-search-sheet {
  position: fixed;
  inset: 0;
  z-index: 3000;
}

.mp3-search-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.mp3-search-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: calc(var(--mp3-header-h) + 8px) 12px 16px;
  background: var(--mp3-dark);
  border-radius: 0 0 20px 20px;
  box-shadow: var(--mp3-shadow);
}

.mp3-search-sheet__form {
  display: flex;
  gap: 8px;
}

.mp3-search-sheet__form input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--mp3-dark-soft);
  color: #fff;
}

.mp3-search-sheet__form button {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--mp3-gold);
  color: #1a1200;
}

.mp3-search-sheet__results {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  max-height: 50vh;
  overflow-y: auto;
}

.mp3-search-sheet__results a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mp3-search-sheet__results img {
  border-radius: 8px;
  object-fit: cover;
}

.mp3-search-sheet__results strong {
  display: block;
  font-size: 0.92rem;
}

.mp3-search-sheet__results small {
  color: rgba(255, 255, 255, 0.6);
}

.mp3-panel--categories {
  margin-top: 12px;
}

[data-mp3-fav].is-active,
.mp3-player__btn.is-active {
  color: var(--mp3-congo-red) !important;
}

.mp3-artist-card__verified {
  color: var(--mp3-gold);
  font-size: 0.85em;
}

@media (max-width: 575px) {
  .mp3-track-row {
    grid-template-columns: 28px 34px 44px 1fr 32px;
  }

  .mp3-track-row__stat {
    display: none;
  }
}
