/* ============================================
   Radio MLK — Player CSS v2
   Barre compacte + expand plein écran
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500&family=IBM+Plex+Sans+Condensed:wght@700&display=swap');

: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:       68px;
  --mlk-font:    'DM Sans', sans-serif;
}

body.mlk-active { padding-bottom: var(--mlk-h) !important; }

/* ── Barre compacte ── */
#mlk-player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--mlk-h);
  background: #181818;
  border-top: 1px solid var(--mlk-border);
  display: none;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 99998;
  font-family: var(--mlk-font);
  box-shadow: 0 -2px 20px rgba(0,0,0,0.5);
  cursor: pointer;
}
#mlk-player.visible { display: flex; }

.mlk-bar-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.mlk-bar-top-fill {
  height: 100%;
  background: var(--mlk-accent);
  width: 0%;
  transition: width .5s linear;
}

.mlk-c-art {
  width: 78px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--mlk-surface);
  flex-shrink: 0;
}
/* Variante carrée pour les podcasts */
.mlk-c-art.is-square {
  width: 44px;
  height: 44px;
  border-radius: 6px;
}
.mlk-c-info { flex: 1; min-width: 0; }
.mlk-c-title {
  font-size: 13px; font-weight: 500; color: var(--mlk-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
}
.mlk-c-sub {
  font-size: 11px; color: var(--mlk-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mlk-c-controls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.mlk-c-btn {
  background: none; border: none; color: var(--mlk-muted); cursor: pointer;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: color .15s;
}
.mlk-c-btn:hover { color: var(--mlk-text); }
.mlk-c-btn.mlk-play {
  width: 40px; height: 40px;
  background: var(--mlk-accent); color: #fff !important; border-radius: 50%;
}
.mlk-c-btn.mlk-play:hover { background: #c4002f; }
.mlk-c-badge {
  font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 2px; flex-shrink: 0;
}
.mlk-c-badge.live { background: var(--mlk-accent); color: #fff; }
.mlk-c-badge.replay { background: var(--mlk-surface); color: var(--mlk-muted); border: 1px solid var(--mlk-border); }

/* volume desktop */
.mlk-vol-wrap { display: none; align-items: center; gap: 8px; flex-shrink: 0; }
@media (min-width: 768px) { .mlk-vol-wrap { display: flex; } }
.mlk-vol-slider {
  -webkit-appearance: none; width: 70px; height: 3px;
  background: rgba(255,255,255,0.15); border-radius: 2px; outline: none; cursor: pointer;
}
.mlk-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 11px; height: 11px;
  border-radius: 50%; background: var(--mlk-text); cursor: pointer;
}

/* ── Player étendu ── */
#mlk-expanded {
  position: fixed; inset: 0; z-index: 99999;
  background: #111;
  display: flex; flex-direction: column; align-items: center;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  font-family: var(--mlk-font);
  overflow: hidden;
}
#mlk-expanded.open { transform: translateY(0); }

.mlk-exp-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(40px) brightness(.3) saturate(1.5);
  transform: scale(1.1); z-index: 0;
}

.mlk-exp-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px; height: 100%;
  display: flex; flex-direction: column;
  padding: 0 28px 32px;
}

.mlk-exp-handle {
  width: 36px; height: 4px;
  background: rgba(255,255,255,0.25); border-radius: 2px;
  margin: 14px auto 0; flex-shrink: 0; cursor: pointer;
}

.mlk-exp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0 0; flex-shrink: 0;
}
.mlk-exp-station {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: rgba(255,255,255,0.45);
}
.mlk-exp-close {
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
}
.mlk-exp-close:hover { background: rgba(255,255,255,0.2); }

.mlk-exp-art-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 20px 0 12px; min-height: 0;
}
.mlk-exp-art {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  background: #2a2a2a;
}
/* Variante carrée pour les podcasts */
.mlk-exp-art.is-square {
  aspect-ratio: 1;
  max-width: 260px;
  border-radius: 12px;
}

