/* ============================================
   Radio MLK — Player fixe global
   /wp-content/themes/bricks-child/radiomlk/
   ============================================ */

:root {
  --mlk-accent:   #e8003d;
  --mlk-bg:       #111111;
  --mlk-surface:  #1c1c1c;
  --mlk-border:   rgba(255,255,255,0.09);
  --mlk-text:     #f0ede8;
  --mlk-muted:    #888888;
  --mlk-h:        72px;
  --mlk-font:     'DM Sans', sans-serif;
}

/* Pousse le contenu WP pour ne pas être caché par le player */
body.mlk-player-active {
  padding-bottom: var(--mlk-h) !important;
}

/* ── Barre player ── */
#mlk-player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--mlk-h);
  background: var(--mlk-bg);
  border-top: 1px solid var(--mlk-border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 14px;
  z-index: 99999;
  font-family: var(--mlk-font);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}

/* Pochette */
#mlk-player .mlk-art {
  width: 44px; height: 44px;
  border-radius: 3px;
  object-fit: cover;
  background: var(--mlk-surface);
  flex-shrink: 0;
  transition: opacity .3s;
}

/* Infos titre */
#mlk-player .mlk-info {
  flex: 1;
  min-width: 0;
}
#mlk-player .mlk-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--mlk-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
#mlk-player .mlk-sub {
  font-size: 11px;
  color: var(--mlk-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Contrôles */
#mlk-player .mlk-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
#mlk-player .mlk-btn {
  background: none;
  border: none;
  color: var(--mlk-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color .15s;
  line-height: 1;
}
#mlk-player .mlk-btn:hover { color: var(--mlk-text); }
#mlk-player .mlk-btn-play {
  width: 40px; height: 40px;
  background: var(--mlk-accent);
  color: #fff !important;
  border-radius: 50%;
  flex-shrink: 0;
}
#mlk-player .mlk-btn-play:hover { background: #c4002f; }

/* Barre de progression */
#mlk-player .mlk-progress-wrap {
  flex: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 380px;
}
#mlk-player .mlk-time {
  font-size: 10px;
  color: var(--mlk-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  font-family: var(--mlk-font);
}
#mlk-player .mlk-bar {
  flex: 1;
  height: 3px;
  background: var(--mlk-surface);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
#mlk-player .mlk-bar-fill {
  height: 100%;
  background: var(--mlk-accent);
  border-radius: 2px;
  width: 0%;
  transition: width .4s linear;
  pointer-events: none;
}

/* Badge mode */
#mlk-player .mlk-mode {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  flex-shrink: 0;
  font-family: var(--mlk-font);
}
#mlk-player .mlk-mode.is-live {
  background: var(--mlk-accent);
  color: #fff;
}
#mlk-player .mlk-mode.is-live::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  background: #fff;
  border-radius: 50%;
  margin-right: 5px;
  animation: mlk-pulse 1.3s ease-in-out infinite;
  vertical-align: middle;
  margin-bottom: 1px;
}
#mlk-player .mlk-mode.is-replay {
  background: var(--mlk-surface);
  color: var(--mlk-muted);
  border: 1px solid var(--mlk-border);
}

/* Volume */
#mlk-player .mlk-vol {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
#mlk-player .mlk-vol-slider {
  -webkit-appearance: none;
  width: 70px; height: 3px;
  background: var(--mlk-surface);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
#mlk-player .mlk-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--mlk-text);
  cursor: pointer;
}

@keyframes mlk-pulse {
  0%,100% { opacity: 1; } 50% { opacity: .25; }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  #mlk-player .mlk-progress-wrap { display: none; }
  #mlk-player .mlk-vol { display: none; }
  #mlk-player .mlk-btn:not(.mlk-btn-play) { display: none; }
}
