.lm-player-wrapper {
  width: 100%;
  min-width: 18em;
  /* max-width: 500px; */
  margin: 10px auto;
  font-family: sans-serif;
  user-select: none;

  background: #f9f9f9;           /* fond clair sur tout le lecteur */
  border-radius: 8px;             /* bords arrondis */
  padding: 10px;                  /* padding autour de tout le contenu */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* ombre douce */
}

.lm-player-wrapper-jukebox {
  width: 100%;
  min-width: 18em;
  /* max-width: 500px; */
  margin: 10px auto;
  font-family: sans-serif;
  user-select: none;

  background: #f9f9f9;           /* fond clair sur tout le lecteur */
  border-radius: 8px;             /* bords arrondis */
  padding: 10px;                  /* padding autour de tout le contenu */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* ombre douce */
}

/* Retirer le fond de la barre de contrôle */
.lm-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;                     /* plus de padding ici */
  background: none;               /* transparent, on utilise le wrapper */
  box-shadow: none;
}

/* Info track et progression restent identiques */
.lm-info {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lm-track-title {
  font-weight: bold;
  margin-right: 6px;
}

.lm-track-artist {
  color: #555;
}

.lm-progress {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #ccc;
  cursor: pointer;
  margin-bottom: 8px;
}

input.lm-progress {
    padding-top: 1em;
    margin-top: 0.3em;
}

.lm-headerwrapper {
    display: flex;
}

.lm-left-juk {
    display: block;
}

.lm-right-juk {
    display: block;
    width: 100%;
    padding-top: 3em;
    padding-right: 2em;
    padding-bottom: 3em;
}

.lm-header-image {
  background-image: image-set(url(/assets/culturedub-radio-thumbnail.avif) type('image/avif'), url(/assets/culturedub-radio-thumbnail.jpg) type('image/jpeg'));
    background-repeat: repeat;
    position: relative;
    background-size: cover;
    padding-top: 3em;
    padding-bottom: 10em;
    margin-bottom: 1em;
}

.lm-header-image-jukebox {
  background-image: image-set(url(/assets/culturedub-jukebox-thumbnail.avif) type('image/avif'), url(/assets/culturedub-jukebox-thumbnail.jpg) type('image/jpeg'));
    background-repeat: repeat;
    position: relative;
    background-size: cover;
    padding-top: 3em;
    padding-bottom: 10em;
    display: block;
    padding-right: 18em;
    margin-right: 2em;
}

/* Thumb du slider */
.lm-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #53642d;
  margin-top: -3px;
  cursor: pointer;
}
.lm-progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #53642d;
  cursor: pointer;
}

/* Progression et volume */
.lm-progress,
.lm-volume {
  -webkit-appearance: none; /* Chrome, Safari */
  -moz-appearance: none;    /* Firefox */
  appearance: none;
}

/* Thumb invisible */
.lm-progress::-webkit-slider-thumb,
.lm-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0;
  height: 0;
  background: transparent;
  cursor: default;
}

.lm-progress::-moz-range-thumb,
.lm-volume::-moz-range-thumb {
  width: 0;
  height: 0;
  background: transparent;
  border: none;
  cursor: default;
}


/* Contrôles et volume */
.lm-controls {
  display: flex;
  gap: 6px;
}

.lm-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: transform 0.1s, color 0.1s;
}
.lm-btn:hover {
  color: #53642d;
  transform: scale(1.2);
}
.lm-btn:active {
  transform: scale(1.1);
}

.lm-icon {
  display: block;
  width: 20px;
  height: 20px;
  transition: transform 0.1s, fill 0.1s;
}

.lm-btn:hover .lm-icon {
  fill: #7a8b4a; /* nuance plus claire au hover */
  transform: scale(1.2);
}

.lm-btn:active .lm-icon {
  transform: scale(1.1);
}

.lm-volume-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lm-volume {
  width: 60px;
  cursor: pointer;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: #ccc;
}

/* Responsive */
@media (max-width: 400px) {
  .lm-info {
    font-size: 12px;
  }
  .lm-btn {
    font-size: 14px;
  }
  .lm-volume {
    width: 50px;
  }
}

.lm-playlist {
    margin-top: 10px;
    max-height: 150px;
    overflow-y: auto;
    border-top: 1px solid #ddd;
    padding-top: 8px;
}

.lm-playlist-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lm-playlist-list li {
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.2s;
}

.lm-playlist-list li:hover {
    background: #f0f0f0;
}

.lm-playlist-list li.active {
    background: #d0e6c8;
    font-weight: bold;
}

