.wt-player {
  font-family: Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
  width: min(960px, 94vw);
  margin: 24px auto;
  border: 1px solid #000;
  border-radius: 12px;
  background: #fff;
  color: #000;
  padding: 16px;
  display: grid;
  gap: 16px;
  grid-template-columns: 300px 1fr;
  align-items: start;
}

@media (max-width: 860px) {
  .wt-player {
    grid-template-columns: 1fr;
  }
}

.wt-player * {
  box-sizing: border-box;
}

.wt-art-wrap {
  border: 1px solid #000;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wt-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wt-meta .song-title {
  font-weight: 700;
  line-height: 1.2;
  font-size: clamp(18px, 2.8vw, 32px);
  margin: 0 0 4px;
}

.wt-meta .song-artist {
  opacity: 0.7;
  margin: 0 0 6px;
}

.wt-controls {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}

.wt-btn {
  appearance: none;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.wt-timebar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}

.wt-progress {
  --h: 8px;
  position: relative;
  height: var(--h);
  flex: 1;
  background: #e6e6e6;
  border-radius: 999px;
  cursor: pointer;
}

.wt-progress .fg {
  position: absolute;
  inset: 0;
  width: 0%;
  background: #000;
  border-radius: 999px;
}

.wt-tracklist {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  border-top: 1px solid #000;
  max-height: 50vh;
  overflow: auto;
}

.wt-tracklist li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #000;
  cursor: pointer;
}

.wt-tracklist li.active {
  background: #000;
  color: #fff;
}

.wt-idx {
  width: 2.4ch;
  text-align: right;
  opacity: 0.7;
}

.wt-tmeta {
  overflow: hidden;
}

.wt-tmeta .t-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wt-tmeta .t-artist {
  opacity: 0.7;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wt-dur {
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}

audio {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
