.player {
  padding: 16px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  user-select: none;
  -webkit-user-select: none;
}

.player .main { display: flex; align-items: center; gap: 14px; }

.player .play {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .3);
  transition: transform .12s ease;
}
.player .play:active { transform: scale(.94); }
.player .play svg { margin-left: 0; }
.player.playing .play { box-shadow: 0 6px 16px rgba(79, 70, 229, .42); }

.player .track { flex: 1; min-width: 0; }

.player .bar {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.player .bar::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 5px;
  border-radius: 3px;
  background: #ebebf2;
}
.player .fill {
  position: absolute;
  left: 0;
  height: 5px;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.player .knob {
  position: absolute;
  left: 0;
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
  transition: transform .12s ease;
}
.player.seeking .knob { transform: scale(1.25); }

.player .times {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.player .tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.player .tool {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #f4f4f8;
  color: var(--text-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.player .tool:active { background: #eaeaf2; }
.player .tool.rate { min-width: 62px; justify-content: center; font-weight: 600; color: var(--brand); background: var(--brand-soft); }

.player .err { margin-top: 10px; font-size: 13px; color: var(--danger); text-align: center; }
