    * { box-sizing: border-box; }

    body {
      margin: clamp(8px, 4vw, 24px);
      font: 16px/1.45 system-ui, sans-serif;
      background: #f2f2f2;
      color: white;
    }

    /* JavaScript sets the player's width and height. */
    #player {
      position: relative;
      overflow: hidden;
      min-width: 0; /* replace min-width: 320px */
      max-width: 100%;
      border-radius: 12px;
      border-top: 5px solid violet;
      background: #222 center center / cover no-repeat;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.80);
    }

    #player::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, #111c, #1118);
    }

    .content {
      position: relative;
      display: flex;
      gap: 22px;
      height: 100%;
      padding: 22px;
      align-items: center;
    }

    .cover {
      width: 150px;
      height: 150px;
      flex: 0 0 150px;
      object-fit: cover;
      border-radius: 8px;
      background: #444;
    }

    .main { min-width: 0; flex: 1; }
    .track-title { margin: 0; font-size: 1.4rem; }
    .artist { margin: 3px 0 16px; color: #ddd; }

    .buttons, .tools, .album-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }

    button, select {
      border: 0;
      border-radius: 6px;
      padding: 8px 12px;
      cursor: pointer;
      font: inherit;
    }

    button { background: #fff; color: #222; }
    button:hover { background: #eee; }
    button[aria-pressed="true"] { background: #ffb35b; }

    .progress-row {
      display: grid;
      grid-template-columns: 42px 1fr 42px;
      gap: 8px;
      align-items: center;
      margin: 12px 0;
      font-size: .85rem;
    }

    input[type="range"] { width: 100%; accent-color: #ff7a18; }
    .tools { margin-top: 8px; }
    .volume { display: flex; align-items: center; gap: 8px; }
    .volume input { width: 100px; }

    .albums { margin-top: 14px; }
    .albums summary { cursor: pointer; }
    .album-list { margin-top: 8px; }
    .album-list label { white-space: nowrap; }

    #lyrics {
      /*display: none;*/
      position: relative;
      box-sizing: border-box;
      max-width: 100%;
      margin: 20px 0 0 0;
      padding: 14px;
      max-height: 360px;
      overflow: auto;
      white-space: pre-wrap;
      background: #0009;
      border-radius: 8px;
    }
    #lyrics[hidden] {
      display: none !important;
    }

    .lyric-intro {
      font-size: 1.0em;
      font-weight: bold;
      text-align: center;
      margin: -15px auto; /* Keeps spacing right below the intro very small */
      padding: 0;
    }
    
    .lyric-divider {
      border: 0;
      height: 2px;
      background: violet;
      margin: 0 auto; /* Controls the space right above / below the <hr> line */
      width: 90%;      /* Makes the line nice and short */
    }
    
    .lyric-body {
      font-size: 1em;
      line-height: 1.6;
      text-align: center;
      margin: 0 auto;       /* Removes any default outer paragraph spacing */
      margin-top: -15px;
      padding: 0;
    }
    
    .track-list {
  max-height: 400px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  margin: 15px 0;
  scroll-behavior: smooth;
  position: relative;
  box-sizing: border-box;
}

.track {
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.track:hover {
  background: #f8f5ff;
}

.track.active {
  background: #CCA8FF;
  border-left: 4px solid #ff5500;
}

.track-number {
  width: 25px;
  color: #777;
  font-weight: 500;
  text-align: center;
}

.track-info {
  display: flex;
  flex-direction: column;
}

.track-title {
  font-weight: bold;
  color: #333;
}
.track-name {
  font-weight: bold;
  color: violet;
}

.track-artist {
  color: #666;
  font-size: 13px;
  margin-top: 2px;
}

@media (max-width: 600px) {
  #player {
    height: auto !important;
    min-height: 440px;
  }

  .content {
    height: auto;
    min-height: 440px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cover {
    width: 100%;
    height: 150px;
    flex: none;
    object-fit: cover;
  }

  .main {
    width: 100%;
  }

  .track-title {
    font-size: 1.15rem;
    overflow-wrap: anywhere;
  }

  .volume {
    flex-wrap: wrap;
  }

  .volume input {
    flex: 1;
    min-width: 100px;
  }
}

