/* lemicro-overlay.css — overlay compact (mêmes proportions que lecteur2.html) */

:root{
  --bg: rgba(10,10,10,.92);
  --border: #FFCC00;
  --text: #ffffff;
  --muted: rgba(255,255,255,.72);
  --black: #0A0A0A;
  --pill: #FFCC00;
}

*{ box-sizing: border-box; }

html, body{
  margin:0;
  padding:0;
  width:100%;
  height:100%;
  background: transparent; /* overlay */
  font-family: Arial, sans-serif;
}

/* Zone overlay : centre + marge minimale */
body{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px;
}

/* === Carte principale === */
.lm-large-player{
  width: min(1100px, 96vw);
  /* hauteur contrôlée (overlay) */
  min-height: 150px;

  display:flex;
  align-items:center;
  gap: 26px;

  padding: 22px 26px;

  background: var(--bg);
  color: var(--text);

  border: 3px solid var(--border);
  border-radius: 18px;

  overflow: hidden;
}

/* Logo */
.lm-large-logo{
  width: 110px;
  height: 110px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 12px;
}

/* Bloc texte */
.lm-large-info{
  min-width: 0;
  flex: 1 1 auto;
}

.lm-large-info h3{
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ligne sous-titre (live/attente + auditeurs) */
.lm-large-subline{
  margin-top: 10px;
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Badge LIVE (affiché uniquement quand is_live=true) */
.lm-large-live{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  color: #111827;
  background: linear-gradient(90deg,#22c55e,#34d399);
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}

/* Point live (optionnel) */
.lm-large-live .dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  animation: livePulse 1.2s infinite;
}
@keyframes livePulse{
  0%{ transform:scale(1); opacity:1; box-shadow:0 0 0 0 rgba(220,38,38,.7); }
  50%{ transform:scale(1.35); opacity:.8; box-shadow:0 0 0 8px rgba(220,38,38,0); }
  100%{ transform:scale(1); opacity:1; box-shadow:0 0 0 0 rgba(220,38,38,0); }
}

/* Texte d’attente (affiché uniquement quand is_live=false) */
.lm-large-wait{
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

/* Pastille auditeurs */
.lm-large-listeners{
  display:inline-flex;
  align-items:center;
  font-weight: 800;
  font-size: 16px;
  color: #0A0A0A;
  background: var(--pill);
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}

/* Bouton Play */
.lm-large-play{
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 16px;
  background: var(--pill);
  border: none;
  font-size: 40px;
  font-weight: 900;
  color: var(--black);
  cursor: pointer;
  transition: transform .18s ease;
}
.lm-large-play:hover{ transform: scale(1.06); }

/* Barres */
.lm-large-bars{
  display:flex;
  gap: 10px;
  flex: 0 0 auto;
}
.lm-large-bars span{
  width: 10px;
  height: 50px;
  background: var(--pill);
  border-radius: 5px;
  animation: lmBounce .8s infinite ease-in-out alternate;
}
.lm-large-bars span:nth-child(2){ animation-delay: .1s; }
.lm-large-bars span:nth-child(3){ animation-delay: .2s; }
.lm-large-bars span:nth-child(4){ animation-delay: .3s; }

@keyframes lmBounce{
  from{ transform: scaleY(.35); }
  to{ transform: scaleY(1); }
}

/* === Responsive overlay === */
@media (max-width: 900px){
  .lm-large-player{
    gap: 14px;
    padding: 16px;
  }
  .lm-large-logo{ width: 64px; height: 64px; }
  .lm-large-info h3{ font-size: 20px; }
  .lm-large-live, .lm-large-wait, .lm-large-listeners{ font-size: 14px; }
  .lm-large-play{ width: 64px; height: 64px; font-size: 24px; }
  .lm-large-bars span{ height: 28px; width: 8px; }
}

@media (max-width: 520px){
  .lm-large-player{
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .lm-large-subline{
    justify-content: center;
  }
  .lm-large-bars{
    display:none; /* option : on simplifie sur très petit écran */
  }
}
