
  /* Estilos del contenedor */
  #floatingPlayer {
    position: fixed;
    bottom: 90px;
    right: -360px; /* Oculto inicialmente */
    width: 320px;
    padding: 20px;
    background: #ffffff;
    color: #333;
    border-radius: 16px;
    transition: right 0.35s ease;
    z-index: 10000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  #floatingPlayer.show {
    right: 25px;
  }

  /* Header del reproductor */
  .player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }

  .player-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: #20c997;
    font-weight: 600;
  }

  .player-actions {
    display: flex;
    gap: 6px;
  }

  /* Botones cerrar/minimizar */
  #closeBtn, #minimizeBtn {
    background: #ff6f61;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    line-height: 24px;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }

  #closeBtn:hover, #minimizeBtn:hover {
    background: #ff4b3b;
  }

  /* Estilos del audio */
  audio {
    width: 100%;
    outline: none;
    border-radius: 10px;
    background: #f4f4f4;
    margin-bottom: 10px;
  }

  /* Info extra */
  .status {
    font-size: 0.95em;
    color: #555;
    margin-top: 6px;
  }

  /* Indicador parpadeante */
  .live-indicator {
    display: none;
    color: red;
    font-size: 14px;
    animation: blink 1s infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}
