.sm-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  color: #fff;
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  pointer-events: none;
}
.sm-controls.is-ready {
  pointer-events: auto;
  transition: opacity .5s ease, visibility .5s ease;
}
.sm-controls.is-ready.is-idle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.sm-frame.is-controls-idle { cursor: none; }
.sm-controls[hidden] { display: none; }
.sm-controls-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 36px;
  height: 20px;
  display: flex;
  align-items: center;
  touch-action: none;
}
.sm-controls-progress input {
  width: 100%;
  height: 20px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.sm-controls-progress input:disabled { cursor: default; }
.sm-controls-progress input::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ff8020 var(--played, 0%), #ffb176 var(--played, 0%), rgba(255, 255, 255, .3) var(--played, 0%));
}
.sm-controls-progress input::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border: 2px solid #fc6f03;
  border-radius: 50%;
  background: #fc6f03;
  box-shadow: 0 0 5px rgba(255, 255, 255, .5);
}
.sm-controls-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 8px 0 4px;
  background: rgba(0, 0, 0, .8);
}
.sm-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 40px;
  padding: 0 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font: 400 14px/1 "PingFang SC", sans-serif;
  cursor: pointer;
}
.sm-controls button:disabled,
.sm-controls button[aria-disabled="true"] { cursor: not-allowed; opacity: .45; }
.sm-controls button svg { display: block; flex: none; }
.sm-controls [data-sm-toggle] svg { width: 24px; height: 40px; fill: currentColor; }
.sm-controls [data-sm-mute],
.sm-controls [data-sm-full] { width: 32px; padding: 0; }
.sm-controls [data-sm-mute] svg { width: 20px; height: 20px; fill: currentColor; }
.sm-controls [data-sm-mute] svg path[fill="none"] { fill: none; }
.sm-controls [data-sm-full] .is-enter { width: 20px; height: 20px; }
.sm-controls [data-sm-full] .is-exit { width: 16px; height: 16px; }
.sm-controls:not(.is-playing) [data-sm-toggle] .is-pause,
.sm-controls.is-playing [data-sm-toggle] .is-play,
.sm-controls [data-sm-mute][aria-pressed="true"] .is-on,
.sm-controls [data-sm-mute][aria-pressed="false"] .is-off,
.sm-controls [data-sm-full][aria-pressed="true"] .is-enter,
.sm-controls [data-sm-full][aria-pressed="false"] .is-exit { display: none; }
.sm-controls-time {
  margin: 0 8px 0 4px;
  color: #fff;
  font-size: 14px;
  line-height: 40px;
  white-space: nowrap;
  pointer-events: none;
}
.sm-controls-time [data-sm-duration] { color: rgba(255, 255, 255, .5); }
.sm-controls-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.sm-controls-pop { position: relative; display: flex; align-items: center; }
.sm-controls-menu {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 72px;
  margin: 0;
  padding: 8px 0;
  transform: translateX(-50%);
  border-radius: 12px;
  background: rgba(20, 20, 20, .9);
  list-style: none;
}
.sm-controls-menu[hidden] { display: none; }
.sm-controls-menu button { width: 100%; min-width: 72px; height: 28px; }
.sm-controls-menu button[aria-current="true"] { color: #ff8020; }
.sm-controls [data-sm-volume] {
  display: none;
  width: 72px;
  height: 20px;
  margin-left: 4px;
  accent-color: #ff8020;
}
@media (min-width: 1025px) {
  .sm-controls-inner { background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .75)); }
  .sm-controls-pop:hover [data-sm-volume],
  .sm-controls-pop:focus-within [data-sm-volume] { display: block; }
}
@media (max-width: 1024px) {
  .sm-controls-time { font-size: 12px; }
  .sm-controls-progress { left: 8px; right: 8px; }
}
.sm-frame:fullscreen .sm-controls,
.sm-frame:-webkit-full-screen .sm-controls { bottom: env(safe-area-inset-bottom, 0px); }
@media (prefers-reduced-motion: reduce) {
  .sm-controls, .sm-controls * { transition: none; }
}
