* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
  }
  .player {
    background-color: #1e1e1e;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    text-align: center;
    width: 600px;
    max-width: 100%;
  }
  .player h2 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .playlist {
    margin-top: 20px;
    text-align: left;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: grey #1e1e1e;
  }
  .playlist-item {
    padding: 12px 15px;
    background: #292929;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
  }
  .playlist-item:hover {
    background-color: #444;
    transform: translateX(5px);
  }
  .playlist-item.active {
    background-color: #3a3a3a;
    border-left: 4px solid #1DB954;
    padding-left: 20px;
  }
  .now-playing {
    margin-top: 20px;
    font-size: 16px;
    color: #9f9f9f;
  }
  .song-title {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-top: 5px;
  }
  .audio-container {
    margin-top: 20px;
    width: 100%;
  }
  audio {
    width: 100%;
    border-radius: 10px;
    background-color: #333;
    filter: invert(1);
  }
  /* Custom audio progress bar */
  .progress-container {
    width: 100%;
    height: 8px;
    background: #555;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;
    position: relative;
  }
  .progress-bar {
    height: 100%;
    background: #1DB954;
    border-radius: 5px;
    width: 0%;
    transition: width 0.1s linear;
  }
  .time-display {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
    color: #aaa;
  }
  .controls {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
  }
  .controls button {
    background-color: #1DB954;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
  }
  .controls button:hover {
    background-color: #1ed760;
    transform: scale(1.05);
  }
  .loading {
    margin: 20px 0;
    color: #aaa;
  }
  .no-songs {
    padding: 30px 20px;
    text-align: center;
    color: #aaa;
  }
  .error-message {
    color: #ff6b6b;
    padding: 10px;
    margin-top: 10px;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
  }