 body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    padding-bottom: 72px; /* Prevent content overlap by player */
  }

  #clusterPlayer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: linear-gradient(90deg,#111,#1c1c1c);
    opacity: 95%;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 -3px 12px rgba(0,0,0,.4);
    z-index: 99999;
    box-sizing: border-box; /* Include padding in width/height */
  }

  .cp-left {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    flex-grow: 1; /* Allow it to take available space */
    min-width: 0; /* Important for flex-items with overflow: hidden */
    flex-shrink: 1; /* Allow it to shrink if needed */
  }

  #cp-art {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    background: #222;
    flex-shrink: 0; /* Prevent image from shrinking below its size */
    flex-grow: 0; /* Prevent image from growing */
  }

  .cp-meta {
    display: flex;
    flex-direction: column;
    white-space: nowrap; /* Keep text on a single line */
    overflow: hidden; /* Hide overflowing text */
    flex-grow: 1; /* Allow meta-info to take remaining space */
    min-width: 0; /* Crucial for text-overflow: ellipsis to work in flex */
    flex-shrink: 1; /* Allow meta-info to shrink if space is limited */
    line-height: 1.5;
  }

  #cp-artist {
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis; /* Show ellipsis for overflowing text */
    overflow: hidden; /* Hide overflowing text */
    min-width: 0; /* Ensures ellipsis works within flex context */
  }

  #cp-title {
    font-size: 13px;
    opacity: .75;
    text-overflow: ellipsis; /* Show ellipsis for overflowing text */
    overflow: hidden; /* Hide overflowing text */
    min-width: 0; /* Ensures ellipsis works within flex context */
  }

  .cp-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0; /* Prevent controls from shrinking */
    flex-grow: 0; /* Prevent controls from growing */
    margin-left: 10px; /* Add a little spacing if cp-left gets too wide */
  }

/* Container for the play/stop button */
#cp-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background-color: #fff; /* Spotify Green */
    color: black;
    transition: transform 0.2s ease, background-color 0.3s ease;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#cp-play:hover {
    transform: scale(1.05);
}

#cp-play:active {
    transform: scale(0.95);
}

/* Specific styling for the STOP state */
#cp-play.cp-is-playing {
    background-color: #fff;
    color: black; 
    animation: pulse 2s infinite;
}

/* Optional: Subtle pulse animation when playing */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(233, 30, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0); }
}

/* Ensure SVG fits the button */
#cp-play svg {
    width: 28px;
    height: 28px;
}

  #cp-play:hover {
    opacity: .85;
  }

  .cp-live {
    background: red;
    font-size: 11px;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    flex-shrink: 0; /* Prevent label from shrinking */
    flex-grow: 0; /* Prevent label from growing */
  }