.mlk-exp-info { flex-shrink: 0; margin-bottom: 14px; }
.mlk-exp-title {
  font-family: 'Bebas Neue', var(--mlk-font); font-size: 30px; color: #fff;
  line-height: 1.05; margin-bottom: 4px; letter-spacing: .02em;
}
.mlk-exp-sub { font-size: 13px; color: rgba(255,255,255,0.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mlk-exp-progress { flex-shrink: 0; margin-bottom: 4px; }
.mlk-exp-bar {
  height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px;
  cursor: pointer; margin-bottom: 8px; position: relative;
}
.mlk-exp-bar-fill {
  height: 100%; background: #fff; border-radius: 2px;
  width: 0%; transition: width .4s linear; pointer-events: none; position: relative;
}
.mlk-exp-bar-fill::after {
  content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; background: #fff; border-radius: 50%;
}
.mlk-exp-times {
  display: flex; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,0.35); font-variant-numeric: tabular-nums;
}

.mlk-exp-controls {
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; padding: 8px 0 16px;
}
.mlk-exp-btn {
  background: none; border: none; color: rgba(255,255,255,0.65); cursor: pointer;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: color .15s, transform .1s; position: relative;
}
.mlk-exp-btn:hover { color: #fff; }
.mlk-exp-btn:active { transform: scale(.9); }
.mlk-skip-label {
  position: absolute; font-size: 8px; font-weight: 700;
  color: inherit; pointer-events: none; line-height: 1;
}
.mlk-exp-btn-play {
  width: 64px !important; height: 64px !important;
  background: #fff !important; color: #111 !important;
  border-radius: 50%; box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.mlk-exp-btn-play:hover { background: #f0ede8 !important; }

.mlk-exp-extras {
  display: flex; align-items: center; justify-content: space-around;
  flex-shrink: 0; background: rgba(255,255,255,0.07);
  border-radius: 12px; padding: 10px 8px;
}
.mlk-exp-extra-btn {
  background: none; border: none; color: rgba(255,255,255,0.45); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10px; font-family: var(--mlk-font); transition: color .15s; padding: 4px 12px;
}
.mlk-exp-extra-btn.active { color: var(--mlk-accent); }
.mlk-exp-extra-btn:hover { color: rgba(255,255,255,0.85); }

@keyframes mlkPulse { 0%,100%{opacity:1} 50%{opacity:.2} }
.mlk-live-dot {
  display: inline-block; width: 5px; height: 5px; background: currentColor;
  border-radius: 50%; margin-right: 4px;
  animation: mlkPulse 1.3s ease-in-out infinite; vertical-align: middle; margin-bottom: 1px;
}

/* ═══════════════════════════════════════════════
   Section ON AIR (home page)
   ═══════════════════════════════════════════════ */

#mlk-onair {
  background: #111;
  font-family: var(--mlk-font);
  overflow: hidden;
}

.mlk-oa-media {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #1a1a1a;
}

.mlk-oa-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0;
  transition: opacity .4s;
}

.mlk-oa-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 55%, transparent 100%);
}

/* Infos à gauche */
.mlk-oa-left {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; gap: 4px; z-index: 1;
  max-width: 60%;
}

.mlk-oa-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--mlk-accent); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
  width: fit-content; margin-bottom: 4px;
}

.mlk-oa-station {
  font-family: 'Bebas Neue', var(--mlk-font);
  font-size: 18px; color: rgba(255,255,255,.55);
  letter-spacing: .06em; line-height: 1;
}

.mlk-oa-title {
  font-family: 'Bebas Neue', var(--mlk-font);
  font-size: 30px; color: #fff;
  line-height: 1.05; letter-spacing: .02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.mlk-oa-artist {
  font-size: 12px; color: rgba(255,255,255,.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Boutons stream à droite */
.mlk-oa-btns {
  position: absolute;
  top: 50%; right: 16px;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px; z-index: 1;
}

.mlk-oa-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,.55);
  border: 1.5px solid rgba(255,255,255,.7);
  color: #fff;
  padding: 6px 14px 6px 5px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--mlk-font); font-size: 12px; font-weight: 600;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.mlk-oa-btn:hover { background: rgba(232,0,61,.7); border-color: var(--mlk-accent); }

.mlk-oa-btn svg {
  width: 28px; height: 28px;
  background: var(--mlk-accent); border-radius: 50%;
  padding: 6px; fill: #fff; flex-shrink: 0;
}

/* Barre "À SUIVRE" */
.mlk-oa-next-bar {
  background: #181818;
  border-top: 1px solid var(--mlk-border);
  padding: 8px 20px;
  display: flex; align-items: center; gap: 8px;
  overflow: hidden;
}

.mlk-oa-next-label {
  color: var(--mlk-accent);
  font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
}

.mlk-oa-next-text {
  font-size: 11px; color: rgba(255,255,255,.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .mlk-oa-media  { aspect-ratio: 4 / 3; }
  .mlk-oa-title  { font-size: 22px; }
  .mlk-oa-btns   { right: 10px; gap: 8px; }
  .mlk-oa-btn    { font-size: 11px; padding: 5px 10px 5px 4px; }
  .mlk-oa-btn svg{ width: 24px; height: 24px; padding: 5px; }
}

/* ═══════════════════════════════════════════════
   Section NOUVEAUTÉS — titre
   ═══════════════════════════════════════════════ */
.mlk-nouveautes-head {
  padding: 28px 16px 10px;
  font-family: var(--mlk-font);
}

.mlk-nouveautes-title {
  font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--mlk-accent);
}

/* ═══════════════════════════════════════════════
   Slider NOUVEAUTÉS (#mlk-replay-slider)
   ═══════════════════════════════════════════════ */
#mlk-replay-slider {
  --pink: #D20658;
  --gap:  10px;
  --peek: 8%;
  --rad:  3px;
  position: relative;
  width: 100%;
}

