.audio-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px; /* Ancho fijo para el área del texto */
    font-family: sans-serif;
  }

  /* Botón Circular */
  #btnControl {
    width: 70px; height: 70px;
    border-radius: 50%; border: none;
    background-color: #1DB954; color: white;
    font-size: 24px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: 0.3s; z-index: 2;
  }
  #btnControl.playing { background-color: #e22c2c; }

  /* Contenedor de Metadata con Máscara */
  .metadata-wrapper {
    margin-top: 15px;
    width: 100%;
    overflow: hidden; /* Esconde el texto que se sale */
    white-space: nowrap;
    position: relative;
    background: rgba(0, 0, 0, 0.05); /* Fondo sutil opcional */
    padding: 5px 0;
    border-radius: 10px;
  }

  .scroll-text {
    display: inline-block;
    padding-left: 100%; /* Empieza desde afuera a la derecha */
    animation: marquee 15s linear infinite;
  }

  #songTitle {
    font-size: 14px;
    font-weight: bold;
    color: #f0eded;
  }

  /* Animación del desplazamiento */
  @keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
  }

  /* Ondas (iguales) */
  .wave-container { display: flex; align-items: flex-end; gap: 3px; height: 30px; margin-bottom: 10px; visibility: hidden; }
  .bar { width: 4px; height: 5px; background: #1DB954; animation: wave 1s infinite; border-radius: 2px; }
  .bar:nth-child(2) { animation-delay: 0.1s; } .bar:nth-child(3) { animation-delay: 0.2s; }
  @keyframes wave { 0%, 100% { height: 5px; } 50% { height: 25px; } }