.site-player {
  position: fixed;
  z-index: 70;
  inset-inline: 0;
  bottom: 14px;
  width: min(760px, calc(100% - 28px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 44px minmax(0, 1.15fr) minmax(150px, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 10px;
  background: #f7f3ebf5;
  color: #223c35;
  border: 1px solid #cfc6b6;
  box-shadow: 0 14px 34px #1c241c2e;
}
.player-play {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: #23463d;
  color: #f7f3eb;
  cursor: pointer;
}
.player-play::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent currentColor;
  margin-inline-start: 2px;
}
.site-player[data-playing] .player-play::before {
  width: 11px;
  height: 12px;
  margin: 0;
  border: 0;
  background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 8px, currentColor 8px 11px);
}
.player-play:hover { background: #355a4d; }
.player-play:active, .player-step:active, .player-list-toggle:active { transform: scale(.97); }
.player-copy { min-width: 0; display: grid; gap: 2px; }
.player-kicker { color: #855035; font: 600 .58rem/1 system-ui, sans-serif; letter-spacing: .16em; }
.player-title { font-weight: 500; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-transport { display: flex; align-items: center; gap: 2px; }
.player-seek-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; }
.player-time { color: #5d6858; font-size: .7rem; font-variant-numeric: tabular-nums; }
.player-seek, .player-volume input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  margin: 0;
  border: 0;
  border-radius: 99px;
  background: #d9d0c2;
  cursor: pointer;
}
.player-seek::-webkit-slider-thumb, .player-volume input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #855035;
}
.player-seek::-moz-range-thumb, .player-volume input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #855035;
}
.player-seek { height: 22px; background: transparent; }
.player-seek::-webkit-slider-runnable-track { height: 3px; background: #d9d0c2; border-radius: 99px; }
.player-step, .player-list-toggle {
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #23463d;
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
}
.player-step:hover, .player-list-toggle:hover { background: #efe6d6; }
.player-volume { display: flex; align-items: center; gap: 6px; width: 84px; color: #5d6858; font-size: .7rem; }
.player-list {
  position: absolute;
  inset-inline-end: 8px;
  bottom: calc(100% + 8px);
  width: min(360px, calc(100vw - 32px));
  max-height: min(320px, 48vh);
  overflow: auto;
  list-style: none;
  margin: 0;
  padding: 6px;
  display: grid;
  gap: 2px;
  background: #f7f3eb;
  border: 1px solid #cfc6b6;
  box-shadow: 0 16px 36px #1c241c29;
}
.player-list[hidden] { display: none; }
.player-list button {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.player-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.player-list button:hover { background: #efe8da; }
.player-list .is-current button { background: #23463d; color: #f7f3eb; }
.player-mark { color: #855035; font-size: .75rem; font-variant-numeric: tabular-nums; }
.player-list .is-current .player-mark { color: #f4e4cb; }
body { padding-bottom: 88px; }
@media (max-width: 800px) {
  .site-player {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas: "play copy tools" "seek seek seek";
    bottom: 8px;
    width: calc(100% - 16px);
    gap: 4px 8px;
  }
  .player-play { grid-area: play; }
  .player-copy { grid-area: copy; }
  .player-transport { grid-area: tools; }
  .player-seek-wrap { grid-area: seek; }
  .player-volume { display: none; }
  .player-list { inset-inline: 0; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .player-play:active, .player-step:active, .player-list-toggle:active { transform: none; }
}