#mlk-rs-loading {
  text-align: center; padding: 2rem;
  color: #888; font-family: var(--mlk-font); font-size: 13px;
}

#mlk-rs-outer {
  overflow: hidden;
  padding: 0 var(--peek);
}

#mlk-rs-track {
  display: flex;
  gap: var(--gap);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.mlk-rs-slide {
  flex-shrink: 0;
  width: calc((100% - 2 * var(--gap)) / 3);
  border-radius: var(--rad);
  overflow: hidden;
  background: #111;
  display: flex; flex-direction: column;
}

.mlk-rs-art {
  width: 100%; aspect-ratio: 4 / 5;
  position: relative; overflow: hidden;
  flex-shrink: 0; background: #1a1a1a;
}

.mlk-rs-art img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.mlk-rs-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.mlk-rs-fallback svg { width: 48px; height: 48px; fill: #333; }

.mlk-rs-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--pink);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  transition: transform 0.15s;
  padding: 0; padding-left: 3px; outline: none; -webkit-appearance: none;
  box-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.mlk-rs-play:hover { transform: translate(-50%, -50%) scale(1.08); background: #b3004a; }
.mlk-rs-play svg { width: 22px; height: 22px; }

.mlk-rs-bar {
  background: var(--pink);
  padding: 10px 10px 10px 12px;
  display: flex; align-items: center; gap: 8px;
  min-height: 56px; flex-shrink: 0;
}

.mlk-rs-info { flex: 1; overflow: hidden; }

.mlk-rs-title {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-weight: 700; font-size: 14px; color: #fff;
  text-transform: uppercase; letter-spacing: .02em; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}

.mlk-rs-artist {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-weight: 700; font-size: 11px; color: rgba(255,255,255,.75);
  text-transform: uppercase; letter-spacing: .04em; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mlk-rs-dl {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #fff; background: transparent;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; text-decoration: none;
  transition: background .2s;
}
.mlk-rs-dl:hover { background: rgba(255,255,255,.2); }
.mlk-rs-dl svg   { width: 16px; height: 16px; }

/* Dots */
#mlk-rs-dots {
  justify-content: center; gap: 6px; margin-top: 14px; padding-bottom: 4px;
}
.mlk-rs-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.2); cursor: pointer;
  transition: background .2s, transform .2s;
}
.mlk-rs-dot.active { background: var(--pink); transform: scale(1.35); }

/* Flèches nav */
.mlk-rs-nav-wrap {
  display: flex; justify-content: flex-end;
  gap: 8px; padding: 10px 16px 0;
}
.mlk-rs-nav {
  width: 34px; height: 34px; border-radius: 50%;
  background: #1c1c1c; border: 1px solid rgba(255,255,255,.1);
  color: #f0ede8; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
}
.mlk-rs-nav:hover { background: #2a2a2a; }

/* Responsive */
@media (max-width: 900px) {
  .mlk-rs-slide { width: calc((100% - var(--gap)) / 2); }
}
@media (max-width: 600px) {
  #mlk-replay-slider { --peek: 7%; }
  .mlk-rs-slide { width: 100%; }
  .mlk-rs-title { font-size: 13px; }
  .mlk-rs-play  { width: 46px; height: 46px; }
  .mlk-rs-play svg { width: 46px; height: 46px; }
}
